diff --git a/core/actioncontext/main.go b/core/actioncontext/main.go index 99f0c8501..d2aefa6c2 100644 --- a/core/actioncontext/main.go +++ b/core/actioncontext/main.go @@ -231,7 +231,7 @@ func WithProps(ctx context.Context, props Properties) context.Context { if props.Rollback { ctx = actionrollback.NewContext(ctx) } - if props.PG { + if props.PG && pg.FromContext(ctx) == nil { ctx = pg.NewContext(ctx) } return ctx diff --git a/core/naming/path.go b/core/naming/path.go index eb4d66b92..39d103f7f 100644 --- a/core/naming/path.go +++ b/core/naming/path.go @@ -16,7 +16,6 @@ import ( "github.com/opensvc/om3/v3/util/file" "github.com/opensvc/om3/v3/util/hostname" "github.com/opensvc/om3/v3/util/xmap" - "github.com/opensvc/om3/v3/util/xstrings" ) type ( @@ -100,6 +99,10 @@ func NewPathFromStrings(namespace, kind, name string) (Path, error) { return path, fmt.Errorf("%w: invalid kind %s", ErrInvalid, kind) case KindNscfg: name = "namespace" + case KindSvc: + if namespace == NsRoot && name == "namespace" { + return path, fmt.Errorf("%w: the 'namespace' svc name is reserved in the root ns", ErrInvalid) + } } if name == "" { @@ -156,6 +159,13 @@ func (t Path) String() string { if t.Kind == KindInvalid { return "" } + if t.Kind == KindNscfg { + if t.Namespace == NsRoot { + return Separator + } else { + return t.Namespace + Separator + } + } if t.Namespace != "" && t.Namespace != NsRoot { s += t.Namespace + Separator } @@ -408,12 +418,16 @@ func (t Path) VarDir() string { if t.IsZero() { return filepath.Join(rawconfig.Paths.Var, "node") } - switch t.Namespace { case "", NsRoot: s = filepath.Join(rawconfig.Paths.Var, t.Kind.String(), t.Name) default: - s = filepath.Join(rawconfig.Paths.VarNs, t.String()) + if t.Kind == KindNscfg { + s = filepath.Join(rawconfig.Paths.VarNs, t.FQN()) + } else { + + s = filepath.Join(rawconfig.Paths.VarNs, t.String()) + } } return s } @@ -464,11 +478,21 @@ func (t Path) ConfigFile() string { if s == "" { return "" } - switch t.Namespace { - case "", NsRoot: - s = fmt.Sprintf("%s/%s.conf", rawconfig.Paths.Etc, s) + switch t.Kind { + case KindCcfg: + s = fmt.Sprintf("%s/cluster.conf", rawconfig.Paths.Etc) + case KindNscfg: + if t.Namespace == "" || t.Namespace == NsRoot { + s = fmt.Sprintf("%s/namespace.conf", rawconfig.Paths.Etc) + } else { + s = fmt.Sprintf("%s/%s/namespace.conf", rawconfig.Paths.EtcNs, t.Namespace) + } default: - s = fmt.Sprintf("%s/%s.conf", rawconfig.Paths.EtcNs, s) + if t.Namespace == "" || t.Namespace == NsRoot { + s = fmt.Sprintf("%s/%s.conf", rawconfig.Paths.Etc, s) + } else { + s = fmt.Sprintf("%s/%s.conf", rawconfig.Paths.EtcNs, s) + } } return filepath.FromSlash(s) } @@ -484,8 +508,9 @@ func InstalledPaths() (Paths, error) { matches := make([]string, 0) patterns := []string{ fmt.Sprintf("%s/*.conf", rawconfig.Paths.Etc), // root svc - fmt.Sprintf("%s/*/*.conf", rawconfig.Paths.Etc), // root other - fmt.Sprintf("%s/*/*/*.conf", rawconfig.Paths.EtcNs), // namespaces + fmt.Sprintf("%s/*/*.conf", rawconfig.Paths.Etc), // root other-kind + fmt.Sprintf("%s/*/*.conf", rawconfig.Paths.EtcNs), // namespaces nscfg + fmt.Sprintf("%s/*/*/*.conf", rawconfig.Paths.EtcNs), // namespaces other-kind } for _, pattern := range patterns { m, err := filepath.Glob(pattern) @@ -494,21 +519,14 @@ func InstalledPaths() (Paths, error) { } matches = append(matches, m...) } - replacements := []string{ - fmt.Sprintf("%s/", rawconfig.Paths.EtcNs), - fmt.Sprintf("%s/", rawconfig.Paths.Etc), - } + envNamespace := env.Namespace() envKind := ParseKind(env.Kind()) + for _, ps := range matches { - for _, r := range replacements { - ps = strings.Replace(ps, r, "", 1) - ps = strings.Replace(ps, r, "", 1) - } - ps = xstrings.TrimLast(ps, 5) // strip trailing .conf - p, err := ParsePath(ps) + p, err := ConfigFilePath(ps) if err != nil { - continue + l = append(l, p) } if envKind != KindInvalid && envKind != p.Kind { continue @@ -520,3 +538,35 @@ func InstalledPaths() (Paths, error) { } return l, nil } + +// ConfigFilePath return the object path owning the config file pass as +// argument. +// +// e.g. +// * /etc/opensvc/namespace.conf => path.T{Namespace: "root", Kind: KindNscfg, Name: "namespace"} +// * /etc/opensvc/sec/namespace.conf => path.T{Namespace: "root", Kind: KindSec, Name: "namespace"} +// * /etc/opensvc/namespaces/test/namespace.conf => path.T{Namespace: "test", Kind: KindNscfg, Name: "namespace"} +// * /etc/opensvc/namespaces/test/svc/namespace.conf => path.T{Namespace: "test", Kind: KindSvc, Name: "namespace"} +func ConfigFilePath(filename string) (Path, error) { + svcName := strings.TrimPrefix(filename, rawconfig.Paths.Etc+"/") + if svcName == "namespace.conf" { + return Path{ + Namespace: NsRoot, Kind: KindNscfg, Name: "namespace"}, nil + } + if svcName == "cluster.conf" { + return Path{Namespace: NsRoot, Kind: KindCcfg, Name: "cluster"}, nil + } + svcName = strings.TrimPrefix(svcName, "namespaces/") + svcName = strings.TrimSuffix(svcName, ".conf") + elements := strings.Split(svcName, "/") + if len(elements) == 2 && elements[1] == "namespace" { + if ParseKind(elements[0]) == KindInvalid { + // ns1/namespace => ns1/ + svcName = strings.TrimSuffix(svcName, "namespace") + } + } + if len(svcName) == 0 { + return Path{}, fmt.Errorf("skipped null filename") + } + return ParsePath(svcName) +} diff --git a/core/naming/path_test.go b/core/naming/path_test.go index 0e1876a66..a9c3461f9 100644 --- a/core/naming/path_test.go +++ b/core/naming/path_test.go @@ -81,6 +81,13 @@ func TestNewPath(t *testing.T) { output: "", ok: false, }, + "reserved svc name": { + name: "namespace", + namespace: "root", + kind: "svc", + output: "", + ok: false, + }, "empty name": { name: "", namespace: NsRoot, @@ -102,6 +109,20 @@ func TestNewPath(t *testing.T) { output: "cluster", ok: true, }, + "root nscfg": { + name: "namespace", + namespace: NsRoot, + kind: "nscfg", + output: "/", + ok: true, + }, + "non-root nscfg": { + name: "namespace", + namespace: "test", + kind: "nscfg", + output: "test/", + ok: true, + }, "zero value": { name: "", namespace: "", @@ -227,6 +248,12 @@ func TestParsePath(t *testing.T) { kind: "nscfg", ok: true, }, + "ns1/nscfg/namespace": { + name: "namespace", + namespace: "ns1", + kind: "nscfg", + ok: true, + }, "cluster": { name: "cluster", namespace: NsRoot, @@ -531,6 +558,20 @@ func TestConfigFile(t *testing.T) { cf: "/etc/opensvc/cluster.conf", root: "", }, + "root namespace": { + name: "namespace", + namespace: "", + kind: "nscfg", + cf: "/etc/opensvc/namespace.conf", + root: "", + }, + "non-root namespace": { + name: "namespace", + namespace: "test", + kind: "nscfg", + cf: "/etc/opensvc/namespaces/test/namespace.conf", + root: "", + }, "namespaced, dev install": { name: "svc1", namespace: "ns1", @@ -591,3 +632,54 @@ func TestNsNames(t *testing.T) { assert.Equal(t, "root", NsRoot) assert.Equal(t, "system", NsSys) } + +func TestConfigFilePath(t *testing.T) { + tests := map[string]struct { + filename string + expected Path + ok bool + }{ + "cluster.conf in /etc/opensvc/": { + filename: "/etc/opensvc/cluster.conf", + expected: Path{Namespace: NsRoot, Kind: KindCcfg, Name: "cluster"}, + ok: true, + }, + "namespace.conf in /etc/opensvc/": { + filename: "/etc/opensvc/namespace.conf", + expected: Path{Namespace: NsRoot, Kind: KindNscfg, Name: "namespace"}, + ok: true, + }, + "namespace.conf in /etc/opensvc/sec/": { + filename: "/etc/opensvc/sec/namespace.conf", + expected: Path{Namespace: NsRoot, Kind: KindSec, Name: "namespace"}, + ok: true, + }, + "namespace.conf in /etc/opensvc/test/": { + filename: "/etc/opensvc/test/namespace.conf", + expected: Path{Namespace: "test", Kind: KindNscfg, Name: "namespace"}, + ok: true, + }, + "namespace.conf in /etc/opensvc/test/svc/": { + filename: "/etc/opensvc/test/svc/namespace.conf", + expected: Path{Namespace: "test", Kind: KindSvc, Name: "namespace"}, + ok: true, + }, + } + for testName, test := range tests { + t.Run(testName, func(t *testing.T) { + _ = testhelper.SetupEnvWithoutCreateMandatoryDirectories(testhelper.Env{ + TestingT: t, + Root: "", + }) + path, err := ConfigFilePath(test.filename) + if test.ok { + assert.NoError(t, err) + assert.Equal(t, test.expected.Namespace, path.Namespace) + assert.Equal(t, test.expected.Kind, path.Kind) + assert.Equal(t, test.expected.Name, path.Name) + } else { + assert.Error(t, err) + } + }) + } +} diff --git a/core/object/actor.go b/core/object/actor.go index d80bb57c6..7110763f5 100644 --- a/core/object/actor.go +++ b/core/object/actor.go @@ -103,6 +103,34 @@ func (t *actor) PG() *pg.Config { return t.pg } +func (t *actor) registerNamespacePG(ctx context.Context) error { + nscfgPath := naming.Path{ + Namespace: t.path.Namespace, + Kind: naming.KindNscfg, + Name: "namespace", + } + nscfgObj, err := NewNscfg(nscfgPath, WithVolatile(true)) + if err != nil { + return fmt.Errorf("new nscfg %s: %w", nscfgPath, err) + } + mgr := pg.FromContext(ctx) + if mgr != nil { + mgr.Register(nscfgObj.PGConfig()) + } + return nil +} + +func (t *actor) registerObjectPG(ctx context.Context) error { + if t.pg == nil { + return nil + } + mgr := pg.FromContext(ctx) + if mgr != nil { + mgr.Register(t.pg.WithLogger(t.log)) + } + return nil +} + func (t *actor) init(referrer xconfig.Referrer, path naming.Path, opts ...funcopt.O) error { if err := t.core.init(referrer, path, opts...); err != nil { return err diff --git a/core/object/core_action.go b/core/object/core_action.go index 65364ba94..07beb725c 100644 --- a/core/object/core_action.go +++ b/core/object/core_action.go @@ -745,6 +745,14 @@ func (t *actor) action(ctx context.Context, fn resourceset.DoFunc) error { t.announceIdle(ctxWithTimeout) return err } + if action.PG { + if pgErr := t.registerNamespacePG(ctxWithTimeout); pgErr != nil { + t.log.Warnf("register namespace pg: %s", pgErr) + } + if pgErr := t.registerObjectPG(ctxWithTimeout); pgErr != nil { + t.log.Warnf("register object pg: %s", pgErr) + } + } if err := t.ResourceSets().Do(ctxWithTimeout, resourceSelector, barrier, "link-"+action.Name, progressWrap(linkWrap(encapWrap(fn)))); errors.Is(err, resource.ErrBarrier) { // pass } else if err != nil { @@ -770,7 +778,7 @@ func (t *actor) action(ctx context.Context, fn resourceset.DoFunc) error { defer cancelCtxWithTimeout() if action.Order.IsDesc() { - t.CleanPG(ctxWithTimeout) + t.PGClean(ctxWithTimeout) } err := t.postStartStopStatusEval(ctxWithTimeout) if err == nil { diff --git a/core/object/core_keywords.go b/core/object/core_keywords.go index 6f787ef20..b51853268 100644 --- a/core/object/core_keywords.go +++ b/core/object/core_keywords.go @@ -82,7 +82,7 @@ var keywordStore = keywords.Store{ { Converter: "bool", Default: "true", - Kind: naming.NewKinds(naming.KindSvc, naming.KindVol), + Kind: naming.NewKinds(naming.KindSvc, naming.KindVol, naming.KindNscfg), Option: "create_pg", Scopable: true, Section: "DEFAULT", @@ -93,7 +93,7 @@ var keywordStore = keywords.Store{ Depends: keyop.ParseList("create_pg=true"), Example: "0-2", Inherit: keywords.InheritLeaf, - Kind: naming.NewKinds(naming.KindSvc, naming.KindVol), + Kind: naming.NewKinds(naming.KindSvc, naming.KindVol, naming.KindNscfg), Option: "pg_cpus", Scopable: true, Text: keywords.NewText(fs, "text/kw/core/pg_cpus"), @@ -102,7 +102,7 @@ var keywordStore = keywords.Store{ Attr: "PG.Mems", Example: "0-2", Inherit: keywords.InheritLeaf, - Kind: naming.NewKinds(naming.KindSvc, naming.KindVol), + Kind: naming.NewKinds(naming.KindSvc, naming.KindVol, naming.KindNscfg), Option: "pg_mems", Scopable: true, Text: keywords.NewText(fs, "text/kw/core/pg_mems"), @@ -112,7 +112,7 @@ var keywordStore = keywords.Store{ Converter: "size", Example: "512", Inherit: keywords.InheritLeaf, - Kind: naming.NewKinds(naming.KindSvc, naming.KindVol), + Kind: naming.NewKinds(naming.KindSvc, naming.KindVol, naming.KindNscfg), Option: "pg_cpu_shares", Scopable: true, Text: keywords.NewText(fs, "text/kw/core/pg_cpu_shares"), @@ -121,7 +121,7 @@ var keywordStore = keywords.Store{ Attr: "PG.CpuQuota", Example: "50%@all", Inherit: keywords.InheritLeaf, - Kind: naming.NewKinds(naming.KindSvc, naming.KindVol), + Kind: naming.NewKinds(naming.KindSvc, naming.KindVol, naming.KindNscfg), Option: "pg_cpu_quota", Scopable: true, Text: keywords.NewText(fs, "text/kw/core/pg_cpu_shares"), @@ -130,7 +130,7 @@ var keywordStore = keywords.Store{ Attr: "PG.MemOOMControl", Example: "1", Inherit: keywords.InheritLeaf, - Kind: naming.NewKinds(naming.KindSvc, naming.KindVol), + Kind: naming.NewKinds(naming.KindSvc, naming.KindVol, naming.KindNscfg), Option: "pg_mem_oom_control", Scopable: true, Text: keywords.NewText(fs, "text/kw/core/pg_mem_oom_control"), @@ -140,7 +140,7 @@ var keywordStore = keywords.Store{ Converter: "size", Example: "512m", Inherit: keywords.InheritLeaf, - Kind: naming.NewKinds(naming.KindSvc, naming.KindVol), + Kind: naming.NewKinds(naming.KindSvc, naming.KindVol, naming.KindNscfg), Option: "pg_mem_limit", Scopable: true, Text: keywords.NewText(fs, "text/kw/core/pg_mem_limit"), @@ -150,7 +150,7 @@ var keywordStore = keywords.Store{ Converter: "size", Example: "1g", Inherit: keywords.InheritLeaf, - Kind: naming.NewKinds(naming.KindSvc, naming.KindVol), + Kind: naming.NewKinds(naming.KindSvc, naming.KindVol, naming.KindNscfg), Option: "pg_vmem_limit", Scopable: true, Text: keywords.NewText(fs, "text/kw/core/pg_vmem_limit"), @@ -159,7 +159,7 @@ var keywordStore = keywords.Store{ Attr: "PG.MemSwappiness", Example: "40", Inherit: keywords.InheritLeaf, - Kind: naming.NewKinds(naming.KindSvc, naming.KindVol), + Kind: naming.NewKinds(naming.KindSvc, naming.KindVol, naming.KindNscfg), Option: "pg_mem_swappiness", Scopable: true, Text: keywords.NewText(fs, "text/kw/core/pg_mem_swappiness"), @@ -168,7 +168,7 @@ var keywordStore = keywords.Store{ Attr: "PG.BlkioWeight", Example: "50", Inherit: keywords.InheritLeaf, - Kind: naming.NewKinds(naming.KindSvc, naming.KindVol), + Kind: naming.NewKinds(naming.KindSvc, naming.KindVol, naming.KindNscfg), Option: "pg_blkio_weight", Scopable: true, Text: keywords.NewText(fs, "text/kw/core/pg_blkio_weight"), diff --git a/core/object/factory.go b/core/object/factory.go index 3d9c817ae..603c78a17 100644 --- a/core/object/factory.go +++ b/core/object/factory.go @@ -88,6 +88,28 @@ func NewList(paths naming.Paths, opts ...funcopt.O) ([]any, error) { return l, errs } +// NewT allocates a new kinded and uninitialized object +func NewT(p naming.Path) any { + switch p.Kind { + case naming.KindSvc: + return &svc{} + case naming.KindVol: + return &vol{} + case naming.KindCfg: + return &cfg{} + case naming.KindSec: + return &sec{} + case naming.KindUsr: + return &usr{} + case naming.KindCcfg: + return &Ccfg{} + case naming.KindNscfg: + return &nscfg{} + default: + return nil + } +} + // New allocates a new kinded object func New(p naming.Path, opts ...funcopt.O) (any, error) { switch p.Kind { diff --git a/core/object/nscfg.go b/core/object/nscfg.go index 369cf2a1c..21109c657 100644 --- a/core/object/nscfg.go +++ b/core/object/nscfg.go @@ -1,19 +1,25 @@ package object import ( + "context" + + "github.com/opensvc/om3/v3/core/actioncontext" "github.com/opensvc/om3/v3/core/keywords" "github.com/opensvc/om3/v3/core/naming" "github.com/opensvc/om3/v3/util/funcopt" "github.com/opensvc/om3/v3/util/key" + "github.com/opensvc/om3/v3/util/pg" ) type ( nscfg struct { + pg *pg.Config core } Nscfg interface { Core + PG() *pg.Config } ) @@ -21,13 +27,43 @@ func NewNscfg(path naming.Path, opts ...funcopt.O) (*nscfg, error) { s := &nscfg{} s.path = path s.path.Kind = naming.KindNscfg - if err := s.init(s, path, opts...); err != nil { - return s, err - } - s.Config().RegisterPostCommit(s.postCommit) - return s, nil + err := s.init(s, path, opts...) + return s, err } func (t *nscfg) KeywordLookup(k key.T, sectionType string) *keywords.Keyword { return keywordLookup(keywordStore, k, t.path.Kind, sectionType) } + +func (t *nscfg) PGUpdate(ctx context.Context) error { + ctx = actioncontext.WithProps(ctx, actioncontext.PGUpdate) + unlock, err := t.lockAction(ctx) + if err != nil { + return err + } + defer unlock() + return t.lockedPGUpdate(ctx) +} + +func (t *nscfg) PGConfig() *pg.Config { + // For nscfg, we want to control the namespace cgroup, not the object cgroup + data := t.pgAnonConfig("") + + // Build the namespace cgroup path only + // The ID must match the expected format for both cgroups v1 and v2 + // For v2: relative path like "opensvc-ns.test.slice" (no leading slash, dots in name) + // For v1: full path like "/opensvc.slice/opensvc-ns.test.slice" (leading slash, slashes for hierarchy) + // We'll use the v1 format with leading slash, which should work for both + if t.path.Namespace == naming.NsRoot { + data.ID = "/opensvc.slice" + } else { + ns := pgNameNamespace(t.path.Namespace) + data.ID = "/opensvc.slice/opensvc-" + ns + ".slice" + } + return data.WithLogger(t.log) +} + +func (t *nscfg) lockedPGUpdate(ctx context.Context) error { + // For nscfg, we control the namespace cgroup, not the object cgroup + return t.PGConfig().Apply() +} diff --git a/core/object/pg.go b/core/object/pg.go index 74ba5707b..6df10e9c3 100644 --- a/core/object/pg.go +++ b/core/object/pg.go @@ -2,9 +2,7 @@ package object import ( "context" - "errors" "fmt" - "os" "strings" "github.com/opensvc/om3/v3/core/naming" @@ -52,7 +50,7 @@ func pgNameResource(s string) string { // Without namespace, without subset: // // /opensvc/opensvc-svc.s1/opensvc-svc.s1-app.1 -func (t *core) pgConfig(section string) *pg.Config { +func (t *core) pgAnonConfig(section string) *pg.Config { data := pg.Config{} data.CPUShares, _ = t.config.EvalNoConv(key.New(section, "pg_cpu_shares")) data.CPUs, _ = t.config.EvalNoConv(key.New(section, "pg_cpus")) @@ -63,6 +61,11 @@ func (t *core) pgConfig(section string) *pg.Config { data.MemOOMControl, _ = t.config.EvalNoConv(key.New(section, "pg_mem_oom_control")) data.MemSwappiness, _ = t.config.EvalNoConv(key.New(section, "pg_mem_swappiness")) data.BlockIOWeight, _ = t.config.EvalNoConv(key.New(section, "pg_blkio_weight")) + return &data +} + +func (t *core) pgConfig(section string) *pg.Config { + data := t.pgAnonConfig(section) subsetName := func(s string) string { if s == "" { return "" @@ -119,23 +122,13 @@ func (t *core) pgConfig(section string) *pg.Config { return "/" + strings.Join(l, "/") } data.ID = pgName(section) - return &data + return data } -func (t *core) CleanPG(ctx context.Context) { +func (t *core) PGClean(ctx context.Context) { mgr := pg.FromContext(ctx) if mgr == nil { return } - for _, run := range mgr.Clean() { - if run.Err != nil { - if errors.Is(run.Err, os.ErrPermission) { - t.log.Tracef("remove pg %s: still active", run.Config.ID) - } else { - t.log.Errorf("remove pg %s error: %s", run.Config.ID, run.Err) - } - } else if run.Changed { - t.log.Tracef("remove pg %s", run.Config.ID) - } - } + mgr.Clean() } diff --git a/core/om/kind_nscfg.go b/core/om/kind_nscfg.go index 813deabb4..e1126c805 100644 --- a/core/om/kind_nscfg.go +++ b/core/om/kind_nscfg.go @@ -15,7 +15,11 @@ func init() { Short: "manage namespace configurations", } cmdObjectConfig := commoncmd.NewCmdObjectConfig(kind) + cmdObjectEdit := newCmdObjectEdit(kind) cmdObjectInstance := commoncmd.NewCmdObjectInstance(kind) + cmdObjectInstancePG := commoncmd.NewCmdObjectInstancePG(kind) + cmdObjectPG := commoncmd.NewCmdObjectInstancePG(kind) + cmdObjectPG.Hidden = true root.AddCommand( cmdObject, @@ -27,15 +31,21 @@ func init() { ) cmdObject.AddCommand( cmdObjectConfig, + cmdObjectEdit, cmdObjectInstance, + cmdObjectPG, newCmdObjectCreate(kind), newCmdObjectDelete(kind), newCmdObjectAbort(kind), newCmdObjectList(kind), commoncmd.NewCmdObjectMonitor("", kind), ) - + cmdObjectEdit.AddCommand( + newCmdObjectEditConfig(kind), + ) cmdObjectInstance.AddCommand( + cmdObjectInstancePG, + newCmdObjectInstanceBoot(kind), newCmdObjectInstanceClear(kind), newCmdObjectInstanceList(kind), newCmdObjectInstanceDelete(kind), @@ -51,4 +61,11 @@ func init() { newCmdObjectConfigUpdate(kind), newCmdObjectConfigValidate(kind), ) + + cmdObjectInstancePG.AddCommand( + newCmdObjectInstancePGUpdate(kind), + ) + cmdObjectPG.AddCommand( + newCmdObjectInstancePGUpdate(kind), + ) } diff --git a/core/omcmd/object_instance_pg_update.go b/core/omcmd/object_instance_pg_update.go index a96ccf2ef..381e611a8 100644 --- a/core/omcmd/object_instance_pg_update.go +++ b/core/omcmd/object_instance_pg_update.go @@ -8,6 +8,7 @@ import ( "github.com/opensvc/om3/v3/core/naming" "github.com/opensvc/om3/v3/core/object" "github.com/opensvc/om3/v3/core/objectaction" + "github.com/opensvc/om3/v3/core/xerrors" ) type ( @@ -37,13 +38,20 @@ func (t *CmdObjectInstancePGUpdate) Run(kind string) error { objectaction.WithAllSlaves(t.AllSlaves), objectaction.WithMaster(t.Master), objectaction.WithLocalFunc(func(ctx context.Context, p naming.Path) (interface{}, error) { - o, err := object.NewActor(p) + type pgUpdater interface { + PGUpdate(context.Context) error + } + o, err := object.New(p) if err != nil { return nil, err } + i, ok := o.(pgUpdater) + if !ok { + return nil, xerrors.InstanceActionNotSupported + } ctx = actioncontext.WithLockDisabled(ctx, t.Disable) ctx = actioncontext.WithLockTimeout(ctx, t.Timeout) - return nil, o.PGUpdate(ctx) + return nil, i.PGUpdate(ctx) }), ).Do() } diff --git a/core/ox/kind_nscfg.go b/core/ox/kind_nscfg.go new file mode 100644 index 000000000..18cc718d7 --- /dev/null +++ b/core/ox/kind_nscfg.go @@ -0,0 +1,70 @@ +package ox + +import ( + "github.com/spf13/cobra" + + "github.com/opensvc/om3/v3/core/commoncmd" + "github.com/opensvc/om3/v3/core/omcmd" +) + +func init() { + kind := "nscfg" + + cmdObject := &cobra.Command{ + Use: "nscfg", + Short: "manage namespace configurations", + } + cmdObjectConfig := commoncmd.NewCmdObjectConfig(kind) + cmdObjectEdit := newCmdObjectEdit(kind) + cmdObjectInstance := commoncmd.NewCmdObjectInstance(kind) + cmdObjectInstancePG := commoncmd.NewCmdObjectInstancePG(kind) + cmdObjectPG := commoncmd.NewCmdObjectInstancePG(kind) + cmdObjectPG.Hidden = true + + root.AddCommand( + cmdObject, + ) + cmdObject.AddGroup( + commoncmd.NewGroupOrchestratedActions(), + commoncmd.NewGroupQuery(), + commoncmd.NewGroupSubsystems(), + ) + cmdObject.AddCommand( + cmdObjectConfig, + cmdObjectEdit, + cmdObjectInstance, + cmdObjectPG, + newCmdObjectCreate(kind), + newCmdObjectDelete(kind), + newCmdObjectAbort(kind), + newCmdObjectList(kind), + commoncmd.NewCmdObjectMonitor("", kind), + ) + cmdObjectEdit.AddCommand( + newCmdObjectEditConfig(kind), + ) + cmdObjectInstance.AddCommand( + cmdObjectInstancePG, + newCmdObjectInstanceBoot(kind), + commoncmd.NewCmdObjectClear(kind), + newCmdObjectInstanceList(kind), + newCmdObjectInstanceDelete(kind), + ) + + cmdObjectConfig.AddCommand( + omcmd.NewCmdObjectConfigDoc(kind), + newCmdObjectConfigEdit(kind), + newCmdObjectConfigEval(kind), + newCmdObjectConfigGet(kind), + newCmdObjectConfigShow(kind), + newCmdObjectConfigUpdate(kind), + newCmdObjectConfigValidate(kind), + ) + + cmdObjectInstancePG.AddCommand( + newCmdObjectInstancePGUpdate(kind), + ) + cmdObjectPG.AddCommand( + newCmdObjectInstancePGUpdate(kind), + ) +} diff --git a/core/resource/resource.go b/core/resource/resource.go index 09468744c..0223f0125 100644 --- a/core/resource/resource.go +++ b/core/resource/resource.go @@ -68,7 +68,7 @@ type ( Unprovision(context.Context) error // common - ApplyPGChain(context.Context) error + ApplyPG(context.Context) error DriverID() driver.ID GetObject() any GetPG() *pg.Config @@ -484,7 +484,7 @@ func (t *T) SetDisabled(v bool) { // SetPG sets the process group config parsed from the config func (t *T) SetPG(v *pg.Config) { - t.pg = v + t.pg = v.WithLogger(t.log) } // GetPG returns the private pg resource field @@ -500,33 +500,22 @@ func (t *T) GetPGID() string { return t.pg.ID } -// ApplyPGChain fetches the pg manager from the action context and -// apply the pg configuration to all unconfigured pg on the pg id -// hierarchy (resource=>subset=>object). -// -// The pg manager remembers which pg have been configured to avoid -// doing the config twice. -func (t *T) ApplyPGChain(ctx context.Context) error { - mgr := pg.FromContext(ctx) - if mgr == nil { - // probably testing +// ApplyPG applies the pg configuration for the parents pg and for this resource pg. +func (t *T) ApplyPG(ctx context.Context) error { + pgConfig := t.GetPG() + if pgConfig == nil { return nil } - var errs error - for _, run := range mgr.Apply(t.GetPGID()) { - if !run.Changed { - continue - } - if configStr := run.Config.String(); strings.Contains(configStr, "=") { - t.Log().Infof("applied %s", configStr) - } else { - t.Log().Tracef("create %s", configStr) - } - if run.Err != nil { - errs = errors.Join(errs, run.Err) + mgr := pg.FromContext(ctx) + if mgr != nil { + mgr.Register(pgConfig) + + // Apply all deferred pg updates (namespace, object, resourceset) before applying this resource + if err := mgr.ApplyConfigs(); err != nil { + return err } } - return errs + return nil } // SetObject holds the useful interface of the parent object of the resource. @@ -888,7 +877,7 @@ func PGUpdate(ctx context.Context, r Driver) error { if r.IsDisabled() || r.IsActionDisabled() { return ErrDisabled } - if err := r.ApplyPGChain(ctx); err != nil { + if err := r.ApplyPG(ctx); err != nil { return err } return nil @@ -909,12 +898,12 @@ func Start(ctx context.Context, r Driver) error { return ErrDisabled } Setenv(r) - if err := r.ApplyPGChain(ctx); err != nil { - return err - } if err := checkRequires(ctx, r); err != nil { return fmt.Errorf("start requires: %w", err) } + if err := r.ApplyPG(ctx); err != nil { + return err + } if err := r.Trigger(ctx, trigger.Block, trigger.Pre, trigger.Start); err != nil { return fmt.Errorf("pre start trigger: %w", err) } diff --git a/core/resourceset/resourceset.go b/core/resourceset/resourceset.go index b6054add7..cb6d8baaa 100644 --- a/core/resourceset/resourceset.go +++ b/core/resourceset/resourceset.go @@ -9,6 +9,7 @@ import ( "github.com/rs/zerolog" + "github.com/opensvc/om3/v3/core/actioncontext" "github.com/opensvc/om3/v3/core/driver" "github.com/opensvc/om3/v3/core/resource" "github.com/opensvc/om3/v3/util/pg" @@ -177,6 +178,13 @@ func (t T) filterResources(resourceLister ResourceLister) resource.Drivers { return l } +// registerResourcesetPG registers the resourceset pg config to be applied later +func (t T) registerResourcesetPG(pgMgr *pg.Mgr) { + if t.PG != nil && pgMgr != nil { + pgMgr.Register(t.PG.WithLogger(t.Log())) + } +} + func (t T) Do(ctx context.Context, l ResourceLister, barrier, desc string, fn DoFunc) (hasHitBarrier bool, err error) { rsetResources := t.Resources() resources := l.Resources().Intersection(rsetResources) @@ -185,8 +193,8 @@ func (t T) Do(ctx context.Context, l ResourceLister, barrier, desc string, fn Do resources.Reverse() } pgMgr := pg.FromContext(ctx) - if pgMgr != nil { - pgMgr.Register(t.PG) + if desc != "status" && actioncontext.Props(ctx).PG { + t.registerResourcesetPG(pgMgr) } if t.Parallel { hasHitBarrier, err = t.doParallel(ctx, l, resources, barrier, desc, pgMgr, fn) @@ -243,9 +251,6 @@ func (t T) doParallel(ctx context.Context, l ResourceLister, resources resource. if rid == barrier { hasHitBarrier = true } - if pgMgr != nil { - pgMgr.Register(r.GetPG()) - } nResources += 1 go do(q, r) } @@ -308,9 +313,6 @@ func (t T) doSerial(ctx context.Context, l ResourceLister, resources resource.Dr if rid == barrier { hasHitBarrier = true } - if pgMgr != nil { - pgMgr.Register(r.GetPG()) - } if err := l.ReconfigureResource(r); err != nil { r.SetConfigurationError(err) } diff --git a/core/xerrors/main.go b/core/xerrors/main.go index 043545f63..0e93ab68b 100644 --- a/core/xerrors/main.go +++ b/core/xerrors/main.go @@ -1,11 +1,13 @@ package xerrors var ( - ExitCodeObjectNotFound = 2 - ExitCodeInstanceNotFound = 3 + ExitCodeObjectNotFound = 2 + ExitCodeInstanceNotFound = 3 + ExitCodeInstanceActionNotSupported = 4 - ObjectNotFound = newIndexedError("object not found", ExitCodeObjectNotFound) - InstanceNotFound = newIndexedError("instance not found", ExitCodeInstanceNotFound) + ObjectNotFound = newIndexedError("object not found", ExitCodeObjectNotFound) + InstanceNotFound = newIndexedError("instance not found", ExitCodeInstanceNotFound) + InstanceActionNotSupported = newIndexedError("instance action not supported", ExitCodeInstanceActionNotSupported) ) type indexedError struct { diff --git a/daemon/api/api.yaml b/daemon/api/api.yaml index 53c65f9c0..20d653302 100644 --- a/daemon/api/api.yaml +++ b/daemon/api/api.yaml @@ -2652,6 +2652,7 @@ paths: - basicAuth: [] - bearerAuth: [] tags: + - node / instance / nscfg - node / instance / svc - node / instance / vol diff --git a/daemon/api/codegen_client_gen.go b/daemon/api/codegen_client_gen.go index e46ceaa4e..48485e528 100644 --- a/daemon/api/codegen_client_gen.go +++ b/daemon/api/codegen_client_gen.go @@ -1,6 +1,6 @@ // Package api provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT. +// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT. package api import ( @@ -2486,33 +2486,28 @@ func NewGetArrayRequest(server string, params *GetArrayParams) (*http.Request, e } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Name != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", *params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -2539,7 +2534,7 @@ func NewGetAuthInfoRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -2567,21 +2562,19 @@ func NewPostAuthRefreshRequest(server string, params *PostAuthRefreshParams) (*h } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Role != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "role", *params.Role, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2589,11 +2582,15 @@ func NewPostAuthRefreshRequest(server string, params *PostAuthRefreshParams) (*h if params.AccessDuration != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "access_duration", *params.AccessDuration, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "access_duration", runtime.ParamLocationQuery, *params.AccessDuration); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2601,23 +2598,24 @@ func NewPostAuthRefreshRequest(server string, params *PostAuthRefreshParams) (*h if params.Scope != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "scope", *params.Scope, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "scope", runtime.ParamLocationQuery, *params.Scope); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -2645,21 +2643,19 @@ func NewPostAuthTokenRequest(server string, params *PostAuthTokenParams) (*http. } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Role != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "role", *params.Role, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2667,11 +2663,15 @@ func NewPostAuthTokenRequest(server string, params *PostAuthTokenParams) (*http. if params.AccessDuration != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "access_duration", *params.AccessDuration, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "access_duration", runtime.ParamLocationQuery, *params.AccessDuration); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2679,11 +2679,15 @@ func NewPostAuthTokenRequest(server string, params *PostAuthTokenParams) (*http. if params.Subject != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subject", *params.Subject, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subject", runtime.ParamLocationQuery, *params.Subject); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2691,11 +2695,15 @@ func NewPostAuthTokenRequest(server string, params *PostAuthTokenParams) (*http. if params.Scope != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "scope", *params.Scope, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "scope", runtime.ParamLocationQuery, *params.Scope); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2703,11 +2711,15 @@ func NewPostAuthTokenRequest(server string, params *PostAuthTokenParams) (*http. if params.Refresh != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "refresh", *params.Refresh, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "refresh", runtime.ParamLocationQuery, *params.Refresh); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2715,23 +2727,24 @@ func NewPostAuthTokenRequest(server string, params *PostAuthTokenParams) (*http. if params.RefreshDuration != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "refresh_duration", *params.RefreshDuration, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "refresh_duration", runtime.ParamLocationQuery, *params.RefreshDuration); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -2758,7 +2771,7 @@ func NewGetAuthWhoAmIRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -2785,7 +2798,7 @@ func NewPostClusterActionAbortRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -2812,7 +2825,7 @@ func NewPostClusterActionFreezeRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -2839,7 +2852,7 @@ func NewPostClusterActionUnfreezeRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -2867,21 +2880,19 @@ func NewGetClusterConfigRequest(server string, params *GetClusterConfigParams) ( } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Evaluate != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "evaluate", *params.Evaluate, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "evaluate", runtime.ParamLocationQuery, *params.Evaluate); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2889,11 +2900,15 @@ func NewGetClusterConfigRequest(server string, params *GetClusterConfigParams) ( if params.Impersonate != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "impersonate", *params.Impersonate, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "impersonate", runtime.ParamLocationQuery, *params.Impersonate); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2901,23 +2916,24 @@ func NewGetClusterConfigRequest(server string, params *GetClusterConfigParams) ( if params.Kw != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "kw", *params.Kw, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "kw", runtime.ParamLocationQuery, *params.Kw); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -2945,21 +2961,19 @@ func NewPatchClusterConfigRequest(server string, params *PatchClusterConfigParam } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Delete != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "delete", *params.Delete, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "delete", runtime.ParamLocationQuery, *params.Delete); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2967,11 +2981,15 @@ func NewPatchClusterConfigRequest(server string, params *PatchClusterConfigParam if params.Unset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "unset", *params.Unset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "unset", runtime.ParamLocationQuery, *params.Unset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2979,23 +2997,24 @@ func NewPatchClusterConfigRequest(server string, params *PatchClusterConfigParam if params.Set != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "set", *params.Set, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "set", runtime.ParamLocationQuery, *params.Set); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), nil) if err != nil { return nil, err } @@ -3022,7 +3041,7 @@ func NewGetClusterConfigFileRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -3049,7 +3068,7 @@ func NewPutClusterConfigFileRequestWithBody(server string, contentType string, b return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -3079,21 +3098,19 @@ func NewGetClusterConfigKeywordsRequest(server string, params *GetClusterConfigK } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Driver != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "driver", *params.Driver, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "driver", runtime.ParamLocationQuery, *params.Driver); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -3101,11 +3118,15 @@ func NewGetClusterConfigKeywordsRequest(server string, params *GetClusterConfigK if params.Section != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "section", *params.Section, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "section", runtime.ParamLocationQuery, *params.Section); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -3113,23 +3134,24 @@ func NewGetClusterConfigKeywordsRequest(server string, params *GetClusterConfigK if params.Option != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "option", *params.Option, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "option", runtime.ParamLocationQuery, *params.Option); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -3156,7 +3178,7 @@ func NewPostClusterHeartbeatRotateRequest(server string) (*http.Request, error) return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -3184,29 +3206,24 @@ func NewPostClusterJoinRequest(server string, params *PostClusterJoinParams) (*h } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "node", params.Node, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "node", runtime.ParamLocationQuery, params.Node); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -3234,29 +3251,24 @@ func NewPostClusterLeaveRequest(server string, params *PostClusterLeaveParams) ( } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "node", params.Node, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "node", runtime.ParamLocationQuery, params.Node); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -3284,21 +3296,19 @@ func NewGetClusterStatusRequest(server string, params *GetClusterStatusParams) ( } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Namespace != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "namespace", *params.Namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "namespace", runtime.ParamLocationQuery, *params.Namespace); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -3306,23 +3316,24 @@ func NewGetClusterStatusRequest(server string, params *GetClusterStatusParams) ( if params.Selector != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "selector", *params.Selector, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "selector", runtime.ParamLocationQuery, *params.Selector); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -3350,21 +3361,19 @@ func NewGetInstancesRequest(server string, params *GetInstancesParams) (*http.Re } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Path != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "path", *params.Path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "path", runtime.ParamLocationQuery, *params.Path); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -3372,23 +3381,24 @@ func NewGetInstancesRequest(server string, params *GetInstancesParams) (*http.Re if params.Node != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "node", *params.Node, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "node", runtime.ParamLocationQuery, *params.Node); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -3413,21 +3423,21 @@ func NewPostInstanceProgressRequestWithBody(server string, namespace InPathNames var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -3447,7 +3457,7 @@ func NewPostInstanceProgressRequestWithBody(server string, namespace InPathNames return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -3474,21 +3484,21 @@ func NewPostInstanceStatusRequestWithBody(server string, namespace InPathNamespa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -3508,7 +3518,7 @@ func NewPostInstanceStatusRequestWithBody(server string, namespace InPathNamespa return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -3538,33 +3548,28 @@ func NewGetNetworksRequest(server string, params *GetNetworksParams) (*http.Requ } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Name != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", *params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -3592,33 +3597,28 @@ func NewGetNetworkIPRequest(server string, params *GetNetworkIPParams) (*http.Re } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Name != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", *params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -3646,33 +3646,28 @@ func NewGetNodesRequest(server string, params *GetNodesParams) (*http.Request, e } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Node != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "node", *params.Node, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "node", runtime.ParamLocationQuery, *params.Node); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -3699,7 +3694,7 @@ func NewGetNodesInfoRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -3713,7 +3708,7 @@ func NewPostPeerActionAbortRequest(server string, nodename InPathNodeName) (*htt var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -3733,7 +3728,7 @@ func NewPostPeerActionAbortRequest(server string, nodename InPathNodeName) (*htt return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -3747,7 +3742,7 @@ func NewPostNodeActionClearRequest(server string, nodename InPathNodeName) (*htt var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -3767,7 +3762,7 @@ func NewPostNodeActionClearRequest(server string, nodename InPathNodeName) (*htt return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -3781,7 +3776,7 @@ func NewPostPeerActionDequeueRequest(server string, nodename InPathNodeName, par var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -3802,33 +3797,28 @@ func NewPostPeerActionDequeueRequest(server string, nodename InPathNodeName, par } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -3842,7 +3832,7 @@ func NewPostPeerActionDrainRequest(server string, nodename InPathNodeName) (*htt var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -3862,7 +3852,7 @@ func NewPostPeerActionDrainRequest(server string, nodename InPathNodeName) (*htt return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -3876,7 +3866,7 @@ func NewPostPeerActionFreezeRequest(server string, nodename InPathNodeName, para var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -3897,33 +3887,28 @@ func NewPostPeerActionFreezeRequest(server string, nodename InPathNodeName, para } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -3937,7 +3922,7 @@ func NewPostNodeActionPushAssetRequest(server string, nodename InPathNodeName, p var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -3958,33 +3943,28 @@ func NewPostNodeActionPushAssetRequest(server string, nodename InPathNodeName, p } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -3998,7 +3978,7 @@ func NewPostNodeActionPushDiskRequest(server string, nodename InPathNodeName, pa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4019,33 +3999,28 @@ func NewPostNodeActionPushDiskRequest(server string, nodename InPathNodeName, pa } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -4059,7 +4034,7 @@ func NewPostNodeActionPushPkgRequest(server string, nodename InPathNodeName, par var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4080,33 +4055,28 @@ func NewPostNodeActionPushPkgRequest(server string, nodename InPathNodeName, par } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -4120,7 +4090,7 @@ func NewPostNodeActionScanCapabilitiesRequest(server string, nodename InPathNode var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4141,33 +4111,28 @@ func NewPostNodeActionScanCapabilitiesRequest(server string, nodename InPathNode } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -4181,7 +4146,7 @@ func NewPostNodeActionSCSIScanRequest(server string, nodename InPathNodeName, pa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4202,21 +4167,19 @@ func NewPostNodeActionSCSIScanRequest(server string, nodename InPathNodeName, pa } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -4224,11 +4187,15 @@ func NewPostNodeActionSCSIScanRequest(server string, nodename InPathNodeName, pa if params.Hba != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "hba", *params.Hba, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hba", runtime.ParamLocationQuery, *params.Hba); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -4236,11 +4203,15 @@ func NewPostNodeActionSCSIScanRequest(server string, nodename InPathNodeName, pa if params.Target != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "target", *params.Target, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target", runtime.ParamLocationQuery, *params.Target); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -4248,23 +4219,24 @@ func NewPostNodeActionSCSIScanRequest(server string, nodename InPathNodeName, pa if params.Lun != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "lun", *params.Lun, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "lun", runtime.ParamLocationQuery, *params.Lun); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -4278,7 +4250,7 @@ func NewPostNodeActionSysreportRequest(server string, nodename InPathNodeName, p var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4299,21 +4271,19 @@ func NewPostNodeActionSysreportRequest(server string, nodename InPathNodeName, p } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Force != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "force", *params.Force, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -4321,23 +4291,24 @@ func NewPostNodeActionSysreportRequest(server string, nodename InPathNodeName, p if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -4351,7 +4322,7 @@ func NewPostPeerActionUnfreezeRequest(server string, nodename InPathNodeName, pa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4372,33 +4343,28 @@ func NewPostPeerActionUnfreezeRequest(server string, nodename InPathNodeName, pa } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -4412,7 +4378,7 @@ func NewGetNodeCapabilitiesRequest(server string, nodename InPathNodeName) (*htt var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4432,7 +4398,7 @@ func NewGetNodeCapabilitiesRequest(server string, nodename InPathNodeName) (*htt return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -4446,7 +4412,7 @@ func NewGetNodeConfigRequest(server string, nodename InPathNodeName, params *Get var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4467,21 +4433,19 @@ func NewGetNodeConfigRequest(server string, nodename InPathNodeName, params *Get } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Kw != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "kw", *params.Kw, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "kw", runtime.ParamLocationQuery, *params.Kw); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -4489,11 +4453,15 @@ func NewGetNodeConfigRequest(server string, nodename InPathNodeName, params *Get if params.Evaluate != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "evaluate", *params.Evaluate, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "evaluate", runtime.ParamLocationQuery, *params.Evaluate); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -4501,23 +4469,24 @@ func NewGetNodeConfigRequest(server string, nodename InPathNodeName, params *Get if params.Impersonate != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "impersonate", *params.Impersonate, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "impersonate", runtime.ParamLocationQuery, *params.Impersonate); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -4531,7 +4500,7 @@ func NewPatchNodeConfigRequest(server string, nodename InPathNodeName, params *P var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4552,21 +4521,19 @@ func NewPatchNodeConfigRequest(server string, nodename InPathNodeName, params *P } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Delete != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "delete", *params.Delete, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "delete", runtime.ParamLocationQuery, *params.Delete); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -4574,11 +4541,15 @@ func NewPatchNodeConfigRequest(server string, nodename InPathNodeName, params *P if params.Unset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "unset", *params.Unset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "unset", runtime.ParamLocationQuery, *params.Unset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -4586,23 +4557,24 @@ func NewPatchNodeConfigRequest(server string, nodename InPathNodeName, params *P if params.Set != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "set", *params.Set, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "set", runtime.ParamLocationQuery, *params.Set); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), nil) if err != nil { return nil, err } @@ -4616,7 +4588,7 @@ func NewGetNodeConfigFileRequest(server string, nodename InPathNodeName) (*http. var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4636,7 +4608,7 @@ func NewGetNodeConfigFileRequest(server string, nodename InPathNodeName) (*http. return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -4650,7 +4622,7 @@ func NewPutNodeConfigFileRequestWithBody(server string, nodename InPathNodeName, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4670,7 +4642,7 @@ func NewPutNodeConfigFileRequestWithBody(server string, nodename InPathNodeName, return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -4686,7 +4658,7 @@ func NewGetNodeConfigKeywordsRequest(server string, nodename InPathNodeName, par var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4707,21 +4679,19 @@ func NewGetNodeConfigKeywordsRequest(server string, nodename InPathNodeName, par } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Driver != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "driver", *params.Driver, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "driver", runtime.ParamLocationQuery, *params.Driver); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -4729,11 +4699,15 @@ func NewGetNodeConfigKeywordsRequest(server string, nodename InPathNodeName, par if params.Section != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "section", *params.Section, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "section", runtime.ParamLocationQuery, *params.Section); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -4741,23 +4715,24 @@ func NewGetNodeConfigKeywordsRequest(server string, nodename InPathNodeName, par if params.Option != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "option", *params.Option, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "option", runtime.ParamLocationQuery, *params.Option); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -4771,7 +4746,7 @@ func NewPostDaemonRestartRequest(server string, nodename InPathNodeName) (*http. var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4791,7 +4766,7 @@ func NewPostDaemonRestartRequest(server string, nodename InPathNodeName) (*http. return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -4805,7 +4780,7 @@ func NewPostDaemonShutdownRequest(server string, nodename InPathNodeName, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4826,33 +4801,28 @@ func NewPostDaemonShutdownRequest(server string, nodename InPathNodeName, params } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Duration != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "duration", *params.Duration, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration", runtime.ParamLocationQuery, *params.Duration); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -4866,7 +4836,7 @@ func NewPostDaemonStopRequest(server string, nodename InPathNodeName) (*http.Req var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4886,7 +4856,7 @@ func NewPostDaemonStopRequest(server string, nodename InPathNodeName) (*http.Req return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -4900,7 +4870,7 @@ func NewPostDaemonAuditRequest(server string, nodename InPathNodeName, params *P var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -4921,21 +4891,19 @@ func NewPostDaemonAuditRequest(server string, nodename InPathNodeName, params *P } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Level != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "level", *params.Level, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "level", runtime.ParamLocationQuery, *params.Level); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -4943,11 +4911,15 @@ func NewPostDaemonAuditRequest(server string, nodename InPathNodeName, params *P if params.Sub != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sub", *params.Sub, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sub", runtime.ParamLocationQuery, *params.Sub); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -4955,23 +4927,24 @@ func NewPostDaemonAuditRequest(server string, nodename InPathNodeName, params *P if params.Preempt != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "preempt", *params.Preempt, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "preempt", runtime.ParamLocationQuery, *params.Preempt); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -4985,7 +4958,7 @@ func NewGetDaemonDNSDumpRequest(server string, nodename InPathNodeName) (*http.R var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -5005,7 +4978,7 @@ func NewGetDaemonDNSDumpRequest(server string, nodename InPathNodeName) (*http.R return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -5019,7 +4992,7 @@ func NewGetDaemonEventsRequest(server string, nodename InPathNodeName, params *G var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -5040,21 +5013,19 @@ func NewGetDaemonEventsRequest(server string, nodename InPathNodeName, params *G } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Duration != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "duration", *params.Duration, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration", runtime.ParamLocationQuery, *params.Duration); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -5062,11 +5033,15 @@ func NewGetDaemonEventsRequest(server string, nodename InPathNodeName, params *G if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -5074,11 +5049,15 @@ func NewGetDaemonEventsRequest(server string, nodename InPathNodeName, params *G if params.Filter != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -5086,11 +5065,15 @@ func NewGetDaemonEventsRequest(server string, nodename InPathNodeName, params *G if params.Replay != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "replay", *params.Replay, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "replay", runtime.ParamLocationQuery, *params.Replay); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -5098,11 +5081,15 @@ func NewGetDaemonEventsRequest(server string, nodename InPathNodeName, params *G if params.Cache != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cache", *params.Cache, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cache", runtime.ParamLocationQuery, *params.Cache); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -5110,23 +5097,24 @@ func NewGetDaemonEventsRequest(server string, nodename InPathNodeName, params *G if params.Selector != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "selector", *params.Selector, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "selector", runtime.ParamLocationQuery, *params.Selector); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -5140,14 +5128,14 @@ func NewPostDaemonHeartbeatRestartRequest(server string, nodename InPathNodeName var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -5167,7 +5155,7 @@ func NewPostDaemonHeartbeatRestartRequest(server string, nodename InPathNodeName return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -5181,14 +5169,14 @@ func NewPostDaemonHeartbeatSignRequest(server string, nodename InPathNodeName, n var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -5208,7 +5196,7 @@ func NewPostDaemonHeartbeatSignRequest(server string, nodename InPathNodeName, n return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -5222,14 +5210,14 @@ func NewPostDaemonHeartbeatStartRequest(server string, nodename InPathNodeName, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -5249,7 +5237,7 @@ func NewPostDaemonHeartbeatStartRequest(server string, nodename InPathNodeName, return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -5263,14 +5251,14 @@ func NewPostDaemonHeartbeatStopRequest(server string, nodename InPathNodeName, n var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -5290,7 +5278,7 @@ func NewPostDaemonHeartbeatStopRequest(server string, nodename InPathNodeName, n return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -5304,14 +5292,14 @@ func NewPostDaemonHeartbeatWipeRequest(server string, nodename InPathNodeName, n var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -5331,7 +5319,7 @@ func NewPostDaemonHeartbeatWipeRequest(server string, nodename InPathNodeName, n return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -5345,14 +5333,14 @@ func NewPostDaemonListenerRestartRequest(server string, nodename InPathNodeName, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -5372,7 +5360,7 @@ func NewPostDaemonListenerRestartRequest(server string, nodename InPathNodeName, return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -5386,14 +5374,14 @@ func NewPostDaemonListenerStartRequest(server string, nodename InPathNodeName, n var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -5413,7 +5401,7 @@ func NewPostDaemonListenerStartRequest(server string, nodename InPathNodeName, n return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -5427,14 +5415,14 @@ func NewPostDaemonListenerStopRequest(server string, nodename InPathNodeName, na var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -5454,7 +5442,7 @@ func NewPostDaemonListenerStopRequest(server string, nodename InPathNodeName, na return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -5479,14 +5467,14 @@ func NewPostDaemonListenerLogControlRequestWithBody(server string, nodename InPa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -5506,7 +5494,7 @@ func NewPostDaemonListenerLogControlRequestWithBody(server string, nodename InPa return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -5533,7 +5521,7 @@ func NewPostDaemonLogControlRequestWithBody(server string, nodename InPathNodeNa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -5553,7 +5541,7 @@ func NewPostDaemonLogControlRequestWithBody(server string, nodename InPathNodeNa return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -5569,7 +5557,7 @@ func NewDeleteDaemonProcessRequest(server string, nodename InPathNodeName, param var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -5590,33 +5578,28 @@ func NewDeleteDaemonProcessRequest(server string, nodename InPathNodeName, param } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Pid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pid", *params.Pid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pid", runtime.ParamLocationQuery, *params.Pid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -5630,7 +5613,7 @@ func NewGetDaemonProcessRequest(server string, nodename InPathNodeName, params * var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -5651,21 +5634,19 @@ func NewGetDaemonProcessRequest(server string, nodename InPathNodeName, params * } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Sub != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sub", *params.Sub, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sub", runtime.ParamLocationQuery, *params.Sub); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -5673,11 +5654,15 @@ func NewGetDaemonProcessRequest(server string, nodename InPathNodeName, params * if params.Selector != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "selector", *params.Selector, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "selector", runtime.ParamLocationQuery, *params.Selector); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -5685,23 +5670,24 @@ func NewGetDaemonProcessRequest(server string, nodename InPathNodeName, params * if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -5715,7 +5701,7 @@ func NewGetNodeDRBDAllocationRequest(server string, nodename InPathNodeName) (*h var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -5735,7 +5721,7 @@ func NewGetNodeDRBDAllocationRequest(server string, nodename InPathNodeName) (*h return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -5749,7 +5735,7 @@ func NewGetNodeDRBDConfigRequest(server string, nodename InPathNodeName, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -5770,29 +5756,24 @@ func NewGetNodeDRBDConfigRequest(server string, nodename InPathNodeName, params } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -5817,7 +5798,7 @@ func NewPostNodeDRBDConfigRequestWithBody(server string, nodename InPathNodeName var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -5838,29 +5819,24 @@ func NewPostNodeDRBDConfigRequestWithBody(server string, nodename InPathNodeName } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -5876,7 +5852,7 @@ func NewPostNodeDRBDConnectRequest(server string, nodename InPathNodeName, param var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -5897,41 +5873,40 @@ func NewPostNodeDRBDConnectRequest(server string, nodename InPathNodeName, param } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } if params.NodeId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "node_id", *params.NodeId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "node_id", runtime.ParamLocationQuery, *params.NodeId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -5945,7 +5920,7 @@ func NewPostNodeDRBDPrimaryRequest(server string, nodename InPathNodeName, param var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -5966,29 +5941,24 @@ func NewPostNodeDRBDPrimaryRequest(server string, nodename InPathNodeName, param } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -6002,7 +5972,7 @@ func NewPostNodeDRBDSecondaryRequest(server string, nodename InPathNodeName, par var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -6023,29 +5993,24 @@ func NewPostNodeDRBDSecondaryRequest(server string, nodename InPathNodeName, par } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -6059,7 +6024,7 @@ func NewGetNodeDriverRequest(server string, nodename InPathNodeName) (*http.Requ var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -6079,7 +6044,7 @@ func NewGetNodeDriverRequest(server string, nodename InPathNodeName) (*http.Requ return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -6093,28 +6058,28 @@ func NewGetInstanceRequest(server string, nodename InPathNodeName, namespace InP var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -6134,7 +6099,7 @@ func NewGetInstanceRequest(server string, nodename InPathNodeName, namespace InP return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -6148,28 +6113,28 @@ func NewPostInstanceActionBootRequest(server string, nodename InPathNodeName, na var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -6190,21 +6155,19 @@ func NewPostInstanceActionBootRequest(server string, nodename InPathNodeName, na } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Slaves != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slaves", *params.Slaves, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slaves", runtime.ParamLocationQuery, *params.Slaves); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6212,11 +6175,15 @@ func NewPostInstanceActionBootRequest(server string, nodename InPathNodeName, na if params.Master != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "master", *params.Master, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6224,11 +6191,15 @@ func NewPostInstanceActionBootRequest(server string, nodename InPathNodeName, na if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6236,11 +6207,15 @@ func NewPostInstanceActionBootRequest(server string, nodename InPathNodeName, na if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6248,11 +6223,15 @@ func NewPostInstanceActionBootRequest(server string, nodename InPathNodeName, na if params.Slave != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slave", *params.Slave, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slave", runtime.ParamLocationQuery, *params.Slave); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6260,11 +6239,15 @@ func NewPostInstanceActionBootRequest(server string, nodename InPathNodeName, na if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6272,11 +6255,15 @@ func NewPostInstanceActionBootRequest(server string, nodename InPathNodeName, na if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6284,23 +6271,24 @@ func NewPostInstanceActionBootRequest(server string, nodename InPathNodeName, na if params.To != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, *params.To); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -6314,28 +6302,28 @@ func NewPostInstanceActionDeleteRequest(server string, nodename InPathNodeName, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -6356,33 +6344,28 @@ func NewPostInstanceActionDeleteRequest(server string, nodename InPathNodeName, } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -6396,28 +6379,28 @@ func NewPostInstanceActionFreezeRequest(server string, nodename InPathNodeName, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -6438,21 +6421,19 @@ func NewPostInstanceActionFreezeRequest(server string, nodename InPathNodeName, } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Slaves != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slaves", *params.Slaves, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slaves", runtime.ParamLocationQuery, *params.Slaves); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6460,11 +6441,15 @@ func NewPostInstanceActionFreezeRequest(server string, nodename InPathNodeName, if params.Master != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "master", *params.Master, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6472,11 +6457,15 @@ func NewPostInstanceActionFreezeRequest(server string, nodename InPathNodeName, if params.Slave != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slave", *params.Slave, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slave", runtime.ParamLocationQuery, *params.Slave); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6484,23 +6473,24 @@ func NewPostInstanceActionFreezeRequest(server string, nodename InPathNodeName, if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -6514,28 +6504,28 @@ func NewPostInstanceActionPGUpdateRequest(server string, nodename InPathNodeName var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -6556,21 +6546,19 @@ func NewPostInstanceActionPGUpdateRequest(server string, nodename InPathNodeName } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Slaves != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slaves", *params.Slaves, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slaves", runtime.ParamLocationQuery, *params.Slaves); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6578,11 +6566,15 @@ func NewPostInstanceActionPGUpdateRequest(server string, nodename InPathNodeName if params.Master != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "master", *params.Master, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6590,11 +6582,15 @@ func NewPostInstanceActionPGUpdateRequest(server string, nodename InPathNodeName if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6602,11 +6598,15 @@ func NewPostInstanceActionPGUpdateRequest(server string, nodename InPathNodeName if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6614,11 +6614,15 @@ func NewPostInstanceActionPGUpdateRequest(server string, nodename InPathNodeName if params.Slave != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slave", *params.Slave, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slave", runtime.ParamLocationQuery, *params.Slave); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6626,11 +6630,15 @@ func NewPostInstanceActionPGUpdateRequest(server string, nodename InPathNodeName if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6638,23 +6646,24 @@ func NewPostInstanceActionPGUpdateRequest(server string, nodename InPathNodeName if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -6668,28 +6677,28 @@ func NewPostInstanceActionProvisionRequest(server string, nodename InPathNodeNam var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -6710,21 +6719,19 @@ func NewPostInstanceActionProvisionRequest(server string, nodename InPathNodeNam } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Slaves != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slaves", *params.Slaves, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slaves", runtime.ParamLocationQuery, *params.Slaves); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6732,11 +6739,15 @@ func NewPostInstanceActionProvisionRequest(server string, nodename InPathNodeNam if params.DisableRollback != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "disable_rollback", *params.DisableRollback, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "disable_rollback", runtime.ParamLocationQuery, *params.DisableRollback); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6744,11 +6755,15 @@ func NewPostInstanceActionProvisionRequest(server string, nodename InPathNodeNam if params.Force != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "force", *params.Force, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6756,11 +6771,15 @@ func NewPostInstanceActionProvisionRequest(server string, nodename InPathNodeNam if params.Leader != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "leader", *params.Leader, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "leader", runtime.ParamLocationQuery, *params.Leader); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6768,11 +6787,15 @@ func NewPostInstanceActionProvisionRequest(server string, nodename InPathNodeNam if params.Master != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "master", *params.Master, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6780,11 +6803,15 @@ func NewPostInstanceActionProvisionRequest(server string, nodename InPathNodeNam if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6792,11 +6819,15 @@ func NewPostInstanceActionProvisionRequest(server string, nodename InPathNodeNam if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6804,11 +6835,15 @@ func NewPostInstanceActionProvisionRequest(server string, nodename InPathNodeNam if params.Slave != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slave", *params.Slave, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slave", runtime.ParamLocationQuery, *params.Slave); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6816,11 +6851,15 @@ func NewPostInstanceActionProvisionRequest(server string, nodename InPathNodeNam if params.StateOnly != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "state_only", *params.StateOnly, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "state_only", runtime.ParamLocationQuery, *params.StateOnly); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6828,11 +6867,15 @@ func NewPostInstanceActionProvisionRequest(server string, nodename InPathNodeNam if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6840,11 +6883,15 @@ func NewPostInstanceActionProvisionRequest(server string, nodename InPathNodeNam if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6852,23 +6899,24 @@ func NewPostInstanceActionProvisionRequest(server string, nodename InPathNodeNam if params.To != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, *params.To); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -6882,28 +6930,28 @@ func NewPostInstanceActionPRStartRequest(server string, nodename InPathNodeName, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -6924,21 +6972,19 @@ func NewPostInstanceActionPRStartRequest(server string, nodename InPathNodeName, } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Slaves != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slaves", *params.Slaves, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slaves", runtime.ParamLocationQuery, *params.Slaves); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6946,11 +6992,15 @@ func NewPostInstanceActionPRStartRequest(server string, nodename InPathNodeName, if params.DisableRollback != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "disable_rollback", *params.DisableRollback, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "disable_rollback", runtime.ParamLocationQuery, *params.DisableRollback); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6958,11 +7008,15 @@ func NewPostInstanceActionPRStartRequest(server string, nodename InPathNodeName, if params.Force != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "force", *params.Force, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6970,11 +7024,15 @@ func NewPostInstanceActionPRStartRequest(server string, nodename InPathNodeName, if params.Master != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "master", *params.Master, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6982,11 +7040,15 @@ func NewPostInstanceActionPRStartRequest(server string, nodename InPathNodeName, if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6994,11 +7056,15 @@ func NewPostInstanceActionPRStartRequest(server string, nodename InPathNodeName, if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7006,11 +7072,15 @@ func NewPostInstanceActionPRStartRequest(server string, nodename InPathNodeName, if params.Slave != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slave", *params.Slave, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slave", runtime.ParamLocationQuery, *params.Slave); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7018,11 +7088,15 @@ func NewPostInstanceActionPRStartRequest(server string, nodename InPathNodeName, if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7030,11 +7104,15 @@ func NewPostInstanceActionPRStartRequest(server string, nodename InPathNodeName, if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7042,23 +7120,24 @@ func NewPostInstanceActionPRStartRequest(server string, nodename InPathNodeName, if params.To != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, *params.To); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -7072,28 +7151,28 @@ func NewPostInstanceActionPRStopRequest(server string, nodename InPathNodeName, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -7114,21 +7193,19 @@ func NewPostInstanceActionPRStopRequest(server string, nodename InPathNodeName, } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Slaves != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slaves", *params.Slaves, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slaves", runtime.ParamLocationQuery, *params.Slaves); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7136,11 +7213,15 @@ func NewPostInstanceActionPRStopRequest(server string, nodename InPathNodeName, if params.DisableRollback != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "disable_rollback", *params.DisableRollback, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "disable_rollback", runtime.ParamLocationQuery, *params.DisableRollback); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7148,11 +7229,15 @@ func NewPostInstanceActionPRStopRequest(server string, nodename InPathNodeName, if params.Force != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "force", *params.Force, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7160,11 +7245,15 @@ func NewPostInstanceActionPRStopRequest(server string, nodename InPathNodeName, if params.Master != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "master", *params.Master, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7172,11 +7261,15 @@ func NewPostInstanceActionPRStopRequest(server string, nodename InPathNodeName, if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7184,11 +7277,15 @@ func NewPostInstanceActionPRStopRequest(server string, nodename InPathNodeName, if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7196,11 +7293,15 @@ func NewPostInstanceActionPRStopRequest(server string, nodename InPathNodeName, if params.Slave != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slave", *params.Slave, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slave", runtime.ParamLocationQuery, *params.Slave); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7208,11 +7309,15 @@ func NewPostInstanceActionPRStopRequest(server string, nodename InPathNodeName, if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7220,11 +7325,15 @@ func NewPostInstanceActionPRStopRequest(server string, nodename InPathNodeName, if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7232,23 +7341,24 @@ func NewPostInstanceActionPRStopRequest(server string, nodename InPathNodeName, if params.To != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, *params.To); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -7262,28 +7372,28 @@ func NewPostInstanceActionPushResourceInfoRequest(server string, nodename InPath var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -7304,33 +7414,28 @@ func NewPostInstanceActionPushResourceInfoRequest(server string, nodename InPath } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -7344,28 +7449,28 @@ func NewPostInstanceActionRestartRequest(server string, nodename InPathNodeName, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -7386,21 +7491,19 @@ func NewPostInstanceActionRestartRequest(server string, nodename InPathNodeName, } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Slaves != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slaves", *params.Slaves, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slaves", runtime.ParamLocationQuery, *params.Slaves); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7408,11 +7511,15 @@ func NewPostInstanceActionRestartRequest(server string, nodename InPathNodeName, if params.DisableRollback != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "disable_rollback", *params.DisableRollback, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "disable_rollback", runtime.ParamLocationQuery, *params.DisableRollback); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7420,11 +7527,15 @@ func NewPostInstanceActionRestartRequest(server string, nodename InPathNodeName, if params.Force != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "force", *params.Force, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7432,11 +7543,15 @@ func NewPostInstanceActionRestartRequest(server string, nodename InPathNodeName, if params.Master != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "master", *params.Master, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7444,11 +7559,15 @@ func NewPostInstanceActionRestartRequest(server string, nodename InPathNodeName, if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7456,11 +7575,15 @@ func NewPostInstanceActionRestartRequest(server string, nodename InPathNodeName, if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7468,11 +7591,15 @@ func NewPostInstanceActionRestartRequest(server string, nodename InPathNodeName, if params.Slave != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slave", *params.Slave, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slave", runtime.ParamLocationQuery, *params.Slave); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7480,11 +7607,15 @@ func NewPostInstanceActionRestartRequest(server string, nodename InPathNodeName, if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7492,11 +7623,15 @@ func NewPostInstanceActionRestartRequest(server string, nodename InPathNodeName, if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7504,23 +7639,24 @@ func NewPostInstanceActionRestartRequest(server string, nodename InPathNodeName, if params.To != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, *params.To); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -7534,28 +7670,28 @@ func NewPostInstanceActionRunRequest(server string, nodename InPathNodeName, nam var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -7576,21 +7712,19 @@ func NewPostInstanceActionRunRequest(server string, nodename InPathNodeName, nam } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Slaves != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slaves", *params.Slaves, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slaves", runtime.ParamLocationQuery, *params.Slaves); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7598,11 +7732,15 @@ func NewPostInstanceActionRunRequest(server string, nodename InPathNodeName, nam if params.Confirm != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "confirm", *params.Confirm, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "confirm", runtime.ParamLocationQuery, *params.Confirm); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7610,11 +7748,15 @@ func NewPostInstanceActionRunRequest(server string, nodename InPathNodeName, nam if params.Cron != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cron", *params.Cron, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cron", runtime.ParamLocationQuery, *params.Cron); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7622,11 +7764,15 @@ func NewPostInstanceActionRunRequest(server string, nodename InPathNodeName, nam if params.Force != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "force", *params.Force, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7634,11 +7780,15 @@ func NewPostInstanceActionRunRequest(server string, nodename InPathNodeName, nam if params.Master != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "master", *params.Master, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7646,11 +7796,15 @@ func NewPostInstanceActionRunRequest(server string, nodename InPathNodeName, nam if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7658,11 +7812,15 @@ func NewPostInstanceActionRunRequest(server string, nodename InPathNodeName, nam if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7670,11 +7828,15 @@ func NewPostInstanceActionRunRequest(server string, nodename InPathNodeName, nam if params.Slave != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slave", *params.Slave, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slave", runtime.ParamLocationQuery, *params.Slave); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7682,11 +7844,15 @@ func NewPostInstanceActionRunRequest(server string, nodename InPathNodeName, nam if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7694,11 +7860,15 @@ func NewPostInstanceActionRunRequest(server string, nodename InPathNodeName, nam if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7706,11 +7876,15 @@ func NewPostInstanceActionRunRequest(server string, nodename InPathNodeName, nam if params.To != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, *params.To); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7718,23 +7892,24 @@ func NewPostInstanceActionRunRequest(server string, nodename InPathNodeName, nam if params.Env != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "env", *params.Env, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "env", runtime.ParamLocationQuery, *params.Env); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -7748,28 +7923,28 @@ func NewPostInstanceActionShutdownRequest(server string, nodename InPathNodeName var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -7790,21 +7965,19 @@ func NewPostInstanceActionShutdownRequest(server string, nodename InPathNodeName } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Slaves != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slaves", *params.Slaves, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slaves", runtime.ParamLocationQuery, *params.Slaves); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7812,11 +7985,15 @@ func NewPostInstanceActionShutdownRequest(server string, nodename InPathNodeName if params.Force != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "force", *params.Force, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7824,11 +8001,15 @@ func NewPostInstanceActionShutdownRequest(server string, nodename InPathNodeName if params.Master != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "master", *params.Master, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7836,11 +8017,15 @@ func NewPostInstanceActionShutdownRequest(server string, nodename InPathNodeName if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7848,11 +8033,15 @@ func NewPostInstanceActionShutdownRequest(server string, nodename InPathNodeName if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7860,11 +8049,15 @@ func NewPostInstanceActionShutdownRequest(server string, nodename InPathNodeName if params.Slave != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slave", *params.Slave, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slave", runtime.ParamLocationQuery, *params.Slave); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7872,11 +8065,15 @@ func NewPostInstanceActionShutdownRequest(server string, nodename InPathNodeName if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7884,11 +8081,15 @@ func NewPostInstanceActionShutdownRequest(server string, nodename InPathNodeName if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7896,23 +8097,24 @@ func NewPostInstanceActionShutdownRequest(server string, nodename InPathNodeName if params.To != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, *params.To); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -7926,28 +8128,28 @@ func NewPostInstanceActionStartRequest(server string, nodename InPathNodeName, n var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -7968,21 +8170,19 @@ func NewPostInstanceActionStartRequest(server string, nodename InPathNodeName, n } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Slaves != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slaves", *params.Slaves, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slaves", runtime.ParamLocationQuery, *params.Slaves); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7990,11 +8190,15 @@ func NewPostInstanceActionStartRequest(server string, nodename InPathNodeName, n if params.DisableRollback != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "disable_rollback", *params.DisableRollback, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "disable_rollback", runtime.ParamLocationQuery, *params.DisableRollback); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8002,11 +8206,15 @@ func NewPostInstanceActionStartRequest(server string, nodename InPathNodeName, n if params.Force != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "force", *params.Force, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8014,11 +8222,15 @@ func NewPostInstanceActionStartRequest(server string, nodename InPathNodeName, n if params.Master != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "master", *params.Master, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8026,11 +8238,15 @@ func NewPostInstanceActionStartRequest(server string, nodename InPathNodeName, n if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8038,11 +8254,15 @@ func NewPostInstanceActionStartRequest(server string, nodename InPathNodeName, n if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8050,11 +8270,15 @@ func NewPostInstanceActionStartRequest(server string, nodename InPathNodeName, n if params.Slave != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slave", *params.Slave, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slave", runtime.ParamLocationQuery, *params.Slave); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8062,11 +8286,15 @@ func NewPostInstanceActionStartRequest(server string, nodename InPathNodeName, n if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8074,11 +8302,15 @@ func NewPostInstanceActionStartRequest(server string, nodename InPathNodeName, n if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8086,23 +8318,24 @@ func NewPostInstanceActionStartRequest(server string, nodename InPathNodeName, n if params.To != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, *params.To); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -8116,28 +8349,28 @@ func NewPostInstanceActionStartStandbyRequest(server string, nodename InPathNode var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -8158,21 +8391,19 @@ func NewPostInstanceActionStartStandbyRequest(server string, nodename InPathNode } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Slaves != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slaves", *params.Slaves, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slaves", runtime.ParamLocationQuery, *params.Slaves); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8180,11 +8411,15 @@ func NewPostInstanceActionStartStandbyRequest(server string, nodename InPathNode if params.DisableRollback != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "disable_rollback", *params.DisableRollback, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "disable_rollback", runtime.ParamLocationQuery, *params.DisableRollback); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8192,11 +8427,15 @@ func NewPostInstanceActionStartStandbyRequest(server string, nodename InPathNode if params.Force != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "force", *params.Force, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8204,11 +8443,15 @@ func NewPostInstanceActionStartStandbyRequest(server string, nodename InPathNode if params.Master != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "master", *params.Master, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8216,11 +8459,15 @@ func NewPostInstanceActionStartStandbyRequest(server string, nodename InPathNode if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8228,11 +8475,15 @@ func NewPostInstanceActionStartStandbyRequest(server string, nodename InPathNode if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8240,11 +8491,15 @@ func NewPostInstanceActionStartStandbyRequest(server string, nodename InPathNode if params.Slave != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slave", *params.Slave, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slave", runtime.ParamLocationQuery, *params.Slave); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8252,11 +8507,15 @@ func NewPostInstanceActionStartStandbyRequest(server string, nodename InPathNode if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8264,11 +8523,15 @@ func NewPostInstanceActionStartStandbyRequest(server string, nodename InPathNode if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8276,23 +8539,24 @@ func NewPostInstanceActionStartStandbyRequest(server string, nodename InPathNode if params.To != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, *params.To); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -8306,28 +8570,28 @@ func NewPostInstanceActionStatusRequest(server string, nodename InPathNodeName, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -8348,33 +8612,28 @@ func NewPostInstanceActionStatusRequest(server string, nodename InPathNodeName, } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -8388,28 +8647,28 @@ func NewPostInstanceActionStopRequest(server string, nodename InPathNodeName, na var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -8430,21 +8689,19 @@ func NewPostInstanceActionStopRequest(server string, nodename InPathNodeName, na } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Slaves != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slaves", *params.Slaves, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slaves", runtime.ParamLocationQuery, *params.Slaves); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8452,11 +8709,15 @@ func NewPostInstanceActionStopRequest(server string, nodename InPathNodeName, na if params.Force != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "force", *params.Force, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8464,11 +8725,15 @@ func NewPostInstanceActionStopRequest(server string, nodename InPathNodeName, na if params.Master != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "master", *params.Master, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8476,11 +8741,15 @@ func NewPostInstanceActionStopRequest(server string, nodename InPathNodeName, na if params.MoveTo != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "move-to", *params.MoveTo, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "move-to", runtime.ParamLocationQuery, *params.MoveTo); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8488,11 +8757,15 @@ func NewPostInstanceActionStopRequest(server string, nodename InPathNodeName, na if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8500,11 +8773,15 @@ func NewPostInstanceActionStopRequest(server string, nodename InPathNodeName, na if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8512,11 +8789,15 @@ func NewPostInstanceActionStopRequest(server string, nodename InPathNodeName, na if params.Slave != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slave", *params.Slave, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slave", runtime.ParamLocationQuery, *params.Slave); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8524,11 +8805,15 @@ func NewPostInstanceActionStopRequest(server string, nodename InPathNodeName, na if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8536,11 +8821,15 @@ func NewPostInstanceActionStopRequest(server string, nodename InPathNodeName, na if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8548,23 +8837,24 @@ func NewPostInstanceActionStopRequest(server string, nodename InPathNodeName, na if params.To != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, *params.To); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -8578,28 +8868,28 @@ func NewPostInstanceActionSyncIngestRequest(server string, nodename InPathNodeNa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -8620,21 +8910,19 @@ func NewPostInstanceActionSyncIngestRequest(server string, nodename InPathNodeNa } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8642,11 +8930,15 @@ func NewPostInstanceActionSyncIngestRequest(server string, nodename InPathNodeNa if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8654,11 +8946,15 @@ func NewPostInstanceActionSyncIngestRequest(server string, nodename InPathNodeNa if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8666,23 +8962,24 @@ func NewPostInstanceActionSyncIngestRequest(server string, nodename InPathNodeNa if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -8696,28 +8993,28 @@ func NewPostInstanceActionUnfreezeRequest(server string, nodename InPathNodeName var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -8738,21 +9035,19 @@ func NewPostInstanceActionUnfreezeRequest(server string, nodename InPathNodeName } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Slaves != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slaves", *params.Slaves, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slaves", runtime.ParamLocationQuery, *params.Slaves); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8760,11 +9055,15 @@ func NewPostInstanceActionUnfreezeRequest(server string, nodename InPathNodeName if params.Master != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "master", *params.Master, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8772,11 +9071,15 @@ func NewPostInstanceActionUnfreezeRequest(server string, nodename InPathNodeName if params.Slave != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slave", *params.Slave, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slave", runtime.ParamLocationQuery, *params.Slave); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8784,23 +9087,24 @@ func NewPostInstanceActionUnfreezeRequest(server string, nodename InPathNodeName if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -8814,28 +9118,28 @@ func NewPostInstanceActionUnprovisionRequest(server string, nodename InPathNodeN var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -8856,21 +9160,19 @@ func NewPostInstanceActionUnprovisionRequest(server string, nodename InPathNodeN } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Slaves != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slaves", *params.Slaves, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slaves", runtime.ParamLocationQuery, *params.Slaves); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8878,11 +9180,15 @@ func NewPostInstanceActionUnprovisionRequest(server string, nodename InPathNodeN if params.Force != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "force", *params.Force, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8890,11 +9196,15 @@ func NewPostInstanceActionUnprovisionRequest(server string, nodename InPathNodeN if params.Leader != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "leader", *params.Leader, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "leader", runtime.ParamLocationQuery, *params.Leader); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8902,11 +9212,15 @@ func NewPostInstanceActionUnprovisionRequest(server string, nodename InPathNodeN if params.Master != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "master", *params.Master, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "master", runtime.ParamLocationQuery, *params.Master); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8914,11 +9228,15 @@ func NewPostInstanceActionUnprovisionRequest(server string, nodename InPathNodeN if params.SessionId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "session_id", *params.SessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "session_id", runtime.ParamLocationQuery, *params.SessionId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8926,11 +9244,15 @@ func NewPostInstanceActionUnprovisionRequest(server string, nodename InPathNodeN if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8938,11 +9260,15 @@ func NewPostInstanceActionUnprovisionRequest(server string, nodename InPathNodeN if params.StateOnly != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "state_only", *params.StateOnly, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "state_only", runtime.ParamLocationQuery, *params.StateOnly); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8950,11 +9276,15 @@ func NewPostInstanceActionUnprovisionRequest(server string, nodename InPathNodeN if params.Slave != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slave", *params.Slave, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slave", runtime.ParamLocationQuery, *params.Slave); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8962,11 +9292,15 @@ func NewPostInstanceActionUnprovisionRequest(server string, nodename InPathNodeN if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8974,11 +9308,15 @@ func NewPostInstanceActionUnprovisionRequest(server string, nodename InPathNodeN if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8986,23 +9324,24 @@ func NewPostInstanceActionUnprovisionRequest(server string, nodename InPathNodeN if params.To != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, *params.To); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -9016,28 +9355,28 @@ func NewPostInstanceClearRequest(server string, nodename InPathNodeName, namespa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -9057,7 +9396,7 @@ func NewPostInstanceClearRequest(server string, nodename InPathNodeName, namespa return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -9071,28 +9410,28 @@ func NewGetInstanceConfigFileRequest(server string, nodename InPathNodeName, nam var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -9112,7 +9451,7 @@ func NewGetInstanceConfigFileRequest(server string, nodename InPathNodeName, nam return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9126,28 +9465,28 @@ func NewPostInstanceResourceConsoleRequest(server string, nodename InPathNodeNam var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -9168,21 +9507,19 @@ func NewPostInstanceResourceConsoleRequest(server string, nodename InPathNodeNam } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9190,11 +9527,15 @@ func NewPostInstanceResourceConsoleRequest(server string, nodename InPathNodeNam if params.GreetTimeout != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "greet_timeout", *params.GreetTimeout, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "greet_timeout", runtime.ParamLocationQuery, *params.GreetTimeout); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9202,23 +9543,24 @@ func NewPostInstanceResourceConsoleRequest(server string, nodename InPathNodeNam if params.Seats != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "seats", *params.Seats, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seats", runtime.ParamLocationQuery, *params.Seats); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -9232,28 +9574,28 @@ func NewGetInstanceContainerLogRequest(server string, nodename InPathNodeName, n var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -9274,21 +9616,19 @@ func NewGetInstanceContainerLogRequest(server string, nodename InPathNodeName, n } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9296,11 +9636,15 @@ func NewGetInstanceContainerLogRequest(server string, nodename InPathNodeName, n if params.Follow != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "follow", *params.Follow, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "follow", runtime.ParamLocationQuery, *params.Follow); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9308,23 +9652,24 @@ func NewGetInstanceContainerLogRequest(server string, nodename InPathNodeName, n if params.Lines != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "lines", *params.Lines, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "lines", runtime.ParamLocationQuery, *params.Lines); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9338,28 +9683,28 @@ func NewGetInstanceLogsRequest(server string, nodename InPathNodeName, namespace var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -9380,21 +9725,19 @@ func NewGetInstanceLogsRequest(server string, nodename InPathNodeName, namespace } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Filter != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9402,11 +9745,15 @@ func NewGetInstanceLogsRequest(server string, nodename InPathNodeName, namespace if params.Grep != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "grep", *params.Grep, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grep", runtime.ParamLocationQuery, *params.Grep); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9414,11 +9761,15 @@ func NewGetInstanceLogsRequest(server string, nodename InPathNodeName, namespace if params.Follow != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "follow", *params.Follow, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "follow", runtime.ParamLocationQuery, *params.Follow); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9426,23 +9777,24 @@ func NewGetInstanceLogsRequest(server string, nodename InPathNodeName, namespace if params.Lines != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "lines", *params.Lines, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "lines", runtime.ParamLocationQuery, *params.Lines); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9456,28 +9808,28 @@ func NewGetInstanceResourceFileRequest(server string, nodename InPathNodeName, n var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -9498,37 +9850,36 @@ func NewGetInstanceResourceFileRequest(server string, nodename InPathNodeName, n } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9542,28 +9893,28 @@ func NewGetInstanceResourceInfoRequest(server string, nodename InPathNodeName, n var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -9583,7 +9934,7 @@ func NewGetInstanceResourceInfoRequest(server string, nodename InPathNodeName, n return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9597,28 +9948,28 @@ func NewGetInstanceScheduleRequest(server string, nodename InPathNodeName, names var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -9638,7 +9989,7 @@ func NewGetInstanceScheduleRequest(server string, nodename InPathNodeName, names return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9652,28 +10003,28 @@ func NewPostInstanceStateFileRequestWithBody(server string, nodename InPathNodeN var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -9693,7 +10044,7 @@ func NewPostInstanceStateFileRequestWithBody(server string, nodename InPathNodeN return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -9709,7 +10060,7 @@ func NewGetNodeLogsRequest(server string, nodename InPathNodeName, params *GetNo var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -9730,21 +10081,19 @@ func NewGetNodeLogsRequest(server string, nodename InPathNodeName, params *GetNo } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Filter != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9752,11 +10101,15 @@ func NewGetNodeLogsRequest(server string, nodename InPathNodeName, params *GetNo if params.Grep != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "grep", *params.Grep, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "grep", runtime.ParamLocationQuery, *params.Grep); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9764,11 +10117,15 @@ func NewGetNodeLogsRequest(server string, nodename InPathNodeName, params *GetNo if params.Follow != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "follow", *params.Follow, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "follow", runtime.ParamLocationQuery, *params.Follow); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9776,11 +10133,15 @@ func NewGetNodeLogsRequest(server string, nodename InPathNodeName, params *GetNo if params.Lines != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "lines", *params.Lines, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "lines", runtime.ParamLocationQuery, *params.Lines); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9788,23 +10149,24 @@ func NewGetNodeLogsRequest(server string, nodename InPathNodeName, params *GetNo if params.Paths != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "paths", *params.Paths, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "paths", runtime.ParamLocationQuery, *params.Paths); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9818,7 +10180,7 @@ func NewGetNodeMetricsRequest(server string, nodename InPathNodeName) (*http.Req var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -9838,7 +10200,7 @@ func NewGetNodeMetricsRequest(server string, nodename InPathNodeName) (*http.Req return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9852,7 +10214,7 @@ func NewGetNodePingRequest(server string, nodename InPathNodeName) (*http.Reques var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -9872,7 +10234,7 @@ func NewGetNodePingRequest(server string, nodename InPathNodeName) (*http.Reques return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9886,7 +10248,7 @@ func NewGetNodeScheduleRequest(server string, nodename InPathNodeName) (*http.Re var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -9906,7 +10268,7 @@ func NewGetNodeScheduleRequest(server string, nodename InPathNodeName) (*http.Re return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9920,7 +10282,7 @@ func NewGetNodeSSHHostkeysRequest(server string, nodename InPathNodeName) (*http var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -9940,7 +10302,7 @@ func NewGetNodeSSHHostkeysRequest(server string, nodename InPathNodeName) (*http return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9954,7 +10316,7 @@ func NewGetNodeSSHKeyRequest(server string, nodename InPathNodeName) (*http.Requ var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -9974,7 +10336,7 @@ func NewGetNodeSSHKeyRequest(server string, nodename InPathNodeName) (*http.Requ return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9988,7 +10350,7 @@ func NewPutNodeSSHTrustRequest(server string, nodename InPathNodeName) (*http.Re var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -10008,7 +10370,7 @@ func NewPutNodeSSHTrustRequest(server string, nodename InPathNodeName) (*http.Re return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), nil) + req, err := http.NewRequest("PUT", queryURL.String(), nil) if err != nil { return nil, err } @@ -10022,7 +10384,7 @@ func NewGetNodeSystemDiskRequest(server string, nodename InPathNodeName) (*http. var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -10042,7 +10404,7 @@ func NewGetNodeSystemDiskRequest(server string, nodename InPathNodeName) (*http. return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10056,7 +10418,7 @@ func NewGetNodeSystemGroupRequest(server string, nodename InPathNodeName) (*http var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -10076,7 +10438,7 @@ func NewGetNodeSystemGroupRequest(server string, nodename InPathNodeName) (*http return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10090,7 +10452,7 @@ func NewGetNodeSystemHardwareRequest(server string, nodename InPathNodeName) (*h var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -10110,7 +10472,7 @@ func NewGetNodeSystemHardwareRequest(server string, nodename InPathNodeName) (*h return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10124,7 +10486,7 @@ func NewGetNodeSystemIPAddressRequest(server string, nodename InPathNodeName) (* var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -10144,7 +10506,7 @@ func NewGetNodeSystemIPAddressRequest(server string, nodename InPathNodeName) (* return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10158,7 +10520,7 @@ func NewGetNodeSystemPackageRequest(server string, nodename InPathNodeName) (*ht var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -10178,7 +10540,7 @@ func NewGetNodeSystemPackageRequest(server string, nodename InPathNodeName) (*ht return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10192,7 +10554,7 @@ func NewGetNodeSystemPropertyRequest(server string, nodename InPathNodeName) (*h var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -10212,7 +10574,7 @@ func NewGetNodeSystemPropertyRequest(server string, nodename InPathNodeName) (*h return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10226,7 +10588,7 @@ func NewGetNodeSystemSANInitiatorRequest(server string, nodename InPathNodeName) var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -10246,7 +10608,7 @@ func NewGetNodeSystemSANInitiatorRequest(server string, nodename InPathNodeName) return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10260,7 +10622,7 @@ func NewGetNodeSystemSANPathRequest(server string, nodename InPathNodeName) (*ht var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -10280,7 +10642,7 @@ func NewGetNodeSystemSANPathRequest(server string, nodename InPathNodeName) (*ht return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10294,7 +10656,7 @@ func NewGetNodeSystemUserRequest(server string, nodename InPathNodeName) (*http. var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodename", nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "nodename", runtime.ParamLocationPath, nodename) if err != nil { return nil, err } @@ -10314,7 +10676,7 @@ func NewGetNodeSystemUserRequest(server string, nodename InPathNodeName) (*http. return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10342,33 +10704,28 @@ func NewGetObjectsRequest(server string, params *GetObjectsParams) (*http.Reques } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Path != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "path", *params.Path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "path", runtime.ParamLocationQuery, *params.Path); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10396,29 +10753,24 @@ func NewGetObjectPathsRequest(server string, params *GetObjectPathsParams) (*htt } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "path", params.Path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "path", runtime.ParamLocationQuery, params.Path); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10432,14 +10784,14 @@ func NewPostSvcDisableRequest(server string, namespace InPathNamespace, name InP var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -10460,21 +10812,19 @@ func NewPostSvcDisableRequest(server string, namespace InPathNamespace, name InP } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -10482,11 +10832,15 @@ func NewPostSvcDisableRequest(server string, namespace InPathNamespace, name InP if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -10494,23 +10848,24 @@ func NewPostSvcDisableRequest(server string, namespace InPathNamespace, name InP if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -10524,14 +10879,14 @@ func NewPostSvcEnableRequest(server string, namespace InPathNamespace, name InPa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -10552,21 +10907,19 @@ func NewPostSvcEnableRequest(server string, namespace InPathNamespace, name InPa } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Rid != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rid", *params.Rid, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rid", runtime.ParamLocationQuery, *params.Rid); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -10574,11 +10927,15 @@ func NewPostSvcEnableRequest(server string, namespace InPathNamespace, name InPa if params.Subset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subset", *params.Subset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "subset", runtime.ParamLocationQuery, *params.Subset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -10586,23 +10943,24 @@ func NewPostSvcEnableRequest(server string, namespace InPathNamespace, name InPa if params.Tag != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag", *params.Tag, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, *params.Tag); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -10616,21 +10974,21 @@ func NewGetObjectRequest(server string, namespace InPathNamespace, kind InPathKi var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -10650,7 +11008,7 @@ func NewGetObjectRequest(server string, namespace InPathNamespace, kind InPathKi return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10664,21 +11022,21 @@ func NewPostObjectActionAbortRequest(server string, namespace InPathNamespace, k var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -10698,7 +11056,7 @@ func NewPostObjectActionAbortRequest(server string, namespace InPathNamespace, k return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -10712,21 +11070,21 @@ func NewPostObjectActionDeleteRequest(server string, namespace InPathNamespace, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -10746,7 +11104,7 @@ func NewPostObjectActionDeleteRequest(server string, namespace InPathNamespace, return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -10760,21 +11118,21 @@ func NewPostObjectActionFreezeRequest(server string, namespace InPathNamespace, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -10794,7 +11152,7 @@ func NewPostObjectActionFreezeRequest(server string, namespace InPathNamespace, return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -10808,21 +11166,21 @@ func NewPostObjectActionGivebackRequest(server string, namespace InPathNamespace var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -10842,7 +11200,7 @@ func NewPostObjectActionGivebackRequest(server string, namespace InPathNamespace return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -10856,21 +11214,21 @@ func NewPostObjectActionProvisionRequest(server string, namespace InPathNamespac var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -10890,7 +11248,7 @@ func NewPostObjectActionProvisionRequest(server string, namespace InPathNamespac return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -10904,21 +11262,21 @@ func NewPostObjectActionPurgeRequest(server string, namespace InPathNamespace, k var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -10938,7 +11296,7 @@ func NewPostObjectActionPurgeRequest(server string, namespace InPathNamespace, k return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -10963,21 +11321,21 @@ func NewPostObjectActionRestartRequestWithBody(server string, namespace InPathNa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -10997,7 +11355,7 @@ func NewPostObjectActionRestartRequestWithBody(server string, namespace InPathNa return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -11013,21 +11371,21 @@ func NewPostObjectActionStartRequest(server string, namespace InPathNamespace, k var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11047,7 +11405,7 @@ func NewPostObjectActionStartRequest(server string, namespace InPathNamespace, k return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -11061,21 +11419,21 @@ func NewPostObjectActionStopRequest(server string, namespace InPathNamespace, ki var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11095,7 +11453,7 @@ func NewPostObjectActionStopRequest(server string, namespace InPathNamespace, ki return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -11120,21 +11478,21 @@ func NewPostObjectActionSwitchRequestWithBody(server string, namespace InPathNam var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11154,7 +11512,7 @@ func NewPostObjectActionSwitchRequestWithBody(server string, namespace InPathNam return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -11170,21 +11528,21 @@ func NewPostObjectActionUnfreezeRequest(server string, namespace InPathNamespace var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11204,7 +11562,7 @@ func NewPostObjectActionUnfreezeRequest(server string, namespace InPathNamespace return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -11218,21 +11576,21 @@ func NewPostObjectActionUnprovisionRequest(server string, namespace InPathNamesp var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11252,7 +11610,7 @@ func NewPostObjectActionUnprovisionRequest(server string, namespace InPathNamesp return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -11266,21 +11624,21 @@ func NewGetObjectConfigRequest(server string, namespace InPathNamespace, kind In var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11301,21 +11659,19 @@ func NewGetObjectConfigRequest(server string, namespace InPathNamespace, kind In } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Evaluate != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "evaluate", *params.Evaluate, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "evaluate", runtime.ParamLocationQuery, *params.Evaluate); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -11323,11 +11679,15 @@ func NewGetObjectConfigRequest(server string, namespace InPathNamespace, kind In if params.Impersonate != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "impersonate", *params.Impersonate, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "impersonate", runtime.ParamLocationQuery, *params.Impersonate); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -11335,23 +11695,24 @@ func NewGetObjectConfigRequest(server string, namespace InPathNamespace, kind In if params.Kw != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "kw", *params.Kw, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "kw", runtime.ParamLocationQuery, *params.Kw); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11365,21 +11726,21 @@ func NewPatchObjectConfigRequest(server string, namespace InPathNamespace, kind var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11400,21 +11761,19 @@ func NewPatchObjectConfigRequest(server string, namespace InPathNamespace, kind } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Delete != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "delete", *params.Delete, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "delete", runtime.ParamLocationQuery, *params.Delete); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -11422,11 +11781,15 @@ func NewPatchObjectConfigRequest(server string, namespace InPathNamespace, kind if params.Unset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "unset", *params.Unset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "unset", runtime.ParamLocationQuery, *params.Unset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -11434,23 +11797,24 @@ func NewPatchObjectConfigRequest(server string, namespace InPathNamespace, kind if params.Set != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "set", *params.Set, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "set", runtime.ParamLocationQuery, *params.Set); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), nil) if err != nil { return nil, err } @@ -11464,21 +11828,21 @@ func NewGetObjectConfigFileRequest(server string, namespace InPathNamespace, kin var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11498,7 +11862,7 @@ func NewGetObjectConfigFileRequest(server string, namespace InPathNamespace, kin return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11512,21 +11876,21 @@ func NewPostObjectConfigFileRequestWithBody(server string, namespace InPathNames var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11546,7 +11910,7 @@ func NewPostObjectConfigFileRequestWithBody(server string, namespace InPathNames return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -11562,21 +11926,21 @@ func NewPutObjectConfigFileRequestWithBody(server string, namespace InPathNamesp var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11596,7 +11960,7 @@ func NewPutObjectConfigFileRequestWithBody(server string, namespace InPathNamesp return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -11612,21 +11976,21 @@ func NewGetObjectConfigKeywordsRequest(server string, namespace InPathNamespace, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11647,21 +12011,19 @@ func NewGetObjectConfigKeywordsRequest(server string, namespace InPathNamespace, } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Driver != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "driver", *params.Driver, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "driver", runtime.ParamLocationQuery, *params.Driver); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -11669,11 +12031,15 @@ func NewGetObjectConfigKeywordsRequest(server string, namespace InPathNamespace, if params.Section != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "section", *params.Section, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "section", runtime.ParamLocationQuery, *params.Section); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -11681,23 +12047,24 @@ func NewGetObjectConfigKeywordsRequest(server string, namespace InPathNamespace, if params.Option != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "option", *params.Option, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "option", runtime.ParamLocationQuery, *params.Option); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11711,21 +12078,21 @@ func NewGetObjectDataRequest(server string, namespace InPathNamespace, kind InPa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11746,33 +12113,28 @@ func NewGetObjectDataRequest(server string, namespace InPathNamespace, kind InPa } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Names != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", *params.Names, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Names); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11797,21 +12159,21 @@ func NewPatchObjectDataRequestWithBody(server string, namespace InPathNamespace, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11831,7 +12193,7 @@ func NewPatchObjectDataRequestWithBody(server string, namespace InPathNamespace, return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -11847,21 +12209,21 @@ func NewDeleteObjectDataKeyRequest(server string, namespace InPathNamespace, kin var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11882,29 +12244,24 @@ func NewDeleteObjectDataKeyRequest(server string, namespace InPathNamespace, kin } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -11918,21 +12275,21 @@ func NewGetObjectDataKeyRequest(server string, namespace InPathNamespace, kind I var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -11953,29 +12310,24 @@ func NewGetObjectDataKeyRequest(server string, namespace InPathNamespace, kind I } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11989,21 +12341,21 @@ func NewPostObjectDataKeyRequestWithBody(server string, namespace InPathNamespac var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -12024,29 +12376,24 @@ func NewPostObjectDataKeyRequestWithBody(server string, namespace InPathNamespac } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -12062,21 +12409,21 @@ func NewPutObjectDataKeyRequestWithBody(server string, namespace InPathNamespace var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -12097,29 +12444,24 @@ func NewPutObjectDataKeyRequestWithBody(server string, namespace InPathNamespace } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -12135,21 +12477,21 @@ func NewGetObjectDataKeysRequest(server string, namespace InPathNamespace, kind var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -12169,7 +12511,7 @@ func NewGetObjectDataKeysRequest(server string, namespace InPathNamespace, kind return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12183,21 +12525,21 @@ func NewGetObjectResourceInfoRequest(server string, namespace InPathNamespace, k var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -12217,7 +12559,7 @@ func NewGetObjectResourceInfoRequest(server string, namespace InPathNamespace, k return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12231,21 +12573,21 @@ func NewGetObjectScheduleRequest(server string, namespace InPathNamespace, kind var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "namespace", namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "kind", kind, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -12265,7 +12607,7 @@ func NewGetObjectScheduleRequest(server string, namespace InPathNamespace, kind return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12292,7 +12634,7 @@ func NewGetSwaggerRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12320,21 +12662,19 @@ func NewGetPoolsRequest(server string, params *GetPoolsParams) (*http.Request, e } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Name != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", *params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12342,23 +12682,24 @@ func NewGetPoolsRequest(server string, params *GetPoolsParams) (*http.Request, e if params.Node != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "node", *params.Node, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "node", runtime.ParamLocationQuery, *params.Node); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12386,33 +12727,28 @@ func NewGetPoolVolumesRequest(server string, params *GetPoolVolumesParams) (*htt } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Name != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", *params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12440,49 +12776,52 @@ func NewGetRelayMessageRequest(server string, params *GetRelayMessageParams) (*h } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "nodename", params.Nodename, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nodename", runtime.ParamLocationQuery, params.Nodename); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cluster_id", params.ClusterID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cluster_id", runtime.ParamLocationQuery, params.ClusterID); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } if params.Username != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "username", *params.Username, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username", runtime.ParamLocationQuery, *params.Username); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12520,7 +12859,7 @@ func NewPostRelayMessageRequestWithBody(server string, contentType string, body return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -12550,21 +12889,19 @@ func NewGetRelayStatusRequest(server string, params *GetRelayStatusParams) (*htt } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Relays != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "relay", *params.Relays, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "relay", runtime.ParamLocationQuery, *params.Relays); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12572,23 +12909,24 @@ func NewGetRelayStatusRequest(server string, params *GetRelayStatusParams) (*htt if params.Remote != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "remote", *params.Remote, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remote", runtime.ParamLocationQuery, *params.Remote); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12616,21 +12954,19 @@ func NewGetResourcesRequest(server string, params *GetResourcesParams) (*http.Re } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Path != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "path", *params.Path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "path", runtime.ParamLocationQuery, *params.Path); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12638,11 +12974,15 @@ func NewGetResourcesRequest(server string, params *GetResourcesParams) (*http.Re if params.Node != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "node", *params.Node, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "node", runtime.ParamLocationQuery, *params.Node); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12650,23 +12990,24 @@ func NewGetResourcesRequest(server string, params *GetResourcesParams) (*http.Re if params.Resource != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "resource", *params.Resource, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "resource", runtime.ParamLocationQuery, *params.Resource); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -13211,14 +13552,6 @@ func (r GetArrayResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetArrayResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetAuthInfoResponse struct { Body []byte HTTPResponse *http.Response @@ -13241,14 +13574,6 @@ func (r GetAuthInfoResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAuthInfoResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostAuthRefreshResponse struct { Body []byte HTTPResponse *http.Response @@ -13277,14 +13602,6 @@ func (r PostAuthRefreshResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostAuthRefreshResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostAuthTokenResponse struct { Body []byte HTTPResponse *http.Response @@ -13313,14 +13630,6 @@ func (r PostAuthTokenResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostAuthTokenResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetAuthWhoAmIResponse struct { Body []byte HTTPResponse *http.Response @@ -13344,14 +13653,6 @@ func (r GetAuthWhoAmIResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAuthWhoAmIResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostClusterActionAbortResponse struct { Body []byte HTTPResponse *http.Response @@ -13381,14 +13682,6 @@ func (r PostClusterActionAbortResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostClusterActionAbortResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostClusterActionFreezeResponse struct { Body []byte HTTPResponse *http.Response @@ -13417,14 +13710,6 @@ func (r PostClusterActionFreezeResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostClusterActionFreezeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostClusterActionUnfreezeResponse struct { Body []byte HTTPResponse *http.Response @@ -13453,14 +13738,6 @@ func (r PostClusterActionUnfreezeResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostClusterActionUnfreezeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetClusterConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -13487,14 +13764,6 @@ func (r GetClusterConfigResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetClusterConfigResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PatchClusterConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -13521,14 +13790,6 @@ func (r PatchClusterConfigResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PatchClusterConfigResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetClusterConfigFileResponse struct { Body []byte HTTPResponse *http.Response @@ -13554,14 +13815,6 @@ func (r GetClusterConfigFileResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetClusterConfigFileResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PutClusterConfigFileResponse struct { Body []byte HTTPResponse *http.Response @@ -13589,14 +13842,6 @@ func (r PutClusterConfigFileResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PutClusterConfigFileResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetClusterConfigKeywordsResponse struct { Body []byte HTTPResponse *http.Response @@ -13622,14 +13867,6 @@ func (r GetClusterConfigKeywordsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetClusterConfigKeywordsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostClusterHeartbeatRotateResponse struct { Body []byte HTTPResponse *http.Response @@ -13657,14 +13894,6 @@ func (r PostClusterHeartbeatRotateResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostClusterHeartbeatRotateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostClusterJoinResponse struct { Body []byte HTTPResponse *http.Response @@ -13690,14 +13919,6 @@ func (r PostClusterJoinResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostClusterJoinResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostClusterLeaveResponse struct { Body []byte HTTPResponse *http.Response @@ -13720,14 +13941,6 @@ func (r PostClusterLeaveResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostClusterLeaveResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetClusterStatusResponse struct { Body []byte HTTPResponse *http.Response @@ -13753,14 +13966,6 @@ func (r GetClusterStatusResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetClusterStatusResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetInstancesResponse struct { Body []byte HTTPResponse *http.Response @@ -13787,14 +13992,6 @@ func (r GetInstancesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetInstancesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceProgressResponse struct { Body []byte HTTPResponse *http.Response @@ -13820,14 +14017,6 @@ func (r PostInstanceProgressResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceProgressResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceStatusResponse struct { Body []byte HTTPResponse *http.Response @@ -13853,14 +14042,6 @@ func (r PostInstanceStatusResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceStatusResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNetworksResponse struct { Body []byte HTTPResponse *http.Response @@ -13886,14 +14067,6 @@ func (r GetNetworksResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNetworksResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNetworkIPResponse struct { Body []byte HTTPResponse *http.Response @@ -13919,14 +14092,6 @@ func (r GetNetworkIPResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNetworkIPResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodesResponse struct { Body []byte HTTPResponse *http.Response @@ -13953,14 +14118,6 @@ func (r GetNodesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodesInfoResponse struct { Body []byte HTTPResponse *http.Response @@ -13986,14 +14143,6 @@ func (r GetNodesInfoResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodesInfoResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostPeerActionAbortResponse struct { Body []byte HTTPResponse *http.Response @@ -14022,14 +14171,6 @@ func (r PostPeerActionAbortResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostPeerActionAbortResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostNodeActionClearResponse struct { Body []byte HTTPResponse *http.Response @@ -14056,14 +14197,6 @@ func (r PostNodeActionClearResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostNodeActionClearResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostPeerActionDequeueResponse struct { Body []byte HTTPResponse *http.Response @@ -14090,14 +14223,6 @@ func (r PostPeerActionDequeueResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostPeerActionDequeueResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostPeerActionDrainResponse struct { Body []byte HTTPResponse *http.Response @@ -14126,14 +14251,6 @@ func (r PostPeerActionDrainResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostPeerActionDrainResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostPeerActionFreezeResponse struct { Body []byte HTTPResponse *http.Response @@ -14160,14 +14277,6 @@ func (r PostPeerActionFreezeResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostPeerActionFreezeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostNodeActionPushAssetResponse struct { Body []byte HTTPResponse *http.Response @@ -14193,14 +14302,6 @@ func (r PostNodeActionPushAssetResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostNodeActionPushAssetResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostNodeActionPushDiskResponse struct { Body []byte HTTPResponse *http.Response @@ -14226,14 +14327,6 @@ func (r PostNodeActionPushDiskResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostNodeActionPushDiskResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostNodeActionPushPkgResponse struct { Body []byte HTTPResponse *http.Response @@ -14259,14 +14352,6 @@ func (r PostNodeActionPushPkgResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostNodeActionPushPkgResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostNodeActionScanCapabilitiesResponse struct { Body []byte HTTPResponse *http.Response @@ -14292,14 +14377,6 @@ func (r PostNodeActionScanCapabilitiesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostNodeActionScanCapabilitiesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostNodeActionSCSIScanResponse struct { Body []byte HTTPResponse *http.Response @@ -14325,14 +14402,6 @@ func (r PostNodeActionSCSIScanResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostNodeActionSCSIScanResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostNodeActionSysreportResponse struct { Body []byte HTTPResponse *http.Response @@ -14359,14 +14428,6 @@ func (r PostNodeActionSysreportResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostNodeActionSysreportResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostPeerActionUnfreezeResponse struct { Body []byte HTTPResponse *http.Response @@ -14393,14 +14454,6 @@ func (r PostPeerActionUnfreezeResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostPeerActionUnfreezeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeCapabilitiesResponse struct { Body []byte HTTPResponse *http.Response @@ -14427,14 +14480,6 @@ func (r GetNodeCapabilitiesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeCapabilitiesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -14461,14 +14506,6 @@ func (r GetNodeConfigResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeConfigResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PatchNodeConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -14495,14 +14532,6 @@ func (r PatchNodeConfigResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PatchNodeConfigResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeConfigFileResponse struct { Body []byte HTTPResponse *http.Response @@ -14528,14 +14557,6 @@ func (r GetNodeConfigFileResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeConfigFileResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PutNodeConfigFileResponse struct { Body []byte HTTPResponse *http.Response @@ -14563,14 +14584,6 @@ func (r PutNodeConfigFileResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PutNodeConfigFileResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeConfigKeywordsResponse struct { Body []byte HTTPResponse *http.Response @@ -14596,14 +14609,6 @@ func (r GetNodeConfigKeywordsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeConfigKeywordsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostDaemonRestartResponse struct { Body []byte HTTPResponse *http.Response @@ -14630,14 +14635,6 @@ func (r PostDaemonRestartResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostDaemonRestartResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostDaemonShutdownResponse struct { Body []byte HTTPResponse *http.Response @@ -14664,14 +14661,6 @@ func (r PostDaemonShutdownResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostDaemonShutdownResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostDaemonStopResponse struct { Body []byte HTTPResponse *http.Response @@ -14698,14 +14687,6 @@ func (r PostDaemonStopResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostDaemonStopResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostDaemonAuditResponse struct { Body []byte HTTPResponse *http.Response @@ -14732,14 +14713,6 @@ func (r PostDaemonAuditResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostDaemonAuditResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetDaemonDNSDumpResponse struct { Body []byte HTTPResponse *http.Response @@ -14765,14 +14738,6 @@ func (r GetDaemonDNSDumpResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDaemonDNSDumpResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetDaemonEventsResponse struct { Body []byte HTTPResponse *http.Response @@ -14798,14 +14763,6 @@ func (r GetDaemonEventsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDaemonEventsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostDaemonHeartbeatRestartResponse struct { Body []byte HTTPResponse *http.Response @@ -14832,14 +14789,6 @@ func (r PostDaemonHeartbeatRestartResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostDaemonHeartbeatRestartResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostDaemonHeartbeatSignResponse struct { Body []byte HTTPResponse *http.Response @@ -14866,14 +14815,6 @@ func (r PostDaemonHeartbeatSignResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostDaemonHeartbeatSignResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostDaemonHeartbeatStartResponse struct { Body []byte HTTPResponse *http.Response @@ -14900,14 +14841,6 @@ func (r PostDaemonHeartbeatStartResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostDaemonHeartbeatStartResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostDaemonHeartbeatStopResponse struct { Body []byte HTTPResponse *http.Response @@ -14934,14 +14867,6 @@ func (r PostDaemonHeartbeatStopResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostDaemonHeartbeatStopResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostDaemonHeartbeatWipeResponse struct { Body []byte HTTPResponse *http.Response @@ -14968,14 +14893,6 @@ func (r PostDaemonHeartbeatWipeResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostDaemonHeartbeatWipeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostDaemonListenerRestartResponse struct { Body []byte HTTPResponse *http.Response @@ -15002,14 +14919,6 @@ func (r PostDaemonListenerRestartResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostDaemonListenerRestartResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostDaemonListenerStartResponse struct { Body []byte HTTPResponse *http.Response @@ -15036,14 +14945,6 @@ func (r PostDaemonListenerStartResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostDaemonListenerStartResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostDaemonListenerStopResponse struct { Body []byte HTTPResponse *http.Response @@ -15070,14 +14971,6 @@ func (r PostDaemonListenerStopResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostDaemonListenerStopResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostDaemonListenerLogControlResponse struct { Body []byte HTTPResponse *http.Response @@ -15104,14 +14997,6 @@ func (r PostDaemonListenerLogControlResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostDaemonListenerLogControlResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostDaemonLogControlResponse struct { Body []byte HTTPResponse *http.Response @@ -15138,14 +15023,6 @@ func (r PostDaemonLogControlResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostDaemonLogControlResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteDaemonProcessResponse struct { Body []byte HTTPResponse *http.Response @@ -15171,14 +15048,6 @@ func (r DeleteDaemonProcessResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteDaemonProcessResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetDaemonProcessResponse struct { Body []byte HTTPResponse *http.Response @@ -15203,14 +15072,6 @@ func (r GetDaemonProcessResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDaemonProcessResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeDRBDAllocationResponse struct { Body []byte HTTPResponse *http.Response @@ -15235,14 +15096,6 @@ func (r GetNodeDRBDAllocationResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeDRBDAllocationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeDRBDConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -15269,14 +15122,6 @@ func (r GetNodeDRBDConfigResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeDRBDConfigResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostNodeDRBDConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -15302,14 +15147,6 @@ func (r PostNodeDRBDConfigResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostNodeDRBDConfigResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostNodeDRBDConnectResponse struct { Body []byte HTTPResponse *http.Response @@ -15336,14 +15173,6 @@ func (r PostNodeDRBDConnectResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostNodeDRBDConnectResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostNodeDRBDPrimaryResponse struct { Body []byte HTTPResponse *http.Response @@ -15370,14 +15199,6 @@ func (r PostNodeDRBDPrimaryResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostNodeDRBDPrimaryResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostNodeDRBDSecondaryResponse struct { Body []byte HTTPResponse *http.Response @@ -15404,14 +15225,6 @@ func (r PostNodeDRBDSecondaryResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostNodeDRBDSecondaryResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeDriverResponse struct { Body []byte HTTPResponse *http.Response @@ -15438,14 +15251,6 @@ func (r GetNodeDriverResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeDriverResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetInstanceResponse struct { Body []byte HTTPResponse *http.Response @@ -15472,14 +15277,6 @@ func (r GetInstanceResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetInstanceResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionBootResponse struct { Body []byte HTTPResponse *http.Response @@ -15506,14 +15303,6 @@ func (r PostInstanceActionBootResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionBootResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionDeleteResponse struct { Body []byte HTTPResponse *http.Response @@ -15540,14 +15329,6 @@ func (r PostInstanceActionDeleteResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionDeleteResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionFreezeResponse struct { Body []byte HTTPResponse *http.Response @@ -15574,14 +15355,6 @@ func (r PostInstanceActionFreezeResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionFreezeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionPGUpdateResponse struct { Body []byte HTTPResponse *http.Response @@ -15608,14 +15381,6 @@ func (r PostInstanceActionPGUpdateResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionPGUpdateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionProvisionResponse struct { Body []byte HTTPResponse *http.Response @@ -15642,14 +15407,6 @@ func (r PostInstanceActionProvisionResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionProvisionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionPRStartResponse struct { Body []byte HTTPResponse *http.Response @@ -15676,14 +15433,6 @@ func (r PostInstanceActionPRStartResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionPRStartResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionPRStopResponse struct { Body []byte HTTPResponse *http.Response @@ -15710,14 +15459,6 @@ func (r PostInstanceActionPRStopResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionPRStopResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionPushResourceInfoResponse struct { Body []byte HTTPResponse *http.Response @@ -15743,14 +15484,6 @@ func (r PostInstanceActionPushResourceInfoResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionPushResourceInfoResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionRestartResponse struct { Body []byte HTTPResponse *http.Response @@ -15777,14 +15510,6 @@ func (r PostInstanceActionRestartResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionRestartResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionRunResponse struct { Body []byte HTTPResponse *http.Response @@ -15811,14 +15536,6 @@ func (r PostInstanceActionRunResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionRunResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionShutdownResponse struct { Body []byte HTTPResponse *http.Response @@ -15845,14 +15562,6 @@ func (r PostInstanceActionShutdownResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionShutdownResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionStartResponse struct { Body []byte HTTPResponse *http.Response @@ -15879,14 +15588,6 @@ func (r PostInstanceActionStartResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionStartResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionStartStandbyResponse struct { Body []byte HTTPResponse *http.Response @@ -15913,14 +15614,6 @@ func (r PostInstanceActionStartStandbyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionStartStandbyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionStatusResponse struct { Body []byte HTTPResponse *http.Response @@ -15947,14 +15640,6 @@ func (r PostInstanceActionStatusResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionStatusResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionStopResponse struct { Body []byte HTTPResponse *http.Response @@ -15981,14 +15666,6 @@ func (r PostInstanceActionStopResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionStopResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionSyncIngestResponse struct { Body []byte HTTPResponse *http.Response @@ -16015,14 +15692,6 @@ func (r PostInstanceActionSyncIngestResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionSyncIngestResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionUnfreezeResponse struct { Body []byte HTTPResponse *http.Response @@ -16049,14 +15718,6 @@ func (r PostInstanceActionUnfreezeResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionUnfreezeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceActionUnprovisionResponse struct { Body []byte HTTPResponse *http.Response @@ -16083,14 +15744,6 @@ func (r PostInstanceActionUnprovisionResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceActionUnprovisionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceClearResponse struct { Body []byte HTTPResponse *http.Response @@ -16116,14 +15769,6 @@ func (r PostInstanceClearResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceClearResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetInstanceConfigFileResponse struct { Body []byte HTTPResponse *http.Response @@ -16149,14 +15794,6 @@ func (r GetInstanceConfigFileResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetInstanceConfigFileResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceResourceConsoleResponse struct { Body []byte HTTPResponse *http.Response @@ -16183,14 +15820,6 @@ func (r PostInstanceResourceConsoleResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceResourceConsoleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetInstanceContainerLogResponse struct { Body []byte HTTPResponse *http.Response @@ -16216,14 +15845,6 @@ func (r GetInstanceContainerLogResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetInstanceContainerLogResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetInstanceLogsResponse struct { Body []byte HTTPResponse *http.Response @@ -16249,14 +15870,6 @@ func (r GetInstanceLogsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetInstanceLogsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetInstanceResourceFileResponse struct { Body []byte HTTPResponse *http.Response @@ -16282,14 +15895,6 @@ func (r GetInstanceResourceFileResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetInstanceResourceFileResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetInstanceResourceInfoResponse struct { Body []byte HTTPResponse *http.Response @@ -16316,14 +15921,6 @@ func (r GetInstanceResourceInfoResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetInstanceResourceInfoResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetInstanceScheduleResponse struct { Body []byte HTTPResponse *http.Response @@ -16351,14 +15948,6 @@ func (r GetInstanceScheduleResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetInstanceScheduleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostInstanceStateFileResponse struct { Body []byte HTTPResponse *http.Response @@ -16386,14 +15975,6 @@ func (r PostInstanceStateFileResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostInstanceStateFileResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeLogsResponse struct { Body []byte HTTPResponse *http.Response @@ -16418,14 +15999,6 @@ func (r GetNodeLogsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeLogsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeMetricsResponse struct { Body []byte HTTPResponse *http.Response @@ -16451,14 +16024,6 @@ func (r GetNodeMetricsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeMetricsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodePingResponse struct { Body []byte HTTPResponse *http.Response @@ -16484,14 +16049,6 @@ func (r GetNodePingResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodePingResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeScheduleResponse struct { Body []byte HTTPResponse *http.Response @@ -16518,14 +16075,6 @@ func (r GetNodeScheduleResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeScheduleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeSSHHostkeysResponse struct { Body []byte HTTPResponse *http.Response @@ -16551,14 +16100,6 @@ func (r GetNodeSSHHostkeysResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeSSHHostkeysResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeSSHKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -16584,14 +16125,6 @@ func (r GetNodeSSHKeyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeSSHKeyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PutNodeSSHTrustResponse struct { Body []byte HTTPResponse *http.Response @@ -16616,14 +16149,6 @@ func (r PutNodeSSHTrustResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PutNodeSSHTrustResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeSystemDiskResponse struct { Body []byte HTTPResponse *http.Response @@ -16650,14 +16175,6 @@ func (r GetNodeSystemDiskResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeSystemDiskResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeSystemGroupResponse struct { Body []byte HTTPResponse *http.Response @@ -16684,14 +16201,6 @@ func (r GetNodeSystemGroupResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeSystemGroupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeSystemHardwareResponse struct { Body []byte HTTPResponse *http.Response @@ -16718,14 +16227,6 @@ func (r GetNodeSystemHardwareResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeSystemHardwareResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeSystemIPAddressResponse struct { Body []byte HTTPResponse *http.Response @@ -16752,14 +16253,6 @@ func (r GetNodeSystemIPAddressResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeSystemIPAddressResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeSystemPackageResponse struct { Body []byte HTTPResponse *http.Response @@ -16786,14 +16279,6 @@ func (r GetNodeSystemPackageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeSystemPackageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeSystemPropertyResponse struct { Body []byte HTTPResponse *http.Response @@ -16820,14 +16305,6 @@ func (r GetNodeSystemPropertyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeSystemPropertyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeSystemSANInitiatorResponse struct { Body []byte HTTPResponse *http.Response @@ -16854,14 +16331,6 @@ func (r GetNodeSystemSANInitiatorResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeSystemSANInitiatorResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeSystemSANPathResponse struct { Body []byte HTTPResponse *http.Response @@ -16888,14 +16357,6 @@ func (r GetNodeSystemSANPathResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeSystemSANPathResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetNodeSystemUserResponse struct { Body []byte HTTPResponse *http.Response @@ -16922,14 +16383,6 @@ func (r GetNodeSystemUserResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNodeSystemUserResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetObjectsResponse struct { Body []byte HTTPResponse *http.Response @@ -16956,14 +16409,6 @@ func (r GetObjectsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetObjectsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetObjectPathsResponse struct { Body []byte HTTPResponse *http.Response @@ -16989,14 +16434,6 @@ func (r GetObjectPathsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetObjectPathsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostSvcDisableResponse struct { Body []byte HTTPResponse *http.Response @@ -17022,14 +16459,6 @@ func (r PostSvcDisableResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostSvcDisableResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostSvcEnableResponse struct { Body []byte HTTPResponse *http.Response @@ -17055,14 +16484,6 @@ func (r PostSvcEnableResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostSvcEnableResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetObjectResponse struct { Body []byte HTTPResponse *http.Response @@ -17088,14 +16509,6 @@ func (r GetObjectResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetObjectResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostObjectActionAbortResponse struct { Body []byte HTTPResponse *http.Response @@ -17125,14 +16538,6 @@ func (r PostObjectActionAbortResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostObjectActionAbortResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostObjectActionDeleteResponse struct { Body []byte HTTPResponse *http.Response @@ -17162,14 +16567,6 @@ func (r PostObjectActionDeleteResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostObjectActionDeleteResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostObjectActionFreezeResponse struct { Body []byte HTTPResponse *http.Response @@ -17199,14 +16596,6 @@ func (r PostObjectActionFreezeResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostObjectActionFreezeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostObjectActionGivebackResponse struct { Body []byte HTTPResponse *http.Response @@ -17236,14 +16625,6 @@ func (r PostObjectActionGivebackResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostObjectActionGivebackResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostObjectActionProvisionResponse struct { Body []byte HTTPResponse *http.Response @@ -17273,14 +16654,6 @@ func (r PostObjectActionProvisionResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostObjectActionProvisionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostObjectActionPurgeResponse struct { Body []byte HTTPResponse *http.Response @@ -17310,14 +16683,6 @@ func (r PostObjectActionPurgeResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostObjectActionPurgeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostObjectActionRestartResponse struct { Body []byte HTTPResponse *http.Response @@ -17347,14 +16712,6 @@ func (r PostObjectActionRestartResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostObjectActionRestartResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostObjectActionStartResponse struct { Body []byte HTTPResponse *http.Response @@ -17384,14 +16741,6 @@ func (r PostObjectActionStartResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostObjectActionStartResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostObjectActionStopResponse struct { Body []byte HTTPResponse *http.Response @@ -17421,14 +16770,6 @@ func (r PostObjectActionStopResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostObjectActionStopResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostObjectActionSwitchResponse struct { Body []byte HTTPResponse *http.Response @@ -17458,14 +16799,6 @@ func (r PostObjectActionSwitchResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostObjectActionSwitchResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostObjectActionUnfreezeResponse struct { Body []byte HTTPResponse *http.Response @@ -17495,14 +16828,6 @@ func (r PostObjectActionUnfreezeResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostObjectActionUnfreezeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostObjectActionUnprovisionResponse struct { Body []byte HTTPResponse *http.Response @@ -17532,14 +16857,6 @@ func (r PostObjectActionUnprovisionResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostObjectActionUnprovisionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetObjectConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -17566,14 +16883,6 @@ func (r GetObjectConfigResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetObjectConfigResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PatchObjectConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -17601,14 +16910,6 @@ func (r PatchObjectConfigResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PatchObjectConfigResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetObjectConfigFileResponse struct { Body []byte HTTPResponse *http.Response @@ -17634,14 +16935,6 @@ func (r GetObjectConfigFileResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetObjectConfigFileResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostObjectConfigFileResponse struct { Body []byte HTTPResponse *http.Response @@ -17669,14 +16962,6 @@ func (r PostObjectConfigFileResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostObjectConfigFileResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PutObjectConfigFileResponse struct { Body []byte HTTPResponse *http.Response @@ -17704,14 +16989,6 @@ func (r PutObjectConfigFileResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PutObjectConfigFileResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetObjectConfigKeywordsResponse struct { Body []byte HTTPResponse *http.Response @@ -17737,14 +17014,6 @@ func (r GetObjectConfigKeywordsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetObjectConfigKeywordsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetObjectDataResponse struct { Body []byte HTTPResponse *http.Response @@ -17771,14 +17040,6 @@ func (r GetObjectDataResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetObjectDataResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PatchObjectDataResponse struct { Body []byte HTTPResponse *http.Response @@ -17807,14 +17068,6 @@ func (r PatchObjectDataResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PatchObjectDataResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteObjectDataKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -17840,14 +17093,6 @@ func (r DeleteObjectDataKeyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteObjectDataKeyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetObjectDataKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -17874,14 +17119,6 @@ func (r GetObjectDataKeyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetObjectDataKeyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostObjectDataKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -17908,14 +17145,6 @@ func (r PostObjectDataKeyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostObjectDataKeyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PutObjectDataKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -17942,14 +17171,6 @@ func (r PutObjectDataKeyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PutObjectDataKeyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetObjectDataKeysResponse struct { Body []byte HTTPResponse *http.Response @@ -17977,14 +17198,6 @@ func (r GetObjectDataKeysResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetObjectDataKeysResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetObjectResourceInfoResponse struct { Body []byte HTTPResponse *http.Response @@ -18012,14 +17225,6 @@ func (r GetObjectResourceInfoResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetObjectResourceInfoResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetObjectScheduleResponse struct { Body []byte HTTPResponse *http.Response @@ -18047,14 +17252,6 @@ func (r GetObjectScheduleResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetObjectScheduleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetSwaggerResponse struct { Body []byte HTTPResponse *http.Response @@ -18080,14 +17277,6 @@ func (r GetSwaggerResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSwaggerResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetPoolsResponse struct { Body []byte HTTPResponse *http.Response @@ -18113,14 +17302,6 @@ func (r GetPoolsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetPoolsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetPoolVolumesResponse struct { Body []byte HTTPResponse *http.Response @@ -18146,14 +17327,6 @@ func (r GetPoolVolumesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetPoolVolumesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetRelayMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -18179,14 +17352,6 @@ func (r GetRelayMessageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetRelayMessageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostRelayMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -18213,14 +17378,6 @@ func (r PostRelayMessageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostRelayMessageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetRelayStatusResponse struct { Body []byte HTTPResponse *http.Response @@ -18246,14 +17403,6 @@ func (r GetRelayStatusResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetRelayStatusResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetResourcesResponse struct { Body []byte HTTPResponse *http.Response @@ -18280,14 +17429,6 @@ func (r GetResourcesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetResourcesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - // GetArrayWithResponse request returning *GetArrayResponse func (c *ClientWithResponses) GetArrayWithResponse(ctx context.Context, params *GetArrayParams, reqEditors ...RequestEditorFn) (*GetArrayResponse, error) { rsp, err := c.GetArray(ctx, params, reqEditors...) diff --git a/daemon/api/codegen_server_gen.go b/daemon/api/codegen_server_gen.go index b49c8c2d7..1d3fe7e5e 100644 --- a/daemon/api/codegen_server_gen.go +++ b/daemon/api/codegen_server_gen.go @@ -1,11 +1,11 @@ // Package api provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT. +// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT. package api import ( "bytes" - "compress/flate" + "compress/gzip" "encoding/base64" "fmt" "net/http" @@ -481,15 +481,15 @@ type ServerInterfaceWrapper struct { func (w *ServerInterfaceWrapper) GetArray(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetArrayParams // ------------- Optional query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } @@ -512,27 +512,27 @@ func (w *ServerInterfaceWrapper) GetAuthInfo(ctx echo.Context) error { func (w *ServerInterfaceWrapper) PostAuthRefresh(ctx echo.Context) error { var err error - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostAuthRefreshParams // ------------- Optional query parameter "role" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "role", ctx.QueryParams(), ¶ms.Role, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "role", ctx.QueryParams(), ¶ms.Role) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter role: %s", err)) } // ------------- Optional query parameter "access_duration" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "access_duration", ctx.QueryParams(), ¶ms.AccessDuration, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "access_duration", ctx.QueryParams(), ¶ms.AccessDuration) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter access_duration: %s", err)) } // ------------- Optional query parameter "scope" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "scope", ctx.QueryParams(), ¶ms.Scope, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "scope", ctx.QueryParams(), ¶ms.Scope) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter scope: %s", err)) } @@ -546,50 +546,50 @@ func (w *ServerInterfaceWrapper) PostAuthRefresh(ctx echo.Context) error { func (w *ServerInterfaceWrapper) PostAuthToken(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostAuthTokenParams // ------------- Optional query parameter "role" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "role", ctx.QueryParams(), ¶ms.Role, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "role", ctx.QueryParams(), ¶ms.Role) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter role: %s", err)) } // ------------- Optional query parameter "access_duration" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "access_duration", ctx.QueryParams(), ¶ms.AccessDuration, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "access_duration", ctx.QueryParams(), ¶ms.AccessDuration) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter access_duration: %s", err)) } // ------------- Optional query parameter "subject" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subject", ctx.QueryParams(), ¶ms.Subject, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subject", ctx.QueryParams(), ¶ms.Subject) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subject: %s", err)) } // ------------- Optional query parameter "scope" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "scope", ctx.QueryParams(), ¶ms.Scope, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "scope", ctx.QueryParams(), ¶ms.Scope) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter scope: %s", err)) } // ------------- Optional query parameter "refresh" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "refresh", ctx.QueryParams(), ¶ms.Refresh, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "refresh", ctx.QueryParams(), ¶ms.Refresh) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter refresh: %s", err)) } // ------------- Optional query parameter "refresh_duration" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "refresh_duration", ctx.QueryParams(), ¶ms.RefreshDuration, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "refresh_duration", ctx.QueryParams(), ¶ms.RefreshDuration) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter refresh_duration: %s", err)) } @@ -603,9 +603,9 @@ func (w *ServerInterfaceWrapper) PostAuthToken(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetAuthWhoAmI(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetAuthWhoAmI(ctx) @@ -616,9 +616,9 @@ func (w *ServerInterfaceWrapper) GetAuthWhoAmI(ctx echo.Context) error { func (w *ServerInterfaceWrapper) PostClusterActionAbort(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostClusterActionAbort(ctx) @@ -629,9 +629,9 @@ func (w *ServerInterfaceWrapper) PostClusterActionAbort(ctx echo.Context) error func (w *ServerInterfaceWrapper) PostClusterActionFreeze(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostClusterActionFreeze(ctx) @@ -642,9 +642,9 @@ func (w *ServerInterfaceWrapper) PostClusterActionFreeze(ctx echo.Context) error func (w *ServerInterfaceWrapper) PostClusterActionUnfreeze(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostClusterActionUnfreeze(ctx) @@ -655,29 +655,29 @@ func (w *ServerInterfaceWrapper) PostClusterActionUnfreeze(ctx echo.Context) err func (w *ServerInterfaceWrapper) GetClusterConfig(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetClusterConfigParams // ------------- Optional query parameter "evaluate" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "evaluate", ctx.QueryParams(), ¶ms.Evaluate, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "evaluate", ctx.QueryParams(), ¶ms.Evaluate) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter evaluate: %s", err)) } // ------------- Optional query parameter "impersonate" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "impersonate", ctx.QueryParams(), ¶ms.Impersonate, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "impersonate", ctx.QueryParams(), ¶ms.Impersonate) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter impersonate: %s", err)) } // ------------- Optional query parameter "kw" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "kw", ctx.QueryParams(), ¶ms.Kw, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "kw", ctx.QueryParams(), ¶ms.Kw) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kw: %s", err)) } @@ -691,29 +691,29 @@ func (w *ServerInterfaceWrapper) GetClusterConfig(ctx echo.Context) error { func (w *ServerInterfaceWrapper) PatchClusterConfig(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PatchClusterConfigParams // ------------- Optional query parameter "delete" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "delete", ctx.QueryParams(), ¶ms.Delete, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "delete", ctx.QueryParams(), ¶ms.Delete) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter delete: %s", err)) } // ------------- Optional query parameter "unset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "unset", ctx.QueryParams(), ¶ms.Unset, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "unset", ctx.QueryParams(), ¶ms.Unset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter unset: %s", err)) } // ------------- Optional query parameter "set" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "set", ctx.QueryParams(), ¶ms.Set, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "set", ctx.QueryParams(), ¶ms.Set) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter set: %s", err)) } @@ -727,9 +727,9 @@ func (w *ServerInterfaceWrapper) PatchClusterConfig(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetClusterConfigFile(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetClusterConfigFile(ctx) @@ -740,9 +740,9 @@ func (w *ServerInterfaceWrapper) GetClusterConfigFile(ctx echo.Context) error { func (w *ServerInterfaceWrapper) PutClusterConfigFile(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PutClusterConfigFile(ctx) @@ -753,29 +753,29 @@ func (w *ServerInterfaceWrapper) PutClusterConfigFile(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetClusterConfigKeywords(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetClusterConfigKeywordsParams // ------------- Optional query parameter "driver" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "driver", ctx.QueryParams(), ¶ms.Driver, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "driver", ctx.QueryParams(), ¶ms.Driver) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter driver: %s", err)) } // ------------- Optional query parameter "section" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "section", ctx.QueryParams(), ¶ms.Section, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "section", ctx.QueryParams(), ¶ms.Section) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter section: %s", err)) } // ------------- Optional query parameter "option" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "option", ctx.QueryParams(), ¶ms.Option, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "option", ctx.QueryParams(), ¶ms.Option) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter option: %s", err)) } @@ -789,9 +789,9 @@ func (w *ServerInterfaceWrapper) GetClusterConfigKeywords(ctx echo.Context) erro func (w *ServerInterfaceWrapper) PostClusterHeartbeatRotate(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostClusterHeartbeatRotate(ctx) @@ -802,15 +802,15 @@ func (w *ServerInterfaceWrapper) PostClusterHeartbeatRotate(ctx echo.Context) er func (w *ServerInterfaceWrapper) PostClusterJoin(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostClusterJoinParams // ------------- Required query parameter "node" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "node", ctx.QueryParams(), ¶ms.Node, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "node", ctx.QueryParams(), ¶ms.Node) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter node: %s", err)) } @@ -824,15 +824,15 @@ func (w *ServerInterfaceWrapper) PostClusterJoin(ctx echo.Context) error { func (w *ServerInterfaceWrapper) PostClusterLeave(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostClusterLeaveParams // ------------- Required query parameter "node" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "node", ctx.QueryParams(), ¶ms.Node, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "node", ctx.QueryParams(), ¶ms.Node) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter node: %s", err)) } @@ -846,22 +846,22 @@ func (w *ServerInterfaceWrapper) PostClusterLeave(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetClusterStatus(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetClusterStatusParams // ------------- Optional query parameter "namespace" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "namespace", ctx.QueryParams(), ¶ms.Namespace, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "namespace", ctx.QueryParams(), ¶ms.Namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } // ------------- Optional query parameter "selector" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "selector", ctx.QueryParams(), ¶ms.Selector, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "selector", ctx.QueryParams(), ¶ms.Selector) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter selector: %s", err)) } @@ -875,22 +875,22 @@ func (w *ServerInterfaceWrapper) GetClusterStatus(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetInstances(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetInstancesParams // ------------- Optional query parameter "path" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "path", ctx.QueryParams(), ¶ms.Path, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "path", ctx.QueryParams(), ¶ms.Path) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter path: %s", err)) } // ------------- Optional query parameter "node" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "node", ctx.QueryParams(), ¶ms.Node, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "node", ctx.QueryParams(), ¶ms.Node) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter node: %s", err)) } @@ -906,7 +906,7 @@ func (w *ServerInterfaceWrapper) PostInstanceProgress(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -914,7 +914,7 @@ func (w *ServerInterfaceWrapper) PostInstanceProgress(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -922,14 +922,14 @@ func (w *ServerInterfaceWrapper) PostInstanceProgress(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostInstanceProgress(ctx, namespace, kind, name) @@ -942,7 +942,7 @@ func (w *ServerInterfaceWrapper) PostInstanceStatus(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -950,7 +950,7 @@ func (w *ServerInterfaceWrapper) PostInstanceStatus(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -958,14 +958,14 @@ func (w *ServerInterfaceWrapper) PostInstanceStatus(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostInstanceStatus(ctx, namespace, kind, name) @@ -976,15 +976,15 @@ func (w *ServerInterfaceWrapper) PostInstanceStatus(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetNetworks(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetNetworksParams // ------------- Optional query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } @@ -998,15 +998,15 @@ func (w *ServerInterfaceWrapper) GetNetworks(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetNetworkIP(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetNetworkIPParams // ------------- Optional query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } @@ -1020,15 +1020,15 @@ func (w *ServerInterfaceWrapper) GetNetworkIP(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetNodes(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetNodesParams // ------------- Optional query parameter "node" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "node", ctx.QueryParams(), ¶ms.Node, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "node", ctx.QueryParams(), ¶ms.Node) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter node: %s", err)) } @@ -1042,9 +1042,9 @@ func (w *ServerInterfaceWrapper) GetNodes(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetNodesInfo(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodesInfo(ctx) @@ -1057,14 +1057,14 @@ func (w *ServerInterfaceWrapper) PostPeerActionAbort(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostPeerActionAbort(ctx, nodename) @@ -1077,14 +1077,14 @@ func (w *ServerInterfaceWrapper) PostNodeActionClear(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostNodeActionClear(ctx, nodename) @@ -1097,20 +1097,20 @@ func (w *ServerInterfaceWrapper) PostPeerActionDequeue(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostPeerActionDequeueParams // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } @@ -1126,14 +1126,14 @@ func (w *ServerInterfaceWrapper) PostPeerActionDrain(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostPeerActionDrain(ctx, nodename) @@ -1146,20 +1146,20 @@ func (w *ServerInterfaceWrapper) PostPeerActionFreeze(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostPeerActionFreezeParams // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } @@ -1175,20 +1175,20 @@ func (w *ServerInterfaceWrapper) PostNodeActionPushAsset(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostNodeActionPushAssetParams // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } @@ -1204,20 +1204,20 @@ func (w *ServerInterfaceWrapper) PostNodeActionPushDisk(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostNodeActionPushDiskParams // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } @@ -1233,20 +1233,20 @@ func (w *ServerInterfaceWrapper) PostNodeActionPushPkg(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostNodeActionPushPkgParams // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } @@ -1262,20 +1262,20 @@ func (w *ServerInterfaceWrapper) PostNodeActionScanCapabilities(ctx echo.Context // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostNodeActionScanCapabilitiesParams // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } @@ -1291,41 +1291,41 @@ func (w *ServerInterfaceWrapper) PostNodeActionSCSIScan(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostNodeActionSCSIScanParams // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } // ------------- Optional query parameter "hba" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "hba", ctx.QueryParams(), ¶ms.Hba, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "hba", ctx.QueryParams(), ¶ms.Hba) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter hba: %s", err)) } // ------------- Optional query parameter "target" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "target", ctx.QueryParams(), ¶ms.Target, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "target", ctx.QueryParams(), ¶ms.Target) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter target: %s", err)) } // ------------- Optional query parameter "lun" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "lun", ctx.QueryParams(), ¶ms.Lun, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "lun", ctx.QueryParams(), ¶ms.Lun) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter lun: %s", err)) } @@ -1341,27 +1341,27 @@ func (w *ServerInterfaceWrapper) PostNodeActionSysreport(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostNodeActionSysreportParams // ------------- Optional query parameter "force" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "force", ctx.QueryParams(), ¶ms.Force, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "force", ctx.QueryParams(), ¶ms.Force) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter force: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } @@ -1377,20 +1377,20 @@ func (w *ServerInterfaceWrapper) PostPeerActionUnfreeze(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostPeerActionUnfreezeParams // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } @@ -1406,14 +1406,14 @@ func (w *ServerInterfaceWrapper) GetNodeCapabilities(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeCapabilities(ctx, nodename) @@ -1426,34 +1426,34 @@ func (w *ServerInterfaceWrapper) GetNodeConfig(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetNodeConfigParams // ------------- Optional query parameter "kw" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "kw", ctx.QueryParams(), ¶ms.Kw, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "kw", ctx.QueryParams(), ¶ms.Kw) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kw: %s", err)) } // ------------- Optional query parameter "evaluate" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "evaluate", ctx.QueryParams(), ¶ms.Evaluate, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "evaluate", ctx.QueryParams(), ¶ms.Evaluate) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter evaluate: %s", err)) } // ------------- Optional query parameter "impersonate" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "impersonate", ctx.QueryParams(), ¶ms.Impersonate, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "impersonate", ctx.QueryParams(), ¶ms.Impersonate) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter impersonate: %s", err)) } @@ -1469,34 +1469,34 @@ func (w *ServerInterfaceWrapper) PatchNodeConfig(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PatchNodeConfigParams // ------------- Optional query parameter "delete" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "delete", ctx.QueryParams(), ¶ms.Delete, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "delete", ctx.QueryParams(), ¶ms.Delete) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter delete: %s", err)) } // ------------- Optional query parameter "unset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "unset", ctx.QueryParams(), ¶ms.Unset, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "unset", ctx.QueryParams(), ¶ms.Unset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter unset: %s", err)) } // ------------- Optional query parameter "set" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "set", ctx.QueryParams(), ¶ms.Set, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "set", ctx.QueryParams(), ¶ms.Set) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter set: %s", err)) } @@ -1512,14 +1512,14 @@ func (w *ServerInterfaceWrapper) GetNodeConfigFile(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeConfigFile(ctx, nodename) @@ -1532,14 +1532,14 @@ func (w *ServerInterfaceWrapper) PutNodeConfigFile(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PutNodeConfigFile(ctx, nodename) @@ -1552,34 +1552,34 @@ func (w *ServerInterfaceWrapper) GetNodeConfigKeywords(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetNodeConfigKeywordsParams // ------------- Optional query parameter "driver" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "driver", ctx.QueryParams(), ¶ms.Driver, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "driver", ctx.QueryParams(), ¶ms.Driver) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter driver: %s", err)) } // ------------- Optional query parameter "section" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "section", ctx.QueryParams(), ¶ms.Section, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "section", ctx.QueryParams(), ¶ms.Section) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter section: %s", err)) } // ------------- Optional query parameter "option" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "option", ctx.QueryParams(), ¶ms.Option, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "option", ctx.QueryParams(), ¶ms.Option) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter option: %s", err)) } @@ -1595,14 +1595,14 @@ func (w *ServerInterfaceWrapper) PostDaemonRestart(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostDaemonRestart(ctx, nodename) @@ -1615,20 +1615,20 @@ func (w *ServerInterfaceWrapper) PostDaemonShutdown(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostDaemonShutdownParams // ------------- Optional query parameter "duration" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "duration", ctx.QueryParams(), ¶ms.Duration, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "duration", ctx.QueryParams(), ¶ms.Duration) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter duration: %s", err)) } @@ -1644,14 +1644,14 @@ func (w *ServerInterfaceWrapper) PostDaemonStop(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostDaemonStop(ctx, nodename) @@ -1664,34 +1664,34 @@ func (w *ServerInterfaceWrapper) PostDaemonAudit(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostDaemonAuditParams // ------------- Optional query parameter "level" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "level", ctx.QueryParams(), ¶ms.Level, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "level", ctx.QueryParams(), ¶ms.Level) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter level: %s", err)) } // ------------- Optional query parameter "sub" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "sub", ctx.QueryParams(), ¶ms.Sub, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "sub", ctx.QueryParams(), ¶ms.Sub) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter sub: %s", err)) } // ------------- Optional query parameter "preempt" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "preempt", ctx.QueryParams(), ¶ms.Preempt, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "preempt", ctx.QueryParams(), ¶ms.Preempt) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter preempt: %s", err)) } @@ -1707,14 +1707,14 @@ func (w *ServerInterfaceWrapper) GetDaemonDNSDump(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetDaemonDNSDump(ctx, nodename) @@ -1727,55 +1727,55 @@ func (w *ServerInterfaceWrapper) GetDaemonEvents(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetDaemonEventsParams // ------------- Optional query parameter "duration" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "duration", ctx.QueryParams(), ¶ms.Duration, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "duration", ctx.QueryParams(), ¶ms.Duration) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter duration: %s", err)) } // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", ctx.QueryParams(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: "int64"}) + err = runtime.BindQueryParameter("form", true, false, "limit", ctx.QueryParams(), ¶ms.Limit) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter limit: %s", err)) } // ------------- Optional query parameter "filter" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "filter", ctx.QueryParams(), ¶ms.Filter, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "filter", ctx.QueryParams(), ¶ms.Filter) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter filter: %s", err)) } // ------------- Optional query parameter "replay" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "replay", ctx.QueryParams(), ¶ms.Replay, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "replay", ctx.QueryParams(), ¶ms.Replay) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter replay: %s", err)) } // ------------- Optional query parameter "cache" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "cache", ctx.QueryParams(), ¶ms.Cache, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "cache", ctx.QueryParams(), ¶ms.Cache) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter cache: %s", err)) } // ------------- Optional query parameter "selector" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "selector", ctx.QueryParams(), ¶ms.Selector, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "selector", ctx.QueryParams(), ¶ms.Selector) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter selector: %s", err)) } @@ -1791,7 +1791,7 @@ func (w *ServerInterfaceWrapper) PostDaemonHeartbeatRestart(ctx echo.Context) er // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -1799,14 +1799,14 @@ func (w *ServerInterfaceWrapper) PostDaemonHeartbeatRestart(ctx echo.Context) er // ------------- Path parameter "name" ------------- var name InPathHeartbeatName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostDaemonHeartbeatRestart(ctx, nodename, name) @@ -1819,7 +1819,7 @@ func (w *ServerInterfaceWrapper) PostDaemonHeartbeatSign(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -1827,14 +1827,14 @@ func (w *ServerInterfaceWrapper) PostDaemonHeartbeatSign(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathHeartbeatName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostDaemonHeartbeatSign(ctx, nodename, name) @@ -1847,7 +1847,7 @@ func (w *ServerInterfaceWrapper) PostDaemonHeartbeatStart(ctx echo.Context) erro // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -1855,14 +1855,14 @@ func (w *ServerInterfaceWrapper) PostDaemonHeartbeatStart(ctx echo.Context) erro // ------------- Path parameter "name" ------------- var name InPathHeartbeatName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostDaemonHeartbeatStart(ctx, nodename, name) @@ -1875,7 +1875,7 @@ func (w *ServerInterfaceWrapper) PostDaemonHeartbeatStop(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -1883,14 +1883,14 @@ func (w *ServerInterfaceWrapper) PostDaemonHeartbeatStop(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathHeartbeatName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostDaemonHeartbeatStop(ctx, nodename, name) @@ -1903,7 +1903,7 @@ func (w *ServerInterfaceWrapper) PostDaemonHeartbeatWipe(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -1911,14 +1911,14 @@ func (w *ServerInterfaceWrapper) PostDaemonHeartbeatWipe(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathHeartbeatName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostDaemonHeartbeatWipe(ctx, nodename, name) @@ -1931,7 +1931,7 @@ func (w *ServerInterfaceWrapper) PostDaemonListenerRestart(ctx echo.Context) err // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -1939,14 +1939,14 @@ func (w *ServerInterfaceWrapper) PostDaemonListenerRestart(ctx echo.Context) err // ------------- Path parameter "name" ------------- var name InPathListenerName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostDaemonListenerRestart(ctx, nodename, name) @@ -1959,7 +1959,7 @@ func (w *ServerInterfaceWrapper) PostDaemonListenerStart(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -1967,14 +1967,14 @@ func (w *ServerInterfaceWrapper) PostDaemonListenerStart(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathListenerName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostDaemonListenerStart(ctx, nodename, name) @@ -1987,7 +1987,7 @@ func (w *ServerInterfaceWrapper) PostDaemonListenerStop(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -1995,14 +1995,14 @@ func (w *ServerInterfaceWrapper) PostDaemonListenerStop(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathListenerName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostDaemonListenerStop(ctx, nodename, name) @@ -2015,7 +2015,7 @@ func (w *ServerInterfaceWrapper) PostDaemonListenerLogControl(ctx echo.Context) // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -2023,14 +2023,14 @@ func (w *ServerInterfaceWrapper) PostDaemonListenerLogControl(ctx echo.Context) // ------------- Path parameter "name" ------------- var name InPathListenerName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostDaemonListenerLogControl(ctx, nodename, name) @@ -2043,14 +2043,14 @@ func (w *ServerInterfaceWrapper) PostDaemonLogControl(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostDaemonLogControl(ctx, nodename) @@ -2063,20 +2063,20 @@ func (w *ServerInterfaceWrapper) DeleteDaemonProcess(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params DeleteDaemonProcessParams // ------------- Optional query parameter "pid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "pid", ctx.QueryParams(), ¶ms.Pid, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "pid", ctx.QueryParams(), ¶ms.Pid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter pid: %s", err)) } @@ -2092,34 +2092,34 @@ func (w *ServerInterfaceWrapper) GetDaemonProcess(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetDaemonProcessParams // ------------- Optional query parameter "sub" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "sub", ctx.QueryParams(), ¶ms.Sub, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "sub", ctx.QueryParams(), ¶ms.Sub) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter sub: %s", err)) } // ------------- Optional query parameter "selector" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "selector", ctx.QueryParams(), ¶ms.Selector, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "selector", ctx.QueryParams(), ¶ms.Selector) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter selector: %s", err)) } // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } @@ -2135,14 +2135,14 @@ func (w *ServerInterfaceWrapper) GetNodeDRBDAllocation(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeDRBDAllocation(ctx, nodename) @@ -2155,20 +2155,20 @@ func (w *ServerInterfaceWrapper) GetNodeDRBDConfig(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetNodeDRBDConfigParams // ------------- Required query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } @@ -2184,20 +2184,20 @@ func (w *ServerInterfaceWrapper) PostNodeDRBDConfig(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostNodeDRBDConfigParams // ------------- Required query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } @@ -2213,27 +2213,27 @@ func (w *ServerInterfaceWrapper) PostNodeDRBDConnect(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostNodeDRBDConnectParams // ------------- Required query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } // ------------- Optional query parameter "node_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "node_id", ctx.QueryParams(), ¶ms.NodeId, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "node_id", ctx.QueryParams(), ¶ms.NodeId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter node_id: %s", err)) } @@ -2249,20 +2249,20 @@ func (w *ServerInterfaceWrapper) PostNodeDRBDPrimary(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostNodeDRBDPrimaryParams // ------------- Required query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } @@ -2278,20 +2278,20 @@ func (w *ServerInterfaceWrapper) PostNodeDRBDSecondary(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostNodeDRBDSecondaryParams // ------------- Required query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } @@ -2307,14 +2307,14 @@ func (w *ServerInterfaceWrapper) GetNodeDriver(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeDriver(ctx, nodename) @@ -2327,7 +2327,7 @@ func (w *ServerInterfaceWrapper) GetInstance(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -2335,7 +2335,7 @@ func (w *ServerInterfaceWrapper) GetInstance(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -2343,7 +2343,7 @@ func (w *ServerInterfaceWrapper) GetInstance(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -2351,14 +2351,14 @@ func (w *ServerInterfaceWrapper) GetInstance(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetInstance(ctx, nodename, namespace, kind, name) @@ -2371,7 +2371,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionBoot(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -2379,7 +2379,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionBoot(ctx echo.Context) error // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -2387,7 +2387,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionBoot(ctx echo.Context) error // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -2395,69 +2395,69 @@ func (w *ServerInterfaceWrapper) PostInstanceActionBoot(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionBootParams // ------------- Optional query parameter "slaves" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slaves: %s", err)) } // ------------- Optional query parameter "master" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "master", ctx.QueryParams(), ¶ms.Master, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "master", ctx.QueryParams(), ¶ms.Master) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter master: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "slave" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slave: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } // ------------- Optional query parameter "to" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "to", ctx.QueryParams(), ¶ms.To, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "to", ctx.QueryParams(), ¶ms.To) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter to: %s", err)) } @@ -2473,7 +2473,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionDelete(ctx echo.Context) erro // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -2481,7 +2481,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionDelete(ctx echo.Context) erro // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -2489,7 +2489,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionDelete(ctx echo.Context) erro // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -2497,20 +2497,20 @@ func (w *ServerInterfaceWrapper) PostInstanceActionDelete(ctx echo.Context) erro // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionDeleteParams // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } @@ -2526,7 +2526,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionFreeze(ctx echo.Context) erro // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -2534,7 +2534,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionFreeze(ctx echo.Context) erro // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -2542,7 +2542,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionFreeze(ctx echo.Context) erro // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -2550,41 +2550,41 @@ func (w *ServerInterfaceWrapper) PostInstanceActionFreeze(ctx echo.Context) erro // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionFreezeParams // ------------- Optional query parameter "slaves" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slaves: %s", err)) } // ------------- Optional query parameter "master" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "master", ctx.QueryParams(), ¶ms.Master, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "master", ctx.QueryParams(), ¶ms.Master) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter master: %s", err)) } // ------------- Optional query parameter "slave" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slave: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } @@ -2600,7 +2600,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPGUpdate(ctx echo.Context) er // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -2608,7 +2608,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPGUpdate(ctx echo.Context) er // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -2616,7 +2616,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPGUpdate(ctx echo.Context) er // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -2624,62 +2624,62 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPGUpdate(ctx echo.Context) er // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionPGUpdateParams // ------------- Optional query parameter "slaves" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slaves: %s", err)) } // ------------- Optional query parameter "master" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "master", ctx.QueryParams(), ¶ms.Master, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "master", ctx.QueryParams(), ¶ms.Master) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter master: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "slave" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slave: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } @@ -2695,7 +2695,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionProvision(ctx echo.Context) e // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -2703,7 +2703,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionProvision(ctx echo.Context) e // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -2711,7 +2711,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionProvision(ctx echo.Context) e // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -2719,97 +2719,97 @@ func (w *ServerInterfaceWrapper) PostInstanceActionProvision(ctx echo.Context) e // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionProvisionParams // ------------- Optional query parameter "slaves" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slaves: %s", err)) } // ------------- Optional query parameter "disable_rollback" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "disable_rollback", ctx.QueryParams(), ¶ms.DisableRollback, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "disable_rollback", ctx.QueryParams(), ¶ms.DisableRollback) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter disable_rollback: %s", err)) } // ------------- Optional query parameter "force" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "force", ctx.QueryParams(), ¶ms.Force, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "force", ctx.QueryParams(), ¶ms.Force) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter force: %s", err)) } // ------------- Optional query parameter "leader" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "leader", ctx.QueryParams(), ¶ms.Leader, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "leader", ctx.QueryParams(), ¶ms.Leader) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter leader: %s", err)) } // ------------- Optional query parameter "master" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "master", ctx.QueryParams(), ¶ms.Master, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "master", ctx.QueryParams(), ¶ms.Master) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter master: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "slave" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slave: %s", err)) } // ------------- Optional query parameter "state_only" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "state_only", ctx.QueryParams(), ¶ms.StateOnly, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "state_only", ctx.QueryParams(), ¶ms.StateOnly) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter state_only: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } // ------------- Optional query parameter "to" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "to", ctx.QueryParams(), ¶ms.To, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "to", ctx.QueryParams(), ¶ms.To) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter to: %s", err)) } @@ -2825,7 +2825,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPRStart(ctx echo.Context) err // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -2833,7 +2833,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPRStart(ctx echo.Context) err // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -2841,7 +2841,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPRStart(ctx echo.Context) err // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -2849,83 +2849,83 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPRStart(ctx echo.Context) err // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionPRStartParams // ------------- Optional query parameter "slaves" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slaves: %s", err)) } // ------------- Optional query parameter "disable_rollback" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "disable_rollback", ctx.QueryParams(), ¶ms.DisableRollback, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "disable_rollback", ctx.QueryParams(), ¶ms.DisableRollback) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter disable_rollback: %s", err)) } // ------------- Optional query parameter "force" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "force", ctx.QueryParams(), ¶ms.Force, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "force", ctx.QueryParams(), ¶ms.Force) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter force: %s", err)) } // ------------- Optional query parameter "master" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "master", ctx.QueryParams(), ¶ms.Master, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "master", ctx.QueryParams(), ¶ms.Master) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter master: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "slave" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slave: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } // ------------- Optional query parameter "to" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "to", ctx.QueryParams(), ¶ms.To, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "to", ctx.QueryParams(), ¶ms.To) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter to: %s", err)) } @@ -2941,7 +2941,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPRStop(ctx echo.Context) erro // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -2949,7 +2949,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPRStop(ctx echo.Context) erro // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -2957,7 +2957,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPRStop(ctx echo.Context) erro // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -2965,83 +2965,83 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPRStop(ctx echo.Context) erro // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionPRStopParams // ------------- Optional query parameter "slaves" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slaves: %s", err)) } // ------------- Optional query parameter "disable_rollback" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "disable_rollback", ctx.QueryParams(), ¶ms.DisableRollback, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "disable_rollback", ctx.QueryParams(), ¶ms.DisableRollback) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter disable_rollback: %s", err)) } // ------------- Optional query parameter "force" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "force", ctx.QueryParams(), ¶ms.Force, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "force", ctx.QueryParams(), ¶ms.Force) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter force: %s", err)) } // ------------- Optional query parameter "master" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "master", ctx.QueryParams(), ¶ms.Master, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "master", ctx.QueryParams(), ¶ms.Master) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter master: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "slave" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slave: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } // ------------- Optional query parameter "to" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "to", ctx.QueryParams(), ¶ms.To, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "to", ctx.QueryParams(), ¶ms.To) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter to: %s", err)) } @@ -3057,7 +3057,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPushResourceInfo(ctx echo.Con // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -3065,7 +3065,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPushResourceInfo(ctx echo.Con // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -3073,7 +3073,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPushResourceInfo(ctx echo.Con // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -3081,20 +3081,20 @@ func (w *ServerInterfaceWrapper) PostInstanceActionPushResourceInfo(ctx echo.Con // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionPushResourceInfoParams // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } @@ -3110,7 +3110,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionRestart(ctx echo.Context) err // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -3118,7 +3118,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionRestart(ctx echo.Context) err // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -3126,7 +3126,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionRestart(ctx echo.Context) err // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -3134,83 +3134,83 @@ func (w *ServerInterfaceWrapper) PostInstanceActionRestart(ctx echo.Context) err // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionRestartParams // ------------- Optional query parameter "slaves" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slaves: %s", err)) } // ------------- Optional query parameter "disable_rollback" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "disable_rollback", ctx.QueryParams(), ¶ms.DisableRollback, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "disable_rollback", ctx.QueryParams(), ¶ms.DisableRollback) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter disable_rollback: %s", err)) } // ------------- Optional query parameter "force" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "force", ctx.QueryParams(), ¶ms.Force, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "force", ctx.QueryParams(), ¶ms.Force) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter force: %s", err)) } // ------------- Optional query parameter "master" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "master", ctx.QueryParams(), ¶ms.Master, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "master", ctx.QueryParams(), ¶ms.Master) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter master: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "slave" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slave: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } // ------------- Optional query parameter "to" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "to", ctx.QueryParams(), ¶ms.To, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "to", ctx.QueryParams(), ¶ms.To) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter to: %s", err)) } @@ -3226,7 +3226,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionRun(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -3234,7 +3234,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionRun(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -3242,7 +3242,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionRun(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -3250,97 +3250,97 @@ func (w *ServerInterfaceWrapper) PostInstanceActionRun(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionRunParams // ------------- Optional query parameter "slaves" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slaves: %s", err)) } // ------------- Optional query parameter "confirm" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "confirm", ctx.QueryParams(), ¶ms.Confirm, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "confirm", ctx.QueryParams(), ¶ms.Confirm) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter confirm: %s", err)) } // ------------- Optional query parameter "cron" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "cron", ctx.QueryParams(), ¶ms.Cron, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "cron", ctx.QueryParams(), ¶ms.Cron) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter cron: %s", err)) } // ------------- Optional query parameter "force" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "force", ctx.QueryParams(), ¶ms.Force, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "force", ctx.QueryParams(), ¶ms.Force) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter force: %s", err)) } // ------------- Optional query parameter "master" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "master", ctx.QueryParams(), ¶ms.Master, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "master", ctx.QueryParams(), ¶ms.Master) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter master: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "slave" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slave: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } // ------------- Optional query parameter "to" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "to", ctx.QueryParams(), ¶ms.To, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "to", ctx.QueryParams(), ¶ms.To) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter to: %s", err)) } // ------------- Optional query parameter "env" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "env", ctx.QueryParams(), ¶ms.Env, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "env", ctx.QueryParams(), ¶ms.Env) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter env: %s", err)) } @@ -3356,7 +3356,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionShutdown(ctx echo.Context) er // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -3364,7 +3364,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionShutdown(ctx echo.Context) er // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -3372,7 +3372,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionShutdown(ctx echo.Context) er // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -3380,76 +3380,76 @@ func (w *ServerInterfaceWrapper) PostInstanceActionShutdown(ctx echo.Context) er // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionShutdownParams // ------------- Optional query parameter "slaves" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slaves: %s", err)) } // ------------- Optional query parameter "force" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "force", ctx.QueryParams(), ¶ms.Force, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "force", ctx.QueryParams(), ¶ms.Force) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter force: %s", err)) } // ------------- Optional query parameter "master" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "master", ctx.QueryParams(), ¶ms.Master, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "master", ctx.QueryParams(), ¶ms.Master) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter master: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "slave" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slave: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } // ------------- Optional query parameter "to" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "to", ctx.QueryParams(), ¶ms.To, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "to", ctx.QueryParams(), ¶ms.To) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter to: %s", err)) } @@ -3465,7 +3465,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStart(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -3473,7 +3473,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStart(ctx echo.Context) error // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -3481,7 +3481,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStart(ctx echo.Context) error // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -3489,83 +3489,83 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStart(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionStartParams // ------------- Optional query parameter "slaves" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slaves: %s", err)) } // ------------- Optional query parameter "disable_rollback" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "disable_rollback", ctx.QueryParams(), ¶ms.DisableRollback, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "disable_rollback", ctx.QueryParams(), ¶ms.DisableRollback) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter disable_rollback: %s", err)) } // ------------- Optional query parameter "force" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "force", ctx.QueryParams(), ¶ms.Force, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "force", ctx.QueryParams(), ¶ms.Force) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter force: %s", err)) } // ------------- Optional query parameter "master" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "master", ctx.QueryParams(), ¶ms.Master, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "master", ctx.QueryParams(), ¶ms.Master) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter master: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "slave" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slave: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } // ------------- Optional query parameter "to" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "to", ctx.QueryParams(), ¶ms.To, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "to", ctx.QueryParams(), ¶ms.To) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter to: %s", err)) } @@ -3581,7 +3581,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStartStandby(ctx echo.Context // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -3589,7 +3589,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStartStandby(ctx echo.Context // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -3597,7 +3597,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStartStandby(ctx echo.Context // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -3605,83 +3605,83 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStartStandby(ctx echo.Context // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionStartStandbyParams // ------------- Optional query parameter "slaves" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slaves: %s", err)) } // ------------- Optional query parameter "disable_rollback" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "disable_rollback", ctx.QueryParams(), ¶ms.DisableRollback, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "disable_rollback", ctx.QueryParams(), ¶ms.DisableRollback) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter disable_rollback: %s", err)) } // ------------- Optional query parameter "force" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "force", ctx.QueryParams(), ¶ms.Force, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "force", ctx.QueryParams(), ¶ms.Force) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter force: %s", err)) } // ------------- Optional query parameter "master" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "master", ctx.QueryParams(), ¶ms.Master, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "master", ctx.QueryParams(), ¶ms.Master) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter master: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "slave" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slave: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } // ------------- Optional query parameter "to" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "to", ctx.QueryParams(), ¶ms.To, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "to", ctx.QueryParams(), ¶ms.To) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter to: %s", err)) } @@ -3697,7 +3697,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStatus(ctx echo.Context) erro // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -3705,7 +3705,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStatus(ctx echo.Context) erro // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -3713,7 +3713,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStatus(ctx echo.Context) erro // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -3721,20 +3721,20 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStatus(ctx echo.Context) erro // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionStatusParams // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } @@ -3750,7 +3750,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStop(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -3758,7 +3758,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStop(ctx echo.Context) error // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -3766,7 +3766,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStop(ctx echo.Context) error // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -3774,83 +3774,83 @@ func (w *ServerInterfaceWrapper) PostInstanceActionStop(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionStopParams // ------------- Optional query parameter "slaves" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slaves: %s", err)) } // ------------- Optional query parameter "force" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "force", ctx.QueryParams(), ¶ms.Force, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "force", ctx.QueryParams(), ¶ms.Force) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter force: %s", err)) } // ------------- Optional query parameter "master" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "master", ctx.QueryParams(), ¶ms.Master, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "master", ctx.QueryParams(), ¶ms.Master) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter master: %s", err)) } // ------------- Optional query parameter "move-to" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "move-to", ctx.QueryParams(), ¶ms.MoveTo, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "move-to", ctx.QueryParams(), ¶ms.MoveTo) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter move-to: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "slave" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slave: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } // ------------- Optional query parameter "to" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "to", ctx.QueryParams(), ¶ms.To, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "to", ctx.QueryParams(), ¶ms.To) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter to: %s", err)) } @@ -3866,7 +3866,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionSyncIngest(ctx echo.Context) // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -3874,7 +3874,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionSyncIngest(ctx echo.Context) // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -3882,7 +3882,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionSyncIngest(ctx echo.Context) // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -3890,41 +3890,41 @@ func (w *ServerInterfaceWrapper) PostInstanceActionSyncIngest(ctx echo.Context) // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionSyncIngestParams // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } @@ -3940,7 +3940,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionUnfreeze(ctx echo.Context) er // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -3948,7 +3948,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionUnfreeze(ctx echo.Context) er // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -3956,7 +3956,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionUnfreeze(ctx echo.Context) er // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -3964,41 +3964,41 @@ func (w *ServerInterfaceWrapper) PostInstanceActionUnfreeze(ctx echo.Context) er // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionUnfreezeParams // ------------- Optional query parameter "slaves" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slaves: %s", err)) } // ------------- Optional query parameter "master" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "master", ctx.QueryParams(), ¶ms.Master, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "master", ctx.QueryParams(), ¶ms.Master) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter master: %s", err)) } // ------------- Optional query parameter "slave" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slave: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } @@ -4014,7 +4014,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionUnprovision(ctx echo.Context) // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -4022,7 +4022,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionUnprovision(ctx echo.Context) // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -4030,7 +4030,7 @@ func (w *ServerInterfaceWrapper) PostInstanceActionUnprovision(ctx echo.Context) // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -4038,90 +4038,90 @@ func (w *ServerInterfaceWrapper) PostInstanceActionUnprovision(ctx echo.Context) // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceActionUnprovisionParams // ------------- Optional query parameter "slaves" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slaves", ctx.QueryParams(), ¶ms.Slaves) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slaves: %s", err)) } // ------------- Optional query parameter "force" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "force", ctx.QueryParams(), ¶ms.Force, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "force", ctx.QueryParams(), ¶ms.Force) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter force: %s", err)) } // ------------- Optional query parameter "leader" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "leader", ctx.QueryParams(), ¶ms.Leader, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "leader", ctx.QueryParams(), ¶ms.Leader) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter leader: %s", err)) } // ------------- Optional query parameter "master" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "master", ctx.QueryParams(), ¶ms.Master, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "master", ctx.QueryParams(), ¶ms.Master) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter master: %s", err)) } // ------------- Optional query parameter "session_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "session_id", ctx.QueryParams(), ¶ms.SessionId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter session_id: %s", err)) } // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "state_only" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "state_only", ctx.QueryParams(), ¶ms.StateOnly, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "state_only", ctx.QueryParams(), ¶ms.StateOnly) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter state_only: %s", err)) } // ------------- Optional query parameter "slave" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "slave", ctx.QueryParams(), ¶ms.Slave) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter slave: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } // ------------- Optional query parameter "to" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "to", ctx.QueryParams(), ¶ms.To, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "to", ctx.QueryParams(), ¶ms.To) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter to: %s", err)) } @@ -4137,7 +4137,7 @@ func (w *ServerInterfaceWrapper) PostInstanceClear(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -4145,7 +4145,7 @@ func (w *ServerInterfaceWrapper) PostInstanceClear(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -4153,7 +4153,7 @@ func (w *ServerInterfaceWrapper) PostInstanceClear(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -4161,14 +4161,14 @@ func (w *ServerInterfaceWrapper) PostInstanceClear(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostInstanceClear(ctx, nodename, namespace, kind, name) @@ -4181,7 +4181,7 @@ func (w *ServerInterfaceWrapper) GetInstanceConfigFile(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -4189,7 +4189,7 @@ func (w *ServerInterfaceWrapper) GetInstanceConfigFile(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -4197,7 +4197,7 @@ func (w *ServerInterfaceWrapper) GetInstanceConfigFile(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -4205,14 +4205,14 @@ func (w *ServerInterfaceWrapper) GetInstanceConfigFile(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetInstanceConfigFile(ctx, nodename, namespace, kind, name) @@ -4225,7 +4225,7 @@ func (w *ServerInterfaceWrapper) PostInstanceResourceConsole(ctx echo.Context) e // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -4233,7 +4233,7 @@ func (w *ServerInterfaceWrapper) PostInstanceResourceConsole(ctx echo.Context) e // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -4241,7 +4241,7 @@ func (w *ServerInterfaceWrapper) PostInstanceResourceConsole(ctx echo.Context) e // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -4249,34 +4249,34 @@ func (w *ServerInterfaceWrapper) PostInstanceResourceConsole(ctx echo.Context) e // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostInstanceResourceConsoleParams // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "greet_timeout" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "greet_timeout", ctx.QueryParams(), ¶ms.GreetTimeout, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "greet_timeout", ctx.QueryParams(), ¶ms.GreetTimeout) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter greet_timeout: %s", err)) } // ------------- Optional query parameter "seats" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "seats", ctx.QueryParams(), ¶ms.Seats, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "seats", ctx.QueryParams(), ¶ms.Seats) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter seats: %s", err)) } @@ -4292,7 +4292,7 @@ func (w *ServerInterfaceWrapper) GetInstanceContainerLog(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -4300,7 +4300,7 @@ func (w *ServerInterfaceWrapper) GetInstanceContainerLog(ctx echo.Context) error // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -4308,7 +4308,7 @@ func (w *ServerInterfaceWrapper) GetInstanceContainerLog(ctx echo.Context) error // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -4316,34 +4316,34 @@ func (w *ServerInterfaceWrapper) GetInstanceContainerLog(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetInstanceContainerLogParams // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "follow" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "follow", ctx.QueryParams(), ¶ms.Follow, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "follow", ctx.QueryParams(), ¶ms.Follow) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter follow: %s", err)) } // ------------- Optional query parameter "lines" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "lines", ctx.QueryParams(), ¶ms.Lines, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "lines", ctx.QueryParams(), ¶ms.Lines) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter lines: %s", err)) } @@ -4359,7 +4359,7 @@ func (w *ServerInterfaceWrapper) GetInstanceLogs(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -4367,7 +4367,7 @@ func (w *ServerInterfaceWrapper) GetInstanceLogs(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -4375,7 +4375,7 @@ func (w *ServerInterfaceWrapper) GetInstanceLogs(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -4383,41 +4383,41 @@ func (w *ServerInterfaceWrapper) GetInstanceLogs(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetInstanceLogsParams // ------------- Optional query parameter "filter" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "filter", ctx.QueryParams(), ¶ms.Filter, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "filter", ctx.QueryParams(), ¶ms.Filter) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter filter: %s", err)) } // ------------- Optional query parameter "grep" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "grep", ctx.QueryParams(), ¶ms.Grep, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "grep", ctx.QueryParams(), ¶ms.Grep) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter grep: %s", err)) } // ------------- Optional query parameter "follow" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "follow", ctx.QueryParams(), ¶ms.Follow, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "follow", ctx.QueryParams(), ¶ms.Follow) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter follow: %s", err)) } // ------------- Optional query parameter "lines" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "lines", ctx.QueryParams(), ¶ms.Lines, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "lines", ctx.QueryParams(), ¶ms.Lines) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter lines: %s", err)) } @@ -4433,7 +4433,7 @@ func (w *ServerInterfaceWrapper) GetInstanceResourceFile(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -4441,7 +4441,7 @@ func (w *ServerInterfaceWrapper) GetInstanceResourceFile(ctx echo.Context) error // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -4449,7 +4449,7 @@ func (w *ServerInterfaceWrapper) GetInstanceResourceFile(ctx echo.Context) error // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -4457,27 +4457,27 @@ func (w *ServerInterfaceWrapper) GetInstanceResourceFile(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetInstanceResourceFileParams // ------------- Required query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } // ------------- Required query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } @@ -4493,7 +4493,7 @@ func (w *ServerInterfaceWrapper) GetInstanceResourceInfo(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -4501,7 +4501,7 @@ func (w *ServerInterfaceWrapper) GetInstanceResourceInfo(ctx echo.Context) error // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -4509,7 +4509,7 @@ func (w *ServerInterfaceWrapper) GetInstanceResourceInfo(ctx echo.Context) error // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -4517,14 +4517,14 @@ func (w *ServerInterfaceWrapper) GetInstanceResourceInfo(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetInstanceResourceInfo(ctx, nodename, namespace, kind, name) @@ -4537,7 +4537,7 @@ func (w *ServerInterfaceWrapper) GetInstanceSchedule(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -4545,7 +4545,7 @@ func (w *ServerInterfaceWrapper) GetInstanceSchedule(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -4553,7 +4553,7 @@ func (w *ServerInterfaceWrapper) GetInstanceSchedule(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -4561,14 +4561,14 @@ func (w *ServerInterfaceWrapper) GetInstanceSchedule(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetInstanceSchedule(ctx, nodename, namespace, kind, name) @@ -4581,7 +4581,7 @@ func (w *ServerInterfaceWrapper) PostInstanceStateFile(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } @@ -4589,7 +4589,7 @@ func (w *ServerInterfaceWrapper) PostInstanceStateFile(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -4597,7 +4597,7 @@ func (w *ServerInterfaceWrapper) PostInstanceStateFile(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -4605,14 +4605,14 @@ func (w *ServerInterfaceWrapper) PostInstanceStateFile(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostInstanceStateFile(ctx, nodename, namespace, kind, name) @@ -4625,48 +4625,48 @@ func (w *ServerInterfaceWrapper) GetNodeLogs(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetNodeLogsParams // ------------- Optional query parameter "filter" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "filter", ctx.QueryParams(), ¶ms.Filter, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "filter", ctx.QueryParams(), ¶ms.Filter) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter filter: %s", err)) } // ------------- Optional query parameter "grep" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "grep", ctx.QueryParams(), ¶ms.Grep, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "grep", ctx.QueryParams(), ¶ms.Grep) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter grep: %s", err)) } // ------------- Optional query parameter "follow" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "follow", ctx.QueryParams(), ¶ms.Follow, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "follow", ctx.QueryParams(), ¶ms.Follow) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter follow: %s", err)) } // ------------- Optional query parameter "lines" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "lines", ctx.QueryParams(), ¶ms.Lines, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "lines", ctx.QueryParams(), ¶ms.Lines) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter lines: %s", err)) } // ------------- Optional query parameter "paths" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "paths", ctx.QueryParams(), ¶ms.Paths, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "paths", ctx.QueryParams(), ¶ms.Paths) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter paths: %s", err)) } @@ -4682,14 +4682,14 @@ func (w *ServerInterfaceWrapper) GetNodeMetrics(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeMetrics(ctx, nodename) @@ -4702,14 +4702,14 @@ func (w *ServerInterfaceWrapper) GetNodePing(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodePing(ctx, nodename) @@ -4722,14 +4722,14 @@ func (w *ServerInterfaceWrapper) GetNodeSchedule(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeSchedule(ctx, nodename) @@ -4742,14 +4742,14 @@ func (w *ServerInterfaceWrapper) GetNodeSSHHostkeys(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeSSHHostkeys(ctx, nodename) @@ -4762,14 +4762,14 @@ func (w *ServerInterfaceWrapper) GetNodeSSHKey(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeSSHKey(ctx, nodename) @@ -4782,14 +4782,14 @@ func (w *ServerInterfaceWrapper) PutNodeSSHTrust(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PutNodeSSHTrust(ctx, nodename) @@ -4802,14 +4802,14 @@ func (w *ServerInterfaceWrapper) GetNodeSystemDisk(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeSystemDisk(ctx, nodename) @@ -4822,14 +4822,14 @@ func (w *ServerInterfaceWrapper) GetNodeSystemGroup(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeSystemGroup(ctx, nodename) @@ -4842,14 +4842,14 @@ func (w *ServerInterfaceWrapper) GetNodeSystemHardware(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeSystemHardware(ctx, nodename) @@ -4862,14 +4862,14 @@ func (w *ServerInterfaceWrapper) GetNodeSystemIPAddress(ctx echo.Context) error // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeSystemIPAddress(ctx, nodename) @@ -4882,14 +4882,14 @@ func (w *ServerInterfaceWrapper) GetNodeSystemPackage(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeSystemPackage(ctx, nodename) @@ -4902,14 +4902,14 @@ func (w *ServerInterfaceWrapper) GetNodeSystemProperty(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeSystemProperty(ctx, nodename) @@ -4922,14 +4922,14 @@ func (w *ServerInterfaceWrapper) GetNodeSystemSANInitiator(ctx echo.Context) err // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeSystemSANInitiator(ctx, nodename) @@ -4942,14 +4942,14 @@ func (w *ServerInterfaceWrapper) GetNodeSystemSANPath(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeSystemSANPath(ctx, nodename) @@ -4962,14 +4962,14 @@ func (w *ServerInterfaceWrapper) GetNodeSystemUser(ctx echo.Context) error { // ------------- Path parameter "nodename" ------------- var nodename InPathNodeName - err = runtime.BindStyledParameterWithOptions("simple", "nodename", ctx.Param("nodename"), &nodename, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "nodename", runtime.ParamLocationPath, ctx.Param("nodename"), &nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetNodeSystemUser(ctx, nodename) @@ -4980,15 +4980,15 @@ func (w *ServerInterfaceWrapper) GetNodeSystemUser(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetObjects(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetObjectsParams // ------------- Optional query parameter "path" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "path", ctx.QueryParams(), ¶ms.Path, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "path", ctx.QueryParams(), ¶ms.Path) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter path: %s", err)) } @@ -5002,15 +5002,15 @@ func (w *ServerInterfaceWrapper) GetObjects(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetObjectPaths(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetObjectPathsParams // ------------- Required query parameter "path" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "path", ctx.QueryParams(), ¶ms.Path, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "path", ctx.QueryParams(), ¶ms.Path) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter path: %s", err)) } @@ -5026,7 +5026,7 @@ func (w *ServerInterfaceWrapper) PostSvcDisable(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5034,34 +5034,34 @@ func (w *ServerInterfaceWrapper) PostSvcDisable(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostSvcDisableParams // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } @@ -5077,7 +5077,7 @@ func (w *ServerInterfaceWrapper) PostSvcEnable(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5085,34 +5085,34 @@ func (w *ServerInterfaceWrapper) PostSvcEnable(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostSvcEnableParams // ------------- Optional query parameter "rid" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "rid", ctx.QueryParams(), ¶ms.Rid) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter rid: %s", err)) } // ------------- Optional query parameter "subset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "subset", ctx.QueryParams(), ¶ms.Subset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter subset: %s", err)) } // ------------- Optional query parameter "tag" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tag", ctx.QueryParams(), ¶ms.Tag) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag: %s", err)) } @@ -5128,7 +5128,7 @@ func (w *ServerInterfaceWrapper) GetObject(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5136,7 +5136,7 @@ func (w *ServerInterfaceWrapper) GetObject(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5144,14 +5144,14 @@ func (w *ServerInterfaceWrapper) GetObject(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetObject(ctx, namespace, kind, name) @@ -5164,7 +5164,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionAbort(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5172,7 +5172,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionAbort(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5180,14 +5180,14 @@ func (w *ServerInterfaceWrapper) PostObjectActionAbort(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostObjectActionAbort(ctx, namespace, kind, name) @@ -5200,7 +5200,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionDelete(ctx echo.Context) error // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5208,7 +5208,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionDelete(ctx echo.Context) error // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5216,14 +5216,14 @@ func (w *ServerInterfaceWrapper) PostObjectActionDelete(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostObjectActionDelete(ctx, namespace, kind, name) @@ -5236,7 +5236,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionFreeze(ctx echo.Context) error // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5244,7 +5244,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionFreeze(ctx echo.Context) error // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5252,14 +5252,14 @@ func (w *ServerInterfaceWrapper) PostObjectActionFreeze(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostObjectActionFreeze(ctx, namespace, kind, name) @@ -5272,7 +5272,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionGiveback(ctx echo.Context) erro // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5280,7 +5280,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionGiveback(ctx echo.Context) erro // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5288,14 +5288,14 @@ func (w *ServerInterfaceWrapper) PostObjectActionGiveback(ctx echo.Context) erro // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostObjectActionGiveback(ctx, namespace, kind, name) @@ -5308,7 +5308,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionProvision(ctx echo.Context) err // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5316,7 +5316,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionProvision(ctx echo.Context) err // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5324,14 +5324,14 @@ func (w *ServerInterfaceWrapper) PostObjectActionProvision(ctx echo.Context) err // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostObjectActionProvision(ctx, namespace, kind, name) @@ -5344,7 +5344,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionPurge(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5352,7 +5352,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionPurge(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5360,14 +5360,14 @@ func (w *ServerInterfaceWrapper) PostObjectActionPurge(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostObjectActionPurge(ctx, namespace, kind, name) @@ -5380,7 +5380,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionRestart(ctx echo.Context) error // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5388,7 +5388,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionRestart(ctx echo.Context) error // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5396,14 +5396,14 @@ func (w *ServerInterfaceWrapper) PostObjectActionRestart(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostObjectActionRestart(ctx, namespace, kind, name) @@ -5416,7 +5416,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionStart(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5424,7 +5424,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionStart(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5432,14 +5432,14 @@ func (w *ServerInterfaceWrapper) PostObjectActionStart(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostObjectActionStart(ctx, namespace, kind, name) @@ -5452,7 +5452,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionStop(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5460,7 +5460,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionStop(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5468,14 +5468,14 @@ func (w *ServerInterfaceWrapper) PostObjectActionStop(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostObjectActionStop(ctx, namespace, kind, name) @@ -5488,7 +5488,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionSwitch(ctx echo.Context) error // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5496,7 +5496,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionSwitch(ctx echo.Context) error // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5504,14 +5504,14 @@ func (w *ServerInterfaceWrapper) PostObjectActionSwitch(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostObjectActionSwitch(ctx, namespace, kind, name) @@ -5524,7 +5524,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionUnfreeze(ctx echo.Context) erro // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5532,7 +5532,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionUnfreeze(ctx echo.Context) erro // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5540,14 +5540,14 @@ func (w *ServerInterfaceWrapper) PostObjectActionUnfreeze(ctx echo.Context) erro // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostObjectActionUnfreeze(ctx, namespace, kind, name) @@ -5560,7 +5560,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionUnprovision(ctx echo.Context) e // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5568,7 +5568,7 @@ func (w *ServerInterfaceWrapper) PostObjectActionUnprovision(ctx echo.Context) e // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5576,14 +5576,14 @@ func (w *ServerInterfaceWrapper) PostObjectActionUnprovision(ctx echo.Context) e // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostObjectActionUnprovision(ctx, namespace, kind, name) @@ -5596,7 +5596,7 @@ func (w *ServerInterfaceWrapper) GetObjectConfig(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5604,7 +5604,7 @@ func (w *ServerInterfaceWrapper) GetObjectConfig(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5612,34 +5612,34 @@ func (w *ServerInterfaceWrapper) GetObjectConfig(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetObjectConfigParams // ------------- Optional query parameter "evaluate" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "evaluate", ctx.QueryParams(), ¶ms.Evaluate, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "evaluate", ctx.QueryParams(), ¶ms.Evaluate) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter evaluate: %s", err)) } // ------------- Optional query parameter "impersonate" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "impersonate", ctx.QueryParams(), ¶ms.Impersonate, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "impersonate", ctx.QueryParams(), ¶ms.Impersonate) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter impersonate: %s", err)) } // ------------- Optional query parameter "kw" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "kw", ctx.QueryParams(), ¶ms.Kw, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "kw", ctx.QueryParams(), ¶ms.Kw) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kw: %s", err)) } @@ -5655,7 +5655,7 @@ func (w *ServerInterfaceWrapper) PatchObjectConfig(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5663,7 +5663,7 @@ func (w *ServerInterfaceWrapper) PatchObjectConfig(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5671,34 +5671,34 @@ func (w *ServerInterfaceWrapper) PatchObjectConfig(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PatchObjectConfigParams // ------------- Optional query parameter "delete" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "delete", ctx.QueryParams(), ¶ms.Delete, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "delete", ctx.QueryParams(), ¶ms.Delete) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter delete: %s", err)) } // ------------- Optional query parameter "unset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "unset", ctx.QueryParams(), ¶ms.Unset, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "unset", ctx.QueryParams(), ¶ms.Unset) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter unset: %s", err)) } // ------------- Optional query parameter "set" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "set", ctx.QueryParams(), ¶ms.Set, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "set", ctx.QueryParams(), ¶ms.Set) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter set: %s", err)) } @@ -5714,7 +5714,7 @@ func (w *ServerInterfaceWrapper) GetObjectConfigFile(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5722,7 +5722,7 @@ func (w *ServerInterfaceWrapper) GetObjectConfigFile(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5730,14 +5730,14 @@ func (w *ServerInterfaceWrapper) GetObjectConfigFile(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetObjectConfigFile(ctx, namespace, kind, name) @@ -5750,7 +5750,7 @@ func (w *ServerInterfaceWrapper) PostObjectConfigFile(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5758,7 +5758,7 @@ func (w *ServerInterfaceWrapper) PostObjectConfigFile(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5766,14 +5766,14 @@ func (w *ServerInterfaceWrapper) PostObjectConfigFile(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostObjectConfigFile(ctx, namespace, kind, name) @@ -5786,7 +5786,7 @@ func (w *ServerInterfaceWrapper) PutObjectConfigFile(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5794,7 +5794,7 @@ func (w *ServerInterfaceWrapper) PutObjectConfigFile(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5802,14 +5802,14 @@ func (w *ServerInterfaceWrapper) PutObjectConfigFile(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PutObjectConfigFile(ctx, namespace, kind, name) @@ -5822,7 +5822,7 @@ func (w *ServerInterfaceWrapper) GetObjectConfigKeywords(ctx echo.Context) error // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5830,7 +5830,7 @@ func (w *ServerInterfaceWrapper) GetObjectConfigKeywords(ctx echo.Context) error // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5838,34 +5838,34 @@ func (w *ServerInterfaceWrapper) GetObjectConfigKeywords(ctx echo.Context) error // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetObjectConfigKeywordsParams // ------------- Optional query parameter "driver" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "driver", ctx.QueryParams(), ¶ms.Driver, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "driver", ctx.QueryParams(), ¶ms.Driver) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter driver: %s", err)) } // ------------- Optional query parameter "section" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "section", ctx.QueryParams(), ¶ms.Section, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "section", ctx.QueryParams(), ¶ms.Section) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter section: %s", err)) } // ------------- Optional query parameter "option" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "option", ctx.QueryParams(), ¶ms.Option, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "option", ctx.QueryParams(), ¶ms.Option) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter option: %s", err)) } @@ -5881,7 +5881,7 @@ func (w *ServerInterfaceWrapper) GetObjectData(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5889,7 +5889,7 @@ func (w *ServerInterfaceWrapper) GetObjectData(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5897,20 +5897,20 @@ func (w *ServerInterfaceWrapper) GetObjectData(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetObjectDataParams // ------------- Optional query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "name", ctx.QueryParams(), ¶ms.Names, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "name", ctx.QueryParams(), ¶ms.Names) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } @@ -5926,7 +5926,7 @@ func (w *ServerInterfaceWrapper) PatchObjectData(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5934,7 +5934,7 @@ func (w *ServerInterfaceWrapper) PatchObjectData(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5942,14 +5942,14 @@ func (w *ServerInterfaceWrapper) PatchObjectData(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PatchObjectData(ctx, namespace, kind, name) @@ -5962,7 +5962,7 @@ func (w *ServerInterfaceWrapper) DeleteObjectDataKey(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -5970,7 +5970,7 @@ func (w *ServerInterfaceWrapper) DeleteObjectDataKey(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -5978,20 +5978,20 @@ func (w *ServerInterfaceWrapper) DeleteObjectDataKey(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params DeleteObjectDataKeyParams // ------------- Required query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } @@ -6007,7 +6007,7 @@ func (w *ServerInterfaceWrapper) GetObjectDataKey(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -6015,7 +6015,7 @@ func (w *ServerInterfaceWrapper) GetObjectDataKey(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -6023,20 +6023,20 @@ func (w *ServerInterfaceWrapper) GetObjectDataKey(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetObjectDataKeyParams // ------------- Required query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } @@ -6052,7 +6052,7 @@ func (w *ServerInterfaceWrapper) PostObjectDataKey(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -6060,7 +6060,7 @@ func (w *ServerInterfaceWrapper) PostObjectDataKey(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -6068,20 +6068,20 @@ func (w *ServerInterfaceWrapper) PostObjectDataKey(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PostObjectDataKeyParams // ------------- Required query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } @@ -6097,7 +6097,7 @@ func (w *ServerInterfaceWrapper) PutObjectDataKey(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -6105,7 +6105,7 @@ func (w *ServerInterfaceWrapper) PutObjectDataKey(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -6113,20 +6113,20 @@ func (w *ServerInterfaceWrapper) PutObjectDataKey(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params PutObjectDataKeyParams // ------------- Required query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } @@ -6142,7 +6142,7 @@ func (w *ServerInterfaceWrapper) GetObjectDataKeys(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -6150,7 +6150,7 @@ func (w *ServerInterfaceWrapper) GetObjectDataKeys(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -6158,14 +6158,14 @@ func (w *ServerInterfaceWrapper) GetObjectDataKeys(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetObjectDataKeys(ctx, namespace, kind, name) @@ -6178,7 +6178,7 @@ func (w *ServerInterfaceWrapper) GetObjectResourceInfo(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -6186,7 +6186,7 @@ func (w *ServerInterfaceWrapper) GetObjectResourceInfo(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -6194,14 +6194,14 @@ func (w *ServerInterfaceWrapper) GetObjectResourceInfo(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetObjectResourceInfo(ctx, namespace, kind, name) @@ -6214,7 +6214,7 @@ func (w *ServerInterfaceWrapper) GetObjectSchedule(ctx echo.Context) error { // ------------- Path parameter "namespace" ------------- var namespace InPathNamespace - err = runtime.BindStyledParameterWithOptions("simple", "namespace", ctx.Param("namespace"), &namespace, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "namespace", runtime.ParamLocationPath, ctx.Param("namespace"), &namespace) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter namespace: %s", err)) } @@ -6222,7 +6222,7 @@ func (w *ServerInterfaceWrapper) GetObjectSchedule(ctx echo.Context) error { // ------------- Path parameter "kind" ------------- var kind InPathKind - err = runtime.BindStyledParameterWithOptions("simple", "kind", ctx.Param("kind"), &kind, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "kind", runtime.ParamLocationPath, ctx.Param("kind"), &kind) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } @@ -6230,14 +6230,14 @@ func (w *ServerInterfaceWrapper) GetObjectSchedule(ctx echo.Context) error { // ------------- Path parameter "name" ------------- var name InPathName - err = runtime.BindStyledParameterWithOptions("simple", "name", ctx.Param("name"), &name, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithLocation("simple", false, "name", runtime.ParamLocationPath, ctx.Param("name"), &name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.GetObjectSchedule(ctx, namespace, kind, name) @@ -6257,22 +6257,22 @@ func (w *ServerInterfaceWrapper) GetSwagger(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetPools(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetPoolsParams // ------------- Optional query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } // ------------- Optional query parameter "node" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "node", ctx.QueryParams(), ¶ms.Node, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "node", ctx.QueryParams(), ¶ms.Node) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter node: %s", err)) } @@ -6286,15 +6286,15 @@ func (w *ServerInterfaceWrapper) GetPools(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetPoolVolumes(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetPoolVolumesParams // ------------- Optional query parameter "name" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "name", ctx.QueryParams(), ¶ms.Name, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } @@ -6308,29 +6308,29 @@ func (w *ServerInterfaceWrapper) GetPoolVolumes(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetRelayMessage(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetRelayMessageParams // ------------- Required query parameter "nodename" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "nodename", ctx.QueryParams(), ¶ms.Nodename, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "nodename", ctx.QueryParams(), ¶ms.Nodename) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodename: %s", err)) } // ------------- Required query parameter "cluster_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "cluster_id", ctx.QueryParams(), ¶ms.ClusterID, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, true, "cluster_id", ctx.QueryParams(), ¶ms.ClusterID) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter cluster_id: %s", err)) } // ------------- Optional query parameter "username" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "username", ctx.QueryParams(), ¶ms.Username, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "username", ctx.QueryParams(), ¶ms.Username) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter username: %s", err)) } @@ -6344,9 +6344,9 @@ func (w *ServerInterfaceWrapper) GetRelayMessage(ctx echo.Context) error { func (w *ServerInterfaceWrapper) PostRelayMessage(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Invoke the callback with all the unmarshaled arguments err = w.Handler.PostRelayMessage(ctx) @@ -6357,22 +6357,22 @@ func (w *ServerInterfaceWrapper) PostRelayMessage(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetRelayStatus(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetRelayStatusParams // ------------- Optional query parameter "relay" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "relay", ctx.QueryParams(), ¶ms.Relays, runtime.BindQueryParameterOptions{Type: "array", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "relay", ctx.QueryParams(), ¶ms.Relays) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter relay: %s", err)) } // ------------- Optional query parameter "remote" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "remote", ctx.QueryParams(), ¶ms.Remote, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "remote", ctx.QueryParams(), ¶ms.Remote) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter remote: %s", err)) } @@ -6386,29 +6386,29 @@ func (w *ServerInterfaceWrapper) GetRelayStatus(ctx echo.Context) error { func (w *ServerInterfaceWrapper) GetResources(ctx echo.Context) error { var err error - ctx.Set(string(BasicAuthScopes), []string{}) + ctx.Set(BasicAuthScopes, []string{}) - ctx.Set(string(BearerAuthScopes), []string{}) + ctx.Set(BearerAuthScopes, []string{}) // Parameter object where we will unmarshal all parameters from the context var params GetResourcesParams // ------------- Optional query parameter "path" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "path", ctx.QueryParams(), ¶ms.Path, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "path", ctx.QueryParams(), ¶ms.Path) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter path: %s", err)) } // ------------- Optional query parameter "node" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "node", ctx.QueryParams(), ¶ms.Node, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "node", ctx.QueryParams(), ¶ms.Node) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter node: %s", err)) } // ------------- Optional query parameter "resource" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "resource", ctx.QueryParams(), ¶ms.Resource, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "resource", ctx.QueryParams(), ¶ms.Resource) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter resource: %s", err)) } @@ -6433,503 +6433,482 @@ type EchoRouter interface { TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route } -// RegisterHandlersOptions configures RegisterHandlersWithOptions. -type RegisterHandlersOptions struct { - // BaseURL is prepended to every registered path so the API can be served - // under a prefix. - BaseURL string - // OperationMiddlewares lets the caller attach per-operation middleware at - // registration time. The map key is the OpenAPI `operationId` value as it - // appears in the spec (the raw, un-normalized form). Operations that have - // no entry are registered with no extra middleware. A nil map disables - // per-operation middleware entirely. - OperationMiddlewares map[string][]echo.MiddlewareFunc -} - // RegisterHandlers adds each server route to the EchoRouter. func RegisterHandlers(router EchoRouter, si ServerInterface) { - RegisterHandlersWithOptions(router, si, RegisterHandlersOptions{}) + RegisterHandlersWithBaseURL(router, si, "") } -// RegisterHandlersWithBaseURL registers handlers and prepends BaseURL to the -// paths so the API can be served under a prefix. +// Registers handlers, and prepends BaseURL to the paths, so that the paths +// can be served under a prefix. func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string) { - RegisterHandlersWithOptions(router, si, RegisterHandlersOptions{BaseURL: baseURL}) -} - -// RegisterHandlersWithOptions registers handlers using the supplied options, -// including any per-operation middleware. -func RegisterHandlersWithOptions(router EchoRouter, si ServerInterface, options RegisterHandlersOptions) { wrapper := ServerInterfaceWrapper{ Handler: si, } - router.GET(options.BaseURL+"/api/array", wrapper.GetArray, options.OperationMiddlewares["GetArray"]...) - router.GET(options.BaseURL+"/api/auth/info", wrapper.GetAuthInfo, options.OperationMiddlewares["GetAuthInfo"]...) - router.POST(options.BaseURL+"/api/auth/refresh", wrapper.PostAuthRefresh, options.OperationMiddlewares["PostAuthRefresh"]...) - router.POST(options.BaseURL+"/api/auth/token", wrapper.PostAuthToken, options.OperationMiddlewares["PostAuthToken"]...) - router.GET(options.BaseURL+"/api/auth/whoami", wrapper.GetAuthWhoAmI, options.OperationMiddlewares["GetAuthWhoAmI"]...) - router.POST(options.BaseURL+"/api/cluster/action/abort", wrapper.PostClusterActionAbort, options.OperationMiddlewares["PostClusterActionAbort"]...) - router.POST(options.BaseURL+"/api/cluster/action/freeze", wrapper.PostClusterActionFreeze, options.OperationMiddlewares["PostClusterActionFreeze"]...) - router.POST(options.BaseURL+"/api/cluster/action/unfreeze", wrapper.PostClusterActionUnfreeze, options.OperationMiddlewares["PostClusterActionUnfreeze"]...) - router.GET(options.BaseURL+"/api/cluster/config", wrapper.GetClusterConfig, options.OperationMiddlewares["GetClusterConfig"]...) - router.PATCH(options.BaseURL+"/api/cluster/config", wrapper.PatchClusterConfig, options.OperationMiddlewares["PatchClusterConfig"]...) - router.GET(options.BaseURL+"/api/cluster/config/file", wrapper.GetClusterConfigFile, options.OperationMiddlewares["GetClusterConfigFile"]...) - router.PUT(options.BaseURL+"/api/cluster/config/file", wrapper.PutClusterConfigFile, options.OperationMiddlewares["PutClusterConfigFile"]...) - router.GET(options.BaseURL+"/api/cluster/config/keywords", wrapper.GetClusterConfigKeywords, options.OperationMiddlewares["GetClusterConfigKeywords"]...) - router.POST(options.BaseURL+"/api/cluster/hb/rotate", wrapper.PostClusterHeartbeatRotate, options.OperationMiddlewares["PostClusterHeartbeatRotate"]...) - router.POST(options.BaseURL+"/api/cluster/join", wrapper.PostClusterJoin, options.OperationMiddlewares["PostClusterJoin"]...) - router.POST(options.BaseURL+"/api/cluster/leave", wrapper.PostClusterLeave, options.OperationMiddlewares["PostClusterLeave"]...) - router.GET(options.BaseURL+"/api/cluster/status", wrapper.GetClusterStatus, options.OperationMiddlewares["GetClusterStatus"]...) - router.GET(options.BaseURL+"/api/instance", wrapper.GetInstances, options.OperationMiddlewares["GetInstances"]...) - router.POST(options.BaseURL+"/api/instance/path/:namespace/:kind/:name/progress", wrapper.PostInstanceProgress, options.OperationMiddlewares["PostInstanceProgress"]...) - router.POST(options.BaseURL+"/api/instance/path/:namespace/:kind/:name/status", wrapper.PostInstanceStatus, options.OperationMiddlewares["PostInstanceStatus"]...) - router.GET(options.BaseURL+"/api/network", wrapper.GetNetworks, options.OperationMiddlewares["GetNetworks"]...) - router.GET(options.BaseURL+"/api/network/ip", wrapper.GetNetworkIP, options.OperationMiddlewares["GetNetworkIP"]...) - router.GET(options.BaseURL+"/api/node", wrapper.GetNodes, options.OperationMiddlewares["GetNodes"]...) - router.GET(options.BaseURL+"/api/node/info", wrapper.GetNodesInfo, options.OperationMiddlewares["GetNodesInfo"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/action/abort", wrapper.PostPeerActionAbort, options.OperationMiddlewares["PostPeerActionAbort"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/action/clear", wrapper.PostNodeActionClear, options.OperationMiddlewares["PostNodeActionClear"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/action/dequeue", wrapper.PostPeerActionDequeue, options.OperationMiddlewares["PostPeerActionDequeue"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/action/drain", wrapper.PostPeerActionDrain, options.OperationMiddlewares["PostPeerActionDrain"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/action/freeze", wrapper.PostPeerActionFreeze, options.OperationMiddlewares["PostPeerActionFreeze"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/action/push/asset", wrapper.PostNodeActionPushAsset, options.OperationMiddlewares["PostNodeActionPushAsset"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/action/push/disk", wrapper.PostNodeActionPushDisk, options.OperationMiddlewares["PostNodeActionPushDisk"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/action/push/pkg", wrapper.PostNodeActionPushPkg, options.OperationMiddlewares["PostNodeActionPushPkg"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/action/scan/capabilities", wrapper.PostNodeActionScanCapabilities, options.OperationMiddlewares["PostNodeActionScanCapabilities"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/action/scsi/scan", wrapper.PostNodeActionSCSIScan, options.OperationMiddlewares["PostNodeActionSCSIScan"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/action/sysreport", wrapper.PostNodeActionSysreport, options.OperationMiddlewares["PostNodeActionSysreport"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/action/unfreeze", wrapper.PostPeerActionUnfreeze, options.OperationMiddlewares["PostPeerActionUnfreeze"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/capabilities", wrapper.GetNodeCapabilities, options.OperationMiddlewares["GetNodeCapabilities"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/config", wrapper.GetNodeConfig, options.OperationMiddlewares["GetNodeConfig"]...) - router.PATCH(options.BaseURL+"/api/node/name/:nodename/config", wrapper.PatchNodeConfig, options.OperationMiddlewares["PatchNodeConfig"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/config/file", wrapper.GetNodeConfigFile, options.OperationMiddlewares["GetNodeConfigFile"]...) - router.PUT(options.BaseURL+"/api/node/name/:nodename/config/file", wrapper.PutNodeConfigFile, options.OperationMiddlewares["PutNodeConfigFile"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/config/keywords", wrapper.GetNodeConfigKeywords, options.OperationMiddlewares["GetNodeConfigKeywords"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/daemon/action/restart", wrapper.PostDaemonRestart, options.OperationMiddlewares["PostDaemonRestart"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/daemon/action/shutdown", wrapper.PostDaemonShutdown, options.OperationMiddlewares["PostDaemonShutdown"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/daemon/action/stop", wrapper.PostDaemonStop, options.OperationMiddlewares["PostDaemonStop"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/daemon/audit", wrapper.PostDaemonAudit, options.OperationMiddlewares["PostDaemonAudit"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/daemon/dns/dump", wrapper.GetDaemonDNSDump, options.OperationMiddlewares["GetDaemonDNSDump"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/daemon/event", wrapper.GetDaemonEvents, options.OperationMiddlewares["GetDaemonEvents"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/daemon/hb/name/:name/action/restart", wrapper.PostDaemonHeartbeatRestart, options.OperationMiddlewares["PostDaemonHeartbeatRestart"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/daemon/hb/name/:name/action/sign", wrapper.PostDaemonHeartbeatSign, options.OperationMiddlewares["PostDaemonHeartbeatSign"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/daemon/hb/name/:name/action/start", wrapper.PostDaemonHeartbeatStart, options.OperationMiddlewares["PostDaemonHeartbeatStart"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/daemon/hb/name/:name/action/stop", wrapper.PostDaemonHeartbeatStop, options.OperationMiddlewares["PostDaemonHeartbeatStop"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/daemon/hb/name/:name/action/wipe", wrapper.PostDaemonHeartbeatWipe, options.OperationMiddlewares["PostDaemonHeartbeatWipe"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/daemon/listener/name/:name/action/restart", wrapper.PostDaemonListenerRestart, options.OperationMiddlewares["PostDaemonListenerRestart"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/daemon/listener/name/:name/action/start", wrapper.PostDaemonListenerStart, options.OperationMiddlewares["PostDaemonListenerStart"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/daemon/listener/name/:name/action/stop", wrapper.PostDaemonListenerStop, options.OperationMiddlewares["PostDaemonListenerStop"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/daemon/listener/name/:name/log/control", wrapper.PostDaemonListenerLogControl, options.OperationMiddlewares["PostDaemonListenerLogControl"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/daemon/log/control", wrapper.PostDaemonLogControl, options.OperationMiddlewares["PostDaemonLogControl"]...) - router.DELETE(options.BaseURL+"/api/node/name/:nodename/daemon/process", wrapper.DeleteDaemonProcess, options.OperationMiddlewares["DeleteDaemonProcess"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/daemon/process", wrapper.GetDaemonProcess, options.OperationMiddlewares["GetDaemonProcess"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/drbd/allocation", wrapper.GetNodeDRBDAllocation, options.OperationMiddlewares["GetNodeDRBDAllocation"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/drbd/config", wrapper.GetNodeDRBDConfig, options.OperationMiddlewares["GetNodeDRBDConfig"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/drbd/config", wrapper.PostNodeDRBDConfig, options.OperationMiddlewares["PostNodeDRBDConfig"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/drbd/connect", wrapper.PostNodeDRBDConnect, options.OperationMiddlewares["PostNodeDRBDConnect"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/drbd/primary", wrapper.PostNodeDRBDPrimary, options.OperationMiddlewares["PostNodeDRBDPrimary"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/drbd/secondary", wrapper.PostNodeDRBDSecondary, options.OperationMiddlewares["PostNodeDRBDSecondary"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/drivers", wrapper.GetNodeDriver, options.OperationMiddlewares["GetNodeDriver"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name", wrapper.GetInstance, options.OperationMiddlewares["GetInstance"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/boot", wrapper.PostInstanceActionBoot, options.OperationMiddlewares["PostInstanceActionBoot"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/delete", wrapper.PostInstanceActionDelete, options.OperationMiddlewares["PostInstanceActionDelete"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/freeze", wrapper.PostInstanceActionFreeze, options.OperationMiddlewares["PostInstanceActionFreeze"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/pg/update", wrapper.PostInstanceActionPGUpdate, options.OperationMiddlewares["PostInstanceActionPGUpdate"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/provision", wrapper.PostInstanceActionProvision, options.OperationMiddlewares["PostInstanceActionProvision"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/prstart", wrapper.PostInstanceActionPRStart, options.OperationMiddlewares["PostInstanceActionPRStart"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/prstop", wrapper.PostInstanceActionPRStop, options.OperationMiddlewares["PostInstanceActionPRStop"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/push/resource/info", wrapper.PostInstanceActionPushResourceInfo, options.OperationMiddlewares["PostInstanceActionPushResourceInfo"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/restart", wrapper.PostInstanceActionRestart, options.OperationMiddlewares["PostInstanceActionRestart"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/run", wrapper.PostInstanceActionRun, options.OperationMiddlewares["PostInstanceActionRun"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/shutdown", wrapper.PostInstanceActionShutdown, options.OperationMiddlewares["PostInstanceActionShutdown"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/start", wrapper.PostInstanceActionStart, options.OperationMiddlewares["PostInstanceActionStart"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/startstandby", wrapper.PostInstanceActionStartStandby, options.OperationMiddlewares["PostInstanceActionStartStandby"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/status", wrapper.PostInstanceActionStatus, options.OperationMiddlewares["PostInstanceActionStatus"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/stop", wrapper.PostInstanceActionStop, options.OperationMiddlewares["PostInstanceActionStop"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/sync/ingest", wrapper.PostInstanceActionSyncIngest, options.OperationMiddlewares["PostInstanceActionSyncIngest"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/unfreeze", wrapper.PostInstanceActionUnfreeze, options.OperationMiddlewares["PostInstanceActionUnfreeze"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/unprovision", wrapper.PostInstanceActionUnprovision, options.OperationMiddlewares["PostInstanceActionUnprovision"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/clear", wrapper.PostInstanceClear, options.OperationMiddlewares["PostInstanceClear"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/config/file", wrapper.GetInstanceConfigFile, options.OperationMiddlewares["GetInstanceConfigFile"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/console", wrapper.PostInstanceResourceConsole, options.OperationMiddlewares["PostInstanceResourceConsole"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/container/log", wrapper.GetInstanceContainerLog, options.OperationMiddlewares["GetInstanceContainerLog"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/log", wrapper.GetInstanceLogs, options.OperationMiddlewares["GetInstanceLogs"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/resource/file", wrapper.GetInstanceResourceFile, options.OperationMiddlewares["GetInstanceResourceFile"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/resource/info", wrapper.GetInstanceResourceInfo, options.OperationMiddlewares["GetInstanceResourceInfo"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/schedule", wrapper.GetInstanceSchedule, options.OperationMiddlewares["GetInstanceSchedule"]...) - router.POST(options.BaseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/state/file", wrapper.PostInstanceStateFile, options.OperationMiddlewares["PostInstanceStateFile"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/log", wrapper.GetNodeLogs, options.OperationMiddlewares["GetNodeLogs"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/metrics", wrapper.GetNodeMetrics, options.OperationMiddlewares["GetNodeMetrics"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/ping", wrapper.GetNodePing, options.OperationMiddlewares["GetNodePing"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/schedule", wrapper.GetNodeSchedule, options.OperationMiddlewares["GetNodeSchedule"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/ssh/hostkeys", wrapper.GetNodeSSHHostkeys, options.OperationMiddlewares["GetNodeSSHHostkeys"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/ssh/key", wrapper.GetNodeSSHKey, options.OperationMiddlewares["GetNodeSSHKey"]...) - router.PUT(options.BaseURL+"/api/node/name/:nodename/ssh/trust", wrapper.PutNodeSSHTrust, options.OperationMiddlewares["PutNodeSSHTrust"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/system/disk", wrapper.GetNodeSystemDisk, options.OperationMiddlewares["GetNodeSystemDisk"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/system/group", wrapper.GetNodeSystemGroup, options.OperationMiddlewares["GetNodeSystemGroup"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/system/hardware", wrapper.GetNodeSystemHardware, options.OperationMiddlewares["GetNodeSystemHardware"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/system/ipaddress", wrapper.GetNodeSystemIPAddress, options.OperationMiddlewares["GetNodeSystemIPAddress"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/system/package", wrapper.GetNodeSystemPackage, options.OperationMiddlewares["GetNodeSystemPackage"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/system/property", wrapper.GetNodeSystemProperty, options.OperationMiddlewares["GetNodeSystemProperty"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/system/san/initiator", wrapper.GetNodeSystemSANInitiator, options.OperationMiddlewares["GetNodeSystemSANInitiator"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/system/san/path", wrapper.GetNodeSystemSANPath, options.OperationMiddlewares["GetNodeSystemSANPath"]...) - router.GET(options.BaseURL+"/api/node/name/:nodename/system/user", wrapper.GetNodeSystemUser, options.OperationMiddlewares["GetNodeSystemUser"]...) - router.GET(options.BaseURL+"/api/object", wrapper.GetObjects, options.OperationMiddlewares["GetObjects"]...) - router.GET(options.BaseURL+"/api/object/path", wrapper.GetObjectPaths, options.OperationMiddlewares["GetObjectPaths"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/svc/:name/disable", wrapper.PostSvcDisable, options.OperationMiddlewares["PostSvcDisable"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/svc/:name/enable", wrapper.PostSvcEnable, options.OperationMiddlewares["PostSvcEnable"]...) - router.GET(options.BaseURL+"/api/object/path/:namespace/:kind/:name", wrapper.GetObject, options.OperationMiddlewares["GetObject"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/:kind/:name/action/abort", wrapper.PostObjectActionAbort, options.OperationMiddlewares["PostObjectActionAbort"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/:kind/:name/action/delete", wrapper.PostObjectActionDelete, options.OperationMiddlewares["PostObjectActionDelete"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/:kind/:name/action/freeze", wrapper.PostObjectActionFreeze, options.OperationMiddlewares["PostObjectActionFreeze"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/:kind/:name/action/giveback", wrapper.PostObjectActionGiveback, options.OperationMiddlewares["PostObjectActionGiveback"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/:kind/:name/action/provision", wrapper.PostObjectActionProvision, options.OperationMiddlewares["PostObjectActionProvision"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/:kind/:name/action/purge", wrapper.PostObjectActionPurge, options.OperationMiddlewares["PostObjectActionPurge"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/:kind/:name/action/restart", wrapper.PostObjectActionRestart, options.OperationMiddlewares["PostObjectActionRestart"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/:kind/:name/action/start", wrapper.PostObjectActionStart, options.OperationMiddlewares["PostObjectActionStart"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/:kind/:name/action/stop", wrapper.PostObjectActionStop, options.OperationMiddlewares["PostObjectActionStop"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/:kind/:name/action/switch", wrapper.PostObjectActionSwitch, options.OperationMiddlewares["PostObjectActionSwitch"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/:kind/:name/action/unfreeze", wrapper.PostObjectActionUnfreeze, options.OperationMiddlewares["PostObjectActionUnfreeze"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/:kind/:name/action/unprovision", wrapper.PostObjectActionUnprovision, options.OperationMiddlewares["PostObjectActionUnprovision"]...) - router.GET(options.BaseURL+"/api/object/path/:namespace/:kind/:name/config", wrapper.GetObjectConfig, options.OperationMiddlewares["GetObjectConfig"]...) - router.PATCH(options.BaseURL+"/api/object/path/:namespace/:kind/:name/config", wrapper.PatchObjectConfig, options.OperationMiddlewares["PatchObjectConfig"]...) - router.GET(options.BaseURL+"/api/object/path/:namespace/:kind/:name/config/file", wrapper.GetObjectConfigFile, options.OperationMiddlewares["GetObjectConfigFile"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/:kind/:name/config/file", wrapper.PostObjectConfigFile, options.OperationMiddlewares["PostObjectConfigFile"]...) - router.PUT(options.BaseURL+"/api/object/path/:namespace/:kind/:name/config/file", wrapper.PutObjectConfigFile, options.OperationMiddlewares["PutObjectConfigFile"]...) - router.GET(options.BaseURL+"/api/object/path/:namespace/:kind/:name/config/keywords", wrapper.GetObjectConfigKeywords, options.OperationMiddlewares["GetObjectConfigKeywords"]...) - router.GET(options.BaseURL+"/api/object/path/:namespace/:kind/:name/data", wrapper.GetObjectData, options.OperationMiddlewares["GetObjectData"]...) - router.PATCH(options.BaseURL+"/api/object/path/:namespace/:kind/:name/data", wrapper.PatchObjectData, options.OperationMiddlewares["PatchObjectData"]...) - router.DELETE(options.BaseURL+"/api/object/path/:namespace/:kind/:name/data/key", wrapper.DeleteObjectDataKey, options.OperationMiddlewares["DeleteObjectDataKey"]...) - router.GET(options.BaseURL+"/api/object/path/:namespace/:kind/:name/data/key", wrapper.GetObjectDataKey, options.OperationMiddlewares["GetObjectDataKey"]...) - router.POST(options.BaseURL+"/api/object/path/:namespace/:kind/:name/data/key", wrapper.PostObjectDataKey, options.OperationMiddlewares["PostObjectDataKey"]...) - router.PUT(options.BaseURL+"/api/object/path/:namespace/:kind/:name/data/key", wrapper.PutObjectDataKey, options.OperationMiddlewares["PutObjectDataKey"]...) - router.GET(options.BaseURL+"/api/object/path/:namespace/:kind/:name/data/keys", wrapper.GetObjectDataKeys, options.OperationMiddlewares["GetObjectDataKeys"]...) - router.GET(options.BaseURL+"/api/object/path/:namespace/:kind/:name/resource/info", wrapper.GetObjectResourceInfo, options.OperationMiddlewares["GetObjectResourceInfo"]...) - router.GET(options.BaseURL+"/api/object/path/:namespace/:kind/:name/schedule", wrapper.GetObjectSchedule, options.OperationMiddlewares["GetObjectSchedule"]...) - router.GET(options.BaseURL+"/api/openapi", wrapper.GetSwagger, options.OperationMiddlewares["GetSwagger"]...) - router.GET(options.BaseURL+"/api/pool", wrapper.GetPools, options.OperationMiddlewares["GetPools"]...) - router.GET(options.BaseURL+"/api/pool/volume", wrapper.GetPoolVolumes, options.OperationMiddlewares["GetPoolVolumes"]...) - router.GET(options.BaseURL+"/api/relay/message", wrapper.GetRelayMessage, options.OperationMiddlewares["GetRelayMessage"]...) - router.POST(options.BaseURL+"/api/relay/message", wrapper.PostRelayMessage, options.OperationMiddlewares["PostRelayMessage"]...) - router.GET(options.BaseURL+"/api/relay/status", wrapper.GetRelayStatus, options.OperationMiddlewares["GetRelayStatus"]...) - router.GET(options.BaseURL+"/api/resource", wrapper.GetResources, options.OperationMiddlewares["GetResources"]...) - -} - -// Base64 encoded, compressed with deflate, json marshaled OpenAPI spec. -// Stored as a slice of fixed-width chunks rather than one concatenated -// const string: with thousands of chunks the chained `+` fold is several -// times slower for the Go compiler than parsing a slice literal. + router.GET(baseURL+"/api/array", wrapper.GetArray) + router.GET(baseURL+"/api/auth/info", wrapper.GetAuthInfo) + router.POST(baseURL+"/api/auth/refresh", wrapper.PostAuthRefresh) + router.POST(baseURL+"/api/auth/token", wrapper.PostAuthToken) + router.GET(baseURL+"/api/auth/whoami", wrapper.GetAuthWhoAmI) + router.POST(baseURL+"/api/cluster/action/abort", wrapper.PostClusterActionAbort) + router.POST(baseURL+"/api/cluster/action/freeze", wrapper.PostClusterActionFreeze) + router.POST(baseURL+"/api/cluster/action/unfreeze", wrapper.PostClusterActionUnfreeze) + router.GET(baseURL+"/api/cluster/config", wrapper.GetClusterConfig) + router.PATCH(baseURL+"/api/cluster/config", wrapper.PatchClusterConfig) + router.GET(baseURL+"/api/cluster/config/file", wrapper.GetClusterConfigFile) + router.PUT(baseURL+"/api/cluster/config/file", wrapper.PutClusterConfigFile) + router.GET(baseURL+"/api/cluster/config/keywords", wrapper.GetClusterConfigKeywords) + router.POST(baseURL+"/api/cluster/hb/rotate", wrapper.PostClusterHeartbeatRotate) + router.POST(baseURL+"/api/cluster/join", wrapper.PostClusterJoin) + router.POST(baseURL+"/api/cluster/leave", wrapper.PostClusterLeave) + router.GET(baseURL+"/api/cluster/status", wrapper.GetClusterStatus) + router.GET(baseURL+"/api/instance", wrapper.GetInstances) + router.POST(baseURL+"/api/instance/path/:namespace/:kind/:name/progress", wrapper.PostInstanceProgress) + router.POST(baseURL+"/api/instance/path/:namespace/:kind/:name/status", wrapper.PostInstanceStatus) + router.GET(baseURL+"/api/network", wrapper.GetNetworks) + router.GET(baseURL+"/api/network/ip", wrapper.GetNetworkIP) + router.GET(baseURL+"/api/node", wrapper.GetNodes) + router.GET(baseURL+"/api/node/info", wrapper.GetNodesInfo) + router.POST(baseURL+"/api/node/name/:nodename/action/abort", wrapper.PostPeerActionAbort) + router.POST(baseURL+"/api/node/name/:nodename/action/clear", wrapper.PostNodeActionClear) + router.POST(baseURL+"/api/node/name/:nodename/action/dequeue", wrapper.PostPeerActionDequeue) + router.POST(baseURL+"/api/node/name/:nodename/action/drain", wrapper.PostPeerActionDrain) + router.POST(baseURL+"/api/node/name/:nodename/action/freeze", wrapper.PostPeerActionFreeze) + router.POST(baseURL+"/api/node/name/:nodename/action/push/asset", wrapper.PostNodeActionPushAsset) + router.POST(baseURL+"/api/node/name/:nodename/action/push/disk", wrapper.PostNodeActionPushDisk) + router.POST(baseURL+"/api/node/name/:nodename/action/push/pkg", wrapper.PostNodeActionPushPkg) + router.POST(baseURL+"/api/node/name/:nodename/action/scan/capabilities", wrapper.PostNodeActionScanCapabilities) + router.POST(baseURL+"/api/node/name/:nodename/action/scsi/scan", wrapper.PostNodeActionSCSIScan) + router.POST(baseURL+"/api/node/name/:nodename/action/sysreport", wrapper.PostNodeActionSysreport) + router.POST(baseURL+"/api/node/name/:nodename/action/unfreeze", wrapper.PostPeerActionUnfreeze) + router.GET(baseURL+"/api/node/name/:nodename/capabilities", wrapper.GetNodeCapabilities) + router.GET(baseURL+"/api/node/name/:nodename/config", wrapper.GetNodeConfig) + router.PATCH(baseURL+"/api/node/name/:nodename/config", wrapper.PatchNodeConfig) + router.GET(baseURL+"/api/node/name/:nodename/config/file", wrapper.GetNodeConfigFile) + router.PUT(baseURL+"/api/node/name/:nodename/config/file", wrapper.PutNodeConfigFile) + router.GET(baseURL+"/api/node/name/:nodename/config/keywords", wrapper.GetNodeConfigKeywords) + router.POST(baseURL+"/api/node/name/:nodename/daemon/action/restart", wrapper.PostDaemonRestart) + router.POST(baseURL+"/api/node/name/:nodename/daemon/action/shutdown", wrapper.PostDaemonShutdown) + router.POST(baseURL+"/api/node/name/:nodename/daemon/action/stop", wrapper.PostDaemonStop) + router.POST(baseURL+"/api/node/name/:nodename/daemon/audit", wrapper.PostDaemonAudit) + router.GET(baseURL+"/api/node/name/:nodename/daemon/dns/dump", wrapper.GetDaemonDNSDump) + router.GET(baseURL+"/api/node/name/:nodename/daemon/event", wrapper.GetDaemonEvents) + router.POST(baseURL+"/api/node/name/:nodename/daemon/hb/name/:name/action/restart", wrapper.PostDaemonHeartbeatRestart) + router.POST(baseURL+"/api/node/name/:nodename/daemon/hb/name/:name/action/sign", wrapper.PostDaemonHeartbeatSign) + router.POST(baseURL+"/api/node/name/:nodename/daemon/hb/name/:name/action/start", wrapper.PostDaemonHeartbeatStart) + router.POST(baseURL+"/api/node/name/:nodename/daemon/hb/name/:name/action/stop", wrapper.PostDaemonHeartbeatStop) + router.POST(baseURL+"/api/node/name/:nodename/daemon/hb/name/:name/action/wipe", wrapper.PostDaemonHeartbeatWipe) + router.POST(baseURL+"/api/node/name/:nodename/daemon/listener/name/:name/action/restart", wrapper.PostDaemonListenerRestart) + router.POST(baseURL+"/api/node/name/:nodename/daemon/listener/name/:name/action/start", wrapper.PostDaemonListenerStart) + router.POST(baseURL+"/api/node/name/:nodename/daemon/listener/name/:name/action/stop", wrapper.PostDaemonListenerStop) + router.POST(baseURL+"/api/node/name/:nodename/daemon/listener/name/:name/log/control", wrapper.PostDaemonListenerLogControl) + router.POST(baseURL+"/api/node/name/:nodename/daemon/log/control", wrapper.PostDaemonLogControl) + router.DELETE(baseURL+"/api/node/name/:nodename/daemon/process", wrapper.DeleteDaemonProcess) + router.GET(baseURL+"/api/node/name/:nodename/daemon/process", wrapper.GetDaemonProcess) + router.GET(baseURL+"/api/node/name/:nodename/drbd/allocation", wrapper.GetNodeDRBDAllocation) + router.GET(baseURL+"/api/node/name/:nodename/drbd/config", wrapper.GetNodeDRBDConfig) + router.POST(baseURL+"/api/node/name/:nodename/drbd/config", wrapper.PostNodeDRBDConfig) + router.POST(baseURL+"/api/node/name/:nodename/drbd/connect", wrapper.PostNodeDRBDConnect) + router.POST(baseURL+"/api/node/name/:nodename/drbd/primary", wrapper.PostNodeDRBDPrimary) + router.POST(baseURL+"/api/node/name/:nodename/drbd/secondary", wrapper.PostNodeDRBDSecondary) + router.GET(baseURL+"/api/node/name/:nodename/drivers", wrapper.GetNodeDriver) + router.GET(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name", wrapper.GetInstance) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/boot", wrapper.PostInstanceActionBoot) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/delete", wrapper.PostInstanceActionDelete) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/freeze", wrapper.PostInstanceActionFreeze) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/pg/update", wrapper.PostInstanceActionPGUpdate) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/provision", wrapper.PostInstanceActionProvision) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/prstart", wrapper.PostInstanceActionPRStart) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/prstop", wrapper.PostInstanceActionPRStop) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/push/resource/info", wrapper.PostInstanceActionPushResourceInfo) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/restart", wrapper.PostInstanceActionRestart) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/run", wrapper.PostInstanceActionRun) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/shutdown", wrapper.PostInstanceActionShutdown) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/start", wrapper.PostInstanceActionStart) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/startstandby", wrapper.PostInstanceActionStartStandby) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/status", wrapper.PostInstanceActionStatus) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/stop", wrapper.PostInstanceActionStop) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/sync/ingest", wrapper.PostInstanceActionSyncIngest) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/unfreeze", wrapper.PostInstanceActionUnfreeze) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/action/unprovision", wrapper.PostInstanceActionUnprovision) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/clear", wrapper.PostInstanceClear) + router.GET(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/config/file", wrapper.GetInstanceConfigFile) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/console", wrapper.PostInstanceResourceConsole) + router.GET(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/container/log", wrapper.GetInstanceContainerLog) + router.GET(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/log", wrapper.GetInstanceLogs) + router.GET(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/resource/file", wrapper.GetInstanceResourceFile) + router.GET(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/resource/info", wrapper.GetInstanceResourceInfo) + router.GET(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/schedule", wrapper.GetInstanceSchedule) + router.POST(baseURL+"/api/node/name/:nodename/instance/path/:namespace/:kind/:name/state/file", wrapper.PostInstanceStateFile) + router.GET(baseURL+"/api/node/name/:nodename/log", wrapper.GetNodeLogs) + router.GET(baseURL+"/api/node/name/:nodename/metrics", wrapper.GetNodeMetrics) + router.GET(baseURL+"/api/node/name/:nodename/ping", wrapper.GetNodePing) + router.GET(baseURL+"/api/node/name/:nodename/schedule", wrapper.GetNodeSchedule) + router.GET(baseURL+"/api/node/name/:nodename/ssh/hostkeys", wrapper.GetNodeSSHHostkeys) + router.GET(baseURL+"/api/node/name/:nodename/ssh/key", wrapper.GetNodeSSHKey) + router.PUT(baseURL+"/api/node/name/:nodename/ssh/trust", wrapper.PutNodeSSHTrust) + router.GET(baseURL+"/api/node/name/:nodename/system/disk", wrapper.GetNodeSystemDisk) + router.GET(baseURL+"/api/node/name/:nodename/system/group", wrapper.GetNodeSystemGroup) + router.GET(baseURL+"/api/node/name/:nodename/system/hardware", wrapper.GetNodeSystemHardware) + router.GET(baseURL+"/api/node/name/:nodename/system/ipaddress", wrapper.GetNodeSystemIPAddress) + router.GET(baseURL+"/api/node/name/:nodename/system/package", wrapper.GetNodeSystemPackage) + router.GET(baseURL+"/api/node/name/:nodename/system/property", wrapper.GetNodeSystemProperty) + router.GET(baseURL+"/api/node/name/:nodename/system/san/initiator", wrapper.GetNodeSystemSANInitiator) + router.GET(baseURL+"/api/node/name/:nodename/system/san/path", wrapper.GetNodeSystemSANPath) + router.GET(baseURL+"/api/node/name/:nodename/system/user", wrapper.GetNodeSystemUser) + router.GET(baseURL+"/api/object", wrapper.GetObjects) + router.GET(baseURL+"/api/object/path", wrapper.GetObjectPaths) + router.POST(baseURL+"/api/object/path/:namespace/svc/:name/disable", wrapper.PostSvcDisable) + router.POST(baseURL+"/api/object/path/:namespace/svc/:name/enable", wrapper.PostSvcEnable) + router.GET(baseURL+"/api/object/path/:namespace/:kind/:name", wrapper.GetObject) + router.POST(baseURL+"/api/object/path/:namespace/:kind/:name/action/abort", wrapper.PostObjectActionAbort) + router.POST(baseURL+"/api/object/path/:namespace/:kind/:name/action/delete", wrapper.PostObjectActionDelete) + router.POST(baseURL+"/api/object/path/:namespace/:kind/:name/action/freeze", wrapper.PostObjectActionFreeze) + router.POST(baseURL+"/api/object/path/:namespace/:kind/:name/action/giveback", wrapper.PostObjectActionGiveback) + router.POST(baseURL+"/api/object/path/:namespace/:kind/:name/action/provision", wrapper.PostObjectActionProvision) + router.POST(baseURL+"/api/object/path/:namespace/:kind/:name/action/purge", wrapper.PostObjectActionPurge) + router.POST(baseURL+"/api/object/path/:namespace/:kind/:name/action/restart", wrapper.PostObjectActionRestart) + router.POST(baseURL+"/api/object/path/:namespace/:kind/:name/action/start", wrapper.PostObjectActionStart) + router.POST(baseURL+"/api/object/path/:namespace/:kind/:name/action/stop", wrapper.PostObjectActionStop) + router.POST(baseURL+"/api/object/path/:namespace/:kind/:name/action/switch", wrapper.PostObjectActionSwitch) + router.POST(baseURL+"/api/object/path/:namespace/:kind/:name/action/unfreeze", wrapper.PostObjectActionUnfreeze) + router.POST(baseURL+"/api/object/path/:namespace/:kind/:name/action/unprovision", wrapper.PostObjectActionUnprovision) + router.GET(baseURL+"/api/object/path/:namespace/:kind/:name/config", wrapper.GetObjectConfig) + router.PATCH(baseURL+"/api/object/path/:namespace/:kind/:name/config", wrapper.PatchObjectConfig) + router.GET(baseURL+"/api/object/path/:namespace/:kind/:name/config/file", wrapper.GetObjectConfigFile) + router.POST(baseURL+"/api/object/path/:namespace/:kind/:name/config/file", wrapper.PostObjectConfigFile) + router.PUT(baseURL+"/api/object/path/:namespace/:kind/:name/config/file", wrapper.PutObjectConfigFile) + router.GET(baseURL+"/api/object/path/:namespace/:kind/:name/config/keywords", wrapper.GetObjectConfigKeywords) + router.GET(baseURL+"/api/object/path/:namespace/:kind/:name/data", wrapper.GetObjectData) + router.PATCH(baseURL+"/api/object/path/:namespace/:kind/:name/data", wrapper.PatchObjectData) + router.DELETE(baseURL+"/api/object/path/:namespace/:kind/:name/data/key", wrapper.DeleteObjectDataKey) + router.GET(baseURL+"/api/object/path/:namespace/:kind/:name/data/key", wrapper.GetObjectDataKey) + router.POST(baseURL+"/api/object/path/:namespace/:kind/:name/data/key", wrapper.PostObjectDataKey) + router.PUT(baseURL+"/api/object/path/:namespace/:kind/:name/data/key", wrapper.PutObjectDataKey) + router.GET(baseURL+"/api/object/path/:namespace/:kind/:name/data/keys", wrapper.GetObjectDataKeys) + router.GET(baseURL+"/api/object/path/:namespace/:kind/:name/resource/info", wrapper.GetObjectResourceInfo) + router.GET(baseURL+"/api/object/path/:namespace/:kind/:name/schedule", wrapper.GetObjectSchedule) + router.GET(baseURL+"/api/openapi", wrapper.GetSwagger) + router.GET(baseURL+"/api/pool", wrapper.GetPools) + router.GET(baseURL+"/api/pool/volume", wrapper.GetPoolVolumes) + router.GET(baseURL+"/api/relay/message", wrapper.GetRelayMessage) + router.POST(baseURL+"/api/relay/message", wrapper.PostRelayMessage) + router.GET(baseURL+"/api/relay/status", wrapper.GetRelayStatus) + router.GET(baseURL+"/api/resource", wrapper.GetResources) + +} + +// Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "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", - "tT7f3Nzc/J8AAAD//w==", -} - -// decodeSpec returns the embedded OpenAPI spec as raw JSON bytes, -// after base64-decoding and flate-decompressing the embedded blob. + + "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", +} + +// GetSwagger returns the content of the embedded swagger specification file +// or error if failed to decode func decodeSpec() ([]byte, error) { - encoded := strings.Join(swaggerSpec, "") - compressed, err := base64.StdEncoding.DecodeString(encoded) + zipped, err := base64.StdEncoding.DecodeString(strings.Join(swaggerSpec, "")) if err != nil { return nil, fmt.Errorf("error base64 decoding spec: %w", err) } - zr := flate.NewReader(bytes.NewReader(compressed)) - var buf bytes.Buffer - if _, err := buf.ReadFrom(zr); err != nil { - return nil, fmt.Errorf("read flate: %w", err) + zr, err := gzip.NewReader(bytes.NewReader(zipped)) + if err != nil { + return nil, fmt.Errorf("error decompressing spec: %w", err) } - if err := zr.Close(); err != nil { - return nil, fmt.Errorf("close flate reader: %w", err) + var buf bytes.Buffer + _, err = buf.ReadFrom(zr) + if err != nil { + return nil, fmt.Errorf("error decompressing spec: %w", err) } return buf.Bytes(), nil @@ -6937,7 +6916,7 @@ func decodeSpec() ([]byte, error) { var rawSpec = decodeSpecCached() -// a naive cache of the decoded OpenAPI spec +// a naive cached of a decoded swagger spec func decodeSpecCached() func() ([]byte, error) { data, err := decodeSpec() return func() ([]byte, error) { @@ -6955,12 +6934,12 @@ func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) { return res } -// GetSpec returns the OpenAPI specification corresponding to the generated -// code in this file. External references in the spec are resolved through -// PathToRawSpec; externally-referenced files must be embedded in their -// corresponding Go packages (via the import-mapping feature). URL-based -// external refs are not supported. -func GetSpec() (swagger *openapi3.T, err error) { +// GetSwagger returns the Swagger specification corresponding to the generated code +// in this file. The external references of Swagger specification are resolved. +// The logic of resolving external references is tightly connected to "import-mapping" feature. +// Externally referenced files must be embedded in the corresponding golang packages. +// Urls can be supported but this task was out of the scope. +func GetSwagger() (swagger *openapi3.T, err error) { resolvePath := PathToRawSpec("") loader := openapi3.NewLoader() @@ -6986,22 +6965,3 @@ func GetSpec() (swagger *openapi3.T, err error) { } return } - -// GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI -// specification: decompressed but not unmarshaled. External references -// are not resolved here; the bytes are the spec exactly as embedded by -// codegen. The result is cached at package init time, so repeated calls -// are cheap. -func GetSpecJSON() ([]byte, error) { - return rawSpec() -} - -// GetSwagger returns the OpenAPI specification corresponding to the -// generated code in this file. -// -// Deprecated: GetSwagger predates kin-openapi renaming openapi3.Swagger -// to openapi3.T. Use [GetSpec] instead. This wrapper is retained for -// backwards compatibility. -func GetSwagger() (*openapi3.T, error) { - return GetSpec() -} diff --git a/daemon/api/codegen_type_gen.go b/daemon/api/codegen_type_gen.go index 9fb3b1a70..466e2fce0 100644 --- a/daemon/api/codegen_type_gen.go +++ b/daemon/api/codegen_type_gen.go @@ -1,6 +1,6 @@ // Package api provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT. +// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT. package api import ( @@ -17,8 +17,8 @@ import ( ) const ( - BasicAuthScopes basicAuthContextKey = "basicAuth.Scopes" - BearerAuthScopes bearerAuthContextKey = "bearerAuth.Scopes" + BasicAuthScopes = "basicAuth.Scopes" + BearerAuthScopes = "bearerAuth.Scopes" ) // Defines values for ArrayListKind. @@ -26,16 +26,6 @@ const ( Array ArrayListKind = "Array" ) -// Valid indicates whether the value is a known member of the ArrayListKind enum. -func (e ArrayListKind) Valid() bool { - switch e { - case Array: - return true - default: - return false - } -} - // Defines values for AuthInfoMethods. const ( Basic AuthInfoMethods = "basic" @@ -44,337 +34,111 @@ const ( X509 AuthInfoMethods = "x509" ) -// Valid indicates whether the value is a known member of the AuthInfoMethods enum. -func (e AuthInfoMethods) Valid() bool { - switch e { - case Basic: - return true - case Openid: - return true - case Session: - return true - case X509: - return true - default: - return false - } -} - // Defines values for CapabilityItemKind. const ( CapabilityItemKindCapabilityItem CapabilityItemKind = "CapabilityItem" ) -// Valid indicates whether the value is a known member of the CapabilityItemKind enum. -func (e CapabilityItemKind) Valid() bool { - switch e { - case CapabilityItemKindCapabilityItem: - return true - default: - return false - } -} - // Defines values for CapabilityListKind. const ( CapabilityListKindCapabilityList CapabilityListKind = "CapabilityList" ) -// Valid indicates whether the value is a known member of the CapabilityListKind enum. -func (e CapabilityListKind) Valid() bool { - switch e { - case CapabilityListKindCapabilityList: - return true - default: - return false - } -} - // Defines values for DataKeyListKind. const ( DataKeyListKindDataKeyList DataKeyListKind = "DataKeyList" ) -// Valid indicates whether the value is a known member of the DataKeyListKind enum. -func (e DataKeyListKind) Valid() bool { - switch e { - case DataKeyListKindDataKeyList: - return true - default: - return false - } -} - // Defines values for DiskItemKind. const ( DiskItemKindDiskItem DiskItemKind = "DiskItem" ) -// Valid indicates whether the value is a known member of the DiskItemKind enum. -func (e DiskItemKind) Valid() bool { - switch e { - case DiskItemKindDiskItem: - return true - default: - return false - } -} - // Defines values for DiskListKind. const ( DiskListKindDiskList DiskListKind = "DiskList" ) -// Valid indicates whether the value is a known member of the DiskListKind enum. -func (e DiskListKind) Valid() bool { - switch e { - case DiskListKindDiskList: - return true - default: - return false - } -} - // Defines values for DriverItemKind. const ( DriversItem DriverItemKind = "DriversItem" ) -// Valid indicates whether the value is a known member of the DriverItemKind enum. -func (e DriverItemKind) Valid() bool { - switch e { - case DriversItem: - return true - default: - return false - } -} - // Defines values for DriverListKind. const ( DriversList DriverListKind = "DriversList" ) -// Valid indicates whether the value is a known member of the DriverListKind enum. -func (e DriverListKind) Valid() bool { - switch e { - case DriversList: - return true - default: - return false - } -} - // Defines values for GroupItemKind. const ( GroupItemKindGroupItem GroupItemKind = "GroupItem" ) -// Valid indicates whether the value is a known member of the GroupItemKind enum. -func (e GroupItemKind) Valid() bool { - switch e { - case GroupItemKindGroupItem: - return true - default: - return false - } -} - // Defines values for GroupListKind. const ( GroupListKindGroupList GroupListKind = "GroupList" ) -// Valid indicates whether the value is a known member of the GroupListKind enum. -func (e GroupListKind) Valid() bool { - switch e { - case GroupListKindGroupList: - return true - default: - return false - } -} - // Defines values for HardwareItemKind. const ( HardwareItemKindHardwareItem HardwareItemKind = "HardwareItem" ) -// Valid indicates whether the value is a known member of the HardwareItemKind enum. -func (e HardwareItemKind) Valid() bool { - switch e { - case HardwareItemKindHardwareItem: - return true - default: - return false - } -} - // Defines values for HardwareListKind. const ( HardwareListKindHardwareList HardwareListKind = "HardwareList" ) -// Valid indicates whether the value is a known member of the HardwareListKind enum. -func (e HardwareListKind) Valid() bool { - switch e { - case HardwareListKindHardwareList: - return true - default: - return false - } -} - // Defines values for IPAddressItemKind. const ( IPAddressItemKindIPAddressItem IPAddressItemKind = "IPAddressItem" ) -// Valid indicates whether the value is a known member of the IPAddressItemKind enum. -func (e IPAddressItemKind) Valid() bool { - switch e { - case IPAddressItemKindIPAddressItem: - return true - default: - return false - } -} - // Defines values for IPAddressListKind. const ( IDAddressList IPAddressListKind = "IDAddressList" ) -// Valid indicates whether the value is a known member of the IPAddressListKind enum. -func (e IPAddressListKind) Valid() bool { - switch e { - case IDAddressList: - return true - default: - return false - } -} - // Defines values for InstanceItemKind. const ( InstanceItemKindInstanceItem InstanceItemKind = "InstanceItem" ) -// Valid indicates whether the value is a known member of the InstanceItemKind enum. -func (e InstanceItemKind) Valid() bool { - switch e { - case InstanceItemKindInstanceItem: - return true - default: - return false - } -} - // Defines values for InstanceListKind. const ( InstanceListKindInstanceList InstanceListKind = "InstanceList" ) -// Valid indicates whether the value is a known member of the InstanceListKind enum. -func (e InstanceListKind) Valid() bool { - switch e { - case InstanceListKindInstanceList: - return true - default: - return false - } -} - // Defines values for KeywordDefinitionListKind. const ( KeywordDefinitionListKindKeywordDefinitionList KeywordDefinitionListKind = "KeywordDefinitionList" ) -// Valid indicates whether the value is a known member of the KeywordDefinitionListKind enum. -func (e KeywordDefinitionListKind) Valid() bool { - switch e { - case KeywordDefinitionListKindKeywordDefinitionList: - return true - default: - return false - } -} - // Defines values for KeywordListKind. const ( KeywordListKindKeywordList KeywordListKind = "KeywordList" ) -// Valid indicates whether the value is a known member of the KeywordListKind enum. -func (e KeywordListKind) Valid() bool { - switch e { - case KeywordListKindKeywordList: - return true - default: - return false - } -} - // Defines values for NetworkIPListKind. const ( NetworkIPListKindNetworkIPList NetworkIPListKind = "NetworkIPList" ) -// Valid indicates whether the value is a known member of the NetworkIPListKind enum. -func (e NetworkIPListKind) Valid() bool { - switch e { - case NetworkIPListKindNetworkIPList: - return true - default: - return false - } -} - // Defines values for NetworkListKind. const ( NetworkListKindNetworkList NetworkListKind = "NetworkList" ) -// Valid indicates whether the value is a known member of the NetworkListKind enum. -func (e NetworkListKind) Valid() bool { - switch e { - case NetworkListKindNetworkList: - return true - default: - return false - } -} - // Defines values for NodeItemKind. const ( NodeItemKindNodeItem NodeItemKind = "NodeItem" ) -// Valid indicates whether the value is a known member of the NodeItemKind enum. -func (e NodeItemKind) Valid() bool { - switch e { - case NodeItemKindNodeItem: - return true - default: - return false - } -} - // Defines values for NodeListKind. const ( NodeListKindNodeList NodeListKind = "NodeList" ) -// Valid indicates whether the value is a known member of the NodeListKind enum. -func (e NodeListKind) Valid() bool { - switch e { - case NodeListKindNodeList: - return true - default: - return false - } -} - // Defines values for ObjectFrozen. const ( ObjectFrozenFrozen ObjectFrozen = "frozen" @@ -383,52 +147,16 @@ const ( ObjectFrozenUnfrozen ObjectFrozen = "unfrozen" ) -// Valid indicates whether the value is a known member of the ObjectFrozen enum. -func (e ObjectFrozen) Valid() bool { - switch e { - case ObjectFrozenFrozen: - return true - case ObjectFrozenMixed: - return true - case ObjectFrozenNa: - return true - case ObjectFrozenUnfrozen: - return true - default: - return false - } -} - // Defines values for ObjectItemKind. const ( ObjectItemKindObjectItem ObjectItemKind = "ObjectItem" ) -// Valid indicates whether the value is a known member of the ObjectItemKind enum. -func (e ObjectItemKind) Valid() bool { - switch e { - case ObjectItemKindObjectItem: - return true - default: - return false - } -} - // Defines values for ObjectListKind. const ( ObjectListKindObjectList ObjectListKind = "ObjectList" ) -// Valid indicates whether the value is a known member of the ObjectListKind enum. -func (e ObjectListKind) Valid() bool { - switch e { - case ObjectListKindObjectList: - return true - default: - return false - } -} - // Defines values for Orchestrate. const ( Ha Orchestrate = "ha" @@ -436,50 +164,16 @@ const ( Start Orchestrate = "start" ) -// Valid indicates whether the value is a known member of the Orchestrate enum. -func (e Orchestrate) Valid() bool { - switch e { - case Ha: - return true - case No: - return true - case Start: - return true - default: - return false - } -} - // Defines values for PackageItemKind. const ( PackageItemKindPackageItem PackageItemKind = "PackageItem" ) -// Valid indicates whether the value is a known member of the PackageItemKind enum. -func (e PackageItemKind) Valid() bool { - switch e { - case PackageItemKindPackageItem: - return true - default: - return false - } -} - // Defines values for PackageListKind. const ( PackageListKindPackageList PackageListKind = "PackageList" ) -// Valid indicates whether the value is a known member of the PackageListKind enum. -func (e PackageListKind) Valid() bool { - switch e { - case PackageListKindPackageList: - return true - default: - return false - } -} - // Defines values for PatchDataKeyAction. const ( Add PatchDataKeyAction = "add" @@ -488,22 +182,6 @@ const ( Rename PatchDataKeyAction = "rename" ) -// Valid indicates whether the value is a known member of the PatchDataKeyAction enum. -func (e PatchDataKeyAction) Valid() bool { - switch e { - case Add: - return true - case Change: - return true - case Remove: - return true - case Rename: - return true - default: - return false - } -} - // Defines values for PlacementPolicy. const ( LastStart PlacementPolicy = "last start" @@ -515,28 +193,6 @@ const ( Spread PlacementPolicy = "spread" ) -// Valid indicates whether the value is a known member of the PlacementPolicy enum. -func (e PlacementPolicy) Valid() bool { - switch e { - case LastStart: - return true - case LoadAvg: - return true - case NodesOrder: - return true - case None: - return true - case Score: - return true - case Shift: - return true - case Spread: - return true - default: - return false - } -} - // Defines values for PlacementState. const ( PlacementStateNa PlacementState = "n/a" @@ -545,82 +201,26 @@ const ( PlacementStateUndef PlacementState = "undef" ) -// Valid indicates whether the value is a known member of the PlacementState enum. -func (e PlacementState) Valid() bool { - switch e { - case PlacementStateNa: - return true - case PlacementStateNonOptimal: - return true - case PlacementStateOptimal: - return true - case PlacementStateUndef: - return true - default: - return false - } -} - // Defines values for PoolListKind. const ( PoolListKindPoolList PoolListKind = "PoolList" ) -// Valid indicates whether the value is a known member of the PoolListKind enum. -func (e PoolListKind) Valid() bool { - switch e { - case PoolListKindPoolList: - return true - default: - return false - } -} - // Defines values for PoolVolumeListKind. const ( PoolVolumeListKindPoolVolumeList PoolVolumeListKind = "PoolVolumeList" ) -// Valid indicates whether the value is a known member of the PoolVolumeListKind enum. -func (e PoolVolumeListKind) Valid() bool { - switch e { - case PoolVolumeListKindPoolVolumeList: - return true - default: - return false - } -} - // Defines values for ProcessListKind. const ( ProcessListKindProcessList ProcessListKind = "ProcessList" ) -// Valid indicates whether the value is a known member of the ProcessListKind enum. -func (e ProcessListKind) Valid() bool { - switch e { - case ProcessListKindProcessList: - return true - default: - return false - } -} - // Defines values for PropertyListKind. const ( PropertyListKindPropertyList PropertyListKind = "PropertyList" ) -// Valid indicates whether the value is a known member of the PropertyListKind enum. -func (e PropertyListKind) Valid() bool { - switch e { - case PropertyListKindPropertyList: - return true - default: - return false - } -} - // Defines values for Provisioned. const ( ProvisionedFalse Provisioned = "false" @@ -629,82 +229,26 @@ const ( ProvisionedTrue Provisioned = "true" ) -// Valid indicates whether the value is a known member of the Provisioned enum. -func (e Provisioned) Valid() bool { - switch e { - case ProvisionedFalse: - return true - case ProvisionedMixed: - return true - case ProvisionedNa: - return true - case ProvisionedTrue: - return true - default: - return false - } -} - // Defines values for RelayStatusListKind. const ( RelayStatusListKindRelayStatusList RelayStatusListKind = "RelayStatusList" ) -// Valid indicates whether the value is a known member of the RelayStatusListKind enum. -func (e RelayStatusListKind) Valid() bool { - switch e { - case RelayStatusListKindRelayStatusList: - return true - default: - return false - } -} - // Defines values for ResourceInfoListKind. const ( ResourceInfoListKindResourceInfoList ResourceInfoListKind = "ResourceInfoList" ) -// Valid indicates whether the value is a known member of the ResourceInfoListKind enum. -func (e ResourceInfoListKind) Valid() bool { - switch e { - case ResourceInfoListKindResourceInfoList: - return true - default: - return false - } -} - // Defines values for ResourceItemKind. const ( ResourceItemKindResourceItem ResourceItemKind = "ResourceItem" ) -// Valid indicates whether the value is a known member of the ResourceItemKind enum. -func (e ResourceItemKind) Valid() bool { - switch e { - case ResourceItemKindResourceItem: - return true - default: - return false - } -} - // Defines values for ResourceListKind. const ( ResourceListKindResourceList ResourceListKind = "ResourceList" ) -// Valid indicates whether the value is a known member of the ResourceListKind enum. -func (e ResourceListKind) Valid() bool { - switch e { - case ResourceListKindResourceList: - return true - default: - return false - } -} - // Defines values for Role. const ( Admin Role = "admin" @@ -719,109 +263,31 @@ const ( Squatter Role = "squatter" ) -// Valid indicates whether the value is a known member of the Role enum. -func (e Role) Valid() bool { - switch e { - case Admin: - return true - case Blacklistadmin: - return true - case Guest: - return true - case Heartbeat: - return true - case Join: - return true - case Leave: - return true - case Operator: - return true - case Prioritizer: - return true - case Root: - return true - case Squatter: - return true - default: - return false - } -} - // Defines values for SANPathInitiatorItemKind. const ( SANPathInitiatorItemKindSANPathInitiatorItem SANPathInitiatorItemKind = "SANPathInitiatorItem" ) -// Valid indicates whether the value is a known member of the SANPathInitiatorItemKind enum. -func (e SANPathInitiatorItemKind) Valid() bool { - switch e { - case SANPathInitiatorItemKindSANPathInitiatorItem: - return true - default: - return false - } -} - // Defines values for SANPathInitiatorListKind. const ( SANPathInitiatorListKindSANPathInitiatorList SANPathInitiatorListKind = "SANPathInitiatorList" ) -// Valid indicates whether the value is a known member of the SANPathInitiatorListKind enum. -func (e SANPathInitiatorListKind) Valid() bool { - switch e { - case SANPathInitiatorListKindSANPathInitiatorList: - return true - default: - return false - } -} - // Defines values for SANPathListKind. const ( SANPathListKindSANPathList SANPathListKind = "SANPathList" ) -// Valid indicates whether the value is a known member of the SANPathListKind enum. -func (e SANPathListKind) Valid() bool { - switch e { - case SANPathListKindSANPathList: - return true - default: - return false - } -} - // Defines values for ScheduleItemKind. const ( ScheduleItemKindResourceItem ScheduleItemKind = "ResourceItem" ) -// Valid indicates whether the value is a known member of the ScheduleItemKind enum. -func (e ScheduleItemKind) Valid() bool { - switch e { - case ScheduleItemKindResourceItem: - return true - default: - return false - } -} - // Defines values for ScheduleListKind. const ( ScheduleListKindScheduleList ScheduleListKind = "ScheduleList" ) -// Valid indicates whether the value is a known member of the ScheduleListKind enum. -func (e ScheduleListKind) Valid() bool { - switch e { - case ScheduleListKindScheduleList: - return true - default: - return false - } -} - // Defines values for Status. const ( StatusDown Status = "down" @@ -833,76 +299,22 @@ const ( StatusWarn Status = "warn" ) -// Valid indicates whether the value is a known member of the Status enum. -func (e Status) Valid() bool { - switch e { - case StatusDown: - return true - case StatusNa: - return true - case StatusStdbyDown: - return true - case StatusStdbyUp: - return true - case StatusUndef: - return true - case StatusUp: - return true - case StatusWarn: - return true - default: - return false - } -} - // Defines values for Topology. const ( Failover Topology = "failover" Flex Topology = "flex" ) -// Valid indicates whether the value is a known member of the Topology enum. -func (e Topology) Valid() bool { - switch e { - case Failover: - return true - case Flex: - return true - default: - return false - } -} - // Defines values for UserItemKind. const ( UserItemKindUserItem UserItemKind = "UserItem" ) -// Valid indicates whether the value is a known member of the UserItemKind enum. -func (e UserItemKind) Valid() bool { - switch e { - case UserItemKindUserItem: - return true - default: - return false - } -} - // Defines values for UserListKind. const ( UserListKindUserList UserListKind = "UserList" ) -// Valid indicates whether the value is a known member of the UserListKind enum. -func (e UserListKind) Valid() bool { - switch e { - case UserListKindUserList: - return true - default: - return false - } -} - // Defines values for PostDaemonAuditParamsLevel. const ( Debug PostDaemonAuditParamsLevel = "debug" @@ -912,24 +324,6 @@ const ( Warn PostDaemonAuditParamsLevel = "warn" ) -// Valid indicates whether the value is a known member of the PostDaemonAuditParamsLevel enum. -func (e PostDaemonAuditParamsLevel) Valid() bool { - switch e { - case Debug: - return true - case Error: - return true - case Info: - return true - case Trace: - return true - case Warn: - return true - default: - return false - } -} - // ArbitratorStatus defines model for ArbitratorStatus. type ArbitratorStatus struct { // Status Represents a resource, instance or object status, e.g., 'up', 'down', 'warn', .... @@ -2504,12 +1898,6 @@ type N500 = Problem // N503 defines model for 503. type N503 = Problem -// basicAuthContextKey is the context key for basicAuth security scheme -type basicAuthContextKey string - -// bearerAuthContextKey is the context key for bearerAuth security scheme -type bearerAuthContextKey string - // GetArrayParams defines parameters for GetArray. type GetArrayParams struct { // Name the name of a backend storage array @@ -3191,7 +2579,7 @@ type GetRelayMessageParams struct { // Nodename the nodename component of the slot id on the relay Nodename RelayNodename `form:"nodename" json:"nodename"` - // ClusterID the cluster id component of the slot id on the relay + // ClusterId the cluster id component of the slot id on the relay ClusterID ClusterID `form:"cluster_id" json:"cluster_id"` // Username If true and the requester has the root grant, read the message from the specified user relay partition instead of the requester's partition. @@ -3200,7 +2588,7 @@ type GetRelayMessageParams struct { // GetRelayStatusParams defines parameters for GetRelayStatus. type GetRelayStatusParams struct { - // Relays list of relays to include in the response dataset + // Relay list of relays to include in the response dataset Relays *Relays `form:"relay,omitempty" json:"relay,omitempty"` // Remote If true, report the status of relays the server is client of. If false or not set, report the status of the server embedded relay. @@ -3267,7 +2655,7 @@ func (t *ObjectData) MergeObjectActor(v ObjectActor) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -3293,7 +2681,7 @@ func (t *ObjectData) MergeObjectCore(v ObjectCore) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -3319,7 +2707,7 @@ func (t *ObjectData) MergeObjectCcfg(v ObjectCcfg) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -3345,7 +2733,7 @@ func (t *ObjectData) MergeObjectCfg(v ObjectCfg) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -3371,7 +2759,7 @@ func (t *ObjectData) MergeObjectSec(v ObjectSec) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -3397,7 +2785,7 @@ func (t *ObjectData) MergeObjectSvc(v ObjectSvc) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -3423,7 +2811,7 @@ func (t *ObjectData) MergeObjectUsr(v ObjectUsr) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -3449,7 +2837,7 @@ func (t *ObjectData) MergeObjectVol(v ObjectVol) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -3475,7 +2863,7 @@ func (t *ObjectData) MergeObjectVolConfig(v ObjectVolConfig) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } diff --git a/daemon/discover/fs_watcher.go b/daemon/discover/fs_watcher.go index 7e6b76d0a..2facb0603 100644 --- a/daemon/discover/fs_watcher.go +++ b/daemon/discover/fs_watcher.go @@ -2,7 +2,6 @@ package discover import ( "context" - "fmt" "io/fs" "os" "path/filepath" @@ -271,17 +270,7 @@ func (t *Manager) fsWatcherStart() (func(), error) { } func cfgFilenameToPath(filename string) (naming.Path, error) { - return filenameToPath(filename, rawconfig.Paths.Etc, ".conf") -} - -func filenameToPath(filename, prefix, suffix string) (naming.Path, error) { - svcName := strings.TrimPrefix(filename, prefix+"/") - svcName = strings.TrimPrefix(svcName, "namespaces/") - svcName = strings.TrimSuffix(svcName, suffix) - if len(svcName) == 0 { - return naming.Path{}, fmt.Errorf("skipped null filename") - } - return naming.ParsePath(svcName) + return naming.ConfigFilePath(filename) } func runFilenameToPathAndRID(filename string) (naming.Path, string, error) { diff --git a/daemon/imon/main.go b/daemon/imon/main.go index 5545e8a5e..6786f2020 100644 --- a/daemon/imon/main.go +++ b/daemon/imon/main.go @@ -481,7 +481,7 @@ func (t *Manager) attachActiveAuditIfAny() { t.standbyResourceOrchestrate.log = t.log.AddPrefix("standby resource: ") } -// ensureBooted runs the bot action on not yet booted object +// ensureBooted runs the boot action on not yet booted object func (t *Manager) ensureBooted() { instanceLastBootID := lastBootID(t.path) nodeLastBootID := bootid.Get() diff --git a/go.mod b/go.mod index 3ca0d747b..03da9788b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/opensvc/om3/v3 -go 1.24.0 +go 1.24.3 require ( github.com/allenai/go-swaggerui v0.1.0 @@ -23,7 +23,7 @@ require ( github.com/fsnotify/fsnotify v1.6.0 github.com/g8rswimmer/error-chain v1.0.0 github.com/gdamore/tcell/v2 v2.7.1 - github.com/getkin/kin-openapi v0.133.0 + github.com/getkin/kin-openapi v0.135.0 github.com/goccy/go-json v0.10.2 github.com/golang-collections/collections v0.0.0-20130729185459-604e922904d3 github.com/golang-jwt/jwt/v5 v5.2.2 @@ -49,7 +49,7 @@ require ( github.com/mlafeldt/sysrq v0.0.0-20171106101645-38dd78d6e663 github.com/msoap/byline v1.1.1 github.com/ncw/directio v1.0.5 - github.com/oapi-codegen/oapi-codegen/v2 v2.6.0 + github.com/oapi-codegen/oapi-codegen/v2 v2.7.1 github.com/oapi-codegen/runtime v1.2.0 github.com/opencontainers/runtime-spec v1.0.2 github.com/opensvc/fcache v1.1.0 @@ -76,12 +76,12 @@ require ( github.com/ybbus/jsonrpc v2.1.2+incompatible github.com/yookoala/realpath v1.0.0 github.com/zcalusic/sysinfo v0.0.0-20210831153053-2c6e1d254246 - golang.org/x/crypto v0.45.0 + golang.org/x/crypto v0.48.0 golang.org/x/exp v0.0.0-20230725093048-515e97ebf090 - golang.org/x/net v0.47.0 - golang.org/x/sync v0.18.0 - golang.org/x/sys v0.38.0 - golang.org/x/term v0.37.0 + golang.org/x/net v0.50.0 + golang.org/x/sync v0.19.0 + golang.org/x/sys v0.41.0 + golang.org/x/term v0.40.0 golang.org/x/time v0.11.0 gopkg.in/errgo.v2 v2.1.0 gopkg.in/natefinch/lumberjack.v2 v2.0.0 @@ -98,11 +98,11 @@ require ( github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/cilium/ebpf v0.11.0 // indirect github.com/coreos/go-iptables v0.5.0 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/docker/go-units v0.4.0 // indirect github.com/gdamore/encoding v1.0.0 // indirect - github.com/go-openapi/jsonpointer v0.21.0 // indirect - github.com/go-openapi/swag v0.23.0 // indirect + github.com/go-openapi/jsonpointer v0.22.4 // indirect + github.com/go-openapi/swag/jsonname v0.25.4 // indirect github.com/godbus/dbus/v5 v5.0.4 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/gddo v0.0.0-20210115222349-20d68f94ee1f // indirect @@ -115,7 +115,7 @@ require ( github.com/logrusorgru/aurora v2.0.3+incompatible // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect github.com/lunixbochs/vtclean v1.0.0 // indirect - github.com/mailru/easyjson v0.7.7 // indirect + github.com/mailru/easyjson v0.9.1 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mdlayher/netlink v1.4.2 // indirect github.com/mdlayher/socket v0.0.0-20211102153432-57e3fa563ecb // indirect @@ -123,11 +123,11 @@ require ( github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/nxadm/tail v1.4.8 // indirect - github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037 // indirect - github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90 // indirect + github.com/oasdiff/yaml v0.0.9 // indirect + github.com/oasdiff/yaml3 v0.0.9 // indirect github.com/opensvc/locker v1.0.3 // indirect github.com/perimeterx/marshmallow v1.1.5 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/prometheus/client_model v0.6.2 // indirect github.com/prometheus/common v0.63.0 // indirect github.com/rivo/uniseg v0.4.7 // indirect @@ -135,11 +135,11 @@ require ( github.com/sirupsen/logrus v1.9.1 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fasttemplate v1.2.2 // indirect - github.com/woodsbury/decimal128 v1.3.0 // indirect + github.com/woodsbury/decimal128 v1.4.0 // indirect go.uber.org/goleak v1.3.0 // indirect - golang.org/x/mod v0.29.0 // indirect - golang.org/x/text v0.31.0 // indirect - golang.org/x/tools v0.38.0 // indirect + golang.org/x/mod v0.33.0 // indirect + golang.org/x/text v0.34.0 // indirect + golang.org/x/tools v0.42.0 // indirect golang.org/x/tools/go/expect v0.1.1-deprecated // indirect google.golang.org/protobuf v1.36.6 // indirect gopkg.in/go-jose/go-jose.v2 v2.6.3 // indirect diff --git a/go.sum b/go.sum index 3eaa8f496..d1eb47ac7 100644 --- a/go.sum +++ b/go.sum @@ -66,8 +66,9 @@ github.com/d2g/hardwareaddr v0.0.0-20190221164911-e7d9fbe030e4/go.mod h1:bMl4RjI github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964 h1:y5HC9v93H5EPKqaS1UYVg1uYah5Xf51mBfIoWehClUQ= github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964/go.mod h1:Xd9hchkHSWYkEqJwUGisez3G1QY8Ryz0sdWrLPMGjLk= 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= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/devans10/pugo/pure1 v0.0.0-20241116160615-6bb8c469c9a0 h1:U6cRt+2OHwDc1Y8jV+oYOmYtDmEeG7vt21W7QYPi/Rk= github.com/devans10/pugo/pure1 v0.0.0-20241116160615-6bb8c469c9a0/go.mod h1:F9Q3/qP2+FfXNR/2V2vjquc2vXXHEPlW+YffwHatVXM= github.com/digitalocean/go-smbios v0.0.0-20180907143718-390a4f403a8e h1:vUmf0yezR0y7jJ5pceLHthLaYf4bA5T14B6q39S4q2Q= @@ -97,20 +98,22 @@ github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdk github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg= github.com/gdamore/tcell/v2 v2.7.1 h1:TiCcmpWHiAU7F0rA2I3S2Y4mmLmO9KHxJ7E1QhYzQbc= github.com/gdamore/tcell/v2 v2.7.1/go.mod h1:dSXtXTSK0VsW1biw65DZLZ2NKr7j0qP/0J7ONmsraWg= -github.com/getkin/kin-openapi v0.133.0 h1:pJdmNohVIJ97r4AUFtEXRXwESr8b0bD721u/Tz6k8PQ= -github.com/getkin/kin-openapi v0.133.0/go.mod h1:boAciF6cXk5FhPqe/NQeBTeenbjqU4LhWBf09ILVvWE= +github.com/getkin/kin-openapi v0.135.0 h1:751SjYfbiwqukYuVjwYEIKNfrSwS5YpA7DZnKSwQgtg= +github.com/getkin/kin-openapi v0.135.0/go.mod h1:6dd5FJl6RdX4usBtFBaQhk9q62Yb2J0Mk5IhUO/QqFI= github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/go-asn1-ber/asn1-ber v1.5.1/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0= github.com/go-ldap/ldap/v3 v3.2.4/go.mod h1:iYS1MdmrmceOJ1QOTnRXrIs7i3kloqtmGQjRvjKpyMg= github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= -github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= -github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= +github.com/go-openapi/jsonpointer v0.22.4 h1:dZtK82WlNpVLDW2jlA1YCiVJFVqkED1MegOUy9kR5T4= +github.com/go-openapi/jsonpointer v0.22.4/go.mod h1:elX9+UgznpFhgBuaMQ7iu4lvvX1nvNsesQ3oxmYTw80= github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I= -github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= -github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= +github.com/go-openapi/swag/jsonname v0.25.4 h1:bZH0+MsS03MbnwBXYhuTttMOqk+5KcQ9869Vye1bNHI= +github.com/go-openapi/swag/jsonname v0.25.4/go.mod h1:GPVEk9CWVhNvWhZgrnvRA6utbAltopbKwDu8mXNUMag= +github.com/go-openapi/testify/v2 v2.0.2 h1:X999g3jeLcoY8qctY/c/Z8iBHTbwLz7R2WXd6Ub6wls= +github.com/go-openapi/testify/v2 v2.0.2/go.mod h1:HCPmvFFnheKK2BuwSA0TbbdxJ3I16pjwMkYkP4Ywn54= github.com/go-stack/stack v1.6.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-test/deep v1.0.8 h1:TDsG77qcSprGbC6vTN8OuXp5g+J+b5Pcguhf7Zt61VM= github.com/go-test/deep v1.0.8/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= @@ -245,8 +248,8 @@ github.com/lunixbochs/vtclean v1.0.0 h1:xu2sLAri4lGiovBDQKxl5mrXyESr3gUr5m5SM5+L github.com/lunixbochs/vtclean v1.0.0/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI= github.com/magiconair/properties v1.7.4-0.20170902060319-8d7837e64d3c/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= -github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mailru/easyjson v0.9.1 h1:LbtsOm5WAswyWbvTEOqhypdPeZzHavpZx96/n553mR8= +github.com/mailru/easyjson v0.9.1/go.mod h1:1+xMtQp2MRNVL/V1bOzuP3aP8VNwRW55fQUto+XFtTU= github.com/mattn/go-colorable v0.0.10-0.20170816031813-ad5389df28cd/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= @@ -305,14 +308,14 @@ github.com/ncw/directio v1.0.5/go.mod h1:rX/pKEYkOXBGOggmcyJeJGloCkleSvphPx2eV3t github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/oapi-codegen/oapi-codegen/v2 v2.6.0 h1:4i+F2cvwBFZeplxCssNdLy3MhNzUD87mI3HnayHZkAU= -github.com/oapi-codegen/oapi-codegen/v2 v2.6.0/go.mod h1:eWHeJSohQJIINJZzzQriVynfGsnlQVh0UkN2UYYcw4Q= +github.com/oapi-codegen/oapi-codegen/v2 v2.7.1 h1:a7Ab7YlpqkVG5HKrTaeFstm32Z5QOnyjnbsCO0jiMYM= +github.com/oapi-codegen/oapi-codegen/v2 v2.7.1/go.mod h1:qzFy6iuobJw/hD1aRILee4G87/ShmhR0xYCwcUtZMCw= github.com/oapi-codegen/runtime v1.2.0 h1:RvKc1CVS1QeKSNzO97FBQbSMZyQ8s6rZd+LpmzwHMP4= github.com/oapi-codegen/runtime v1.2.0/go.mod h1:Y7ZhmmlE8ikZOmuHRRndiIm7nf3xcVv+YMweKgG1DT0= -github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037 h1:G7ERwszslrBzRxj//JalHPu/3yz+De2J+4aLtSRlHiY= -github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037/go.mod h1:2bpvgLBZEtENV5scfDFEtB/5+1M4hkQhDQrccEJ/qGw= -github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90 h1:bQx3WeLcUWy+RletIKwUIt4x3t8n2SxavmoclizMb8c= -github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90/go.mod h1:y5+oSEHCPT/DGrS++Wc/479ERge0zTFxaF8PbGKcg2o= +github.com/oasdiff/yaml v0.0.9 h1:zQOvd2UKoozsSsAknnWoDJlSK4lC0mpmjfDsfqNwX48= +github.com/oasdiff/yaml v0.0.9/go.mod h1:8lvhgJG4xiKPj3HN5lDow4jZHPlx1i7dIwzkdAo6oAM= +github.com/oasdiff/yaml3 v0.0.9 h1:rWPrKccrdUm8J0F3sGuU+fuh9+1K/RdJlWF7O/9yw2g= +github.com/oasdiff/yaml3 v0.0.9/go.mod h1:y5+oSEHCPT/DGrS++Wc/479ERge0zTFxaF8PbGKcg2o= github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -344,8 +347,9 @@ github.com/perimeterx/marshmallow v1.1.5/go.mod h1:dsXbUu8CRzfYP5a87xpp0xq9S3u0V 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= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_golang v1.22.0 h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q= github.com/prometheus/client_golang v1.22.0/go.mod h1:R7ljNsLXhuQXYZYtw6GAE9AZg8Y7vEW5scdCXrWRXC0= github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk= @@ -423,8 +427,8 @@ github.com/vishvananda/netns v0.0.0-20180720170159-13995c7128cc/go.mod h1:ZjcWmF github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f h1:p4VB7kIXpOQvVn1ZaTIVp+3vuYAXFe3OJEvjbUYJLaA= github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= -github.com/woodsbury/decimal128 v1.3.0 h1:8pffMNWIlC0O5vbyHWFZAt5yWvWcrHA+3ovIIjVWss0= -github.com/woodsbury/decimal128 v1.3.0/go.mod h1:C5UTmyTjW3JftjUFzOVhC20BEQa2a4ZKOB5I6Zjb+ds= +github.com/woodsbury/decimal128 v1.4.0 h1:xJATj7lLu4f2oObouMt2tgGiElE5gO6mSWUjQsBgUlc= +github.com/woodsbury/decimal128 v1.4.0/go.mod h1:BP46FUrVjVhdTbKT+XuQh2xfQaGki9LMIRJSFuh6THU= github.com/ybbus/jsonrpc v2.1.2+incompatible h1:V4mkE9qhbDQ92/MLMIhlhMSbz8jNXdagC3xBR5NDwaQ= github.com/ybbus/jsonrpc v2.1.2+incompatible/go.mod h1:XJrh1eMSzdIYFbM08flv0wp5G35eRniyeGut1z+LSiE= github.com/yookoala/realpath v1.0.0 h1:7OA9pj4FZd+oZDsyvXWQvjn5oBdcHRTV44PpdMSuImQ= @@ -443,8 +447,8 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q= -golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4= +golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts= +golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos= golang.org/x/exp v0.0.0-20230725093048-515e97ebf090 h1:Di6/M8l0O2lCLc6VVRWhgCiApHV8MnQurBnFSHsQtNY= golang.org/x/exp v0.0.0-20230725093048-515e97ebf090/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -453,8 +457,8 @@ golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.29.0 h1:HV8lRxZC4l2cr3Zq1LvtOsi/ThTgWnUk/y64QSs8GwA= -golang.org/x/mod v0.29.0/go.mod h1:NyhrlYXJ2H4eJiRy/WDBO6HMqZQ6q9nk4JzS3NuCK+w= +golang.org/x/mod v0.33.0 h1:tHFzIWbBifEmbwtGz65eaWyGiGZatSrT9prnU8DbVL8= +golang.org/x/mod v0.33.0/go.mod h1:swjeQEj+6r7fODbD2cqrnje9PnziFuw4bmLbBZFrQ5w= golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -484,8 +488,8 @@ golang.org/x/net v0.0.0-20211201190559-0a0e4e1bb54c/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20211209124913-491a49abca63/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY= -golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU= +golang.org/x/net v0.50.0 h1:ucWh9eiCGyDR3vtzso0WMQinm2Dnt8cFMuQa9K33J60= +golang.org/x/net v0.50.0/go.mod h1:UgoSli3F/pBgdJBHCTc+tp3gmrU4XswgGRgtnwWTfyM= golang.org/x/oauth2 v0.0.0-20170912212905-13449ad91cb2/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/sync v0.0.0-20170517211232-f52d1811a629/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -495,8 +499,8 @@ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -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/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4= +golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -545,14 +549,14 @@ golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.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/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k= +golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU= -golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254= +golang.org/x/term v0.40.0 h1:36e4zGLqU4yhjlmxEaagx2KuYbJq3EwY8K943ZsHcvg= +golang.org/x/term v0.40.0/go.mod h1:w2P8uVp06p2iyKKuvXIm7N/y0UCRt3UfJTfZ7oOpglM= golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 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= @@ -561,8 +565,8 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM= -golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM= +golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk= +golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA= golang.org/x/time v0.0.0-20170424234030-8be79e1e0910/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.11.0 h1:/bpjEDfN9tkoN/ryeYHnv5hcMlc8ncjMcM4XBk5NWV0= golang.org/x/time v0.11.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg= @@ -577,8 +581,8 @@ golang.org/x/tools v0.1.7/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo= golang.org/x/tools v0.1.8/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -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/tools v0.42.0 h1:uNgphsn75Tdz5Ji2q36v/nsFSfR/9BRFvqhGBaJGd5k= +golang.org/x/tools v0.42.0/go.mod h1:Ma6lCIwGZvHK6XtgbswSoWroEkhugApmsXyrUmBhfr0= golang.org/x/tools/go/expect v0.1.1-deprecated h1:jpBZDwmgPhXsKZC6WhL20P4b/wmnpsEAGHaNy0n/rJM= golang.org/x/tools/go/expect v0.1.1-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/util/pg/linux.go b/util/pg/linux.go index 75b3de0f3..bd0f03dcf 100644 --- a/util/pg/linux.go +++ b/util/pg/linux.go @@ -16,10 +16,10 @@ import ( ) // ApplyProc creates the cgroup, set caps, and add the specified process -func (c Config) ApplyProc(pid int) error { - var errs error +func (c Config) ApplyProc(pid int) (created bool, errs error) { if c.ID == "" { - return fmt.Errorf("the pg config application requires a non empty pg id") + errs = fmt.Errorf("the pg config application requires a non empty pg id") + return } r := specs.LinuxResources{ CPU: &specs.LinuxCPU{}, @@ -94,12 +94,14 @@ func (c Config) ApplyProc(pid int) error { if err != nil { errs = errors.Join(errs, fmt.Errorf("new pg %s: %w", c.ID, err)) } else if pid == 0 { + created = true // pass } else if err := control.Add(cgroups.Process{Pid: pid}); err != nil { + created = true errs = errors.Join(errs, fmt.Errorf("add pid to pg %s: %w", c.ID, err)) } } - return errs + return } func (c Config) Delete() (bool, error) { diff --git a/util/pg/main.go b/util/pg/main.go index 54544a7f7..d01d9508e 100644 --- a/util/pg/main.go +++ b/util/pg/main.go @@ -2,14 +2,16 @@ package pg import ( "context" + "errors" "fmt" "os" - "path/filepath" "runtime" "sort" "strconv" "strings" + "sync" + "github.com/opensvc/om3/v3/util/plog" "github.com/opensvc/om3/v3/util/xmap" ) @@ -25,49 +27,29 @@ type ( VMemLimit string MemSwappiness string BlockIOWeight string + applied bool + log *plog.Logger + } + Mgr struct { + mu sync.Mutex + configs map[string]*Config } CPUQuota string key int - State int - entry struct { - State State - Config *Config - } - Run struct { - Err error - Config *Config - Changed bool - } - Mgr map[string]*entry -) - -const ( - Init State = iota - Applied - Deleted -) - -var ( - mgrKey key = 0 ) -func UnifiedPath() string { - mnt := "/sys/fs/cgroup" - _, err := os.Stat(mnt + "/cgroup.procs") - if err == nil { - return mnt - } - return mnt + "/unified" +// WithLogger sets the logger for this Config and returns itself for chaining. +func (c *Config) WithLogger(l *plog.Logger) *Config { + c.log = l + return c } -func (e entry) NewRun() *Run { - r := Run{Config: e.Config} - return &r -} +var mgrKey key = 0 func NewContext(ctx context.Context) context.Context { - t := make(Mgr) - return context.WithValue(ctx, mgrKey, &t) + return context.WithValue(ctx, mgrKey, &Mgr{ + configs: make(map[string]*Config), + }) } func FromContext(ctx context.Context) *Mgr { @@ -78,128 +60,103 @@ func FromContext(ctx context.Context) *Mgr { return v.(*Mgr) } -func (t Mgr) Register(c *Config) { +func (m *Mgr) Register(c *Config) { if c == nil { return } - if _, ok := t[c.ID]; ok { + m.mu.Lock() + defer m.mu.Unlock() + if _, ok := m.configs[c.ID]; ok { + // Don't reset the "applied" bool if the config is registered again. + // We don't need to handle in-run config changes. return } - t[c.ID] = &entry{ - Config: c, - } -} - -// RevChain returns the list of self and parents from closest to farthest -func RevChain(id string) []string { - chain := make([]string, 0) - for { - chain = append(chain, id) - nid := filepath.Dir(id) - if nid == id { - break + m.configs[c.ID] = c +} + +// ApplyConfigs applies all registered pg configs in order (base to leaf). +// Each config is applied only if not already applied. +func (m *Mgr) ApplyConfigs() error { + m.mu.Lock() + defer m.mu.Unlock() + var errs error + ids := xmap.Keys(m.configs) + sort.Strings(ids) + for _, id := range ids { + c := m.configs[id] + if _, err := c.ApplyOnce(); err != nil { + errs = errors.Join(errs, err) } - id = nid } - return chain -} - -func Chain(id string) []string { - l := RevChain(id) - sort.Sort(sort.StringSlice(l)) - return l + return errs } -func (t Mgr) IDs() []string { - return xmap.Keys(t) -} - -func (t Mgr) RevIDs() []string { - l := t.IDs() - sort.Sort(sort.Reverse(sort.StringSlice(l))) - return l +func (m *Mgr) Clean() { + m.mu.Lock() + defer m.mu.Unlock() + // Clean in reverse order (LIFO) + ids := xmap.Keys(m.configs) + sort.Strings(ids) + for i := len(ids) - 1; i >= 0; i-- { + id := ids[i] + m.configs[id].Clean() + } } -func (t Mgr) Clean() []Run { - runs := make([]Run, 0) - for _, p := range t.RevIDs() { - e, ok := t[p] - if !ok { - continue - } - r := e.NewRun() - switch e.State { - case Init, Applied: - if r.Changed, r.Err = e.Config.Delete(); r.Changed { - e.State = Deleted - } - default: - r.Changed = false - } - runs = append(runs, *r) +func UnifiedPath() string { + mnt := "/sys/fs/cgroup" + _, err := os.Stat(mnt + "/cgroup.procs") + if err == nil { + return mnt } - return runs + return mnt + "/unified" } -func (e *entry) Run() *Run { - r := e.NewRun() - if e.Config == nil { - r.Err = fmt.Errorf("no pg config") - r.Changed = false - return r +// ApplyOnce applies the pg configuration if it hasn't been applied already. +// Returns true if the config was applied, false if it was already applied. +func (c *Config) ApplyOnce() (bool, error) { + if c == nil { + return false, fmt.Errorf("no pg config") } - switch e.State { - case Init, Deleted: - e.State = Applied - r.Err = e.Config.ApplyNoProc() - r.Changed = true - case Applied: - r.Changed = false - return r + if c.applied { + return false, nil } - return r -} - -func (t Mgr) Apply(id string) []Run { - runs := make([]Run, 0) - for _, p := range Chain(id) { - if e, ok := t[p]; ok { - r := e.Run() - runs = append(runs, *r) + created, err := c.ApplyProc(0) + if err == nil { + c.applied = true + // Log at info level + if c.log != nil { + configStr := c.String() + if strings.Contains(configStr, "=") { + c.log.Infof("applied %s", configStr) + } else if created { + c.log.Infof("created %s", configStr) + } else { + c.log.Debugf("pg already exists: %s", configStr) + } } } - return runs + return err == nil, err } -func (c Config) needApply() bool { - if c.CPUs != "" { - return true - } - if c.Mems != "" { - return true - } - if c.CPUShares != "" { - return true - } - if c.CPUQuota != "" { - return true - } - if c.MemOOMControl != "" { - return true +// Clean removes the pg configuration if it was applied. +func (c *Config) Clean() (bool, error) { + if c == nil || !c.applied { + return false, nil } - if c.MemLimit != "" { - return true - } - if c.VMemLimit != "" { - return true - } - if c.MemSwappiness != "" { - return true - } - if c.BlockIOWeight != "" { - return true + c.applied = false + changed, err := c.Delete() + if changed && c.log != nil { + c.log.Debugf("remove pg %s", c.ID) } - return false + return changed, err +} + +// Apply is a convenience method for compatibility. +// Use (*Config).Apply() for state-tracking apply. +func (c Config) Apply() error { + _, err := c.ApplyProc(os.Getpid()) + return err } func (c Config) String() string { @@ -287,13 +244,3 @@ func (t CPUQuota) Convert(period uint64) (int64, error) { } return int64(pct) * int64(period) * int64(cpus) / int64(maxCpus) / 100, nil } - -// ApplyNoProc creates the cgroup, set caps, but does not add a process -func (c Config) ApplyNoProc() error { - return c.ApplyProc(0) -} - -// Apply creates the cgroup, set caps, and add the running process -func (c Config) Apply() error { - return c.ApplyProc(os.Getpid()) -} diff --git a/util/prioqueue/main.go b/util/prioqueue/main.go index 3d89f9240..0939269ca 100644 --- a/util/prioqueue/main.go +++ b/util/prioqueue/main.go @@ -1,3 +1,16 @@ +// Package prioqueue implements a priority queue using a heap-based implementation. +// +// Items are ordered according to the Interface.Before method. The queue is a min-heap: +// items for which Before returns true come first. This means lower priority values +// (as defined by the Before implementation) are popped before higher values. +// +// For example, the daemon/runner implements: +// +// func (a *MyItem) Before(b prioqueue.Interface) bool { +// return a.Priority < b.(*MyItem).Priority +// } +// +// Then an item with Priority=1 will be popped before an item with Priority=2. package prioqueue import (