diff --git a/core/client/api/get_logs.go b/core/client/api/get_logs.go index be69916b1..4cad79dd1 100644 --- a/core/client/api/get_logs.go +++ b/core/client/api/get_logs.go @@ -86,11 +86,11 @@ func (t *GetLogs) GetReader() (event.ReadCloser, error) { func (t GetLogs) eventsBase() (resp *http.Response, err error) { if t.Paths != nil { - params := api.GetObjectLogsParams{ + params := api.GetInstancesLogsParams{ Filter: t.Filters, Paths: *t.Paths, } - resp, err = t.client.GetObjectLogs(context.Background(), ¶ms) + resp, err = t.client.GetInstancesLogs(context.Background(), ¶ms) } else { params := api.GetNodeLogsParams{ Filter: t.Filters, diff --git a/core/commands/object_clear.go b/core/commands/object_clear.go index a38acbb96..adb5ab23e 100644 --- a/core/commands/object_clear.go +++ b/core/commands/object_clear.go @@ -8,7 +8,6 @@ import ( "github.com/opensvc/om3/core/client" "github.com/opensvc/om3/core/objectselector" - "github.com/opensvc/om3/daemon/api" ) type ( @@ -38,10 +37,7 @@ func (t *CmdObjectClear) Run(selector, kind string) error { if err != nil { return err } - params := api.PostObjectClear{ - Path: p.String(), - } - if resp, err := c.PostObjectClear(context.Background(), params); err != nil { + if resp, err := c.PostInstanceClear(context.Background(), p.Namespace, p.Kind.String(), p.Name); err != nil { errs = errors.Join(errs, fmt.Errorf("unexpected post object clear %s@%s error %s", p, node, err)) } else if resp.StatusCode != http.StatusOK { errs = errors.Join(errs, fmt.Errorf("unexpected post object clear %s@%s status code %s", p, node, resp.Status)) diff --git a/core/commands/object_edit_config.go b/core/commands/object_edit_config.go index 059a8b7cb..bcf7e7be9 100644 --- a/core/commands/object_edit_config.go +++ b/core/commands/object_edit_config.go @@ -13,7 +13,6 @@ import ( "github.com/opensvc/om3/core/objectselector" "github.com/opensvc/om3/core/path" "github.com/opensvc/om3/core/xconfig" - "github.com/opensvc/om3/daemon/api" "github.com/opensvc/om3/util/editor" "github.com/opensvc/om3/util/file" ) @@ -72,10 +71,7 @@ func (t *CmdObjectEditConfig) doLocal(obj object.Configurer, c *client.T) error } func fetchConfig(p path.T, c *client.T) ([]byte, error) { - params := api.GetObjectFileParams{ - Path: p.String(), - } - resp, err := c.GetObjectFileWithResponse(context.Background(), ¶ms) + resp, err := c.GetObjectFileWithResponse(context.Background(), p.Namespace, p.Kind.String(), p.Name) if err != nil { return nil, err } else if resp.StatusCode() != http.StatusOK { diff --git a/core/commands/object_logs.go b/core/commands/object_logs.go index 71b5fa917..9c150dd62 100644 --- a/core/commands/object_logs.go +++ b/core/commands/object_logs.go @@ -32,7 +32,7 @@ func (t *CmdObjectLogs) backlog(node string, paths path.L) (slog.Events, error) if err != nil { return nil, err } - resp, err := c.GetObjectBacklogs(context.Background(), &api.GetObjectBacklogsParams{Filter: t.Filter, Paths: paths.StrSlice()}) + resp, err := c.GetInstancesBacklogs(context.Background(), &api.GetInstancesBacklogsParams{Filter: t.Filter, Paths: paths.StrSlice()}) if err != nil { return nil, err } diff --git a/core/commands/object_print_config.go b/core/commands/object_print_config.go index a9058b54a..a8c9bfad5 100644 --- a/core/commands/object_print_config.go +++ b/core/commands/object_print_config.go @@ -73,11 +73,10 @@ func (t *CmdObjectPrintConfig) extractLocal(p path.T) (rawconfig.T, error) { func (t *CmdObjectPrintConfig) extractFromDaemon(p path.T, c *client.T) (rawconfig.T, error) { params := api.GetObjectConfigParams{ - Path: p.String(), Evaluate: &t.Eval, Impersonate: &t.Impersonate, } - resp, err := c.GetObjectConfigWithResponse(context.Background(), ¶ms) + resp, err := c.GetObjectConfigWithResponse(context.Background(), p.Namespace, p.Kind.String(), p.Name, ¶ms) if err != nil { return rawconfig.T{}, err } else if resp.StatusCode() != http.StatusOK { @@ -93,6 +92,7 @@ func (t *CmdObjectPrintConfig) extractFromDaemon(p path.T, c *client.T) (rawconf } else { return data, nil } + return rawconfig.T{}, nil } func parseRoutedResponse(b []byte) (rawconfig.T, error) { diff --git a/core/object/core_action.go b/core/object/core_action.go index 3f7ae017b..05d8d4d25 100644 --- a/core/object/core_action.go +++ b/core/object/core_action.go @@ -161,8 +161,8 @@ func (t *actor) announceProgress(ctx context.Context, progress string) error { return err } isPartial := !resourceselector.FromContext(ctx, nil).IsZero() - resp, err := c.PostObjectProgress(ctx, api.PostObjectProgress{ - Path: t.path.String(), + p := t.Path() + resp, err := c.PostInstanceProgress(ctx, p.Namespace, p.Kind.String(), p.Name, api.PostInstanceProgress{ State: progress, SessionId: xsession.ID, IsPartial: &isPartial, diff --git a/core/objectaction/object.go b/core/objectaction/object.go index 29c5b2488..ac371bfe3 100644 --- a/core/objectaction/object.go +++ b/core/objectaction/object.go @@ -410,8 +410,7 @@ func (t T) DoAsync() error { } switch target { case instance.MonitorGlobalExpectAborted: - params := api.PostObjectAction{Path: p.String()} - if resp, e := c.PostObjectActionAbortWithResponse(ctx, params); e != nil { + if resp, e := c.PostObjectActionAbortWithResponse(ctx, p.Namespace, p.Kind.String(), p.Name); e != nil { err = e } else { switch resp.StatusCode() { @@ -432,8 +431,7 @@ func (t T) DoAsync() error { } } case instance.MonitorGlobalExpectDeleted: - params := api.PostObjectAction{Path: p.String()} - if resp, e := c.PostObjectActionDeleteWithResponse(ctx, params); e != nil { + if resp, e := c.PostObjectActionDeleteWithResponse(ctx, p.Namespace, p.Kind.String(), p.Name); e != nil { err = e } else { switch resp.StatusCode() { @@ -454,8 +452,7 @@ func (t T) DoAsync() error { } } case instance.MonitorGlobalExpectFrozen: - params := api.PostObjectAction{Path: p.String()} - if resp, e := c.PostObjectActionFreezeWithResponse(ctx, params); e != nil { + if resp, e := c.PostObjectActionFreezeWithResponse(ctx, p.Namespace, p.Kind.String(), p.Name); e != nil { err = e } else { switch resp.StatusCode() { @@ -476,8 +473,7 @@ func (t T) DoAsync() error { } } case instance.MonitorGlobalExpectProvisioned: - params := api.PostObjectAction{Path: p.String()} - if resp, e := c.PostObjectActionProvisionWithResponse(ctx, params); e != nil { + if resp, e := c.PostObjectActionProvisionWithResponse(ctx, p.Namespace, p.Kind.String(), p.Name); e != nil { err = e } else { switch resp.StatusCode() { @@ -498,8 +494,7 @@ func (t T) DoAsync() error { } } case instance.MonitorGlobalExpectPurged: - params := api.PostObjectAction{Path: p.String()} - if resp, e := c.PostObjectActionPurgeWithResponse(ctx, params); e != nil { + if resp, e := c.PostObjectActionPurgeWithResponse(ctx, p.Namespace, p.Kind.String(), p.Name); e != nil { err = e } else { switch resp.StatusCode() { @@ -520,8 +515,7 @@ func (t T) DoAsync() error { } } case instance.MonitorGlobalExpectStarted: - params := api.PostObjectAction{Path: p.String()} - if resp, e := c.PostObjectActionStartWithResponse(ctx, params); e != nil { + if resp, e := c.PostObjectActionStartWithResponse(ctx, p.Namespace, p.Kind.String(), p.Name); e != nil { err = e } else { switch resp.StatusCode() { @@ -542,8 +536,7 @@ func (t T) DoAsync() error { } } case instance.MonitorGlobalExpectStopped: - params := api.PostObjectAction{Path: p.String()} - if resp, e := c.PostObjectActionStopWithResponse(ctx, params); e != nil { + if resp, e := c.PostObjectActionStopWithResponse(ctx, p.Namespace, p.Kind.String(), p.Name); e != nil { err = e } else { switch resp.StatusCode() { @@ -564,8 +557,7 @@ func (t T) DoAsync() error { } } case instance.MonitorGlobalExpectThawed: - params := api.PostObjectAction{Path: p.String()} - if resp, e := c.PostObjectActionUnfreezeWithResponse(ctx, params); e != nil { + if resp, e := c.PostObjectActionUnfreezeWithResponse(ctx, p.Namespace, p.Kind.String(), p.Name); e != nil { err = e } else { switch resp.StatusCode() { @@ -586,8 +578,7 @@ func (t T) DoAsync() error { } } case instance.MonitorGlobalExpectUnprovisioned: - params := api.PostObjectAction{Path: p.String()} - if resp, e := c.PostObjectActionUnprovisionWithResponse(ctx, params); e != nil { + if resp, e := c.PostObjectActionUnprovisionWithResponse(ctx, p.Namespace, p.Kind.String(), p.Name); e != nil { err = e } else { switch resp.StatusCode() { @@ -608,8 +599,7 @@ func (t T) DoAsync() error { } } case instance.MonitorGlobalExpectPlaced: - params := api.PostObjectActionSwitch{Path: p.String()} - if resp, e := c.PostObjectActionSwitchWithResponse(ctx, params); e != nil { + if resp, e := c.PostObjectActionGivebackWithResponse(ctx, p.Namespace, p.Kind.String(), p.Name); e != nil { err = e } else { switch resp.StatusCode() { @@ -630,13 +620,13 @@ func (t T) DoAsync() error { } } case instance.MonitorGlobalExpectPlacedAt: - params := api.PostObjectActionSwitch{Path: p.String()} + params := api.PostObjectActionSwitch{} if options, ok := t.TargetOptions.(instance.MonitorGlobalExpectOptionsPlacedAt); !ok { return fmt.Errorf("unexpected orchestration options: %#v", t.TargetOptions) } else { params.Destination = options.Destination } - if resp, e := c.PostObjectActionSwitchWithResponse(ctx, params); e != nil { + if resp, e := c.PostObjectActionSwitchWithResponse(ctx, p.Namespace, p.Kind.String(), p.Name, params); e != nil { err = e } else { switch resp.StatusCode() { diff --git a/daemon/api/api.yaml b/daemon/api/api.yaml index f960ebee8..d1a429c99 100644 --- a/daemon/api/api.yaml +++ b/daemon/api/api.yaml @@ -36,7 +36,7 @@ paths: $ref: '#/components/responses/500' 503: $ref: '#/components/responses/503' - /cluster/action/abort: + /cluster/abort: post: operationId: PostClusterActionAbort tags: @@ -63,7 +63,7 @@ paths: $ref: '#/components/responses/409' 500: $ref: '#/components/responses/500' - /cluster/action/freeze: + /cluster/freeze: post: operationId: PostClusterActionFreeze tags: @@ -90,7 +90,7 @@ paths: $ref: '#/components/responses/409' 500: $ref: '#/components/responses/500' - /cluster/action/unfreeze: + /cluster/unfreeze: post: operationId: PostClusterActionUnfreeze tags: @@ -122,7 +122,6 @@ paths: operationId: GetDaemonDNSDump tags: - daemon - - dns security: - basicAuth: [] - bearerAuth: [] @@ -373,7 +372,7 @@ paths: get: operationId: GetInstances tags: - - instance + - instances security: - basicAuth: [] - bearerAuth: [] @@ -398,7 +397,7 @@ paths: post: operationId: PostInstanceStatus tags: - - instance + - instances security: - basicAuth: [] - bearerAuth: [] @@ -421,6 +420,37 @@ paths: 500: $ref: '#/components/responses/500' + /namespaces/{namespace}/{kind}/{name}: + get: + operationId: GetObject + tags: + - object / svc + - object / vol + - object / cfg + - object / sec + - object / usr + security: + - basicAuth: [] + - bearerAuth: [] + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' + responses: + 200: + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectItem' + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' + 500: + $ref: '#/components/responses/500' + + # ======================================================================== # network paths # ======================================================================== @@ -429,7 +459,7 @@ paths: get: operationId: GetNetworks tags: - - network + - networks security: - basicAuth: [] - bearerAuth: [] @@ -458,7 +488,7 @@ paths: get: operationId: GetNetworkIp tags: - - network + - networks security: - basicAuth: [] - bearerAuth: [] @@ -491,7 +521,7 @@ paths: get: operationId: GetNodes tags: - - node + - nodes security: - basicAuth: [] - bearerAuth: [] @@ -512,11 +542,11 @@ paths: $ref: '#/components/responses/403' 500: $ref: '#/components/responses/500' - /node/action/drain: + /node/drain: post: operationId: PostNodeActionDrain tags: - - node + - nodes security: - basicAuth: [] - bearerAuth: [] @@ -543,7 +573,7 @@ paths: get: operationId: GetNodeDRBDAllocation tags: - - node + - nodes security: - basicAuth: [] - bearerAuth: [] @@ -560,7 +590,7 @@ paths: post: operationId: PostNodeClear tags: - - node + - nodes security: - basicAuth: [] - bearerAuth: [] @@ -580,7 +610,7 @@ paths: get: operationId: GetNodeDRBDConfig tags: - - node + - nodes security: - basicAuth: [] - bearerAuth: [] @@ -604,7 +634,7 @@ paths: post: operationId: PostNodeDRBDConfig tags: - - node + - nodes security: - basicAuth: [] - bearerAuth: [] @@ -632,7 +662,7 @@ paths: get: operationId: GetNodeBacklogs tags: - - node + - nodes security: - basicAuth: [] - bearerAuth: [] @@ -658,7 +688,7 @@ paths: get: operationId: GetNodeLogs tags: - - node + - nodes security: - basicAuth: [] - bearerAuth: [] @@ -684,7 +714,7 @@ paths: get: operationId: GetNodesInfo tags: - - node + - nodes security: - basicAuth: [] - bearerAuth: [] @@ -705,7 +735,7 @@ paths: get: operationId: GetObjects tags: - - object + - objects security: - basicAuth: [] - bearerAuth: [] @@ -728,11 +758,11 @@ paths: $ref: '#/components/responses/403' 500: $ref: '#/components/responses/500' - /object/backlogs: + /instances/backlogs: get: - operationId: GetObjectBacklogs + operationId: GetInstancesBacklogs tags: - - object + - instances security: - basicAuth: [] - bearerAuth: [] @@ -754,11 +784,11 @@ paths: $ref: '#/components/responses/403' 500: $ref: '#/components/responses/500' - /object/logs: + /instances/logs: get: - operationId: GetObjectLogs + operationId: GetInstancesLogs tags: - - object + - instances security: - basicAuth: [] - bearerAuth: [] @@ -780,101 +810,113 @@ paths: $ref: '#/components/responses/403' 500: $ref: '#/components/responses/500' - /object/clear: - post: - operationId: PostObjectClear + /namespaces/{namespace}/{kind}/{name}/instance/backlogs: + get: + operationId: GetInstanceBacklogs tags: - - object + - object / svc + - object / vol + - object / cfg + - object / sec + - object / usr security: - basicAuth: [] - bearerAuth: [] - requestBody: - description: Clears errors (for example, start failed) in the monitor states of a selection of objects. - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/PostObjectClear' + description: | + Serve recent logs + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' + - $ref: '#/components/parameters/LogFilter' responses: 200: description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/LogList' 401: $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 500: $ref: '#/components/responses/500' - /object/config: + /namespaces/{namespace}/{kind}/{name}/instance/logs: get: - operationId: GetObjectConfig + operationId: GetInstanceLogs tags: - - object + - object / svc + - object / vol + - object / cfg + - object / sec + - object / usr security: - basicAuth: [] - bearerAuth: [] + description: | + Serve new logs parameters: - - $ref: '#/components/parameters/ObjectPath' - - name: evaluate - in: query - description: evaluate - schema: - type: boolean - - name: impersonate - in: query - description: impersonate the evaluation as node - schema: - type: string + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' + - $ref: '#/components/parameters/LogFilter' responses: 200: description: OK content: - application/json: + text/event-stream: schema: - $ref: '#/components/schemas/ObjectConfig' + $ref: '#/components/schemas/LogList' 401: $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 500: $ref: '#/components/responses/500' - /object/file: - get: - operationId: GetObjectFile + /namespaces/{namespace}/{kind}/{name}/instance/clear: + post: + operationId: PostInstanceClear tags: - - object + - object / svc + - object / vol security: - basicAuth: [] - bearerAuth: [] + description: Clear an error ("start failed" for example) in the instance monitor state. parameters: - - $ref: '#/components/parameters/ObjectPath' + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' responses: 200: description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/ObjectFile' 401: $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 500: $ref: '#/components/responses/500' - /object/progress: + /namespaces/{namespace}/{kind}/{name}/instance/progress: post: - operationId: PostObjectProgress + operationId: PostInstanceProgress tags: - - object + - object / svc + - object / vol security: - basicAuth: [] - bearerAuth: [] + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' requestBody: description: Change the instance monitor state to reflect the progress of actions the daemon did not started. required: true content: application/json: schema: - $ref: '#/components/schemas/PostObjectProgress' + $ref: '#/components/schemas/PostInstanceProgress' responses: 200: description: OK @@ -888,7 +930,7 @@ paths: get: operationId: GetObjectPaths tags: - - object + - objects security: - basicAuth: [] - bearerAuth: [] @@ -907,21 +949,19 @@ paths: $ref: '#/components/responses/403' 500: $ref: '#/components/responses/500' - /object/action/abort: + /namespaces/{namespace}/{kind}/{name}/abort: post: operationId: PostObjectActionAbort tags: - - object + - object / svc + - object / vol security: - basicAuth: [] - bearerAuth: [] - requestBody: - description: Cancel the current orchestration. - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/PostObjectAction' + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' responses: 200: description: OK @@ -941,21 +981,82 @@ paths: $ref: '#/components/responses/409' 500: $ref: '#/components/responses/500' - /object/action/delete: + /namespaces/{namespace}/{kind}/{name}/config: + get: + operationId: GetObjectConfig + tags: + - object / svc + - object / vol + - object / cfg + - object / sec + - object / usr + security: + - basicAuth: [] + - bearerAuth: [] + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' + - $ref: '#/components/parameters/Evaluate' + - $ref: '#/components/parameters/Impersonate' + responses: + 200: + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectConfig' + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' + 500: + $ref: '#/components/responses/500' + /namespaces/{namespace}/{kind}/{name}/file: + get: + operationId: GetObjectFile + tags: + - object / svc + - object / vol + - object / cfg + - object / sec + - object / usr + security: + - basicAuth: [] + - bearerAuth: [] + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' + responses: + 200: + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectFile' + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' + 500: + $ref: '#/components/responses/500' + /namespaces/{namespace}/{kind}/{name}/delete: post: operationId: PostObjectActionDelete tags: - - object + - object / svc + - object / vol + - object / cfg + - object / sec + - object / usr security: - basicAuth: [] - bearerAuth: [] - requestBody: - description: Orchestrate the object instance delete. - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/PostObjectAction' + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' responses: 200: description: OK @@ -975,21 +1076,19 @@ paths: $ref: '#/components/responses/409' 500: $ref: '#/components/responses/500' - /object/action/freeze: + /namespaces/{namespace}/{kind}/{name}/freeze: post: operationId: PostObjectActionFreeze tags: - - object + - object / svc + - object / vol security: - basicAuth: [] - bearerAuth: [] - requestBody: - description: Orchestrate the object instance freeze. - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/PostObjectAction' + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' responses: 200: description: OK @@ -1009,21 +1108,18 @@ paths: $ref: '#/components/responses/409' 500: $ref: '#/components/responses/500' - /object/action/giveback: + /namespaces/{namespace}/{kind}/{name}/giveback: post: operationId: PostObjectActionGiveback tags: - - object + - object / svc security: - basicAuth: [] - bearerAuth: [] - requestBody: - description: Orchestrate the object instance giveback. - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/PostObjectAction' + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' responses: 200: description: OK @@ -1043,21 +1139,19 @@ paths: $ref: '#/components/responses/409' 500: $ref: '#/components/responses/500' - /object/action/provision: + /namespaces/{namespace}/{kind}/{name}/provision: post: operationId: PostObjectActionProvision tags: - - object + - object / svc + - object / vol security: - basicAuth: [] - bearerAuth: [] - requestBody: - description: Orchestrate the object instance provision. - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/PostObjectAction' + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' responses: 200: description: OK @@ -1077,21 +1171,19 @@ paths: $ref: '#/components/responses/409' 500: $ref: '#/components/responses/500' - /object/action/purge: + /namespaces/{namespace}/{kind}/{name}/purge: post: operationId: PostObjectActionPurge tags: - - object + - object / svc + - object / vol security: - basicAuth: [] - bearerAuth: [] - requestBody: - description: Orchestrate the object instance unprovision and delete. - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/PostObjectAction' + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' responses: 200: description: OK @@ -1111,21 +1203,18 @@ paths: $ref: '#/components/responses/409' 500: $ref: '#/components/responses/500' - /object/action/start: + /namespaces/{namespace}/{kind}/{name}/start: post: operationId: PostObjectActionStart tags: - - object + - object / svc security: - basicAuth: [] - bearerAuth: [] - requestBody: - description: Orchestrate the object instance start. - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/PostObjectAction' + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' responses: 200: description: OK @@ -1145,21 +1234,18 @@ paths: $ref: '#/components/responses/409' 500: $ref: '#/components/responses/500' - /object/action/stop: + /namespaces/{namespace}/{kind}/{name}/stop: post: operationId: PostObjectActionStop tags: - - object + - object / svc security: - basicAuth: [] - bearerAuth: [] - requestBody: - description: Orchestrate the object instance stop. - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/PostObjectAction' + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' responses: 200: description: OK @@ -1179,16 +1265,19 @@ paths: $ref: '#/components/responses/409' 500: $ref: '#/components/responses/500' - /object/action/switch: + /namespaces/{namespace}/{kind}/{name}/switch: post: operationId: PostObjectActionSwitch tags: - - object + - object / svc security: - basicAuth: [] - bearerAuth: [] + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' requestBody: - description: Orchestrate the object instance switch. required: true content: application/json: @@ -1213,21 +1302,19 @@ paths: $ref: '#/components/responses/409' 500: $ref: '#/components/responses/500' - /object/action/unfreeze: + /namespaces/{namespace}/{kind}/{name}/unfreeze: post: operationId: PostObjectActionUnfreeze tags: - - object + - object / svc + - object / vol security: - basicAuth: [] - bearerAuth: [] - requestBody: - description: Orchestrate the object instance unfreeze. - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/PostObjectAction' + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' responses: 200: description: OK @@ -1247,21 +1334,19 @@ paths: $ref: '#/components/responses/409' 500: $ref: '#/components/responses/500' - /object/action/unprovision: + /namespaces/{namespace}/{kind}/{name}/unprovision: post: operationId: PostObjectActionUnprovision tags: - - object + - object / svc + - object / vol security: - basicAuth: [] - bearerAuth: [] - requestBody: - description: Orchestrate the object instance unprovision. - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/PostObjectAction' + parameters: + - $ref: '#/components/parameters/inPathNamespace' + - $ref: '#/components/parameters/inPathKind' + - $ref: '#/components/parameters/inPathName' responses: 200: description: OK @@ -1285,7 +1370,7 @@ paths: get: operationId: GetPools tags: - - storage + - pools security: - basicAuth: [] - bearerAuth: [] @@ -1313,7 +1398,7 @@ paths: get: operationId: GetPoolVolumes tags: - - storage + - pools security: - basicAuth: [] - bearerAuth: [] @@ -1406,7 +1491,7 @@ paths: get: operationId: GetResources tags: - - resource + - resources security: - basicAuth: [] - bearerAuth: [] @@ -2364,22 +2449,12 @@ components: data: type: string format: byte - PostObjectClear: - type: object - required: - - path - properties: - path: - type: string - PostObjectProgress: + PostInstanceProgress: type: object required: - - path - session_id - state properties: - path: - type: string session_id: type: string format: uuid @@ -2529,17 +2604,9 @@ components: size: type: integer format: int64 - PostObjectAction: - type: object - required: - - path - properties: - path: - type: string PostObjectActionSwitch: type: object required: - - path - destination properties: destination: @@ -2547,8 +2614,6 @@ components: minItems: 1 items: type: string - path: - type: string PostRelayMessage: type: object required: @@ -2927,6 +2992,38 @@ components: default: failover parameters: + + inPathName: + in: path + name: name + required: true + schema: + type: string + inPathNamespace: + in: path + name: namespace + required: true + schema: + type: string + inPathKind: + in: path + name: kind + required: true + schema: + type: string + + Evaluate: + name: evaluate + in: query + description: evaluate + schema: + type: boolean + Impersonate: + name: impersonate + in: query + description: impersonate the evaluation as node + schema: + type: string Duration: name: duration in: query diff --git a/daemon/api/codegen_client_gen.go b/daemon/api/codegen_client_gen.go index 9c99232d0..1b47fda82 100644 --- a/daemon/api/codegen_client_gen.go +++ b/daemon/api/codegen_client_gen.go @@ -143,121 +143,108 @@ type ClientInterface interface { PostInstanceStatus(ctx context.Context, body PostInstanceStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetNetworkIp request - GetNetworkIp(ctx context.Context, params *GetNetworkIpParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetNetworks request - GetNetworks(ctx context.Context, params *GetNetworksParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostNodeActionDrain request - PostNodeActionDrain(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetNodeBacklogs request - GetNodeBacklogs(ctx context.Context, params *GetNodeBacklogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostNodeClear request - PostNodeClear(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetNodeDRBDAllocation request - GetNodeDRBDAllocation(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetNodeDRBDConfig request - GetNodeDRBDConfig(ctx context.Context, params *GetNodeDRBDConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetInstancesBacklogs request + GetInstancesBacklogs(ctx context.Context, params *GetInstancesBacklogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // PostNodeDRBDConfig request with any body - PostNodeDRBDConfigWithBody(ctx context.Context, params *PostNodeDRBDConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetInstancesLogs request + GetInstancesLogs(ctx context.Context, params *GetInstancesLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - PostNodeDRBDConfig(ctx context.Context, params *PostNodeDRBDConfigParams, body PostNodeDRBDConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetObject request + GetObject(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetNodeLogs request - GetNodeLogs(ctx context.Context, params *GetNodeLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostObjectActionAbort request + PostObjectActionAbort(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetNodes request - GetNodes(ctx context.Context, params *GetNodesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetObjectConfig request + GetObjectConfig(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetObjectConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetNodesInfo request - GetNodesInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostObjectActionDelete request + PostObjectActionDelete(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) - // PostObjectActionAbort request with any body - PostObjectActionAbortWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetObjectFile request + GetObjectFile(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) - PostObjectActionAbort(ctx context.Context, body PostObjectActionAbortJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostObjectActionFreeze request + PostObjectActionFreeze(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) - // PostObjectActionDelete request with any body - PostObjectActionDeleteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostObjectActionGiveback request + PostObjectActionGiveback(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) - PostObjectActionDelete(ctx context.Context, body PostObjectActionDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetInstanceBacklogs request + GetInstanceBacklogs(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetInstanceBacklogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // PostObjectActionFreeze request with any body - PostObjectActionFreezeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostInstanceClear request + PostInstanceClear(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) - PostObjectActionFreeze(ctx context.Context, body PostObjectActionFreezeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetInstanceLogs request + GetInstanceLogs(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetInstanceLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // PostObjectActionGiveback request with any body - PostObjectActionGivebackWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostInstanceProgress request with any body + PostInstanceProgressWithBody(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - PostObjectActionGiveback(ctx context.Context, body PostObjectActionGivebackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + PostInstanceProgress(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, body PostInstanceProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // PostObjectActionProvision request with any body - PostObjectActionProvisionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostObjectActionProvision request + PostObjectActionProvision(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) - PostObjectActionProvision(ctx context.Context, body PostObjectActionProvisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostObjectActionPurge request + PostObjectActionPurge(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) - // PostObjectActionPurge request with any body - PostObjectActionPurgeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostObjectActionStart request + PostObjectActionStart(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) - PostObjectActionPurge(ctx context.Context, body PostObjectActionPurgeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostObjectActionStop request + PostObjectActionStop(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) - // PostObjectActionStart request with any body - PostObjectActionStartWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostObjectActionSwitch request with any body + PostObjectActionSwitchWithBody(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - PostObjectActionStart(ctx context.Context, body PostObjectActionStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + PostObjectActionSwitch(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, body PostObjectActionSwitchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // PostObjectActionStop request with any body - PostObjectActionStopWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostObjectActionUnfreeze request + PostObjectActionUnfreeze(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) - PostObjectActionStop(ctx context.Context, body PostObjectActionStopJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostObjectActionUnprovision request + PostObjectActionUnprovision(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) - // PostObjectActionSwitch request with any body - PostObjectActionSwitchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetNetworkIp request + GetNetworkIp(ctx context.Context, params *GetNetworkIpParams, reqEditors ...RequestEditorFn) (*http.Response, error) - PostObjectActionSwitch(ctx context.Context, body PostObjectActionSwitchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetNetworks request + GetNetworks(ctx context.Context, params *GetNetworksParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // PostObjectActionUnfreeze request with any body - PostObjectActionUnfreezeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetNodeBacklogs request + GetNodeBacklogs(ctx context.Context, params *GetNodeBacklogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - PostObjectActionUnfreeze(ctx context.Context, body PostObjectActionUnfreezeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostNodeClear request + PostNodeClear(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // PostObjectActionUnprovision request with any body - PostObjectActionUnprovisionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostNodeActionDrain request + PostNodeActionDrain(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - PostObjectActionUnprovision(ctx context.Context, body PostObjectActionUnprovisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetNodeDRBDAllocation request + GetNodeDRBDAllocation(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetObjectBacklogs request - GetObjectBacklogs(ctx context.Context, params *GetObjectBacklogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetNodeDRBDConfig request + GetNodeDRBDConfig(ctx context.Context, params *GetNodeDRBDConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // PostObjectClear request with any body - PostObjectClearWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostNodeDRBDConfig request with any body + PostNodeDRBDConfigWithBody(ctx context.Context, params *PostNodeDRBDConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - PostObjectClear(ctx context.Context, body PostObjectClearJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + PostNodeDRBDConfig(ctx context.Context, params *PostNodeDRBDConfigParams, body PostNodeDRBDConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetObjectConfig request - GetObjectConfig(ctx context.Context, params *GetObjectConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetNodeLogs request + GetNodeLogs(ctx context.Context, params *GetNodeLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetObjectFile request - GetObjectFile(ctx context.Context, params *GetObjectFileParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetNodes request + GetNodes(ctx context.Context, params *GetNodesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetObjectLogs request - GetObjectLogs(ctx context.Context, params *GetObjectLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetNodesInfo request + GetNodesInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetObjectPaths request GetObjectPaths(ctx context.Context, params *GetObjectPathsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // PostObjectProgress request with any body - PostObjectProgressWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PostObjectProgress(ctx context.Context, body PostObjectProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetObjects request GetObjects(ctx context.Context, params *GetObjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -510,80 +497,8 @@ func (c *Client) PostInstanceStatus(ctx context.Context, body PostInstanceStatus return c.Client.Do(req) } -func (c *Client) GetNetworkIp(ctx context.Context, params *GetNetworkIpParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetNetworkIpRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetNetworks(ctx context.Context, params *GetNetworksParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetNetworksRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostNodeActionDrain(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostNodeActionDrainRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetNodeBacklogs(ctx context.Context, params *GetNodeBacklogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetNodeBacklogsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostNodeClear(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostNodeClearRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetNodeDRBDAllocation(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetNodeDRBDAllocationRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetNodeDRBDConfig(ctx context.Context, params *GetNodeDRBDConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetNodeDRBDConfigRequest(c.Server, params) +func (c *Client) GetInstancesBacklogs(ctx context.Context, params *GetInstancesBacklogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInstancesBacklogsRequest(c.Server, params) if err != nil { return nil, err } @@ -594,8 +509,8 @@ func (c *Client) GetNodeDRBDConfig(ctx context.Context, params *GetNodeDRBDConfi return c.Client.Do(req) } -func (c *Client) PostNodeDRBDConfigWithBody(ctx context.Context, params *PostNodeDRBDConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostNodeDRBDConfigRequestWithBody(c.Server, params, contentType, body) +func (c *Client) GetInstancesLogs(ctx context.Context, params *GetInstancesLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInstancesLogsRequest(c.Server, params) if err != nil { return nil, err } @@ -606,8 +521,8 @@ func (c *Client) PostNodeDRBDConfigWithBody(ctx context.Context, params *PostNod return c.Client.Do(req) } -func (c *Client) PostNodeDRBDConfig(ctx context.Context, params *PostNodeDRBDConfigParams, body PostNodeDRBDConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostNodeDRBDConfigRequest(c.Server, params, body) +func (c *Client) GetObject(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetObjectRequest(c.Server, namespace, kind, name) if err != nil { return nil, err } @@ -618,8 +533,8 @@ func (c *Client) PostNodeDRBDConfig(ctx context.Context, params *PostNodeDRBDCon return c.Client.Do(req) } -func (c *Client) GetNodeLogs(ctx context.Context, params *GetNodeLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetNodeLogsRequest(c.Server, params) +func (c *Client) PostObjectActionAbort(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostObjectActionAbortRequest(c.Server, namespace, kind, name) if err != nil { return nil, err } @@ -630,8 +545,8 @@ func (c *Client) GetNodeLogs(ctx context.Context, params *GetNodeLogsParams, req return c.Client.Do(req) } -func (c *Client) GetNodes(ctx context.Context, params *GetNodesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetNodesRequest(c.Server, params) +func (c *Client) GetObjectConfig(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetObjectConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetObjectConfigRequest(c.Server, namespace, kind, name, params) if err != nil { return nil, err } @@ -642,8 +557,8 @@ func (c *Client) GetNodes(ctx context.Context, params *GetNodesParams, reqEditor return c.Client.Do(req) } -func (c *Client) GetNodesInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetNodesInfoRequest(c.Server) +func (c *Client) PostObjectActionDelete(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostObjectActionDeleteRequest(c.Server, namespace, kind, name) if err != nil { return nil, err } @@ -654,8 +569,8 @@ func (c *Client) GetNodesInfo(ctx context.Context, reqEditors ...RequestEditorFn return c.Client.Do(req) } -func (c *Client) PostObjectActionAbortWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionAbortRequestWithBody(c.Server, contentType, body) +func (c *Client) GetObjectFile(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetObjectFileRequest(c.Server, namespace, kind, name) if err != nil { return nil, err } @@ -666,8 +581,8 @@ func (c *Client) PostObjectActionAbortWithBody(ctx context.Context, contentType return c.Client.Do(req) } -func (c *Client) PostObjectActionAbort(ctx context.Context, body PostObjectActionAbortJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionAbortRequest(c.Server, body) +func (c *Client) PostObjectActionFreeze(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostObjectActionFreezeRequest(c.Server, namespace, kind, name) if err != nil { return nil, err } @@ -678,8 +593,8 @@ func (c *Client) PostObjectActionAbort(ctx context.Context, body PostObjectActio return c.Client.Do(req) } -func (c *Client) PostObjectActionDeleteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionDeleteRequestWithBody(c.Server, contentType, body) +func (c *Client) PostObjectActionGiveback(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostObjectActionGivebackRequest(c.Server, namespace, kind, name) if err != nil { return nil, err } @@ -690,8 +605,8 @@ func (c *Client) PostObjectActionDeleteWithBody(ctx context.Context, contentType return c.Client.Do(req) } -func (c *Client) PostObjectActionDelete(ctx context.Context, body PostObjectActionDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionDeleteRequest(c.Server, body) +func (c *Client) GetInstanceBacklogs(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetInstanceBacklogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInstanceBacklogsRequest(c.Server, namespace, kind, name, params) if err != nil { return nil, err } @@ -702,8 +617,8 @@ func (c *Client) PostObjectActionDelete(ctx context.Context, body PostObjectActi return c.Client.Do(req) } -func (c *Client) PostObjectActionFreezeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionFreezeRequestWithBody(c.Server, contentType, body) +func (c *Client) PostInstanceClear(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostInstanceClearRequest(c.Server, namespace, kind, name) if err != nil { return nil, err } @@ -714,8 +629,8 @@ func (c *Client) PostObjectActionFreezeWithBody(ctx context.Context, contentType return c.Client.Do(req) } -func (c *Client) PostObjectActionFreeze(ctx context.Context, body PostObjectActionFreezeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionFreezeRequest(c.Server, body) +func (c *Client) GetInstanceLogs(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetInstanceLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInstanceLogsRequest(c.Server, namespace, kind, name, params) if err != nil { return nil, err } @@ -726,8 +641,8 @@ func (c *Client) PostObjectActionFreeze(ctx context.Context, body PostObjectActi return c.Client.Do(req) } -func (c *Client) PostObjectActionGivebackWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionGivebackRequestWithBody(c.Server, contentType, body) +func (c *Client) PostInstanceProgressWithBody(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostInstanceProgressRequestWithBody(c.Server, namespace, kind, name, contentType, body) if err != nil { return nil, err } @@ -738,8 +653,8 @@ func (c *Client) PostObjectActionGivebackWithBody(ctx context.Context, contentTy return c.Client.Do(req) } -func (c *Client) PostObjectActionGiveback(ctx context.Context, body PostObjectActionGivebackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionGivebackRequest(c.Server, body) +func (c *Client) PostInstanceProgress(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, body PostInstanceProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostInstanceProgressRequest(c.Server, namespace, kind, name, body) if err != nil { return nil, err } @@ -750,8 +665,8 @@ func (c *Client) PostObjectActionGiveback(ctx context.Context, body PostObjectAc return c.Client.Do(req) } -func (c *Client) PostObjectActionProvisionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionProvisionRequestWithBody(c.Server, contentType, body) +func (c *Client) PostObjectActionProvision(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostObjectActionProvisionRequest(c.Server, namespace, kind, name) if err != nil { return nil, err } @@ -762,8 +677,8 @@ func (c *Client) PostObjectActionProvisionWithBody(ctx context.Context, contentT return c.Client.Do(req) } -func (c *Client) PostObjectActionProvision(ctx context.Context, body PostObjectActionProvisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionProvisionRequest(c.Server, body) +func (c *Client) PostObjectActionPurge(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostObjectActionPurgeRequest(c.Server, namespace, kind, name) if err != nil { return nil, err } @@ -774,8 +689,8 @@ func (c *Client) PostObjectActionProvision(ctx context.Context, body PostObjectA return c.Client.Do(req) } -func (c *Client) PostObjectActionPurgeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionPurgeRequestWithBody(c.Server, contentType, body) +func (c *Client) PostObjectActionStart(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostObjectActionStartRequest(c.Server, namespace, kind, name) if err != nil { return nil, err } @@ -786,8 +701,8 @@ func (c *Client) PostObjectActionPurgeWithBody(ctx context.Context, contentType return c.Client.Do(req) } -func (c *Client) PostObjectActionPurge(ctx context.Context, body PostObjectActionPurgeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionPurgeRequest(c.Server, body) +func (c *Client) PostObjectActionStop(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostObjectActionStopRequest(c.Server, namespace, kind, name) if err != nil { return nil, err } @@ -798,8 +713,8 @@ func (c *Client) PostObjectActionPurge(ctx context.Context, body PostObjectActio return c.Client.Do(req) } -func (c *Client) PostObjectActionStartWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionStartRequestWithBody(c.Server, contentType, body) +func (c *Client) PostObjectActionSwitchWithBody(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostObjectActionSwitchRequestWithBody(c.Server, namespace, kind, name, contentType, body) if err != nil { return nil, err } @@ -810,8 +725,8 @@ func (c *Client) PostObjectActionStartWithBody(ctx context.Context, contentType return c.Client.Do(req) } -func (c *Client) PostObjectActionStart(ctx context.Context, body PostObjectActionStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionStartRequest(c.Server, body) +func (c *Client) PostObjectActionSwitch(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, body PostObjectActionSwitchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostObjectActionSwitchRequest(c.Server, namespace, kind, name, body) if err != nil { return nil, err } @@ -822,8 +737,8 @@ func (c *Client) PostObjectActionStart(ctx context.Context, body PostObjectActio return c.Client.Do(req) } -func (c *Client) PostObjectActionStopWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionStopRequestWithBody(c.Server, contentType, body) +func (c *Client) PostObjectActionUnfreeze(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostObjectActionUnfreezeRequest(c.Server, namespace, kind, name) if err != nil { return nil, err } @@ -834,8 +749,8 @@ func (c *Client) PostObjectActionStopWithBody(ctx context.Context, contentType s return c.Client.Do(req) } -func (c *Client) PostObjectActionStop(ctx context.Context, body PostObjectActionStopJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionStopRequest(c.Server, body) +func (c *Client) PostObjectActionUnprovision(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostObjectActionUnprovisionRequest(c.Server, namespace, kind, name) if err != nil { return nil, err } @@ -846,8 +761,8 @@ func (c *Client) PostObjectActionStop(ctx context.Context, body PostObjectAction return c.Client.Do(req) } -func (c *Client) PostObjectActionSwitchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionSwitchRequestWithBody(c.Server, contentType, body) +func (c *Client) GetNetworkIp(ctx context.Context, params *GetNetworkIpParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNetworkIpRequest(c.Server, params) if err != nil { return nil, err } @@ -858,8 +773,8 @@ func (c *Client) PostObjectActionSwitchWithBody(ctx context.Context, contentType return c.Client.Do(req) } -func (c *Client) PostObjectActionSwitch(ctx context.Context, body PostObjectActionSwitchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionSwitchRequest(c.Server, body) +func (c *Client) GetNetworks(ctx context.Context, params *GetNetworksParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNetworksRequest(c.Server, params) if err != nil { return nil, err } @@ -870,8 +785,8 @@ func (c *Client) PostObjectActionSwitch(ctx context.Context, body PostObjectActi return c.Client.Do(req) } -func (c *Client) PostObjectActionUnfreezeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionUnfreezeRequestWithBody(c.Server, contentType, body) +func (c *Client) GetNodeBacklogs(ctx context.Context, params *GetNodeBacklogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNodeBacklogsRequest(c.Server, params) if err != nil { return nil, err } @@ -882,8 +797,8 @@ func (c *Client) PostObjectActionUnfreezeWithBody(ctx context.Context, contentTy return c.Client.Do(req) } -func (c *Client) PostObjectActionUnfreeze(ctx context.Context, body PostObjectActionUnfreezeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionUnfreezeRequest(c.Server, body) +func (c *Client) PostNodeClear(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostNodeClearRequest(c.Server) if err != nil { return nil, err } @@ -894,8 +809,8 @@ func (c *Client) PostObjectActionUnfreeze(ctx context.Context, body PostObjectAc return c.Client.Do(req) } -func (c *Client) PostObjectActionUnprovisionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionUnprovisionRequestWithBody(c.Server, contentType, body) +func (c *Client) PostNodeActionDrain(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostNodeActionDrainRequest(c.Server) if err != nil { return nil, err } @@ -906,8 +821,8 @@ func (c *Client) PostObjectActionUnprovisionWithBody(ctx context.Context, conten return c.Client.Do(req) } -func (c *Client) PostObjectActionUnprovision(ctx context.Context, body PostObjectActionUnprovisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectActionUnprovisionRequest(c.Server, body) +func (c *Client) GetNodeDRBDAllocation(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNodeDRBDAllocationRequest(c.Server) if err != nil { return nil, err } @@ -918,8 +833,8 @@ func (c *Client) PostObjectActionUnprovision(ctx context.Context, body PostObjec return c.Client.Do(req) } -func (c *Client) GetObjectBacklogs(ctx context.Context, params *GetObjectBacklogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetObjectBacklogsRequest(c.Server, params) +func (c *Client) GetNodeDRBDConfig(ctx context.Context, params *GetNodeDRBDConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNodeDRBDConfigRequest(c.Server, params) if err != nil { return nil, err } @@ -930,8 +845,8 @@ func (c *Client) GetObjectBacklogs(ctx context.Context, params *GetObjectBacklog return c.Client.Do(req) } -func (c *Client) PostObjectClearWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectClearRequestWithBody(c.Server, contentType, body) +func (c *Client) PostNodeDRBDConfigWithBody(ctx context.Context, params *PostNodeDRBDConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostNodeDRBDConfigRequestWithBody(c.Server, params, contentType, body) if err != nil { return nil, err } @@ -942,8 +857,8 @@ func (c *Client) PostObjectClearWithBody(ctx context.Context, contentType string return c.Client.Do(req) } -func (c *Client) PostObjectClear(ctx context.Context, body PostObjectClearJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectClearRequest(c.Server, body) +func (c *Client) PostNodeDRBDConfig(ctx context.Context, params *PostNodeDRBDConfigParams, body PostNodeDRBDConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostNodeDRBDConfigRequest(c.Server, params, body) if err != nil { return nil, err } @@ -954,8 +869,8 @@ func (c *Client) PostObjectClear(ctx context.Context, body PostObjectClearJSONRe return c.Client.Do(req) } -func (c *Client) GetObjectConfig(ctx context.Context, params *GetObjectConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetObjectConfigRequest(c.Server, params) +func (c *Client) GetNodeLogs(ctx context.Context, params *GetNodeLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNodeLogsRequest(c.Server, params) if err != nil { return nil, err } @@ -966,8 +881,8 @@ func (c *Client) GetObjectConfig(ctx context.Context, params *GetObjectConfigPar return c.Client.Do(req) } -func (c *Client) GetObjectFile(ctx context.Context, params *GetObjectFileParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetObjectFileRequest(c.Server, params) +func (c *Client) GetNodes(ctx context.Context, params *GetNodesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNodesRequest(c.Server, params) if err != nil { return nil, err } @@ -978,8 +893,8 @@ func (c *Client) GetObjectFile(ctx context.Context, params *GetObjectFileParams, return c.Client.Do(req) } -func (c *Client) GetObjectLogs(ctx context.Context, params *GetObjectLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetObjectLogsRequest(c.Server, params) +func (c *Client) GetNodesInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNodesInfoRequest(c.Server) if err != nil { return nil, err } @@ -1002,30 +917,6 @@ func (c *Client) GetObjectPaths(ctx context.Context, params *GetObjectPathsParam return c.Client.Do(req) } -func (c *Client) PostObjectProgressWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectProgressRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostObjectProgress(ctx context.Context, body PostObjectProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostObjectProgressRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - func (c *Client) GetObjects(ctx context.Context, params *GetObjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetObjectsRequest(c.Server, params) if err != nil { @@ -1194,7 +1085,7 @@ func NewPostClusterActionAbortRequest(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/cluster/action/abort") + operationPath := fmt.Sprintf("/cluster/abort") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -1221,7 +1112,7 @@ func NewPostClusterActionFreezeRequest(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/cluster/action/freeze") + operationPath := fmt.Sprintf("/cluster/freeze") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -1248,7 +1139,7 @@ func NewPostClusterActionUnfreezeRequest(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/cluster/action/unfreeze") + operationPath := fmt.Sprintf("/cluster/unfreeze") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -1785,8 +1676,8 @@ func NewPostInstanceStatusRequestWithBody(server string, contentType string, bod return req, nil } -// NewGetNetworkIpRequest generates requests for GetNetworkIp -func NewGetNetworkIpRequest(server string, params *GetNetworkIpParams) (*http.Request, error) { +// NewGetInstancesBacklogsRequest generates requests for GetInstancesBacklogs +func NewGetInstancesBacklogsRequest(server string, params *GetInstancesBacklogsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -1794,7 +1685,7 @@ func NewGetNetworkIpRequest(server string, params *GetNetworkIpParams) (*http.Re return nil, err } - operationPath := fmt.Sprintf("/network/ip") + operationPath := fmt.Sprintf("/instances/backlogs") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -1806,9 +1697,9 @@ func NewGetNetworkIpRequest(server string, params *GetNetworkIpParams) (*http.Re queryValues := queryURL.Query() - if params.Name != nil { + if params.Filter != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); 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 @@ -1822,6 +1713,18 @@ func NewGetNetworkIpRequest(server string, params *GetNetworkIpParams) (*http.Re } + 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 k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + queryURL.RawQuery = queryValues.Encode() req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -1832,8 +1735,8 @@ func NewGetNetworkIpRequest(server string, params *GetNetworkIpParams) (*http.Re return req, nil } -// NewGetNetworksRequest generates requests for GetNetworks -func NewGetNetworksRequest(server string, params *GetNetworksParams) (*http.Request, error) { +// NewGetInstancesLogsRequest generates requests for GetInstancesLogs +func NewGetInstancesLogsRequest(server string, params *GetInstancesLogsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -1841,7 +1744,7 @@ func NewGetNetworksRequest(server string, params *GetNetworksParams) (*http.Requ return nil, err } - operationPath := fmt.Sprintf("/networks") + operationPath := fmt.Sprintf("/instances/logs") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -1853,9 +1756,9 @@ func NewGetNetworksRequest(server string, params *GetNetworksParams) (*http.Requ queryValues := queryURL.Query() - if params.Name != nil { + if params.Filter != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); 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 @@ -1869,6 +1772,18 @@ func NewGetNetworksRequest(server string, params *GetNetworksParams) (*http.Requ } + 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 k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + queryURL.RawQuery = queryValues.Encode() req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -1879,16 +1794,37 @@ func NewGetNetworksRequest(server string, params *GetNetworksParams) (*http.Requ return req, nil } -// NewPostNodeActionDrainRequest generates requests for PostNodeActionDrain -func NewPostNodeActionDrainRequest(server string) (*http.Request, error) { +// NewGetObjectRequest generates requests for GetObject +func NewGetObjectRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/node/action/drain") + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -1898,7 +1834,7 @@ func NewPostNodeActionDrainRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -1906,30 +1842,99 @@ func NewPostNodeActionDrainRequest(server string) (*http.Request, error) { return req, nil } -// NewGetNodeBacklogsRequest generates requests for GetNodeBacklogs -func NewGetNodeBacklogsRequest(server string, params *GetNodeBacklogsParams) (*http.Request, error) { +// NewPostObjectActionAbortRequest generates requests for PostObjectActionAbort +func NewPostObjectActionAbortRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName) (*http.Request, error) { var err error - serverURL, err := url.Parse(server) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/node/backlogs") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + var pathParam1 string - queryURL, err := serverURL.Parse(operationPath) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } - queryValues := queryURL.Query() + var pathParam2 string - if params.Filter != nil { + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); err != nil { + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/abort", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetObjectConfigRequest generates requests for GetObjectConfig +func NewGetObjectConfigRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetObjectConfigParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/config", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.Evaluate != 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 @@ -1943,16 +1948,20 @@ func NewGetNodeBacklogsRequest(server string, params *GetNodeBacklogsParams) (*h } - 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 k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) + if params.Impersonate != 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 k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } + } queryURL.RawQuery = queryValues.Encode() @@ -1965,16 +1974,37 @@ func NewGetNodeBacklogsRequest(server string, params *GetNodeBacklogsParams) (*h return req, nil } -// NewPostNodeClearRequest generates requests for PostNodeClear -func NewPostNodeClearRequest(server string) (*http.Request, error) { +// NewPostObjectActionDeleteRequest generates requests for PostObjectActionDelete +func NewPostObjectActionDeleteRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/node/clear") + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/delete", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -1992,16 +2022,37 @@ func NewPostNodeClearRequest(server string) (*http.Request, error) { return req, nil } -// NewGetNodeDRBDAllocationRequest generates requests for GetNodeDRBDAllocation -func NewGetNodeDRBDAllocationRequest(server string) (*http.Request, error) { +// NewGetObjectFileRequest generates requests for GetObjectFile +func NewGetObjectFileRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/node/drbd/allocation") + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/file", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2019,16 +2070,37 @@ func NewGetNodeDRBDAllocationRequest(server string) (*http.Request, error) { return req, nil } -// NewGetNodeDRBDConfigRequest generates requests for GetNodeDRBDConfig -func NewGetNodeDRBDConfigRequest(server string, params *GetNodeDRBDConfigParams) (*http.Request, error) { +// NewPostObjectActionFreezeRequest generates requests for PostObjectActionFreeze +func NewPostObjectActionFreezeRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/node/drbd/config") + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/freeze", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2038,51 +2110,45 @@ func NewGetNodeDRBDConfigRequest(server string, params *GetNodeDRBDConfigParams) return nil, err } - queryValues := queryURL.Query() - - 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 { + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } } - queryURL.RawQuery = queryValues.Encode() + return req, nil +} - req, err := http.NewRequest("GET", queryURL.String(), nil) +// NewPostObjectActionGivebackRequest generates requests for PostObjectActionGiveback +func NewPostObjectActionGivebackRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } - return req, nil -} + var pathParam1 string -// NewPostNodeDRBDConfigRequest calls the generic PostNodeDRBDConfig builder with application/json body -func NewPostNodeDRBDConfigRequest(server string, params *PostNodeDRBDConfigParams, body PostNodeDRBDConfigJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostNodeDRBDConfigRequestWithBody(server, params, "application/json", bodyReader) -} -// NewPostNodeDRBDConfigRequestWithBody generates requests for PostNodeDRBDConfig with any type of body -func NewPostNodeDRBDConfigRequestWithBody(server string, params *PostNodeDRBDConfigParams, contentType string, body io.Reader) (*http.Request, error) { - var err error + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/node/drbd/config") + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/giveback", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2092,42 +2158,45 @@ func NewPostNodeDRBDConfigRequestWithBody(server string, params *PostNodeDRBDCon return nil, err } - queryValues := queryURL.Query() - - 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 { + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } } - queryURL.RawQuery = queryValues.Encode() + return req, nil +} - req, err := http.NewRequest("POST", queryURL.String(), body) +// NewGetInstanceBacklogsRequest generates requests for GetInstanceBacklogs +func NewGetInstanceBacklogsRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetInstanceBacklogsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) + var pathParam1 string - return req, nil -} + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) + if err != nil { + return nil, err + } -// NewGetNodeLogsRequest generates requests for GetNodeLogs -func NewGetNodeLogsRequest(server string, params *GetNodeLogsParams) (*http.Request, error) { - var err error + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/node/logs") + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/instance/backlogs", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2155,21 +2224,57 @@ func NewGetNodeLogsRequest(server string, params *GetNodeLogsParams) (*http.Requ } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "paths", runtime.ParamLocationQuery, params.Paths); err != nil { + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + } + + return req, nil +} + +// NewPostInstanceClearRequest generates requests for PostInstanceClear +func NewPostInstanceClearRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) + if err != nil { return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } } - queryURL.RawQuery = queryValues.Encode() + var pathParam1 string - req, err := http.NewRequest("GET", queryURL.String(), nil) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/instance/clear", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -2177,16 +2282,37 @@ func NewGetNodeLogsRequest(server string, params *GetNodeLogsParams) (*http.Requ return req, nil } -// NewGetNodesRequest generates requests for GetNodes -func NewGetNodesRequest(server string, params *GetNodesParams) (*http.Request, error) { +// NewGetInstanceLogsRequest generates requests for GetInstanceLogs +func NewGetInstanceLogsRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetInstanceLogsParams) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/nodes") + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/instance/logs", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2198,9 +2324,9 @@ func NewGetNodesRequest(server string, params *GetNodesParams) (*http.Request, e queryValues := queryURL.Query() - if params.Node != nil { + if params.Filter != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "node", runtime.ParamLocationQuery, *params.Node); 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 @@ -2224,54 +2350,48 @@ func NewGetNodesRequest(server string, params *GetNodesParams) (*http.Request, e return req, nil } -// NewGetNodesInfoRequest generates requests for GetNodesInfo -func NewGetNodesInfoRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +// NewPostInstanceProgressRequest calls the generic PostInstanceProgress builder with application/json body +func NewPostInstanceProgressRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName, body PostInstanceProgressJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewPostInstanceProgressRequestWithBody(server, namespace, kind, name, "application/json", bodyReader) +} - operationPath := fmt.Sprintf("/nodes/info") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +// NewPostInstanceProgressRequestWithBody generates requests for PostInstanceProgress with any type of body +func NewPostInstanceProgressRequestWithBody(server string, namespace InPathNamespace, kind InPathKind, name InPathName, contentType string, body io.Reader) (*http.Request, error) { + var err error - queryURL, err := serverURL.Parse(operationPath) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } - return req, nil -} + var pathParam2 string -// NewPostObjectActionAbortRequest calls the generic PostObjectActionAbort builder with application/json body -func NewPostObjectActionAbortRequest(server string, body PostObjectActionAbortJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostObjectActionAbortRequestWithBody(server, "application/json", bodyReader) -} - -// NewPostObjectActionAbortRequestWithBody generates requests for PostObjectActionAbort with any type of body -func NewPostObjectActionAbortRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/object/action/abort") + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/instance/progress", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2291,27 +2411,37 @@ func NewPostObjectActionAbortRequestWithBody(server string, contentType string, return req, nil } -// NewPostObjectActionDeleteRequest calls the generic PostObjectActionDelete builder with application/json body -func NewPostObjectActionDeleteRequest(server string, body PostObjectActionDeleteJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewPostObjectActionProvisionRequest generates requests for PostObjectActionProvision +func NewPostObjectActionProvisionRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostObjectActionDeleteRequestWithBody(server, "application/json", bodyReader) -} -// NewPostObjectActionDeleteRequestWithBody generates requests for PostObjectActionDelete with any type of body -func NewPostObjectActionDeleteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/object/action/delete") + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/provision", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2321,37 +2451,45 @@ func NewPostObjectActionDeleteRequestWithBody(server string, contentType string, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewPostObjectActionFreezeRequest calls the generic PostObjectActionFreeze builder with application/json body -func NewPostObjectActionFreezeRequest(server string, body PostObjectActionFreezeJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewPostObjectActionPurgeRequest generates requests for PostObjectActionPurge +func NewPostObjectActionPurgeRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostObjectActionFreezeRequestWithBody(server, "application/json", bodyReader) -} -// NewPostObjectActionFreezeRequestWithBody generates requests for PostObjectActionFreeze with any type of body -func NewPostObjectActionFreezeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/object/action/freeze") + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/purge", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2361,37 +2499,45 @@ func NewPostObjectActionFreezeRequestWithBody(server string, contentType string, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewPostObjectActionGivebackRequest calls the generic PostObjectActionGiveback builder with application/json body -func NewPostObjectActionGivebackRequest(server string, body PostObjectActionGivebackJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewPostObjectActionStartRequest generates requests for PostObjectActionStart +func NewPostObjectActionStartRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostObjectActionGivebackRequestWithBody(server, "application/json", bodyReader) -} -// NewPostObjectActionGivebackRequestWithBody generates requests for PostObjectActionGiveback with any type of body -func NewPostObjectActionGivebackRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/object/action/giveback") + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/start", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2401,37 +2547,45 @@ func NewPostObjectActionGivebackRequestWithBody(server string, contentType strin return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewPostObjectActionProvisionRequest calls the generic PostObjectActionProvision builder with application/json body -func NewPostObjectActionProvisionRequest(server string, body PostObjectActionProvisionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewPostObjectActionStopRequest generates requests for PostObjectActionStop +func NewPostObjectActionStopRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostObjectActionProvisionRequestWithBody(server, "application/json", bodyReader) -} -// NewPostObjectActionProvisionRequestWithBody generates requests for PostObjectActionProvision with any type of body -func NewPostObjectActionProvisionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/object/action/provision") + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/stop", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2441,37 +2595,56 @@ func NewPostObjectActionProvisionRequestWithBody(server string, contentType stri return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewPostObjectActionPurgeRequest calls the generic PostObjectActionPurge builder with application/json body -func NewPostObjectActionPurgeRequest(server string, body PostObjectActionPurgeJSONRequestBody) (*http.Request, error) { +// NewPostObjectActionSwitchRequest calls the generic PostObjectActionSwitch builder with application/json body +func NewPostObjectActionSwitchRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName, body PostObjectActionSwitchJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostObjectActionPurgeRequestWithBody(server, "application/json", bodyReader) + return NewPostObjectActionSwitchRequestWithBody(server, namespace, kind, name, "application/json", bodyReader) } -// NewPostObjectActionPurgeRequestWithBody generates requests for PostObjectActionPurge with any type of body -func NewPostObjectActionPurgeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostObjectActionSwitchRequestWithBody generates requests for PostObjectActionSwitch with any type of body +func NewPostObjectActionSwitchRequestWithBody(server string, namespace InPathNamespace, kind InPathKind, name InPathName, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/object/action/purge") + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/switch", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2491,107 +2664,85 @@ func NewPostObjectActionPurgeRequestWithBody(server string, contentType string, return req, nil } -// NewPostObjectActionStartRequest calls the generic PostObjectActionStart builder with application/json body -func NewPostObjectActionStartRequest(server string, body PostObjectActionStartJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewPostObjectActionUnfreezeRequest generates requests for PostObjectActionUnfreeze +func NewPostObjectActionUnfreezeRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostObjectActionStartRequestWithBody(server, "application/json", bodyReader) -} -// NewPostObjectActionStartRequestWithBody generates requests for PostObjectActionStart with any type of body -func NewPostObjectActionStartRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + var pathParam1 string - serverURL, err := url.Parse(server) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/object/action/start") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + var pathParam2 string - queryURL, err := serverURL.Parse(operationPath) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - - return req, nil -} + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/unfreeze", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// NewPostObjectActionStopRequest calls the generic PostObjectActionStop builder with application/json body -func NewPostObjectActionStopRequest(server string, body PostObjectActionStopJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostObjectActionStopRequestWithBody(server, "application/json", bodyReader) -} - -// NewPostObjectActionStopRequestWithBody generates requests for PostObjectActionStop with any type of body -func NewPostObjectActionStopRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - serverURL, err := url.Parse(server) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/object/action/stop") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + return req, nil +} + +// NewPostObjectActionUnprovisionRequest generates requests for PostObjectActionUnprovision +func NewPostObjectActionUnprovisionRequest(server string, namespace InPathNamespace, kind InPathKind, name InPathName) (*http.Request, error) { + var err error + + var pathParam0 string - queryURL, err := serverURL.Parse(operationPath) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) if err != nil { return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kind", runtime.ParamLocationPath, kind) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - - return req, nil -} + var pathParam2 string -// NewPostObjectActionSwitchRequest calls the generic PostObjectActionSwitch builder with application/json body -func NewPostObjectActionSwitchRequest(server string, body PostObjectActionSwitchJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostObjectActionSwitchRequestWithBody(server, "application/json", bodyReader) -} - -// NewPostObjectActionSwitchRequestWithBody generates requests for PostObjectActionSwitch with any type of body -func NewPostObjectActionSwitchRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/object/action/switch") + operationPath := fmt.Sprintf("/namespaces/%s/%s/%s/unprovision", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2601,29 +2752,16 @@ func NewPostObjectActionSwitchRequestWithBody(server string, contentType string, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewPostObjectActionUnfreezeRequest calls the generic PostObjectActionUnfreeze builder with application/json body -func NewPostObjectActionUnfreezeRequest(server string, body PostObjectActionUnfreezeJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostObjectActionUnfreezeRequestWithBody(server, "application/json", bodyReader) -} - -// NewPostObjectActionUnfreezeRequestWithBody generates requests for PostObjectActionUnfreeze with any type of body -func NewPostObjectActionUnfreezeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetNetworkIpRequest generates requests for GetNetworkIp +func NewGetNetworkIpRequest(server string, params *GetNetworkIpParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -2631,7 +2769,7 @@ func NewPostObjectActionUnfreezeRequestWithBody(server string, contentType strin return nil, err } - operationPath := fmt.Sprintf("/object/action/unfreeze") + operationPath := fmt.Sprintf("/network/ip") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2641,29 +2779,36 @@ func NewPostObjectActionUnfreezeRequestWithBody(server string, contentType strin return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + queryValues := queryURL.Query() - req.Header.Add("Content-Type", contentType) + if params.Name != nil { - return req, 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 k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } -// NewPostObjectActionUnprovisionRequest calls the generic PostObjectActionUnprovision builder with application/json body -func NewPostObjectActionUnprovisionRequest(server string, body PostObjectActionUnprovisionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + } + + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostObjectActionUnprovisionRequestWithBody(server, "application/json", bodyReader) + + return req, nil } -// NewPostObjectActionUnprovisionRequestWithBody generates requests for PostObjectActionUnprovision with any type of body -func NewPostObjectActionUnprovisionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetNetworksRequest generates requests for GetNetworks +func NewGetNetworksRequest(server string, params *GetNetworksParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -2671,7 +2816,7 @@ func NewPostObjectActionUnprovisionRequestWithBody(server string, contentType st return nil, err } - operationPath := fmt.Sprintf("/object/action/unprovision") + operationPath := fmt.Sprintf("/networks") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2681,18 +2826,36 @@ func NewPostObjectActionUnprovisionRequestWithBody(server string, contentType st return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + queryValues := queryURL.Query() + + if params.Name != 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 k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetObjectBacklogsRequest generates requests for GetObjectBacklogs -func NewGetObjectBacklogsRequest(server string, params *GetObjectBacklogsParams) (*http.Request, error) { +// NewGetNodeBacklogsRequest generates requests for GetNodeBacklogs +func NewGetNodeBacklogsRequest(server string, params *GetNodeBacklogsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -2700,7 +2863,7 @@ func NewGetObjectBacklogsRequest(server string, params *GetObjectBacklogsParams) return nil, err } - operationPath := fmt.Sprintf("/object/backlogs") + operationPath := fmt.Sprintf("/node/backlogs") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2750,19 +2913,35 @@ func NewGetObjectBacklogsRequest(server string, params *GetObjectBacklogsParams) return req, nil } -// NewPostObjectClearRequest calls the generic PostObjectClear builder with application/json body -func NewPostObjectClearRequest(server string, body PostObjectClearJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewPostNodeClearRequest generates requests for PostNodeClear +func NewPostNodeClearRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostObjectClearRequestWithBody(server, "application/json", bodyReader) + + operationPath := fmt.Sprintf("/node/clear") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil } -// NewPostObjectClearRequestWithBody generates requests for PostObjectClear with any type of body -func NewPostObjectClearRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostNodeActionDrainRequest generates requests for PostNodeActionDrain +func NewPostNodeActionDrainRequest(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -2770,7 +2949,7 @@ func NewPostObjectClearRequestWithBody(server string, contentType string, body i return nil, err } - operationPath := fmt.Sprintf("/object/clear") + operationPath := fmt.Sprintf("/node/drain") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2780,18 +2959,43 @@ func NewPostObjectClearRequestWithBody(server string, contentType string, body i return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) + return req, nil +} + +// NewGetNodeDRBDAllocationRequest generates requests for GetNodeDRBDAllocation +func NewGetNodeDRBDAllocationRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/node/drbd/allocation") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } return req, nil } -// NewGetObjectConfigRequest generates requests for GetObjectConfig -func NewGetObjectConfigRequest(server string, params *GetObjectConfigParams) (*http.Request, error) { +// NewGetNodeDRBDConfigRequest generates requests for GetNodeDRBDConfig +func NewGetNodeDRBDConfigRequest(server string, params *GetNodeDRBDConfigParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -2799,7 +3003,7 @@ func NewGetObjectConfigRequest(server string, params *GetObjectConfigParams) (*h return nil, err } - operationPath := fmt.Sprintf("/object/config") + operationPath := fmt.Sprintf("/node/drbd/config") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2811,7 +3015,7 @@ func NewGetObjectConfigRequest(server string, params *GetObjectConfigParams) (*h queryValues := queryURL.Query() - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "path", runtime.ParamLocationQuery, params.Path); 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 @@ -2823,38 +3027,6 @@ func NewGetObjectConfigRequest(server string, params *GetObjectConfigParams) (*h } } - if params.Evaluate != 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 k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Impersonate != 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 k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - queryURL.RawQuery = queryValues.Encode() req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -2865,8 +3037,19 @@ func NewGetObjectConfigRequest(server string, params *GetObjectConfigParams) (*h return req, nil } -// NewGetObjectFileRequest generates requests for GetObjectFile -func NewGetObjectFileRequest(server string, params *GetObjectFileParams) (*http.Request, error) { +// NewPostNodeDRBDConfigRequest calls the generic PostNodeDRBDConfig builder with application/json body +func NewPostNodeDRBDConfigRequest(server string, params *PostNodeDRBDConfigParams, body PostNodeDRBDConfigJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostNodeDRBDConfigRequestWithBody(server, params, "application/json", bodyReader) +} + +// NewPostNodeDRBDConfigRequestWithBody generates requests for PostNodeDRBDConfig with any type of body +func NewPostNodeDRBDConfigRequestWithBody(server string, params *PostNodeDRBDConfigParams, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -2874,7 +3057,7 @@ func NewGetObjectFileRequest(server string, params *GetObjectFileParams) (*http. return nil, err } - operationPath := fmt.Sprintf("/object/file") + operationPath := fmt.Sprintf("/node/drbd/config") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2886,7 +3069,7 @@ func NewGetObjectFileRequest(server string, params *GetObjectFileParams) (*http. queryValues := queryURL.Query() - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "path", runtime.ParamLocationQuery, params.Path); 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 @@ -2900,16 +3083,18 @@ func NewGetObjectFileRequest(server string, params *GetObjectFileParams) (*http. queryURL.RawQuery = queryValues.Encode() - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetObjectLogsRequest generates requests for GetObjectLogs -func NewGetObjectLogsRequest(server string, params *GetObjectLogsParams) (*http.Request, error) { +// NewGetNodeLogsRequest generates requests for GetNodeLogs +func NewGetNodeLogsRequest(server string, params *GetNodeLogsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -2917,7 +3102,7 @@ func NewGetObjectLogsRequest(server string, params *GetObjectLogsParams) (*http. return nil, err } - operationPath := fmt.Sprintf("/object/logs") + operationPath := fmt.Sprintf("/node/logs") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2967,8 +3152,55 @@ func NewGetObjectLogsRequest(server string, params *GetObjectLogsParams) (*http. return req, nil } -// NewGetObjectPathsRequest generates requests for GetObjectPaths -func NewGetObjectPathsRequest(server string, params *GetObjectPathsParams) (*http.Request, error) { +// NewGetNodesRequest generates requests for GetNodes +func NewGetNodesRequest(server string, params *GetNodesParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/nodes") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.Node != 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 k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetNodesInfoRequest generates requests for GetNodesInfo +func NewGetNodesInfoRequest(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -2976,7 +3208,7 @@ func NewGetObjectPathsRequest(server string, params *GetObjectPathsParams) (*htt return nil, err } - operationPath := fmt.Sprintf("/object/paths") + operationPath := fmt.Sprintf("/nodes/info") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -2986,22 +3218,6 @@ func NewGetObjectPathsRequest(server string, params *GetObjectPathsParams) (*htt return nil, err } - queryValues := queryURL.Query() - - 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 k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -3010,19 +3226,8 @@ func NewGetObjectPathsRequest(server string, params *GetObjectPathsParams) (*htt return req, nil } -// NewPostObjectProgressRequest calls the generic PostObjectProgress builder with application/json body -func NewPostObjectProgressRequest(server string, body PostObjectProgressJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostObjectProgressRequestWithBody(server, "application/json", bodyReader) -} - -// NewPostObjectProgressRequestWithBody generates requests for PostObjectProgress with any type of body -func NewPostObjectProgressRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetObjectPathsRequest generates requests for GetObjectPaths +func NewGetObjectPathsRequest(server string, params *GetObjectPathsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -3030,7 +3235,7 @@ func NewPostObjectProgressRequestWithBody(server string, contentType string, bod return nil, err } - operationPath := fmt.Sprintf("/object/progress") + operationPath := fmt.Sprintf("/object/paths") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3040,12 +3245,26 @@ func NewPostObjectProgressRequestWithBody(server string, contentType string, bod return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { + queryValues := queryURL.Query() + + 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 k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } } - req.Header.Add("Content-Type", contentType) + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } return req, nil } @@ -3497,121 +3716,108 @@ type ClientWithResponsesInterface interface { PostInstanceStatusWithResponse(ctx context.Context, body PostInstanceStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*PostInstanceStatusResponse, error) - // GetNetworkIp request - GetNetworkIpWithResponse(ctx context.Context, params *GetNetworkIpParams, reqEditors ...RequestEditorFn) (*GetNetworkIpResponse, error) - - // GetNetworks request - GetNetworksWithResponse(ctx context.Context, params *GetNetworksParams, reqEditors ...RequestEditorFn) (*GetNetworksResponse, error) - - // PostNodeActionDrain request - PostNodeActionDrainWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostNodeActionDrainResponse, error) - - // GetNodeBacklogs request - GetNodeBacklogsWithResponse(ctx context.Context, params *GetNodeBacklogsParams, reqEditors ...RequestEditorFn) (*GetNodeBacklogsResponse, error) - - // PostNodeClear request - PostNodeClearWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostNodeClearResponse, error) - - // GetNodeDRBDAllocation request - GetNodeDRBDAllocationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNodeDRBDAllocationResponse, error) - - // GetNodeDRBDConfig request - GetNodeDRBDConfigWithResponse(ctx context.Context, params *GetNodeDRBDConfigParams, reqEditors ...RequestEditorFn) (*GetNodeDRBDConfigResponse, error) + // GetInstancesBacklogs request + GetInstancesBacklogsWithResponse(ctx context.Context, params *GetInstancesBacklogsParams, reqEditors ...RequestEditorFn) (*GetInstancesBacklogsResponse, error) - // PostNodeDRBDConfig request with any body - PostNodeDRBDConfigWithBodyWithResponse(ctx context.Context, params *PostNodeDRBDConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeDRBDConfigResponse, error) + // GetInstancesLogs request + GetInstancesLogsWithResponse(ctx context.Context, params *GetInstancesLogsParams, reqEditors ...RequestEditorFn) (*GetInstancesLogsResponse, error) - PostNodeDRBDConfigWithResponse(ctx context.Context, params *PostNodeDRBDConfigParams, body PostNodeDRBDConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeDRBDConfigResponse, error) + // GetObject request + GetObjectWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*GetObjectResponse, error) - // GetNodeLogs request - GetNodeLogsWithResponse(ctx context.Context, params *GetNodeLogsParams, reqEditors ...RequestEditorFn) (*GetNodeLogsResponse, error) + // PostObjectActionAbort request + PostObjectActionAbortWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionAbortResponse, error) - // GetNodes request - GetNodesWithResponse(ctx context.Context, params *GetNodesParams, reqEditors ...RequestEditorFn) (*GetNodesResponse, error) + // GetObjectConfig request + GetObjectConfigWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetObjectConfigParams, reqEditors ...RequestEditorFn) (*GetObjectConfigResponse, error) - // GetNodesInfo request - GetNodesInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNodesInfoResponse, error) + // PostObjectActionDelete request + PostObjectActionDeleteWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionDeleteResponse, error) - // PostObjectActionAbort request with any body - PostObjectActionAbortWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionAbortResponse, error) + // GetObjectFile request + GetObjectFileWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*GetObjectFileResponse, error) - PostObjectActionAbortWithResponse(ctx context.Context, body PostObjectActionAbortJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionAbortResponse, error) + // PostObjectActionFreeze request + PostObjectActionFreezeWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionFreezeResponse, error) - // PostObjectActionDelete request with any body - PostObjectActionDeleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionDeleteResponse, error) + // PostObjectActionGiveback request + PostObjectActionGivebackWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionGivebackResponse, error) - PostObjectActionDeleteWithResponse(ctx context.Context, body PostObjectActionDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionDeleteResponse, error) + // GetInstanceBacklogs request + GetInstanceBacklogsWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetInstanceBacklogsParams, reqEditors ...RequestEditorFn) (*GetInstanceBacklogsResponse, error) - // PostObjectActionFreeze request with any body - PostObjectActionFreezeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionFreezeResponse, error) + // PostInstanceClear request + PostInstanceClearWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostInstanceClearResponse, error) - PostObjectActionFreezeWithResponse(ctx context.Context, body PostObjectActionFreezeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionFreezeResponse, error) + // GetInstanceLogs request + GetInstanceLogsWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetInstanceLogsParams, reqEditors ...RequestEditorFn) (*GetInstanceLogsResponse, error) - // PostObjectActionGiveback request with any body - PostObjectActionGivebackWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionGivebackResponse, error) + // PostInstanceProgress request with any body + PostInstanceProgressWithBodyWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostInstanceProgressResponse, error) - PostObjectActionGivebackWithResponse(ctx context.Context, body PostObjectActionGivebackJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionGivebackResponse, error) + PostInstanceProgressWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, body PostInstanceProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*PostInstanceProgressResponse, error) - // PostObjectActionProvision request with any body - PostObjectActionProvisionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionProvisionResponse, error) + // PostObjectActionProvision request + PostObjectActionProvisionWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionProvisionResponse, error) - PostObjectActionProvisionWithResponse(ctx context.Context, body PostObjectActionProvisionJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionProvisionResponse, error) + // PostObjectActionPurge request + PostObjectActionPurgeWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionPurgeResponse, error) - // PostObjectActionPurge request with any body - PostObjectActionPurgeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionPurgeResponse, error) + // PostObjectActionStart request + PostObjectActionStartWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionStartResponse, error) - PostObjectActionPurgeWithResponse(ctx context.Context, body PostObjectActionPurgeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionPurgeResponse, error) + // PostObjectActionStop request + PostObjectActionStopWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionStopResponse, error) - // PostObjectActionStart request with any body - PostObjectActionStartWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionStartResponse, error) + // PostObjectActionSwitch request with any body + PostObjectActionSwitchWithBodyWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionSwitchResponse, error) - PostObjectActionStartWithResponse(ctx context.Context, body PostObjectActionStartJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionStartResponse, error) + PostObjectActionSwitchWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, body PostObjectActionSwitchJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionSwitchResponse, error) - // PostObjectActionStop request with any body - PostObjectActionStopWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionStopResponse, error) + // PostObjectActionUnfreeze request + PostObjectActionUnfreezeWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionUnfreezeResponse, error) - PostObjectActionStopWithResponse(ctx context.Context, body PostObjectActionStopJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionStopResponse, error) + // PostObjectActionUnprovision request + PostObjectActionUnprovisionWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionUnprovisionResponse, error) - // PostObjectActionSwitch request with any body - PostObjectActionSwitchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionSwitchResponse, error) + // GetNetworkIp request + GetNetworkIpWithResponse(ctx context.Context, params *GetNetworkIpParams, reqEditors ...RequestEditorFn) (*GetNetworkIpResponse, error) - PostObjectActionSwitchWithResponse(ctx context.Context, body PostObjectActionSwitchJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionSwitchResponse, error) + // GetNetworks request + GetNetworksWithResponse(ctx context.Context, params *GetNetworksParams, reqEditors ...RequestEditorFn) (*GetNetworksResponse, error) - // PostObjectActionUnfreeze request with any body - PostObjectActionUnfreezeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionUnfreezeResponse, error) + // GetNodeBacklogs request + GetNodeBacklogsWithResponse(ctx context.Context, params *GetNodeBacklogsParams, reqEditors ...RequestEditorFn) (*GetNodeBacklogsResponse, error) - PostObjectActionUnfreezeWithResponse(ctx context.Context, body PostObjectActionUnfreezeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionUnfreezeResponse, error) + // PostNodeClear request + PostNodeClearWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostNodeClearResponse, error) - // PostObjectActionUnprovision request with any body - PostObjectActionUnprovisionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionUnprovisionResponse, error) + // PostNodeActionDrain request + PostNodeActionDrainWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostNodeActionDrainResponse, error) - PostObjectActionUnprovisionWithResponse(ctx context.Context, body PostObjectActionUnprovisionJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionUnprovisionResponse, error) + // GetNodeDRBDAllocation request + GetNodeDRBDAllocationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNodeDRBDAllocationResponse, error) - // GetObjectBacklogs request - GetObjectBacklogsWithResponse(ctx context.Context, params *GetObjectBacklogsParams, reqEditors ...RequestEditorFn) (*GetObjectBacklogsResponse, error) + // GetNodeDRBDConfig request + GetNodeDRBDConfigWithResponse(ctx context.Context, params *GetNodeDRBDConfigParams, reqEditors ...RequestEditorFn) (*GetNodeDRBDConfigResponse, error) - // PostObjectClear request with any body - PostObjectClearWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectClearResponse, error) + // PostNodeDRBDConfig request with any body + PostNodeDRBDConfigWithBodyWithResponse(ctx context.Context, params *PostNodeDRBDConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeDRBDConfigResponse, error) - PostObjectClearWithResponse(ctx context.Context, body PostObjectClearJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectClearResponse, error) + PostNodeDRBDConfigWithResponse(ctx context.Context, params *PostNodeDRBDConfigParams, body PostNodeDRBDConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeDRBDConfigResponse, error) - // GetObjectConfig request - GetObjectConfigWithResponse(ctx context.Context, params *GetObjectConfigParams, reqEditors ...RequestEditorFn) (*GetObjectConfigResponse, error) + // GetNodeLogs request + GetNodeLogsWithResponse(ctx context.Context, params *GetNodeLogsParams, reqEditors ...RequestEditorFn) (*GetNodeLogsResponse, error) - // GetObjectFile request - GetObjectFileWithResponse(ctx context.Context, params *GetObjectFileParams, reqEditors ...RequestEditorFn) (*GetObjectFileResponse, error) + // GetNodes request + GetNodesWithResponse(ctx context.Context, params *GetNodesParams, reqEditors ...RequestEditorFn) (*GetNodesResponse, error) - // GetObjectLogs request - GetObjectLogsWithResponse(ctx context.Context, params *GetObjectLogsParams, reqEditors ...RequestEditorFn) (*GetObjectLogsResponse, error) + // GetNodesInfo request + GetNodesInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNodesInfoResponse, error) // GetObjectPaths request GetObjectPathsWithResponse(ctx context.Context, params *GetObjectPathsParams, reqEditors ...RequestEditorFn) (*GetObjectPathsResponse, error) - // PostObjectProgress request with any body - PostObjectProgressWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectProgressResponse, error) - - PostObjectProgressWithResponse(ctx context.Context, body PostObjectProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectProgressResponse, error) - // GetObjects request GetObjectsWithResponse(ctx context.Context, params *GetObjectsParams, reqEditors ...RequestEditorFn) (*GetObjectsResponse, error) @@ -4041,17 +4247,17 @@ func (r PostInstanceStatusResponse) StatusCode() int { return 0 } -type GetNetworkIpResponse struct { +type GetInstancesBacklogsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NetworkIpList + JSON200 *LogList JSON401 *Problem JSON403 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r GetNetworkIpResponse) Status() string { +func (r GetInstancesBacklogsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4059,24 +4265,23 @@ func (r GetNetworkIpResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNetworkIpResponse) StatusCode() int { +func (r GetInstancesBacklogsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetNetworksResponse struct { +type GetInstancesLogsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NetworkList JSON401 *Problem JSON403 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r GetNetworksResponse) Status() string { +func (r GetInstancesLogsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4084,14 +4289,39 @@ func (r GetNetworksResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNetworksResponse) StatusCode() int { +func (r GetInstancesLogsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostNodeActionDrainResponse struct { +type GetObjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ObjectItem + JSON401 *Problem + JSON403 *Problem + JSON500 *Problem +} + +// Status returns HTTPResponse.Status +func (r GetObjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetObjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostObjectActionAbortResponse struct { Body []byte HTTPResponse *http.Response JSON200 *OrchestrationQueued @@ -4104,7 +4334,7 @@ type PostNodeActionDrainResponse struct { } // Status returns HTTPResponse.Status -func (r PostNodeActionDrainResponse) Status() string { +func (r PostObjectActionAbortResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4112,24 +4342,24 @@ func (r PostNodeActionDrainResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostNodeActionDrainResponse) StatusCode() int { +func (r PostObjectActionAbortResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetNodeBacklogsResponse struct { +type GetObjectConfigResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LogList + JSON200 *ObjectConfig JSON401 *Problem JSON403 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r GetNodeBacklogsResponse) Status() string { +func (r GetObjectConfigResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4137,25 +4367,27 @@ func (r GetNodeBacklogsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNodeBacklogsResponse) StatusCode() int { +func (r GetObjectConfigResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostNodeClearResponse struct { +type PostObjectActionDeleteResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Problem + JSON200 *OrchestrationQueued JSON400 *Problem JSON401 *Problem JSON403 *Problem + JSON408 *Problem + JSON409 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r PostNodeClearResponse) Status() string { +func (r PostObjectActionDeleteResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4163,22 +4395,24 @@ func (r PostNodeClearResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostNodeClearResponse) StatusCode() int { +func (r PostObjectActionDeleteResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetNodeDRBDAllocationResponse struct { +type GetObjectFileResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DRBDAllocation + JSON200 *ObjectFile + JSON401 *Problem + JSON403 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r GetNodeDRBDAllocationResponse) Status() string { +func (r GetObjectFileResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4186,25 +4420,27 @@ func (r GetNodeDRBDAllocationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNodeDRBDAllocationResponse) StatusCode() int { +func (r GetObjectFileResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetNodeDRBDConfigResponse struct { +type PostObjectActionFreezeResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DRBDConfig + JSON200 *OrchestrationQueued JSON400 *Problem JSON401 *Problem JSON403 *Problem + JSON408 *Problem + JSON409 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r GetNodeDRBDConfigResponse) Status() string { +func (r PostObjectActionFreezeResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4212,24 +4448,27 @@ func (r GetNodeDRBDConfigResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNodeDRBDConfigResponse) StatusCode() int { +func (r PostObjectActionFreezeResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostNodeDRBDConfigResponse struct { +type PostObjectActionGivebackResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *OrchestrationQueued JSON400 *Problem JSON401 *Problem JSON403 *Problem + JSON408 *Problem + JSON409 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r PostNodeDRBDConfigResponse) Status() string { +func (r PostObjectActionGivebackResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4237,23 +4476,24 @@ func (r PostNodeDRBDConfigResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostNodeDRBDConfigResponse) StatusCode() int { +func (r PostObjectActionGivebackResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetNodeLogsResponse struct { +type GetInstanceBacklogsResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *LogList JSON401 *Problem JSON403 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r GetNodeLogsResponse) Status() string { +func (r GetInstanceBacklogsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4261,25 +4501,23 @@ func (r GetNodeLogsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNodeLogsResponse) StatusCode() int { +func (r GetInstanceBacklogsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetNodesResponse struct { +type PostInstanceClearResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodeList - JSON400 *Problem JSON401 *Problem JSON403 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r GetNodesResponse) Status() string { +func (r PostInstanceClearResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4287,24 +4525,75 @@ func (r GetNodesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNodesResponse) StatusCode() int { +func (r PostInstanceClearResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetNodesInfoResponse struct { +type GetInstanceLogsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodesInfo JSON401 *Problem JSON403 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r GetNodesInfoResponse) Status() string { +func (r GetInstanceLogsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInstanceLogsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostInstanceProgressResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Problem + JSON403 *Problem + JSON500 *Problem +} + +// Status returns HTTPResponse.Status +func (r PostInstanceProgressResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostInstanceProgressResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostObjectActionProvisionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OrchestrationQueued + JSON400 *Problem + JSON401 *Problem + JSON403 *Problem + JSON408 *Problem + JSON409 *Problem + JSON500 *Problem +} + +// Status returns HTTPResponse.Status +func (r PostObjectActionProvisionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4312,14 +4601,14 @@ func (r GetNodesInfoResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNodesInfoResponse) StatusCode() int { +func (r PostObjectActionProvisionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostObjectActionAbortResponse struct { +type PostObjectActionPurgeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *OrchestrationQueued @@ -4332,7 +4621,7 @@ type PostObjectActionAbortResponse struct { } // Status returns HTTPResponse.Status -func (r PostObjectActionAbortResponse) Status() string { +func (r PostObjectActionPurgeResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4340,14 +4629,14 @@ func (r PostObjectActionAbortResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostObjectActionAbortResponse) StatusCode() int { +func (r PostObjectActionPurgeResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostObjectActionDeleteResponse struct { +type PostObjectActionStartResponse struct { Body []byte HTTPResponse *http.Response JSON200 *OrchestrationQueued @@ -4360,7 +4649,7 @@ type PostObjectActionDeleteResponse struct { } // Status returns HTTPResponse.Status -func (r PostObjectActionDeleteResponse) Status() string { +func (r PostObjectActionStartResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4368,14 +4657,14 @@ func (r PostObjectActionDeleteResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostObjectActionDeleteResponse) StatusCode() int { +func (r PostObjectActionStartResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostObjectActionFreezeResponse struct { +type PostObjectActionStopResponse struct { Body []byte HTTPResponse *http.Response JSON200 *OrchestrationQueued @@ -4388,7 +4677,7 @@ type PostObjectActionFreezeResponse struct { } // Status returns HTTPResponse.Status -func (r PostObjectActionFreezeResponse) Status() string { +func (r PostObjectActionStopResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4396,14 +4685,14 @@ func (r PostObjectActionFreezeResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostObjectActionFreezeResponse) StatusCode() int { +func (r PostObjectActionStopResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostObjectActionGivebackResponse struct { +type PostObjectActionSwitchResponse struct { Body []byte HTTPResponse *http.Response JSON200 *OrchestrationQueued @@ -4416,7 +4705,7 @@ type PostObjectActionGivebackResponse struct { } // Status returns HTTPResponse.Status -func (r PostObjectActionGivebackResponse) Status() string { +func (r PostObjectActionSwitchResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4424,14 +4713,14 @@ func (r PostObjectActionGivebackResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostObjectActionGivebackResponse) StatusCode() int { +func (r PostObjectActionSwitchResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostObjectActionProvisionResponse struct { +type PostObjectActionUnfreezeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *OrchestrationQueued @@ -4444,7 +4733,7 @@ type PostObjectActionProvisionResponse struct { } // Status returns HTTPResponse.Status -func (r PostObjectActionProvisionResponse) Status() string { +func (r PostObjectActionUnfreezeResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4452,14 +4741,14 @@ func (r PostObjectActionProvisionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostObjectActionProvisionResponse) StatusCode() int { +func (r PostObjectActionUnfreezeResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostObjectActionPurgeResponse struct { +type PostObjectActionUnprovisionResponse struct { Body []byte HTTPResponse *http.Response JSON200 *OrchestrationQueued @@ -4472,7 +4761,7 @@ type PostObjectActionPurgeResponse struct { } // Status returns HTTPResponse.Status -func (r PostObjectActionPurgeResponse) Status() string { +func (r PostObjectActionUnprovisionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4480,27 +4769,24 @@ func (r PostObjectActionPurgeResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostObjectActionPurgeResponse) StatusCode() int { +func (r PostObjectActionUnprovisionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostObjectActionStartResponse struct { +type GetNetworkIpResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *OrchestrationQueued - JSON400 *Problem + JSON200 *NetworkIpList JSON401 *Problem JSON403 *Problem - JSON408 *Problem - JSON409 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r PostObjectActionStartResponse) Status() string { +func (r GetNetworkIpResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4508,27 +4794,24 @@ func (r PostObjectActionStartResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostObjectActionStartResponse) StatusCode() int { +func (r GetNetworkIpResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostObjectActionStopResponse struct { +type GetNetworksResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *OrchestrationQueued - JSON400 *Problem + JSON200 *NetworkList JSON401 *Problem JSON403 *Problem - JSON408 *Problem - JSON409 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r PostObjectActionStopResponse) Status() string { +func (r GetNetworksResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4536,27 +4819,24 @@ func (r PostObjectActionStopResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostObjectActionStopResponse) StatusCode() int { +func (r GetNetworksResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostObjectActionSwitchResponse struct { +type GetNodeBacklogsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *OrchestrationQueued - JSON400 *Problem + JSON200 *LogList JSON401 *Problem JSON403 *Problem - JSON408 *Problem - JSON409 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r PostObjectActionSwitchResponse) Status() string { +func (r GetNodeBacklogsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4564,27 +4844,25 @@ func (r PostObjectActionSwitchResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostObjectActionSwitchResponse) StatusCode() int { +func (r GetNodeBacklogsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostObjectActionUnfreezeResponse struct { +type PostNodeClearResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *OrchestrationQueued + JSON200 *Problem JSON400 *Problem JSON401 *Problem JSON403 *Problem - JSON408 *Problem - JSON409 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r PostObjectActionUnfreezeResponse) Status() string { +func (r PostNodeClearResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4592,14 +4870,14 @@ func (r PostObjectActionUnfreezeResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostObjectActionUnfreezeResponse) StatusCode() int { +func (r PostNodeClearResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostObjectActionUnprovisionResponse struct { +type PostNodeActionDrainResponse struct { Body []byte HTTPResponse *http.Response JSON200 *OrchestrationQueued @@ -4612,7 +4890,7 @@ type PostObjectActionUnprovisionResponse struct { } // Status returns HTTPResponse.Status -func (r PostObjectActionUnprovisionResponse) Status() string { +func (r PostNodeActionDrainResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4620,24 +4898,22 @@ func (r PostObjectActionUnprovisionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostObjectActionUnprovisionResponse) StatusCode() int { +func (r PostNodeActionDrainResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetObjectBacklogsResponse struct { +type GetNodeDRBDAllocationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LogList - JSON401 *Problem - JSON403 *Problem + JSON200 *DRBDAllocation JSON500 *Problem } // Status returns HTTPResponse.Status -func (r GetObjectBacklogsResponse) Status() string { +func (r GetNodeDRBDAllocationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4645,23 +4921,25 @@ func (r GetObjectBacklogsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetObjectBacklogsResponse) StatusCode() int { +func (r GetNodeDRBDAllocationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostObjectClearResponse struct { +type GetNodeDRBDConfigResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *DRBDConfig + JSON400 *Problem JSON401 *Problem JSON403 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r PostObjectClearResponse) Status() string { +func (r GetNodeDRBDConfigResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4669,24 +4947,24 @@ func (r PostObjectClearResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostObjectClearResponse) StatusCode() int { +func (r GetNodeDRBDConfigResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetObjectConfigResponse struct { +type PostNodeDRBDConfigResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ObjectConfig + JSON400 *Problem JSON401 *Problem JSON403 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r GetObjectConfigResponse) Status() string { +func (r PostNodeDRBDConfigResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4694,24 +4972,23 @@ func (r GetObjectConfigResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetObjectConfigResponse) StatusCode() int { +func (r PostNodeDRBDConfigResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetObjectFileResponse struct { +type GetNodeLogsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ObjectFile JSON401 *Problem JSON403 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r GetObjectFileResponse) Status() string { +func (r GetNodeLogsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4719,23 +4996,25 @@ func (r GetObjectFileResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetObjectFileResponse) StatusCode() int { +func (r GetNodeLogsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetObjectLogsResponse struct { +type GetNodesResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *NodeList + JSON400 *Problem JSON401 *Problem JSON403 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r GetObjectLogsResponse) Status() string { +func (r GetNodesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4743,24 +5022,24 @@ func (r GetObjectLogsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetObjectLogsResponse) StatusCode() int { +func (r GetNodesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetObjectPathsResponse struct { +type GetNodesInfoResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ObjectPaths + JSON200 *NodesInfo JSON401 *Problem JSON403 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r GetObjectPathsResponse) Status() string { +func (r GetNodesInfoResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4768,23 +5047,24 @@ func (r GetObjectPathsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetObjectPathsResponse) StatusCode() int { +func (r GetNodesInfoResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostObjectProgressResponse struct { +type GetObjectPathsResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *ObjectPaths JSON401 *Problem JSON403 *Problem JSON500 *Problem } // Status returns HTTPResponse.Status -func (r PostObjectProgressResponse) Status() string { +func (r GetObjectPathsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -4792,7 +5072,7 @@ func (r PostObjectProgressResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostObjectProgressResponse) StatusCode() int { +func (r GetObjectPathsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -5144,351 +5424,307 @@ func (c *ClientWithResponses) PostInstanceStatusWithResponse(ctx context.Context return ParsePostInstanceStatusResponse(rsp) } -// GetNetworkIpWithResponse request returning *GetNetworkIpResponse -func (c *ClientWithResponses) GetNetworkIpWithResponse(ctx context.Context, params *GetNetworkIpParams, reqEditors ...RequestEditorFn) (*GetNetworkIpResponse, error) { - rsp, err := c.GetNetworkIp(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetNetworkIpResponse(rsp) -} - -// GetNetworksWithResponse request returning *GetNetworksResponse -func (c *ClientWithResponses) GetNetworksWithResponse(ctx context.Context, params *GetNetworksParams, reqEditors ...RequestEditorFn) (*GetNetworksResponse, error) { - rsp, err := c.GetNetworks(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetNetworksResponse(rsp) -} - -// PostNodeActionDrainWithResponse request returning *PostNodeActionDrainResponse -func (c *ClientWithResponses) PostNodeActionDrainWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostNodeActionDrainResponse, error) { - rsp, err := c.PostNodeActionDrain(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostNodeActionDrainResponse(rsp) -} - -// GetNodeBacklogsWithResponse request returning *GetNodeBacklogsResponse -func (c *ClientWithResponses) GetNodeBacklogsWithResponse(ctx context.Context, params *GetNodeBacklogsParams, reqEditors ...RequestEditorFn) (*GetNodeBacklogsResponse, error) { - rsp, err := c.GetNodeBacklogs(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetNodeBacklogsResponse(rsp) -} - -// PostNodeClearWithResponse request returning *PostNodeClearResponse -func (c *ClientWithResponses) PostNodeClearWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostNodeClearResponse, error) { - rsp, err := c.PostNodeClear(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostNodeClearResponse(rsp) -} - -// GetNodeDRBDAllocationWithResponse request returning *GetNodeDRBDAllocationResponse -func (c *ClientWithResponses) GetNodeDRBDAllocationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNodeDRBDAllocationResponse, error) { - rsp, err := c.GetNodeDRBDAllocation(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetNodeDRBDAllocationResponse(rsp) -} - -// GetNodeDRBDConfigWithResponse request returning *GetNodeDRBDConfigResponse -func (c *ClientWithResponses) GetNodeDRBDConfigWithResponse(ctx context.Context, params *GetNodeDRBDConfigParams, reqEditors ...RequestEditorFn) (*GetNodeDRBDConfigResponse, error) { - rsp, err := c.GetNodeDRBDConfig(ctx, params, reqEditors...) +// GetInstancesBacklogsWithResponse request returning *GetInstancesBacklogsResponse +func (c *ClientWithResponses) GetInstancesBacklogsWithResponse(ctx context.Context, params *GetInstancesBacklogsParams, reqEditors ...RequestEditorFn) (*GetInstancesBacklogsResponse, error) { + rsp, err := c.GetInstancesBacklogs(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetNodeDRBDConfigResponse(rsp) + return ParseGetInstancesBacklogsResponse(rsp) } -// PostNodeDRBDConfigWithBodyWithResponse request with arbitrary body returning *PostNodeDRBDConfigResponse -func (c *ClientWithResponses) PostNodeDRBDConfigWithBodyWithResponse(ctx context.Context, params *PostNodeDRBDConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeDRBDConfigResponse, error) { - rsp, err := c.PostNodeDRBDConfigWithBody(ctx, params, contentType, body, reqEditors...) +// GetInstancesLogsWithResponse request returning *GetInstancesLogsResponse +func (c *ClientWithResponses) GetInstancesLogsWithResponse(ctx context.Context, params *GetInstancesLogsParams, reqEditors ...RequestEditorFn) (*GetInstancesLogsResponse, error) { + rsp, err := c.GetInstancesLogs(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParsePostNodeDRBDConfigResponse(rsp) + return ParseGetInstancesLogsResponse(rsp) } -func (c *ClientWithResponses) PostNodeDRBDConfigWithResponse(ctx context.Context, params *PostNodeDRBDConfigParams, body PostNodeDRBDConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeDRBDConfigResponse, error) { - rsp, err := c.PostNodeDRBDConfig(ctx, params, body, reqEditors...) +// GetObjectWithResponse request returning *GetObjectResponse +func (c *ClientWithResponses) GetObjectWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*GetObjectResponse, error) { + rsp, err := c.GetObject(ctx, namespace, kind, name, reqEditors...) if err != nil { return nil, err } - return ParsePostNodeDRBDConfigResponse(rsp) + return ParseGetObjectResponse(rsp) } -// GetNodeLogsWithResponse request returning *GetNodeLogsResponse -func (c *ClientWithResponses) GetNodeLogsWithResponse(ctx context.Context, params *GetNodeLogsParams, reqEditors ...RequestEditorFn) (*GetNodeLogsResponse, error) { - rsp, err := c.GetNodeLogs(ctx, params, reqEditors...) +// PostObjectActionAbortWithResponse request returning *PostObjectActionAbortResponse +func (c *ClientWithResponses) PostObjectActionAbortWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionAbortResponse, error) { + rsp, err := c.PostObjectActionAbort(ctx, namespace, kind, name, reqEditors...) if err != nil { return nil, err } - return ParseGetNodeLogsResponse(rsp) + return ParsePostObjectActionAbortResponse(rsp) } -// GetNodesWithResponse request returning *GetNodesResponse -func (c *ClientWithResponses) GetNodesWithResponse(ctx context.Context, params *GetNodesParams, reqEditors ...RequestEditorFn) (*GetNodesResponse, error) { - rsp, err := c.GetNodes(ctx, params, reqEditors...) +// GetObjectConfigWithResponse request returning *GetObjectConfigResponse +func (c *ClientWithResponses) GetObjectConfigWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetObjectConfigParams, reqEditors ...RequestEditorFn) (*GetObjectConfigResponse, error) { + rsp, err := c.GetObjectConfig(ctx, namespace, kind, name, params, reqEditors...) if err != nil { return nil, err } - return ParseGetNodesResponse(rsp) + return ParseGetObjectConfigResponse(rsp) } -// GetNodesInfoWithResponse request returning *GetNodesInfoResponse -func (c *ClientWithResponses) GetNodesInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNodesInfoResponse, error) { - rsp, err := c.GetNodesInfo(ctx, reqEditors...) +// PostObjectActionDeleteWithResponse request returning *PostObjectActionDeleteResponse +func (c *ClientWithResponses) PostObjectActionDeleteWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionDeleteResponse, error) { + rsp, err := c.PostObjectActionDelete(ctx, namespace, kind, name, reqEditors...) if err != nil { return nil, err } - return ParseGetNodesInfoResponse(rsp) + return ParsePostObjectActionDeleteResponse(rsp) } -// PostObjectActionAbortWithBodyWithResponse request with arbitrary body returning *PostObjectActionAbortResponse -func (c *ClientWithResponses) PostObjectActionAbortWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionAbortResponse, error) { - rsp, err := c.PostObjectActionAbortWithBody(ctx, contentType, body, reqEditors...) +// GetObjectFileWithResponse request returning *GetObjectFileResponse +func (c *ClientWithResponses) GetObjectFileWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*GetObjectFileResponse, error) { + rsp, err := c.GetObjectFile(ctx, namespace, kind, name, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionAbortResponse(rsp) + return ParseGetObjectFileResponse(rsp) } -func (c *ClientWithResponses) PostObjectActionAbortWithResponse(ctx context.Context, body PostObjectActionAbortJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionAbortResponse, error) { - rsp, err := c.PostObjectActionAbort(ctx, body, reqEditors...) +// PostObjectActionFreezeWithResponse request returning *PostObjectActionFreezeResponse +func (c *ClientWithResponses) PostObjectActionFreezeWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionFreezeResponse, error) { + rsp, err := c.PostObjectActionFreeze(ctx, namespace, kind, name, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionAbortResponse(rsp) + return ParsePostObjectActionFreezeResponse(rsp) } -// PostObjectActionDeleteWithBodyWithResponse request with arbitrary body returning *PostObjectActionDeleteResponse -func (c *ClientWithResponses) PostObjectActionDeleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionDeleteResponse, error) { - rsp, err := c.PostObjectActionDeleteWithBody(ctx, contentType, body, reqEditors...) +// PostObjectActionGivebackWithResponse request returning *PostObjectActionGivebackResponse +func (c *ClientWithResponses) PostObjectActionGivebackWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionGivebackResponse, error) { + rsp, err := c.PostObjectActionGiveback(ctx, namespace, kind, name, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionDeleteResponse(rsp) + return ParsePostObjectActionGivebackResponse(rsp) } -func (c *ClientWithResponses) PostObjectActionDeleteWithResponse(ctx context.Context, body PostObjectActionDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionDeleteResponse, error) { - rsp, err := c.PostObjectActionDelete(ctx, body, reqEditors...) +// GetInstanceBacklogsWithResponse request returning *GetInstanceBacklogsResponse +func (c *ClientWithResponses) GetInstanceBacklogsWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetInstanceBacklogsParams, reqEditors ...RequestEditorFn) (*GetInstanceBacklogsResponse, error) { + rsp, err := c.GetInstanceBacklogs(ctx, namespace, kind, name, params, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionDeleteResponse(rsp) + return ParseGetInstanceBacklogsResponse(rsp) } -// PostObjectActionFreezeWithBodyWithResponse request with arbitrary body returning *PostObjectActionFreezeResponse -func (c *ClientWithResponses) PostObjectActionFreezeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionFreezeResponse, error) { - rsp, err := c.PostObjectActionFreezeWithBody(ctx, contentType, body, reqEditors...) +// PostInstanceClearWithResponse request returning *PostInstanceClearResponse +func (c *ClientWithResponses) PostInstanceClearWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostInstanceClearResponse, error) { + rsp, err := c.PostInstanceClear(ctx, namespace, kind, name, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionFreezeResponse(rsp) + return ParsePostInstanceClearResponse(rsp) } -func (c *ClientWithResponses) PostObjectActionFreezeWithResponse(ctx context.Context, body PostObjectActionFreezeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionFreezeResponse, error) { - rsp, err := c.PostObjectActionFreeze(ctx, body, reqEditors...) +// GetInstanceLogsWithResponse request returning *GetInstanceLogsResponse +func (c *ClientWithResponses) GetInstanceLogsWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params *GetInstanceLogsParams, reqEditors ...RequestEditorFn) (*GetInstanceLogsResponse, error) { + rsp, err := c.GetInstanceLogs(ctx, namespace, kind, name, params, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionFreezeResponse(rsp) + return ParseGetInstanceLogsResponse(rsp) } -// PostObjectActionGivebackWithBodyWithResponse request with arbitrary body returning *PostObjectActionGivebackResponse -func (c *ClientWithResponses) PostObjectActionGivebackWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionGivebackResponse, error) { - rsp, err := c.PostObjectActionGivebackWithBody(ctx, contentType, body, reqEditors...) +// PostInstanceProgressWithBodyWithResponse request with arbitrary body returning *PostInstanceProgressResponse +func (c *ClientWithResponses) PostInstanceProgressWithBodyWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostInstanceProgressResponse, error) { + rsp, err := c.PostInstanceProgressWithBody(ctx, namespace, kind, name, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionGivebackResponse(rsp) + return ParsePostInstanceProgressResponse(rsp) } -func (c *ClientWithResponses) PostObjectActionGivebackWithResponse(ctx context.Context, body PostObjectActionGivebackJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionGivebackResponse, error) { - rsp, err := c.PostObjectActionGiveback(ctx, body, reqEditors...) +func (c *ClientWithResponses) PostInstanceProgressWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, body PostInstanceProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*PostInstanceProgressResponse, error) { + rsp, err := c.PostInstanceProgress(ctx, namespace, kind, name, body, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionGivebackResponse(rsp) + return ParsePostInstanceProgressResponse(rsp) } -// PostObjectActionProvisionWithBodyWithResponse request with arbitrary body returning *PostObjectActionProvisionResponse -func (c *ClientWithResponses) PostObjectActionProvisionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionProvisionResponse, error) { - rsp, err := c.PostObjectActionProvisionWithBody(ctx, contentType, body, reqEditors...) +// PostObjectActionProvisionWithResponse request returning *PostObjectActionProvisionResponse +func (c *ClientWithResponses) PostObjectActionProvisionWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionProvisionResponse, error) { + rsp, err := c.PostObjectActionProvision(ctx, namespace, kind, name, reqEditors...) if err != nil { return nil, err } return ParsePostObjectActionProvisionResponse(rsp) } -func (c *ClientWithResponses) PostObjectActionProvisionWithResponse(ctx context.Context, body PostObjectActionProvisionJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionProvisionResponse, error) { - rsp, err := c.PostObjectActionProvision(ctx, body, reqEditors...) +// PostObjectActionPurgeWithResponse request returning *PostObjectActionPurgeResponse +func (c *ClientWithResponses) PostObjectActionPurgeWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionPurgeResponse, error) { + rsp, err := c.PostObjectActionPurge(ctx, namespace, kind, name, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionProvisionResponse(rsp) + return ParsePostObjectActionPurgeResponse(rsp) } -// PostObjectActionPurgeWithBodyWithResponse request with arbitrary body returning *PostObjectActionPurgeResponse -func (c *ClientWithResponses) PostObjectActionPurgeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionPurgeResponse, error) { - rsp, err := c.PostObjectActionPurgeWithBody(ctx, contentType, body, reqEditors...) +// PostObjectActionStartWithResponse request returning *PostObjectActionStartResponse +func (c *ClientWithResponses) PostObjectActionStartWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionStartResponse, error) { + rsp, err := c.PostObjectActionStart(ctx, namespace, kind, name, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionPurgeResponse(rsp) + return ParsePostObjectActionStartResponse(rsp) } -func (c *ClientWithResponses) PostObjectActionPurgeWithResponse(ctx context.Context, body PostObjectActionPurgeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionPurgeResponse, error) { - rsp, err := c.PostObjectActionPurge(ctx, body, reqEditors...) +// PostObjectActionStopWithResponse request returning *PostObjectActionStopResponse +func (c *ClientWithResponses) PostObjectActionStopWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionStopResponse, error) { + rsp, err := c.PostObjectActionStop(ctx, namespace, kind, name, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionPurgeResponse(rsp) + return ParsePostObjectActionStopResponse(rsp) } -// PostObjectActionStartWithBodyWithResponse request with arbitrary body returning *PostObjectActionStartResponse -func (c *ClientWithResponses) PostObjectActionStartWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionStartResponse, error) { - rsp, err := c.PostObjectActionStartWithBody(ctx, contentType, body, reqEditors...) +// PostObjectActionSwitchWithBodyWithResponse request with arbitrary body returning *PostObjectActionSwitchResponse +func (c *ClientWithResponses) PostObjectActionSwitchWithBodyWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionSwitchResponse, error) { + rsp, err := c.PostObjectActionSwitchWithBody(ctx, namespace, kind, name, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionStartResponse(rsp) + return ParsePostObjectActionSwitchResponse(rsp) } -func (c *ClientWithResponses) PostObjectActionStartWithResponse(ctx context.Context, body PostObjectActionStartJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionStartResponse, error) { - rsp, err := c.PostObjectActionStart(ctx, body, reqEditors...) +func (c *ClientWithResponses) PostObjectActionSwitchWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, body PostObjectActionSwitchJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionSwitchResponse, error) { + rsp, err := c.PostObjectActionSwitch(ctx, namespace, kind, name, body, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionStartResponse(rsp) + return ParsePostObjectActionSwitchResponse(rsp) } -// PostObjectActionStopWithBodyWithResponse request with arbitrary body returning *PostObjectActionStopResponse -func (c *ClientWithResponses) PostObjectActionStopWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionStopResponse, error) { - rsp, err := c.PostObjectActionStopWithBody(ctx, contentType, body, reqEditors...) +// PostObjectActionUnfreezeWithResponse request returning *PostObjectActionUnfreezeResponse +func (c *ClientWithResponses) PostObjectActionUnfreezeWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionUnfreezeResponse, error) { + rsp, err := c.PostObjectActionUnfreeze(ctx, namespace, kind, name, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionStopResponse(rsp) + return ParsePostObjectActionUnfreezeResponse(rsp) } -func (c *ClientWithResponses) PostObjectActionStopWithResponse(ctx context.Context, body PostObjectActionStopJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionStopResponse, error) { - rsp, err := c.PostObjectActionStop(ctx, body, reqEditors...) +// PostObjectActionUnprovisionWithResponse request returning *PostObjectActionUnprovisionResponse +func (c *ClientWithResponses) PostObjectActionUnprovisionWithResponse(ctx context.Context, namespace InPathNamespace, kind InPathKind, name InPathName, reqEditors ...RequestEditorFn) (*PostObjectActionUnprovisionResponse, error) { + rsp, err := c.PostObjectActionUnprovision(ctx, namespace, kind, name, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionStopResponse(rsp) + return ParsePostObjectActionUnprovisionResponse(rsp) } -// PostObjectActionSwitchWithBodyWithResponse request with arbitrary body returning *PostObjectActionSwitchResponse -func (c *ClientWithResponses) PostObjectActionSwitchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionSwitchResponse, error) { - rsp, err := c.PostObjectActionSwitchWithBody(ctx, contentType, body, reqEditors...) +// GetNetworkIpWithResponse request returning *GetNetworkIpResponse +func (c *ClientWithResponses) GetNetworkIpWithResponse(ctx context.Context, params *GetNetworkIpParams, reqEditors ...RequestEditorFn) (*GetNetworkIpResponse, error) { + rsp, err := c.GetNetworkIp(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionSwitchResponse(rsp) + return ParseGetNetworkIpResponse(rsp) } -func (c *ClientWithResponses) PostObjectActionSwitchWithResponse(ctx context.Context, body PostObjectActionSwitchJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionSwitchResponse, error) { - rsp, err := c.PostObjectActionSwitch(ctx, body, reqEditors...) +// GetNetworksWithResponse request returning *GetNetworksResponse +func (c *ClientWithResponses) GetNetworksWithResponse(ctx context.Context, params *GetNetworksParams, reqEditors ...RequestEditorFn) (*GetNetworksResponse, error) { + rsp, err := c.GetNetworks(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionSwitchResponse(rsp) + return ParseGetNetworksResponse(rsp) } -// PostObjectActionUnfreezeWithBodyWithResponse request with arbitrary body returning *PostObjectActionUnfreezeResponse -func (c *ClientWithResponses) PostObjectActionUnfreezeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionUnfreezeResponse, error) { - rsp, err := c.PostObjectActionUnfreezeWithBody(ctx, contentType, body, reqEditors...) +// GetNodeBacklogsWithResponse request returning *GetNodeBacklogsResponse +func (c *ClientWithResponses) GetNodeBacklogsWithResponse(ctx context.Context, params *GetNodeBacklogsParams, reqEditors ...RequestEditorFn) (*GetNodeBacklogsResponse, error) { + rsp, err := c.GetNodeBacklogs(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionUnfreezeResponse(rsp) + return ParseGetNodeBacklogsResponse(rsp) } -func (c *ClientWithResponses) PostObjectActionUnfreezeWithResponse(ctx context.Context, body PostObjectActionUnfreezeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionUnfreezeResponse, error) { - rsp, err := c.PostObjectActionUnfreeze(ctx, body, reqEditors...) +// PostNodeClearWithResponse request returning *PostNodeClearResponse +func (c *ClientWithResponses) PostNodeClearWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostNodeClearResponse, error) { + rsp, err := c.PostNodeClear(ctx, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionUnfreezeResponse(rsp) + return ParsePostNodeClearResponse(rsp) } -// PostObjectActionUnprovisionWithBodyWithResponse request with arbitrary body returning *PostObjectActionUnprovisionResponse -func (c *ClientWithResponses) PostObjectActionUnprovisionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectActionUnprovisionResponse, error) { - rsp, err := c.PostObjectActionUnprovisionWithBody(ctx, contentType, body, reqEditors...) +// PostNodeActionDrainWithResponse request returning *PostNodeActionDrainResponse +func (c *ClientWithResponses) PostNodeActionDrainWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostNodeActionDrainResponse, error) { + rsp, err := c.PostNodeActionDrain(ctx, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionUnprovisionResponse(rsp) + return ParsePostNodeActionDrainResponse(rsp) } -func (c *ClientWithResponses) PostObjectActionUnprovisionWithResponse(ctx context.Context, body PostObjectActionUnprovisionJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectActionUnprovisionResponse, error) { - rsp, err := c.PostObjectActionUnprovision(ctx, body, reqEditors...) +// GetNodeDRBDAllocationWithResponse request returning *GetNodeDRBDAllocationResponse +func (c *ClientWithResponses) GetNodeDRBDAllocationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNodeDRBDAllocationResponse, error) { + rsp, err := c.GetNodeDRBDAllocation(ctx, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectActionUnprovisionResponse(rsp) + return ParseGetNodeDRBDAllocationResponse(rsp) } -// GetObjectBacklogsWithResponse request returning *GetObjectBacklogsResponse -func (c *ClientWithResponses) GetObjectBacklogsWithResponse(ctx context.Context, params *GetObjectBacklogsParams, reqEditors ...RequestEditorFn) (*GetObjectBacklogsResponse, error) { - rsp, err := c.GetObjectBacklogs(ctx, params, reqEditors...) +// GetNodeDRBDConfigWithResponse request returning *GetNodeDRBDConfigResponse +func (c *ClientWithResponses) GetNodeDRBDConfigWithResponse(ctx context.Context, params *GetNodeDRBDConfigParams, reqEditors ...RequestEditorFn) (*GetNodeDRBDConfigResponse, error) { + rsp, err := c.GetNodeDRBDConfig(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetObjectBacklogsResponse(rsp) + return ParseGetNodeDRBDConfigResponse(rsp) } -// PostObjectClearWithBodyWithResponse request with arbitrary body returning *PostObjectClearResponse -func (c *ClientWithResponses) PostObjectClearWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectClearResponse, error) { - rsp, err := c.PostObjectClearWithBody(ctx, contentType, body, reqEditors...) +// PostNodeDRBDConfigWithBodyWithResponse request with arbitrary body returning *PostNodeDRBDConfigResponse +func (c *ClientWithResponses) PostNodeDRBDConfigWithBodyWithResponse(ctx context.Context, params *PostNodeDRBDConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeDRBDConfigResponse, error) { + rsp, err := c.PostNodeDRBDConfigWithBody(ctx, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectClearResponse(rsp) + return ParsePostNodeDRBDConfigResponse(rsp) } -func (c *ClientWithResponses) PostObjectClearWithResponse(ctx context.Context, body PostObjectClearJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectClearResponse, error) { - rsp, err := c.PostObjectClear(ctx, body, reqEditors...) +func (c *ClientWithResponses) PostNodeDRBDConfigWithResponse(ctx context.Context, params *PostNodeDRBDConfigParams, body PostNodeDRBDConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeDRBDConfigResponse, error) { + rsp, err := c.PostNodeDRBDConfig(ctx, params, body, reqEditors...) if err != nil { return nil, err } - return ParsePostObjectClearResponse(rsp) + return ParsePostNodeDRBDConfigResponse(rsp) } -// GetObjectConfigWithResponse request returning *GetObjectConfigResponse -func (c *ClientWithResponses) GetObjectConfigWithResponse(ctx context.Context, params *GetObjectConfigParams, reqEditors ...RequestEditorFn) (*GetObjectConfigResponse, error) { - rsp, err := c.GetObjectConfig(ctx, params, reqEditors...) +// GetNodeLogsWithResponse request returning *GetNodeLogsResponse +func (c *ClientWithResponses) GetNodeLogsWithResponse(ctx context.Context, params *GetNodeLogsParams, reqEditors ...RequestEditorFn) (*GetNodeLogsResponse, error) { + rsp, err := c.GetNodeLogs(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetObjectConfigResponse(rsp) + return ParseGetNodeLogsResponse(rsp) } -// GetObjectFileWithResponse request returning *GetObjectFileResponse -func (c *ClientWithResponses) GetObjectFileWithResponse(ctx context.Context, params *GetObjectFileParams, reqEditors ...RequestEditorFn) (*GetObjectFileResponse, error) { - rsp, err := c.GetObjectFile(ctx, params, reqEditors...) +// GetNodesWithResponse request returning *GetNodesResponse +func (c *ClientWithResponses) GetNodesWithResponse(ctx context.Context, params *GetNodesParams, reqEditors ...RequestEditorFn) (*GetNodesResponse, error) { + rsp, err := c.GetNodes(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetObjectFileResponse(rsp) + return ParseGetNodesResponse(rsp) } -// GetObjectLogsWithResponse request returning *GetObjectLogsResponse -func (c *ClientWithResponses) GetObjectLogsWithResponse(ctx context.Context, params *GetObjectLogsParams, reqEditors ...RequestEditorFn) (*GetObjectLogsResponse, error) { - rsp, err := c.GetObjectLogs(ctx, params, reqEditors...) +// GetNodesInfoWithResponse request returning *GetNodesInfoResponse +func (c *ClientWithResponses) GetNodesInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNodesInfoResponse, error) { + rsp, err := c.GetNodesInfo(ctx, reqEditors...) if err != nil { return nil, err } - return ParseGetObjectLogsResponse(rsp) + return ParseGetNodesInfoResponse(rsp) } // GetObjectPathsWithResponse request returning *GetObjectPathsResponse @@ -5500,23 +5736,6 @@ func (c *ClientWithResponses) GetObjectPathsWithResponse(ctx context.Context, pa return ParseGetObjectPathsResponse(rsp) } -// PostObjectProgressWithBodyWithResponse request with arbitrary body returning *PostObjectProgressResponse -func (c *ClientWithResponses) PostObjectProgressWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostObjectProgressResponse, error) { - rsp, err := c.PostObjectProgressWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostObjectProgressResponse(rsp) -} - -func (c *ClientWithResponses) PostObjectProgressWithResponse(ctx context.Context, body PostObjectProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*PostObjectProgressResponse, error) { - rsp, err := c.PostObjectProgress(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostObjectProgressResponse(rsp) -} - // GetObjectsWithResponse request returning *GetObjectsResponse func (c *ClientWithResponses) GetObjectsWithResponse(ctx context.Context, params *GetObjectsParams, reqEditors ...RequestEditorFn) (*GetObjectsResponse, error) { rsp, err := c.GetObjects(ctx, params, reqEditors...) @@ -6372,22 +6591,22 @@ func ParsePostInstanceStatusResponse(rsp *http.Response) (*PostInstanceStatusRes return response, nil } -// ParseGetNetworkIpResponse parses an HTTP response from a GetNetworkIpWithResponse call -func ParseGetNetworkIpResponse(rsp *http.Response) (*GetNetworkIpResponse, error) { +// ParseGetInstancesBacklogsResponse parses an HTTP response from a GetInstancesBacklogsWithResponse call +func ParseGetInstancesBacklogsResponse(rsp *http.Response) (*GetInstancesBacklogsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNetworkIpResponse{ + response := &GetInstancesBacklogsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NetworkIpList + var dest LogList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -6419,22 +6638,62 @@ func ParseGetNetworkIpResponse(rsp *http.Response) (*GetNetworkIpResponse, error return response, nil } -// ParseGetNetworksResponse parses an HTTP response from a GetNetworksWithResponse call -func ParseGetNetworksResponse(rsp *http.Response) (*GetNetworksResponse, error) { +// ParseGetInstancesLogsResponse parses an HTTP response from a GetInstancesLogsWithResponse call +func ParseGetInstancesLogsResponse(rsp *http.Response) (*GetInstancesLogsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNetworksResponse{ + response := &GetInstancesLogsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Problem + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Problem + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Problem + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseGetObjectResponse parses an HTTP response from a GetObjectWithResponse call +func ParseGetObjectResponse(rsp *http.Response) (*GetObjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetObjectResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NetworkList + var dest ObjectItem if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -6466,15 +6725,15 @@ func ParseGetNetworksResponse(rsp *http.Response) (*GetNetworksResponse, error) return response, nil } -// ParsePostNodeActionDrainResponse parses an HTTP response from a PostNodeActionDrainWithResponse call -func ParsePostNodeActionDrainResponse(rsp *http.Response) (*PostNodeActionDrainResponse, error) { +// ParsePostObjectActionAbortResponse parses an HTTP response from a PostObjectActionAbortWithResponse call +func ParsePostObjectActionAbortResponse(rsp *http.Response) (*PostObjectActionAbortResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostNodeActionDrainResponse{ + response := &PostObjectActionAbortResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -6534,22 +6793,22 @@ func ParsePostNodeActionDrainResponse(rsp *http.Response) (*PostNodeActionDrainR return response, nil } -// ParseGetNodeBacklogsResponse parses an HTTP response from a GetNodeBacklogsWithResponse call -func ParseGetNodeBacklogsResponse(rsp *http.Response) (*GetNodeBacklogsResponse, error) { +// ParseGetObjectConfigResponse parses an HTTP response from a GetObjectConfigWithResponse call +func ParseGetObjectConfigResponse(rsp *http.Response) (*GetObjectConfigResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNodeBacklogsResponse{ + response := &GetObjectConfigResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LogList + var dest ObjectConfig if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -6581,22 +6840,22 @@ func ParseGetNodeBacklogsResponse(rsp *http.Response) (*GetNodeBacklogsResponse, return response, nil } -// ParsePostNodeClearResponse parses an HTTP response from a PostNodeClearWithResponse call -func ParsePostNodeClearResponse(rsp *http.Response) (*PostNodeClearResponse, error) { +// ParsePostObjectActionDeleteResponse parses an HTTP response from a PostObjectActionDeleteWithResponse call +func ParsePostObjectActionDeleteResponse(rsp *http.Response) (*PostObjectActionDeleteResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostNodeClearResponse{ + response := &PostObjectActionDeleteResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Problem + var dest OrchestrationQueued if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -6623,6 +6882,20 @@ func ParsePostNodeClearResponse(rsp *http.Response) (*PostNodeClearResponse, err } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 408: + var dest Problem + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON408 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Problem + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -6635,27 +6908,41 @@ func ParsePostNodeClearResponse(rsp *http.Response) (*PostNodeClearResponse, err return response, nil } -// ParseGetNodeDRBDAllocationResponse parses an HTTP response from a GetNodeDRBDAllocationWithResponse call -func ParseGetNodeDRBDAllocationResponse(rsp *http.Response) (*GetNodeDRBDAllocationResponse, error) { +// ParseGetObjectFileResponse parses an HTTP response from a GetObjectFileWithResponse call +func ParseGetObjectFileResponse(rsp *http.Response) (*GetObjectFileResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNodeDRBDAllocationResponse{ + response := &GetObjectFileResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DRBDAllocation + var dest ObjectFile if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Problem + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Problem + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -6668,22 +6955,22 @@ func ParseGetNodeDRBDAllocationResponse(rsp *http.Response) (*GetNodeDRBDAllocat return response, nil } -// ParseGetNodeDRBDConfigResponse parses an HTTP response from a GetNodeDRBDConfigWithResponse call -func ParseGetNodeDRBDConfigResponse(rsp *http.Response) (*GetNodeDRBDConfigResponse, error) { +// ParsePostObjectActionFreezeResponse parses an HTTP response from a PostObjectActionFreezeWithResponse call +func ParsePostObjectActionFreezeResponse(rsp *http.Response) (*PostObjectActionFreezeResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNodeDRBDConfigResponse{ + response := &PostObjectActionFreezeResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DRBDConfig + var dest OrchestrationQueued if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -6710,6 +6997,20 @@ func ParseGetNodeDRBDConfigResponse(rsp *http.Response) (*GetNodeDRBDConfigRespo } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 408: + var dest Problem + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON408 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Problem + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -6722,20 +7023,27 @@ func ParseGetNodeDRBDConfigResponse(rsp *http.Response) (*GetNodeDRBDConfigRespo return response, nil } -// ParsePostNodeDRBDConfigResponse parses an HTTP response from a PostNodeDRBDConfigWithResponse call -func ParsePostNodeDRBDConfigResponse(rsp *http.Response) (*PostNodeDRBDConfigResponse, error) { +// ParsePostObjectActionGivebackResponse parses an HTTP response from a PostObjectActionGivebackWithResponse call +func ParsePostObjectActionGivebackResponse(rsp *http.Response) (*PostObjectActionGivebackResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostNodeDRBDConfigResponse{ + response := &PostObjectActionGivebackResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OrchestrationQueued + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -6757,6 +7065,20 @@ func ParsePostNodeDRBDConfigResponse(rsp *http.Response) (*PostNodeDRBDConfigRes } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 408: + var dest Problem + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON408 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Problem + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -6769,20 +7091,27 @@ func ParsePostNodeDRBDConfigResponse(rsp *http.Response) (*PostNodeDRBDConfigRes return response, nil } -// ParseGetNodeLogsResponse parses an HTTP response from a GetNodeLogsWithResponse call -func ParseGetNodeLogsResponse(rsp *http.Response) (*GetNodeLogsResponse, error) { +// ParseGetInstanceBacklogsResponse parses an HTTP response from a GetInstanceBacklogsWithResponse call +func ParseGetInstanceBacklogsResponse(rsp *http.Response) (*GetInstanceBacklogsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNodeLogsResponse{ + response := &GetInstanceBacklogsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest LogList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -6809,34 +7138,60 @@ func ParseGetNodeLogsResponse(rsp *http.Response) (*GetNodeLogsResponse, error) return response, nil } -// ParseGetNodesResponse parses an HTTP response from a GetNodesWithResponse call -func ParseGetNodesResponse(rsp *http.Response) (*GetNodesResponse, error) { +// ParsePostInstanceClearResponse parses an HTTP response from a PostInstanceClearWithResponse call +func ParsePostInstanceClearResponse(rsp *http.Response) (*PostInstanceClearResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNodesResponse{ + response := &PostInstanceClearResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeList + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Problem + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseGetInstanceLogsResponse parses an HTTP response from a GetInstanceLogsWithResponse call +func ParseGetInstanceLogsResponse(rsp *http.Response) (*GetInstanceLogsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + response := &GetInstanceLogsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -6863,27 +7218,20 @@ func ParseGetNodesResponse(rsp *http.Response) (*GetNodesResponse, error) { return response, nil } -// ParseGetNodesInfoResponse parses an HTTP response from a GetNodesInfoWithResponse call -func ParseGetNodesInfoResponse(rsp *http.Response) (*GetNodesInfoResponse, error) { +// ParsePostInstanceProgressResponse parses an HTTP response from a PostInstanceProgressWithResponse call +func ParsePostInstanceProgressResponse(rsp *http.Response) (*PostInstanceProgressResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNodesInfoResponse{ + response := &PostInstanceProgressResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodesInfo - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -6910,15 +7258,15 @@ func ParseGetNodesInfoResponse(rsp *http.Response) (*GetNodesInfoResponse, error return response, nil } -// ParsePostObjectActionAbortResponse parses an HTTP response from a PostObjectActionAbortWithResponse call -func ParsePostObjectActionAbortResponse(rsp *http.Response) (*PostObjectActionAbortResponse, error) { +// ParsePostObjectActionProvisionResponse parses an HTTP response from a PostObjectActionProvisionWithResponse call +func ParsePostObjectActionProvisionResponse(rsp *http.Response) (*PostObjectActionProvisionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostObjectActionAbortResponse{ + response := &PostObjectActionProvisionResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -6978,15 +7326,15 @@ func ParsePostObjectActionAbortResponse(rsp *http.Response) (*PostObjectActionAb return response, nil } -// ParsePostObjectActionDeleteResponse parses an HTTP response from a PostObjectActionDeleteWithResponse call -func ParsePostObjectActionDeleteResponse(rsp *http.Response) (*PostObjectActionDeleteResponse, error) { +// ParsePostObjectActionPurgeResponse parses an HTTP response from a PostObjectActionPurgeWithResponse call +func ParsePostObjectActionPurgeResponse(rsp *http.Response) (*PostObjectActionPurgeResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostObjectActionDeleteResponse{ + response := &PostObjectActionPurgeResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -7046,15 +7394,15 @@ func ParsePostObjectActionDeleteResponse(rsp *http.Response) (*PostObjectActionD return response, nil } -// ParsePostObjectActionFreezeResponse parses an HTTP response from a PostObjectActionFreezeWithResponse call -func ParsePostObjectActionFreezeResponse(rsp *http.Response) (*PostObjectActionFreezeResponse, error) { +// ParsePostObjectActionStartResponse parses an HTTP response from a PostObjectActionStartWithResponse call +func ParsePostObjectActionStartResponse(rsp *http.Response) (*PostObjectActionStartResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostObjectActionFreezeResponse{ + response := &PostObjectActionStartResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -7114,15 +7462,15 @@ func ParsePostObjectActionFreezeResponse(rsp *http.Response) (*PostObjectActionF return response, nil } -// ParsePostObjectActionGivebackResponse parses an HTTP response from a PostObjectActionGivebackWithResponse call -func ParsePostObjectActionGivebackResponse(rsp *http.Response) (*PostObjectActionGivebackResponse, error) { +// ParsePostObjectActionStopResponse parses an HTTP response from a PostObjectActionStopWithResponse call +func ParsePostObjectActionStopResponse(rsp *http.Response) (*PostObjectActionStopResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostObjectActionGivebackResponse{ + response := &PostObjectActionStopResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -7182,15 +7530,15 @@ func ParsePostObjectActionGivebackResponse(rsp *http.Response) (*PostObjectActio return response, nil } -// ParsePostObjectActionProvisionResponse parses an HTTP response from a PostObjectActionProvisionWithResponse call -func ParsePostObjectActionProvisionResponse(rsp *http.Response) (*PostObjectActionProvisionResponse, error) { +// ParsePostObjectActionSwitchResponse parses an HTTP response from a PostObjectActionSwitchWithResponse call +func ParsePostObjectActionSwitchResponse(rsp *http.Response) (*PostObjectActionSwitchResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostObjectActionProvisionResponse{ + response := &PostObjectActionSwitchResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -7250,15 +7598,15 @@ func ParsePostObjectActionProvisionResponse(rsp *http.Response) (*PostObjectActi return response, nil } -// ParsePostObjectActionPurgeResponse parses an HTTP response from a PostObjectActionPurgeWithResponse call -func ParsePostObjectActionPurgeResponse(rsp *http.Response) (*PostObjectActionPurgeResponse, error) { +// ParsePostObjectActionUnfreezeResponse parses an HTTP response from a PostObjectActionUnfreezeWithResponse call +func ParsePostObjectActionUnfreezeResponse(rsp *http.Response) (*PostObjectActionUnfreezeResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostObjectActionPurgeResponse{ + response := &PostObjectActionUnfreezeResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -7318,15 +7666,15 @@ func ParsePostObjectActionPurgeResponse(rsp *http.Response) (*PostObjectActionPu return response, nil } -// ParsePostObjectActionStartResponse parses an HTTP response from a PostObjectActionStartWithResponse call -func ParsePostObjectActionStartResponse(rsp *http.Response) (*PostObjectActionStartResponse, error) { +// ParsePostObjectActionUnprovisionResponse parses an HTTP response from a PostObjectActionUnprovisionWithResponse call +func ParsePostObjectActionUnprovisionResponse(rsp *http.Response) (*PostObjectActionUnprovisionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostObjectActionStartResponse{ + response := &PostObjectActionUnprovisionResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -7386,34 +7734,27 @@ func ParsePostObjectActionStartResponse(rsp *http.Response) (*PostObjectActionSt return response, nil } -// ParsePostObjectActionStopResponse parses an HTTP response from a PostObjectActionStopWithResponse call -func ParsePostObjectActionStopResponse(rsp *http.Response) (*PostObjectActionStopResponse, error) { +// ParseGetNetworkIpResponse parses an HTTP response from a GetNetworkIpWithResponse call +func ParseGetNetworkIpResponse(rsp *http.Response) (*GetNetworkIpResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostObjectActionStopResponse{ + response := &GetNetworkIpResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OrchestrationQueued + var dest NetworkIpList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Problem - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -7428,20 +7769,6 @@ func ParsePostObjectActionStopResponse(rsp *http.Response) (*PostObjectActionSto } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 408: - var dest Problem - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON408 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Problem - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -7454,61 +7781,87 @@ func ParsePostObjectActionStopResponse(rsp *http.Response) (*PostObjectActionSto return response, nil } -// ParsePostObjectActionSwitchResponse parses an HTTP response from a PostObjectActionSwitchWithResponse call -func ParsePostObjectActionSwitchResponse(rsp *http.Response) (*PostObjectActionSwitchResponse, error) { +// ParseGetNetworksResponse parses an HTTP response from a GetNetworksWithResponse call +func ParseGetNetworksResponse(rsp *http.Response) (*GetNetworksResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostObjectActionSwitchResponse{ + response := &GetNetworksResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OrchestrationQueued + var dest NetworkList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON500 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 408: + } + + return response, nil +} + +// ParseGetNodeBacklogsResponse parses an HTTP response from a GetNodeBacklogsWithResponse call +func ParseGetNodeBacklogsResponse(rsp *http.Response) (*GetNodeBacklogsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetNodeBacklogsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest LogList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON408 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Problem @@ -7522,22 +7875,22 @@ func ParsePostObjectActionSwitchResponse(rsp *http.Response) (*PostObjectActionS return response, nil } -// ParsePostObjectActionUnfreezeResponse parses an HTTP response from a PostObjectActionUnfreezeWithResponse call -func ParsePostObjectActionUnfreezeResponse(rsp *http.Response) (*PostObjectActionUnfreezeResponse, error) { +// ParsePostNodeClearResponse parses an HTTP response from a PostNodeClearWithResponse call +func ParsePostNodeClearResponse(rsp *http.Response) (*PostNodeClearResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostObjectActionUnfreezeResponse{ + response := &PostNodeClearResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OrchestrationQueued + var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -7564,20 +7917,6 @@ func ParsePostObjectActionUnfreezeResponse(rsp *http.Response) (*PostObjectActio } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 408: - var dest Problem - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON408 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Problem - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -7590,15 +7929,15 @@ func ParsePostObjectActionUnfreezeResponse(rsp *http.Response) (*PostObjectActio return response, nil } -// ParsePostObjectActionUnprovisionResponse parses an HTTP response from a PostObjectActionUnprovisionWithResponse call -func ParsePostObjectActionUnprovisionResponse(rsp *http.Response) (*PostObjectActionUnprovisionResponse, error) { +// ParsePostNodeActionDrainResponse parses an HTTP response from a PostNodeActionDrainWithResponse call +func ParsePostNodeActionDrainResponse(rsp *http.Response) (*PostNodeActionDrainResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostObjectActionUnprovisionResponse{ + response := &PostNodeActionDrainResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -7658,41 +7997,27 @@ func ParsePostObjectActionUnprovisionResponse(rsp *http.Response) (*PostObjectAc return response, nil } -// ParseGetObjectBacklogsResponse parses an HTTP response from a GetObjectBacklogsWithResponse call -func ParseGetObjectBacklogsResponse(rsp *http.Response) (*GetObjectBacklogsResponse, error) { +// ParseGetNodeDRBDAllocationResponse parses an HTTP response from a GetNodeDRBDAllocationWithResponse call +func ParseGetNodeDRBDAllocationResponse(rsp *http.Response) (*GetNodeDRBDAllocationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetObjectBacklogsResponse{ + response := &GetNodeDRBDAllocationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LogList + var dest DRBDAllocation if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Problem - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Problem - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -7705,20 +8030,34 @@ func ParseGetObjectBacklogsResponse(rsp *http.Response) (*GetObjectBacklogsRespo return response, nil } -// ParsePostObjectClearResponse parses an HTTP response from a PostObjectClearWithResponse call -func ParsePostObjectClearResponse(rsp *http.Response) (*PostObjectClearResponse, error) { +// ParseGetNodeDRBDConfigResponse parses an HTTP response from a GetNodeDRBDConfigWithResponse call +func ParseGetNodeDRBDConfigResponse(rsp *http.Response) (*GetNodeDRBDConfigResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostObjectClearResponse{ + response := &GetNodeDRBDConfigResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DRBDConfig + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Problem + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -7745,26 +8084,26 @@ func ParsePostObjectClearResponse(rsp *http.Response) (*PostObjectClearResponse, return response, nil } -// ParseGetObjectConfigResponse parses an HTTP response from a GetObjectConfigWithResponse call -func ParseGetObjectConfigResponse(rsp *http.Response) (*GetObjectConfigResponse, error) { +// ParsePostNodeDRBDConfigResponse parses an HTTP response from a PostNodeDRBDConfigWithResponse call +func ParsePostNodeDRBDConfigResponse(rsp *http.Response) (*PostNodeDRBDConfigResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetObjectConfigResponse{ + response := &PostNodeDRBDConfigResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ObjectConfig + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Problem @@ -7792,27 +8131,20 @@ func ParseGetObjectConfigResponse(rsp *http.Response) (*GetObjectConfigResponse, return response, nil } -// ParseGetObjectFileResponse parses an HTTP response from a GetObjectFileWithResponse call -func ParseGetObjectFileResponse(rsp *http.Response) (*GetObjectFileResponse, error) { +// ParseGetNodeLogsResponse parses an HTTP response from a GetNodeLogsWithResponse call +func ParseGetNodeLogsResponse(rsp *http.Response) (*GetNodeLogsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetObjectFileResponse{ + response := &GetNodeLogsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ObjectFile - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -7839,20 +8171,34 @@ func ParseGetObjectFileResponse(rsp *http.Response) (*GetObjectFileResponse, err return response, nil } -// ParseGetObjectLogsResponse parses an HTTP response from a GetObjectLogsWithResponse call -func ParseGetObjectLogsResponse(rsp *http.Response) (*GetObjectLogsResponse, error) { +// ParseGetNodesResponse parses an HTTP response from a GetNodesWithResponse call +func ParseGetNodesResponse(rsp *http.Response) (*GetNodesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetObjectLogsResponse{ + response := &GetNodesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NodeList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Problem + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -7879,22 +8225,22 @@ func ParseGetObjectLogsResponse(rsp *http.Response) (*GetObjectLogsResponse, err return response, nil } -// ParseGetObjectPathsResponse parses an HTTP response from a GetObjectPathsWithResponse call -func ParseGetObjectPathsResponse(rsp *http.Response) (*GetObjectPathsResponse, error) { +// ParseGetNodesInfoResponse parses an HTTP response from a GetNodesInfoWithResponse call +func ParseGetNodesInfoResponse(rsp *http.Response) (*GetNodesInfoResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetObjectPathsResponse{ + response := &GetNodesInfoResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ObjectPaths + var dest NodesInfo if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -7926,20 +8272,27 @@ func ParseGetObjectPathsResponse(rsp *http.Response) (*GetObjectPathsResponse, e return response, nil } -// ParsePostObjectProgressResponse parses an HTTP response from a PostObjectProgressWithResponse call -func ParsePostObjectProgressResponse(rsp *http.Response) (*PostObjectProgressResponse, error) { +// ParseGetObjectPathsResponse parses an HTTP response from a GetObjectPathsWithResponse call +func ParseGetObjectPathsResponse(rsp *http.Response) (*GetObjectPathsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostObjectProgressResponse{ + response := &GetObjectPathsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ObjectPaths + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Problem if err := json.Unmarshal(bodyBytes, &dest); err != nil { diff --git a/daemon/api/codegen_server_gen.go b/daemon/api/codegen_server_gen.go index 2536624e5..44089737b 100644 --- a/daemon/api/codegen_server_gen.go +++ b/daemon/api/codegen_server_gen.go @@ -24,13 +24,13 @@ type ServerInterface interface { // (POST /auth/token) PostAuthToken(ctx echo.Context, params PostAuthTokenParams) error - // (POST /cluster/action/abort) + // (POST /cluster/abort) PostClusterActionAbort(ctx echo.Context) error - // (POST /cluster/action/freeze) + // (POST /cluster/freeze) PostClusterActionFreeze(ctx echo.Context) error - // (POST /cluster/action/unfreeze) + // (POST /cluster/unfreeze) PostClusterActionUnfreeze(ctx echo.Context) error // (GET /daemon/dns/dump) @@ -69,21 +69,81 @@ type ServerInterface interface { // (POST /instances) PostInstanceStatus(ctx echo.Context) error + // (GET /instances/backlogs) + GetInstancesBacklogs(ctx echo.Context, params GetInstancesBacklogsParams) error + + // (GET /instances/logs) + GetInstancesLogs(ctx echo.Context, params GetInstancesLogsParams) error + + // (GET /namespaces/{namespace}/{kind}/{name}) + GetObject(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + + // (POST /namespaces/{namespace}/{kind}/{name}/abort) + PostObjectActionAbort(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + + // (GET /namespaces/{namespace}/{kind}/{name}/config) + GetObjectConfig(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params GetObjectConfigParams) error + + // (POST /namespaces/{namespace}/{kind}/{name}/delete) + PostObjectActionDelete(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + + // (GET /namespaces/{namespace}/{kind}/{name}/file) + GetObjectFile(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + + // (POST /namespaces/{namespace}/{kind}/{name}/freeze) + PostObjectActionFreeze(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + + // (POST /namespaces/{namespace}/{kind}/{name}/giveback) + PostObjectActionGiveback(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + + // (GET /namespaces/{namespace}/{kind}/{name}/instance/backlogs) + GetInstanceBacklogs(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params GetInstanceBacklogsParams) error + + // (POST /namespaces/{namespace}/{kind}/{name}/instance/clear) + PostInstanceClear(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + + // (GET /namespaces/{namespace}/{kind}/{name}/instance/logs) + GetInstanceLogs(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName, params GetInstanceLogsParams) error + + // (POST /namespaces/{namespace}/{kind}/{name}/instance/progress) + PostInstanceProgress(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + + // (POST /namespaces/{namespace}/{kind}/{name}/provision) + PostObjectActionProvision(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + + // (POST /namespaces/{namespace}/{kind}/{name}/purge) + PostObjectActionPurge(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + + // (POST /namespaces/{namespace}/{kind}/{name}/start) + PostObjectActionStart(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + + // (POST /namespaces/{namespace}/{kind}/{name}/stop) + PostObjectActionStop(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + + // (POST /namespaces/{namespace}/{kind}/{name}/switch) + PostObjectActionSwitch(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + + // (POST /namespaces/{namespace}/{kind}/{name}/unfreeze) + PostObjectActionUnfreeze(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + + // (POST /namespaces/{namespace}/{kind}/{name}/unprovision) + PostObjectActionUnprovision(ctx echo.Context, namespace InPathNamespace, kind InPathKind, name InPathName) error + // (GET /network/ip) GetNetworkIp(ctx echo.Context, params GetNetworkIpParams) error // (GET /networks) GetNetworks(ctx echo.Context, params GetNetworksParams) error - // (POST /node/action/drain) - PostNodeActionDrain(ctx echo.Context) error - // (GET /node/backlogs) GetNodeBacklogs(ctx echo.Context, params GetNodeBacklogsParams) error // (POST /node/clear) PostNodeClear(ctx echo.Context) error + // (POST /node/drain) + PostNodeActionDrain(ctx echo.Context) error + // (GET /node/drbd/allocation) GetNodeDRBDAllocation(ctx echo.Context) error @@ -102,60 +162,9 @@ type ServerInterface interface { // (GET /nodes/info) GetNodesInfo(ctx echo.Context) error - // (POST /object/action/abort) - PostObjectActionAbort(ctx echo.Context) error - - // (POST /object/action/delete) - PostObjectActionDelete(ctx echo.Context) error - - // (POST /object/action/freeze) - PostObjectActionFreeze(ctx echo.Context) error - - // (POST /object/action/giveback) - PostObjectActionGiveback(ctx echo.Context) error - - // (POST /object/action/provision) - PostObjectActionProvision(ctx echo.Context) error - - // (POST /object/action/purge) - PostObjectActionPurge(ctx echo.Context) error - - // (POST /object/action/start) - PostObjectActionStart(ctx echo.Context) error - - // (POST /object/action/stop) - PostObjectActionStop(ctx echo.Context) error - - // (POST /object/action/switch) - PostObjectActionSwitch(ctx echo.Context) error - - // (POST /object/action/unfreeze) - PostObjectActionUnfreeze(ctx echo.Context) error - - // (POST /object/action/unprovision) - PostObjectActionUnprovision(ctx echo.Context) error - - // (GET /object/backlogs) - GetObjectBacklogs(ctx echo.Context, params GetObjectBacklogsParams) error - - // (POST /object/clear) - PostObjectClear(ctx echo.Context) error - - // (GET /object/config) - GetObjectConfig(ctx echo.Context, params GetObjectConfigParams) error - - // (GET /object/file) - GetObjectFile(ctx echo.Context, params GetObjectFileParams) error - - // (GET /object/logs) - GetObjectLogs(ctx echo.Context, params GetObjectLogsParams) error - // (GET /object/paths) GetObjectPaths(ctx echo.Context, params GetObjectPathsParams) error - // (POST /object/progress) - PostObjectProgress(ctx echo.Context) error - // (GET /objects) GetObjects(ctx echo.Context, params GetObjectsParams) error @@ -480,8 +489,8 @@ func (w *ServerInterfaceWrapper) PostInstanceStatus(ctx echo.Context) error { return err } -// GetNetworkIp converts echo context to params. -func (w *ServerInterfaceWrapper) GetNetworkIp(ctx echo.Context) error { +// GetInstancesBacklogs converts echo context to params. +func (w *ServerInterfaceWrapper) GetInstancesBacklogs(ctx echo.Context) error { var err error ctx.Set(BasicAuthScopes, []string{""}) @@ -489,56 +498,28 @@ func (w *ServerInterfaceWrapper) GetNetworkIp(ctx echo.Context) error { ctx.Set(BearerAuthScopes, []string{""}) // Parameter object where we will unmarshal all parameters from the context - var params GetNetworkIpParams - // ------------- Optional query parameter "name" ------------- + var params GetInstancesBacklogsParams + // ------------- Optional query parameter "filter" ------------- - err = runtime.BindQueryParameter("form", true, false, "name", ctx.QueryParams(), ¶ms.Name) + 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 name: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter filter: %s", err)) } - // Invoke the callback with all the unmarshalled arguments - err = w.Handler.GetNetworkIp(ctx, params) - return err -} - -// GetNetworks converts echo context to params. -func (w *ServerInterfaceWrapper) GetNetworks(ctx echo.Context) error { - var err error - - ctx.Set(BasicAuthScopes, []string{""}) - - ctx.Set(BearerAuthScopes, []string{""}) - - // Parameter object where we will unmarshal all parameters from the context - var params GetNetworksParams - // ------------- Optional query parameter "name" ------------- + // ------------- Required query parameter "paths" ------------- - err = runtime.BindQueryParameter("form", true, false, "name", ctx.QueryParams(), ¶ms.Name) + err = runtime.BindQueryParameter("form", true, true, "paths", ctx.QueryParams(), ¶ms.Paths) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter paths: %s", err)) } // Invoke the callback with all the unmarshalled arguments - err = w.Handler.GetNetworks(ctx, params) - return err -} - -// PostNodeActionDrain converts echo context to params. -func (w *ServerInterfaceWrapper) PostNodeActionDrain(ctx echo.Context) error { - var err error - - ctx.Set(BasicAuthScopes, []string{""}) - - ctx.Set(BearerAuthScopes, []string{""}) - - // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostNodeActionDrain(ctx) + err = w.Handler.GetInstancesBacklogs(ctx, params) return err } -// GetNodeBacklogs converts echo context to params. -func (w *ServerInterfaceWrapper) GetNodeBacklogs(ctx echo.Context) error { +// GetInstancesLogs converts echo context to params. +func (w *ServerInterfaceWrapper) GetInstancesLogs(ctx echo.Context) error { var err error ctx.Set(BasicAuthScopes, []string{""}) @@ -546,7 +527,7 @@ func (w *ServerInterfaceWrapper) GetNodeBacklogs(ctx echo.Context) error { ctx.Set(BearerAuthScopes, []string{""}) // Parameter object where we will unmarshal all parameters from the context - var params GetNodeBacklogsParams + var params GetInstancesLogsParams // ------------- Optional query parameter "filter" ------------- err = runtime.BindQueryParameter("form", true, false, "filter", ctx.QueryParams(), ¶ms.Filter) @@ -562,289 +543,738 @@ func (w *ServerInterfaceWrapper) GetNodeBacklogs(ctx echo.Context) error { } // Invoke the callback with all the unmarshalled arguments - err = w.Handler.GetNodeBacklogs(ctx, params) + err = w.Handler.GetInstancesLogs(ctx, params) return err } -// PostNodeClear converts echo context to params. -func (w *ServerInterfaceWrapper) PostNodeClear(ctx echo.Context) error { +// GetObject converts echo context to params. +func (w *ServerInterfaceWrapper) GetObject(ctx echo.Context) error { var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace - ctx.Set(BasicAuthScopes, []string{""}) + 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)) + } - ctx.Set(BearerAuthScopes, []string{""}) + // ------------- Path parameter "kind" ------------- + var kind InPathKind - // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostNodeClear(ctx) - return err -} + 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)) + } -// GetNodeDRBDAllocation converts echo context to params. -func (w *ServerInterfaceWrapper) GetNodeDRBDAllocation(ctx echo.Context) error { - var err error + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) ctx.Set(BearerAuthScopes, []string{""}) // Invoke the callback with all the unmarshalled arguments - err = w.Handler.GetNodeDRBDAllocation(ctx) + err = w.Handler.GetObject(ctx, namespace, kind, name) return err } -// GetNodeDRBDConfig converts echo context to params. -func (w *ServerInterfaceWrapper) GetNodeDRBDConfig(ctx echo.Context) error { +// PostObjectActionAbort converts echo context to params. +func (w *ServerInterfaceWrapper) PostObjectActionAbort(ctx echo.Context) error { var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace - ctx.Set(BasicAuthScopes, []string{""}) + 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)) + } - ctx.Set(BearerAuthScopes, []string{""}) + // ------------- Path parameter "kind" ------------- + var kind InPathKind - // Parameter object where we will unmarshal all parameters from the context - var params GetNodeDRBDConfigParams - // ------------- Required query parameter "name" ------------- + 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)) + } - err = runtime.BindQueryParameter("form", true, true, "name", ctx.QueryParams(), ¶ms.Name) + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) + + ctx.Set(BearerAuthScopes, []string{""}) + // Invoke the callback with all the unmarshalled arguments - err = w.Handler.GetNodeDRBDConfig(ctx, params) + err = w.Handler.PostObjectActionAbort(ctx, namespace, kind, name) return err } -// PostNodeDRBDConfig converts echo context to params. -func (w *ServerInterfaceWrapper) PostNodeDRBDConfig(ctx echo.Context) error { +// GetObjectConfig converts echo context to params. +func (w *ServerInterfaceWrapper) GetObjectConfig(ctx echo.Context) error { var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace - ctx.Set(BasicAuthScopes, []string{""}) - - ctx.Set(BearerAuthScopes, []string{""}) + 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)) + } - // Parameter object where we will unmarshal all parameters from the context - var params PostNodeDRBDConfigParams - // ------------- Required query parameter "name" ------------- + // ------------- Path parameter "kind" ------------- + var kind InPathKind - err = runtime.BindQueryParameter("form", true, true, "name", ctx.QueryParams(), ¶ms.Name) + 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 name: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } - // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostNodeDRBDConfig(ctx, params) - return err -} + // ------------- Path parameter "name" ------------- + var name InPathName -// GetNodeLogs converts echo context to params. -func (w *ServerInterfaceWrapper) GetNodeLogs(ctx echo.Context) error { - var err error + 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(BasicAuthScopes, []string{""}) ctx.Set(BearerAuthScopes, []string{""}) // Parameter object where we will unmarshal all parameters from the context - var params GetNodeLogsParams - // ------------- Optional query parameter "filter" ------------- + var params GetObjectConfigParams + // ------------- Optional query parameter "evaluate" ------------- - err = runtime.BindQueryParameter("form", true, false, "filter", ctx.QueryParams(), ¶ms.Filter) + 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 filter: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter evaluate: %s", err)) } - // ------------- Required query parameter "paths" ------------- + // ------------- Optional query parameter "impersonate" ------------- - err = runtime.BindQueryParameter("form", true, true, "paths", ctx.QueryParams(), ¶ms.Paths) + 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 paths: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter impersonate: %s", err)) } // Invoke the callback with all the unmarshalled arguments - err = w.Handler.GetNodeLogs(ctx, params) + err = w.Handler.GetObjectConfig(ctx, namespace, kind, name, params) return err } -// GetNodes converts echo context to params. -func (w *ServerInterfaceWrapper) GetNodes(ctx echo.Context) error { +// PostObjectActionDelete converts echo context to params. +func (w *ServerInterfaceWrapper) PostObjectActionDelete(ctx echo.Context) error { var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace - ctx.Set(BasicAuthScopes, []string{""}) - - ctx.Set(BearerAuthScopes, []string{""}) + 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)) + } - // Parameter object where we will unmarshal all parameters from the context - var params GetNodesParams - // ------------- Optional query parameter "node" ------------- + // ------------- Path parameter "kind" ------------- + var kind InPathKind - err = runtime.BindQueryParameter("form", true, false, "node", ctx.QueryParams(), ¶ms.Node) + 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 node: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kind: %s", err)) } - // Invoke the callback with all the unmarshalled arguments - err = w.Handler.GetNodes(ctx, params) - return err -} + // ------------- Path parameter "name" ------------- + var name InPathName -// GetNodesInfo converts echo context to params. -func (w *ServerInterfaceWrapper) GetNodesInfo(ctx echo.Context) error { - var err error + 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(BasicAuthScopes, []string{""}) ctx.Set(BearerAuthScopes, []string{""}) // Invoke the callback with all the unmarshalled arguments - err = w.Handler.GetNodesInfo(ctx) + err = w.Handler.PostObjectActionDelete(ctx, namespace, kind, name) return err } -// PostObjectActionAbort converts echo context to params. -func (w *ServerInterfaceWrapper) PostObjectActionAbort(ctx echo.Context) error { +// GetObjectFile converts echo context to params. +func (w *ServerInterfaceWrapper) GetObjectFile(ctx echo.Context) error { var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace - ctx.Set(BasicAuthScopes, []string{""}) + 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)) + } - ctx.Set(BearerAuthScopes, []string{""}) + // ------------- Path parameter "kind" ------------- + var kind InPathKind - // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostObjectActionAbort(ctx) - return err -} + 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)) + } -// PostObjectActionDelete converts echo context to params. -func (w *ServerInterfaceWrapper) PostObjectActionDelete(ctx echo.Context) error { - var err error + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) ctx.Set(BearerAuthScopes, []string{""}) // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostObjectActionDelete(ctx) + err = w.Handler.GetObjectFile(ctx, namespace, kind, name) return err } // PostObjectActionFreeze converts echo context to params. func (w *ServerInterfaceWrapper) PostObjectActionFreeze(ctx echo.Context) error { var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace + + 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)) + } + + // ------------- Path parameter "kind" ------------- + var kind InPathKind + + 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)) + } + + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) ctx.Set(BearerAuthScopes, []string{""}) // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostObjectActionFreeze(ctx) + err = w.Handler.PostObjectActionFreeze(ctx, namespace, kind, name) return err } // PostObjectActionGiveback converts echo context to params. func (w *ServerInterfaceWrapper) PostObjectActionGiveback(ctx echo.Context) error { var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace - ctx.Set(BasicAuthScopes, []string{""}) + 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)) + } - ctx.Set(BearerAuthScopes, []string{""}) + // ------------- Path parameter "kind" ------------- + var kind InPathKind - // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostObjectActionGiveback(ctx) - return err -} + 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)) + } -// PostObjectActionProvision converts echo context to params. -func (w *ServerInterfaceWrapper) PostObjectActionProvision(ctx echo.Context) error { - var err error + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) ctx.Set(BearerAuthScopes, []string{""}) // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostObjectActionProvision(ctx) + err = w.Handler.PostObjectActionGiveback(ctx, namespace, kind, name) return err } -// PostObjectActionPurge converts echo context to params. -func (w *ServerInterfaceWrapper) PostObjectActionPurge(ctx echo.Context) error { +// GetInstanceBacklogs converts echo context to params. +func (w *ServerInterfaceWrapper) GetInstanceBacklogs(ctx echo.Context) error { var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace - ctx.Set(BasicAuthScopes, []string{""}) + 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)) + } - ctx.Set(BearerAuthScopes, []string{""}) + // ------------- Path parameter "kind" ------------- + var kind InPathKind - // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostObjectActionPurge(ctx) + 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)) + } + + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) + + ctx.Set(BearerAuthScopes, []string{""}) + + // Parameter object where we will unmarshal all parameters from the context + var params GetInstanceBacklogsParams + // ------------- Optional query parameter "filter" ------------- + + 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)) + } + + // Invoke the callback with all the unmarshalled arguments + err = w.Handler.GetInstanceBacklogs(ctx, namespace, kind, name, params) + return err +} + +// PostInstanceClear converts echo context to params. +func (w *ServerInterfaceWrapper) PostInstanceClear(ctx echo.Context) error { + var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace + + 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)) + } + + // ------------- Path parameter "kind" ------------- + var kind InPathKind + + 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)) + } + + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) + + ctx.Set(BearerAuthScopes, []string{""}) + + // Invoke the callback with all the unmarshalled arguments + err = w.Handler.PostInstanceClear(ctx, namespace, kind, name) + return err +} + +// GetInstanceLogs converts echo context to params. +func (w *ServerInterfaceWrapper) GetInstanceLogs(ctx echo.Context) error { + var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace + + 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)) + } + + // ------------- Path parameter "kind" ------------- + var kind InPathKind + + 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)) + } + + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []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.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)) + } + + // Invoke the callback with all the unmarshalled arguments + err = w.Handler.GetInstanceLogs(ctx, namespace, kind, name, params) + return err +} + +// PostInstanceProgress converts echo context to params. +func (w *ServerInterfaceWrapper) PostInstanceProgress(ctx echo.Context) error { + var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace + + 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)) + } + + // ------------- Path parameter "kind" ------------- + var kind InPathKind + + 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)) + } + + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) + + ctx.Set(BearerAuthScopes, []string{""}) + + // Invoke the callback with all the unmarshalled arguments + err = w.Handler.PostInstanceProgress(ctx, namespace, kind, name) + return err +} + +// PostObjectActionProvision converts echo context to params. +func (w *ServerInterfaceWrapper) PostObjectActionProvision(ctx echo.Context) error { + var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace + + 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)) + } + + // ------------- Path parameter "kind" ------------- + var kind InPathKind + + 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)) + } + + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) + + ctx.Set(BearerAuthScopes, []string{""}) + + // Invoke the callback with all the unmarshalled arguments + err = w.Handler.PostObjectActionProvision(ctx, namespace, kind, name) + return err +} + +// PostObjectActionPurge converts echo context to params. +func (w *ServerInterfaceWrapper) PostObjectActionPurge(ctx echo.Context) error { + var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace + + 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)) + } + + // ------------- Path parameter "kind" ------------- + var kind InPathKind + + 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)) + } + + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) + + ctx.Set(BearerAuthScopes, []string{""}) + + // Invoke the callback with all the unmarshalled arguments + err = w.Handler.PostObjectActionPurge(ctx, namespace, kind, name) return err } // PostObjectActionStart converts echo context to params. func (w *ServerInterfaceWrapper) PostObjectActionStart(ctx echo.Context) error { var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace + + 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)) + } + + // ------------- Path parameter "kind" ------------- + var kind InPathKind + + 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)) + } + + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) ctx.Set(BearerAuthScopes, []string{""}) // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostObjectActionStart(ctx) + err = w.Handler.PostObjectActionStart(ctx, namespace, kind, name) return err } // PostObjectActionStop converts echo context to params. func (w *ServerInterfaceWrapper) PostObjectActionStop(ctx echo.Context) error { var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace + + 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)) + } + + // ------------- Path parameter "kind" ------------- + var kind InPathKind + + 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)) + } + + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) ctx.Set(BearerAuthScopes, []string{""}) // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostObjectActionStop(ctx) + err = w.Handler.PostObjectActionStop(ctx, namespace, kind, name) return err } // PostObjectActionSwitch converts echo context to params. func (w *ServerInterfaceWrapper) PostObjectActionSwitch(ctx echo.Context) error { var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace + + 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)) + } + + // ------------- Path parameter "kind" ------------- + var kind InPathKind + + 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)) + } + + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) ctx.Set(BearerAuthScopes, []string{""}) // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostObjectActionSwitch(ctx) + err = w.Handler.PostObjectActionSwitch(ctx, namespace, kind, name) return err } // PostObjectActionUnfreeze converts echo context to params. func (w *ServerInterfaceWrapper) PostObjectActionUnfreeze(ctx echo.Context) error { var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace + + 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)) + } + + // ------------- Path parameter "kind" ------------- + var kind InPathKind + + 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)) + } + + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) ctx.Set(BearerAuthScopes, []string{""}) // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostObjectActionUnfreeze(ctx) + err = w.Handler.PostObjectActionUnfreeze(ctx, namespace, kind, name) return err } // PostObjectActionUnprovision converts echo context to params. func (w *ServerInterfaceWrapper) PostObjectActionUnprovision(ctx echo.Context) error { var err error + // ------------- Path parameter "namespace" ------------- + var namespace InPathNamespace + + 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)) + } + + // ------------- Path parameter "kind" ------------- + var kind InPathKind + + 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)) + } + + // ------------- Path parameter "name" ------------- + var name InPathName + + 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(BasicAuthScopes, []string{""}) + + ctx.Set(BearerAuthScopes, []string{""}) + + // Invoke the callback with all the unmarshalled arguments + err = w.Handler.PostObjectActionUnprovision(ctx, namespace, kind, name) + return err +} + +// GetNetworkIp converts echo context to params. +func (w *ServerInterfaceWrapper) GetNetworkIp(ctx echo.Context) error { + var err error + + ctx.Set(BasicAuthScopes, []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.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)) + } + + // Invoke the callback with all the unmarshalled arguments + err = w.Handler.GetNetworkIp(ctx, params) + return err +} + +// GetNetworks converts echo context to params. +func (w *ServerInterfaceWrapper) GetNetworks(ctx echo.Context) error { + var err error ctx.Set(BasicAuthScopes, []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.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)) + } + // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostObjectActionUnprovision(ctx) + err = w.Handler.GetNetworks(ctx, params) return err } -// GetObjectBacklogs converts echo context to params. -func (w *ServerInterfaceWrapper) GetObjectBacklogs(ctx echo.Context) error { +// GetNodeBacklogs converts echo context to params. +func (w *ServerInterfaceWrapper) GetNodeBacklogs(ctx echo.Context) error { var err error ctx.Set(BasicAuthScopes, []string{""}) @@ -852,7 +1282,7 @@ func (w *ServerInterfaceWrapper) GetObjectBacklogs(ctx echo.Context) error { ctx.Set(BearerAuthScopes, []string{""}) // Parameter object where we will unmarshal all parameters from the context - var params GetObjectBacklogsParams + var params GetNodeBacklogsParams // ------------- Optional query parameter "filter" ------------- err = runtime.BindQueryParameter("form", true, false, "filter", ctx.QueryParams(), ¶ms.Filter) @@ -868,12 +1298,12 @@ func (w *ServerInterfaceWrapper) GetObjectBacklogs(ctx echo.Context) error { } // Invoke the callback with all the unmarshalled arguments - err = w.Handler.GetObjectBacklogs(ctx, params) + err = w.Handler.GetNodeBacklogs(ctx, params) return err } -// PostObjectClear converts echo context to params. -func (w *ServerInterfaceWrapper) PostObjectClear(ctx echo.Context) error { +// PostNodeClear converts echo context to params. +func (w *ServerInterfaceWrapper) PostNodeClear(ctx echo.Context) error { var err error ctx.Set(BasicAuthScopes, []string{""}) @@ -881,48 +1311,60 @@ func (w *ServerInterfaceWrapper) PostObjectClear(ctx echo.Context) error { ctx.Set(BearerAuthScopes, []string{""}) // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostObjectClear(ctx) + err = w.Handler.PostNodeClear(ctx) return err } -// GetObjectConfig converts echo context to params. -func (w *ServerInterfaceWrapper) GetObjectConfig(ctx echo.Context) error { +// PostNodeActionDrain converts echo context to params. +func (w *ServerInterfaceWrapper) PostNodeActionDrain(ctx echo.Context) error { var err error ctx.Set(BasicAuthScopes, []string{""}) ctx.Set(BearerAuthScopes, []string{""}) - // Parameter object where we will unmarshal all parameters from the context - var params GetObjectConfigParams - // ------------- Required query parameter "path" ------------- + // Invoke the callback with all the unmarshalled arguments + err = w.Handler.PostNodeActionDrain(ctx) + return err +} - 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)) - } +// GetNodeDRBDAllocation converts echo context to params. +func (w *ServerInterfaceWrapper) GetNodeDRBDAllocation(ctx echo.Context) error { + var err error - // ------------- Optional query parameter "evaluate" ------------- + ctx.Set(BasicAuthScopes, []string{""}) - 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)) - } + ctx.Set(BearerAuthScopes, []string{""}) - // ------------- Optional query parameter "impersonate" ------------- + // Invoke the callback with all the unmarshalled arguments + err = w.Handler.GetNodeDRBDAllocation(ctx) + return err +} - err = runtime.BindQueryParameter("form", true, false, "impersonate", ctx.QueryParams(), ¶ms.Impersonate) +// GetNodeDRBDConfig converts echo context to params. +func (w *ServerInterfaceWrapper) GetNodeDRBDConfig(ctx echo.Context) error { + var err error + + ctx.Set(BasicAuthScopes, []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.BindQueryParameter("form", true, true, "name", ctx.QueryParams(), ¶ms.Name) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter impersonate: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } // Invoke the callback with all the unmarshalled arguments - err = w.Handler.GetObjectConfig(ctx, params) + err = w.Handler.GetNodeDRBDConfig(ctx, params) return err } -// GetObjectFile converts echo context to params. -func (w *ServerInterfaceWrapper) GetObjectFile(ctx echo.Context) error { +// PostNodeDRBDConfig converts echo context to params. +func (w *ServerInterfaceWrapper) PostNodeDRBDConfig(ctx echo.Context) error { var err error ctx.Set(BasicAuthScopes, []string{""}) @@ -930,21 +1372,21 @@ func (w *ServerInterfaceWrapper) GetObjectFile(ctx echo.Context) error { ctx.Set(BearerAuthScopes, []string{""}) // Parameter object where we will unmarshal all parameters from the context - var params GetObjectFileParams - // ------------- Required query parameter "path" ------------- + var params PostNodeDRBDConfigParams + // ------------- Required query parameter "name" ------------- - err = runtime.BindQueryParameter("form", true, true, "path", ctx.QueryParams(), ¶ms.Path) + 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 path: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter name: %s", err)) } // Invoke the callback with all the unmarshalled arguments - err = w.Handler.GetObjectFile(ctx, params) + err = w.Handler.PostNodeDRBDConfig(ctx, params) return err } -// GetObjectLogs converts echo context to params. -func (w *ServerInterfaceWrapper) GetObjectLogs(ctx echo.Context) error { +// GetNodeLogs converts echo context to params. +func (w *ServerInterfaceWrapper) GetNodeLogs(ctx echo.Context) error { var err error ctx.Set(BasicAuthScopes, []string{""}) @@ -952,7 +1394,7 @@ func (w *ServerInterfaceWrapper) GetObjectLogs(ctx echo.Context) error { ctx.Set(BearerAuthScopes, []string{""}) // Parameter object where we will unmarshal all parameters from the context - var params GetObjectLogsParams + var params GetNodeLogsParams // ------------- Optional query parameter "filter" ------------- err = runtime.BindQueryParameter("form", true, false, "filter", ctx.QueryParams(), ¶ms.Filter) @@ -968,12 +1410,12 @@ func (w *ServerInterfaceWrapper) GetObjectLogs(ctx echo.Context) error { } // Invoke the callback with all the unmarshalled arguments - err = w.Handler.GetObjectLogs(ctx, params) + err = w.Handler.GetNodeLogs(ctx, params) return err } -// GetObjectPaths converts echo context to params. -func (w *ServerInterfaceWrapper) GetObjectPaths(ctx echo.Context) error { +// GetNodes converts echo context to params. +func (w *ServerInterfaceWrapper) GetNodes(ctx echo.Context) error { var err error ctx.Set(BasicAuthScopes, []string{""}) @@ -981,21 +1423,21 @@ func (w *ServerInterfaceWrapper) GetObjectPaths(ctx echo.Context) error { ctx.Set(BearerAuthScopes, []string{""}) // Parameter object where we will unmarshal all parameters from the context - var params GetObjectPathsParams - // ------------- Required query parameter "path" ------------- + var params GetNodesParams + // ------------- Optional query parameter "node" ------------- - err = runtime.BindQueryParameter("form", true, true, "path", ctx.QueryParams(), ¶ms.Path) + 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 path: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter node: %s", err)) } // Invoke the callback with all the unmarshalled arguments - err = w.Handler.GetObjectPaths(ctx, params) + err = w.Handler.GetNodes(ctx, params) return err } -// PostObjectProgress converts echo context to params. -func (w *ServerInterfaceWrapper) PostObjectProgress(ctx echo.Context) error { +// GetNodesInfo converts echo context to params. +func (w *ServerInterfaceWrapper) GetNodesInfo(ctx echo.Context) error { var err error ctx.Set(BasicAuthScopes, []string{""}) @@ -1003,7 +1445,29 @@ func (w *ServerInterfaceWrapper) PostObjectProgress(ctx echo.Context) error { ctx.Set(BearerAuthScopes, []string{""}) // Invoke the callback with all the unmarshalled arguments - err = w.Handler.PostObjectProgress(ctx) + err = w.Handler.GetNodesInfo(ctx) + return err +} + +// GetObjectPaths converts echo context to params. +func (w *ServerInterfaceWrapper) GetObjectPaths(ctx echo.Context) error { + var err error + + ctx.Set(BasicAuthScopes, []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.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)) + } + + // Invoke the callback with all the unmarshalled arguments + err = w.Handler.GetObjectPaths(ctx, params) return err } @@ -1189,9 +1653,9 @@ func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL } router.POST(baseURL+"/auth/token", wrapper.PostAuthToken) - router.POST(baseURL+"/cluster/action/abort", wrapper.PostClusterActionAbort) - router.POST(baseURL+"/cluster/action/freeze", wrapper.PostClusterActionFreeze) - router.POST(baseURL+"/cluster/action/unfreeze", wrapper.PostClusterActionUnfreeze) + router.POST(baseURL+"/cluster/abort", wrapper.PostClusterActionAbort) + router.POST(baseURL+"/cluster/freeze", wrapper.PostClusterActionFreeze) + router.POST(baseURL+"/cluster/unfreeze", wrapper.PostClusterActionUnfreeze) router.GET(baseURL+"/daemon/dns/dump", wrapper.GetDaemonDNSDump) router.GET(baseURL+"/daemon/events", wrapper.GetDaemonEvents) router.POST(baseURL+"/daemon/join", wrapper.PostDaemonJoin) @@ -1204,35 +1668,38 @@ func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL router.POST(baseURL+"/daemon/sub/action", wrapper.PostDaemonSubAction) router.GET(baseURL+"/instances", wrapper.GetInstances) router.POST(baseURL+"/instances", wrapper.PostInstanceStatus) + router.GET(baseURL+"/instances/backlogs", wrapper.GetInstancesBacklogs) + router.GET(baseURL+"/instances/logs", wrapper.GetInstancesLogs) + router.GET(baseURL+"/namespaces/:namespace/:kind/:name", wrapper.GetObject) + router.POST(baseURL+"/namespaces/:namespace/:kind/:name/abort", wrapper.PostObjectActionAbort) + router.GET(baseURL+"/namespaces/:namespace/:kind/:name/config", wrapper.GetObjectConfig) + router.POST(baseURL+"/namespaces/:namespace/:kind/:name/delete", wrapper.PostObjectActionDelete) + router.GET(baseURL+"/namespaces/:namespace/:kind/:name/file", wrapper.GetObjectFile) + router.POST(baseURL+"/namespaces/:namespace/:kind/:name/freeze", wrapper.PostObjectActionFreeze) + router.POST(baseURL+"/namespaces/:namespace/:kind/:name/giveback", wrapper.PostObjectActionGiveback) + router.GET(baseURL+"/namespaces/:namespace/:kind/:name/instance/backlogs", wrapper.GetInstanceBacklogs) + router.POST(baseURL+"/namespaces/:namespace/:kind/:name/instance/clear", wrapper.PostInstanceClear) + router.GET(baseURL+"/namespaces/:namespace/:kind/:name/instance/logs", wrapper.GetInstanceLogs) + router.POST(baseURL+"/namespaces/:namespace/:kind/:name/instance/progress", wrapper.PostInstanceProgress) + router.POST(baseURL+"/namespaces/:namespace/:kind/:name/provision", wrapper.PostObjectActionProvision) + router.POST(baseURL+"/namespaces/:namespace/:kind/:name/purge", wrapper.PostObjectActionPurge) + router.POST(baseURL+"/namespaces/:namespace/:kind/:name/start", wrapper.PostObjectActionStart) + router.POST(baseURL+"/namespaces/:namespace/:kind/:name/stop", wrapper.PostObjectActionStop) + router.POST(baseURL+"/namespaces/:namespace/:kind/:name/switch", wrapper.PostObjectActionSwitch) + router.POST(baseURL+"/namespaces/:namespace/:kind/:name/unfreeze", wrapper.PostObjectActionUnfreeze) + router.POST(baseURL+"/namespaces/:namespace/:kind/:name/unprovision", wrapper.PostObjectActionUnprovision) router.GET(baseURL+"/network/ip", wrapper.GetNetworkIp) router.GET(baseURL+"/networks", wrapper.GetNetworks) - router.POST(baseURL+"/node/action/drain", wrapper.PostNodeActionDrain) router.GET(baseURL+"/node/backlogs", wrapper.GetNodeBacklogs) router.POST(baseURL+"/node/clear", wrapper.PostNodeClear) + router.POST(baseURL+"/node/drain", wrapper.PostNodeActionDrain) router.GET(baseURL+"/node/drbd/allocation", wrapper.GetNodeDRBDAllocation) router.GET(baseURL+"/node/drbd/config", wrapper.GetNodeDRBDConfig) router.POST(baseURL+"/node/drbd/config", wrapper.PostNodeDRBDConfig) router.GET(baseURL+"/node/logs", wrapper.GetNodeLogs) router.GET(baseURL+"/nodes", wrapper.GetNodes) router.GET(baseURL+"/nodes/info", wrapper.GetNodesInfo) - router.POST(baseURL+"/object/action/abort", wrapper.PostObjectActionAbort) - router.POST(baseURL+"/object/action/delete", wrapper.PostObjectActionDelete) - router.POST(baseURL+"/object/action/freeze", wrapper.PostObjectActionFreeze) - router.POST(baseURL+"/object/action/giveback", wrapper.PostObjectActionGiveback) - router.POST(baseURL+"/object/action/provision", wrapper.PostObjectActionProvision) - router.POST(baseURL+"/object/action/purge", wrapper.PostObjectActionPurge) - router.POST(baseURL+"/object/action/start", wrapper.PostObjectActionStart) - router.POST(baseURL+"/object/action/stop", wrapper.PostObjectActionStop) - router.POST(baseURL+"/object/action/switch", wrapper.PostObjectActionSwitch) - router.POST(baseURL+"/object/action/unfreeze", wrapper.PostObjectActionUnfreeze) - router.POST(baseURL+"/object/action/unprovision", wrapper.PostObjectActionUnprovision) - router.GET(baseURL+"/object/backlogs", wrapper.GetObjectBacklogs) - router.POST(baseURL+"/object/clear", wrapper.PostObjectClear) - router.GET(baseURL+"/object/config", wrapper.GetObjectConfig) - router.GET(baseURL+"/object/file", wrapper.GetObjectFile) - router.GET(baseURL+"/object/logs", wrapper.GetObjectLogs) router.GET(baseURL+"/object/paths", wrapper.GetObjectPaths) - router.POST(baseURL+"/object/progress", wrapper.PostObjectProgress) router.GET(baseURL+"/objects", wrapper.GetObjects) router.GET(baseURL+"/pool/volumes", wrapper.GetPoolVolumes) router.GET(baseURL+"/pools", wrapper.GetPools) @@ -1246,128 +1713,130 @@ func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+x963IbN7Lwq6C4X1WSLYqSLCeb6Kv8cOxk4z227GMpe6qO5VKBM00S8RAYAxhdsuV3", - "P4XbDGYGmAtJKYqlX7Y4uDS6G43uRnfjP5OErXNGgUoxOf7PJMccr0EC13+9ePfTi+eMLsjyBK9B/ZKC", - "SDjJJWF0cjyRK0CLIstQjuUKsQXSP5AMEBEohbRIIEULztb6A1VjTCdE9fxUAL+ZTCf6t+OJ/cThU0E4", - "pJNjyQuYTkSygjVW88qbXLUTkhO6nHz+PJ28KDg2YD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fwn7ZiA9b7671tdEh37FF4otrQ7gbghgXu4AsxDhfo7KjaYCCnSLaWEP1nboGpNrqSw3Td4d+Wwak", + "d7lFR93xS0yy/ge/CaOKtKS+XrzFlMRcpTlnfwIdqvFqCiuFOS4yOXoxx5mA5kG4a6rDsrwAROZILolA", + "xodES51CK9EMgCLLLJQWgCRD+JxW0dSUXVGFEkrYJXATTMVopSYNVNES5cAJSyfnVEeH5RICXxHQVIxN", + "tphBQCxZkaVoBqigyRLTBaTjc4ppikrUr0iWqQYCpEJLz3OiU5AjYUkhMR+sP71Mqn5cV3TA2YAOOWeX", + "RK02w7g1qQ1l010q3AqZtlIvKLXR3gFuUoIzCDt227sqehHWV5ddSv7CafPcY2bFpZaW8rlR11mOEm56", + "G7kUltJ3oa+2dywqMdjai1jnPrxhi+7AnG2wYVjuGOQV458CJ/WcMz4wijLnEBHmaJyHVuO3DREbQ+id", + "DjEeFaJmhcZO+uuJEg4H1d2EpPVELDSLR4g3lnhHecADy9dNt0tiSsCOPd5RXzs+FItdcdLHncurfByX", + "Eq+NGYdq58SHObUVvQLCU37cwqVt4LU7n7bFkLbfuYmEb5LW04cvm3Clgyc74Miu+RE8l+93kqD6Dj5F", + "UJ0GnyCoTl2nBx4mbf0bidp7NuHFguMELoxlWDcSqgt5ba0AOL0Z3ul3RuhmA4o8IzIe4G4mUurwaXSW", + "DfzDmDXGXGNyKOW3dQRTa1B3S+qIzlmbo/pOWOgGhP7d5X24HVyni5hP+jJGr8XGUnijuoTWMo3eSilv", + "pFgU9P/tnRSNhslN0dgZXLV7oW8SYa4vshC60DdTJyEByMM3kwyA0LQlQ0IyjheANPpIYGrG602K05fH", + "+qLYumQgy5RamN3gG1M7m1uPLgN3q5C0VkRbhKPdFAaocDfp0AZRSlx0Q2xfRix5rjpqaQuKjb492Yag", + "f66D0D9N1qclGfYauDHabLPXlaTd7UY3KNAdSsWKAo4FsIfGqDcJFt59WHjXId0vPKL6d4ZH+wcI9G69", + "dTSztl1Ho5gLe8W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MG8Ii", + "c0Sku4IoOVksgCOMLADLTOTuM55Tny+USVTkEaqyaF12jxLOK8aLBYeFZiihkqETc4StfSjAqfIMX15i", + "klVOlek4Oae6rrJAhCI3YgU9ZfQriYRkOcIxQY2gPyBnIaYU1hmMnqkZK+tv2IKzK3wj9AXRfKyfu0F4", + "LjWf9NyGzWxoTWdTYSTyEoKXZ27a1SVdX2kTgiyUvyvDL+HgxcATrn5Xbpw+c0qnDESbdWZWlV/m07sx", + "2boYWUaJnf1dRgksdew8YqUS6zuqo87WSWblWw7udQY/tI1Tkz8yy3DyKSNCuh8WOsCqD8jMzebRePQ7", + "058ywJf6aQDG9Hz/KLCUtWqnFVtcfn7bhqVEEtzDXbQQjsr2WhxcAlePnmemccvQLQGW8EI7Ymv4wL5k", + "P7lk9SUTEgml1t19BgQ0zRmhcmLkpnf6PEZXjGep3iMKSv7QG40HD5EUqCRzArz++BD5g06ePnny/ODw", + "iZKKSTErqCxePDl8Ad/N0uf42ezbb58PqBhqa5iandWOrSN99VFFIkjQgY3R9azkZGNA/bsbsnFL5EGQ", + "9oeDw0NNWrvgJoJfvkjh8ik9nFh8J2YWk8PhhMa7JHWpy92qL5SmS9kVrY7c/KwFpbnS2Q3Szcx/dePg", + "AteqLRZuybHaoSGLvNxWO4V1TXvfHPdH3o2bUa891te7rSES2IrOvAzC6iB0jknGLk2pzlDiiZdQ59jm", + "dZlncB0+CRWQFJzIm1OFneHCDAuSvCyMGtZYa0aoXysJWkqps1VngDlw19r89YvzT/79f8/cSzgahP7a", + "hHHrmcv2TGFk6W4scWTyty+BCzPlZ5MfJofGHgSqk+5HzyZPJk9G3qWyKS7kclo+05AzExlR0qYt66N0", + "9EKfaVUPQ4xrDzNGKrxWTabm6aLbcehpRD1w+UDiGK3wNVkVK3MnCT19vtzszcTDJ6vAIv54h0/pVOTp", + "eEznMAalRGuqGlVv0axr+8x7VKW7rWpUPYCyru2zmsxrJnvS/uGjYqYv0R8+KuIac/LDSInU6KOCMLVn", + "BVM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ow", + "XnzpfH9EXGfp7nJujlkK+zuyn4cY6FqFngz0yU4RJjdFoK+9XJSxzVApc1JMPb31+ShKWlwuyhblLR7J", + "NfcWw1KOyRpzU1HYXjzRjfeG3BdiyAWEYZZOq6f8O/dwlsLr9z+9flm1vst6TvWRoiLxN5Jt/fVER7IN", + "LyhWXe/eofLQfNDL7175PV6jI3fN27sJu9YxfW9GCXG5euNvXz1msErYOoVSsWlfHeTz47xYtwNsUG/x", + "3kqEaaHrKA+mbfJ9abAw46fuibdO7h+Z51TvlIVmkC9/vZnI47R8Ea/7trDRdZvU87uPe7xWE3/Byd91", + "rnW/K6PfSLcNXUDAxv8i7wCdWKjb1Wu8ez6v2wofifasi0TOWDa9ZFmx6t4/3zGW/dc2GxQ7djFj926u", + "GvAhBo6rCX7BJpMivs/5tSz/gpn9WNhczDKSTMvXbOP8Pr3CiwXwHdV+d28+P2gClwTTRLIU45Dhm+kK", + "hMCLzlIo71XDt7bd4Ad+VWdlMtKet+F0B/uA41F6txumP7Mvvop7V3CpweK7igzVholVFsbGCUyxxAIk", + "mnO2QhhpaUVLwFzOAMt96fFg6XEOghV8Tenx92Wj+y093mPtk/R+LGVHgq5QhKPlPhxhBK2SrY+3t7e3", + "/z8AAP//VP4aMJHvAAA=", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/daemon/api/codegen_type_gen.go b/daemon/api/codegen_type_gen.go index 788950553..d3b300730 100644 --- a/daemon/api/codegen_type_gen.go +++ b/daemon/api/codegen_type_gen.go @@ -543,34 +543,22 @@ type PostDaemonSubAction struct { // PostDaemonSubActionAction defines model for PostDaemonSubAction.Action. type PostDaemonSubActionAction string +// PostInstanceProgress defines model for PostInstanceProgress. +type PostInstanceProgress struct { + IsPartial *bool `json:"is_partial,omitempty"` + SessionId openapi_types.UUID `json:"session_id"` + State string `json:"state"` +} + // PostNodeDRBDConfigRequest defines model for PostNodeDRBDConfigRequest. type PostNodeDRBDConfigRequest struct { AllocationId openapi_types.UUID `json:"allocation_id"` Data []byte `json:"data"` } -// PostObjectAction defines model for PostObjectAction. -type PostObjectAction struct { - Path string `json:"path"` -} - // PostObjectActionSwitch defines model for PostObjectActionSwitch. type PostObjectActionSwitch struct { Destination []string `json:"destination"` - Path string `json:"path"` -} - -// PostObjectClear defines model for PostObjectClear. -type PostObjectClear struct { - Path string `json:"path"` -} - -// PostObjectProgress defines model for PostObjectProgress. -type PostObjectProgress struct { - IsPartial *bool `json:"is_partial,omitempty"` - Path string `json:"path"` - SessionId openapi_types.UUID `json:"session_id"` - State string `json:"state"` } // PostRelayMessage defines model for PostRelayMessage. @@ -729,9 +717,15 @@ type DRBDConfigName = string // Duration defines model for Duration. type Duration = string +// Evaluate defines model for Evaluate. +type Evaluate = bool + // EventFilter defines model for EventFilter. type EventFilter = []string +// Impersonate defines model for Impersonate. +type Impersonate = string + // Limit defines model for Limit. type Limit = int64 @@ -744,9 +738,6 @@ type NamespaceOptional = string // NodeOptional defines model for NodeOptional. type NodeOptional = string -// ObjectPath defines model for ObjectPath. -type ObjectPath = string - // Path defines model for Path. type Path = string @@ -771,6 +762,15 @@ type Roles = []Role // SelectorOptional defines model for SelectorOptional. type SelectorOptional = string +// InPathKind defines model for inPathKind. +type InPathKind = string + +// InPathName defines model for inPathName. +type InPathName = string + +// InPathNamespace defines model for inPathNamespace. +type InPathNamespace = string + // N200 defines model for 200. type N200 = Problem @@ -846,6 +846,45 @@ type GetInstancesParams struct { Node *NodeOptional `form:"node,omitempty" json:"node,omitempty"` } +// GetInstancesBacklogsParams defines parameters for GetInstancesBacklogs. +type GetInstancesBacklogsParams struct { + // Filter list of log filter + Filter *LogFilter `form:"filter,omitempty" json:"filter,omitempty"` + + // Paths list of object paths to send logs for + Paths Paths `form:"paths" json:"paths"` +} + +// GetInstancesLogsParams defines parameters for GetInstancesLogs. +type GetInstancesLogsParams struct { + // Filter list of log filter + Filter *LogFilter `form:"filter,omitempty" json:"filter,omitempty"` + + // Paths list of object paths to send logs for + Paths Paths `form:"paths" json:"paths"` +} + +// GetObjectConfigParams defines parameters for GetObjectConfig. +type GetObjectConfigParams struct { + // Evaluate evaluate + Evaluate *Evaluate `form:"evaluate,omitempty" json:"evaluate,omitempty"` + + // Impersonate impersonate the evaluation as node + Impersonate *Impersonate `form:"impersonate,omitempty" json:"impersonate,omitempty"` +} + +// GetInstanceBacklogsParams defines parameters for GetInstanceBacklogs. +type GetInstanceBacklogsParams struct { + // Filter list of log filter + Filter *LogFilter `form:"filter,omitempty" json:"filter,omitempty"` +} + +// GetInstanceLogsParams defines parameters for GetInstanceLogs. +type GetInstanceLogsParams struct { + // Filter list of log filter + Filter *LogFilter `form:"filter,omitempty" json:"filter,omitempty"` +} + // GetNetworkIpParams defines parameters for GetNetworkIp. type GetNetworkIpParams struct { // Name the name of a cluster backend network @@ -894,42 +933,6 @@ type GetNodesParams struct { Node *NodeOptional `form:"node,omitempty" json:"node,omitempty"` } -// GetObjectBacklogsParams defines parameters for GetObjectBacklogs. -type GetObjectBacklogsParams struct { - // Filter list of log filter - Filter *LogFilter `form:"filter,omitempty" json:"filter,omitempty"` - - // Paths list of object paths to send logs for - Paths Paths `form:"paths" json:"paths"` -} - -// GetObjectConfigParams defines parameters for GetObjectConfig. -type GetObjectConfigParams struct { - // Path object path - Path ObjectPath `form:"path" json:"path"` - - // Evaluate evaluate - Evaluate *bool `form:"evaluate,omitempty" json:"evaluate,omitempty"` - - // Impersonate impersonate the evaluation as node - Impersonate *string `form:"impersonate,omitempty" json:"impersonate,omitempty"` -} - -// GetObjectFileParams defines parameters for GetObjectFile. -type GetObjectFileParams struct { - // Path object path - Path ObjectPath `form:"path" json:"path"` -} - -// GetObjectLogsParams defines parameters for GetObjectLogs. -type GetObjectLogsParams struct { - // Filter list of log filter - Filter *LogFilter `form:"filter,omitempty" json:"filter,omitempty"` - - // Paths list of object paths to send logs for - Paths Paths `form:"paths" json:"paths"` -} - // GetObjectPathsParams defines parameters for GetObjectPaths. type GetObjectPathsParams struct { // Path object selector expression. @@ -984,47 +987,14 @@ type PostDaemonSubActionJSONRequestBody = PostDaemonSubAction // PostInstanceStatusJSONRequestBody defines body for PostInstanceStatus for application/json ContentType. type PostInstanceStatusJSONRequestBody = InstanceStatusItem -// PostNodeDRBDConfigJSONRequestBody defines body for PostNodeDRBDConfig for application/json ContentType. -type PostNodeDRBDConfigJSONRequestBody = PostNodeDRBDConfigRequest - -// PostObjectActionAbortJSONRequestBody defines body for PostObjectActionAbort for application/json ContentType. -type PostObjectActionAbortJSONRequestBody = PostObjectAction - -// PostObjectActionDeleteJSONRequestBody defines body for PostObjectActionDelete for application/json ContentType. -type PostObjectActionDeleteJSONRequestBody = PostObjectAction - -// PostObjectActionFreezeJSONRequestBody defines body for PostObjectActionFreeze for application/json ContentType. -type PostObjectActionFreezeJSONRequestBody = PostObjectAction - -// PostObjectActionGivebackJSONRequestBody defines body for PostObjectActionGiveback for application/json ContentType. -type PostObjectActionGivebackJSONRequestBody = PostObjectAction - -// PostObjectActionProvisionJSONRequestBody defines body for PostObjectActionProvision for application/json ContentType. -type PostObjectActionProvisionJSONRequestBody = PostObjectAction - -// PostObjectActionPurgeJSONRequestBody defines body for PostObjectActionPurge for application/json ContentType. -type PostObjectActionPurgeJSONRequestBody = PostObjectAction - -// PostObjectActionStartJSONRequestBody defines body for PostObjectActionStart for application/json ContentType. -type PostObjectActionStartJSONRequestBody = PostObjectAction - -// PostObjectActionStopJSONRequestBody defines body for PostObjectActionStop for application/json ContentType. -type PostObjectActionStopJSONRequestBody = PostObjectAction +// PostInstanceProgressJSONRequestBody defines body for PostInstanceProgress for application/json ContentType. +type PostInstanceProgressJSONRequestBody = PostInstanceProgress // PostObjectActionSwitchJSONRequestBody defines body for PostObjectActionSwitch for application/json ContentType. type PostObjectActionSwitchJSONRequestBody = PostObjectActionSwitch -// PostObjectActionUnfreezeJSONRequestBody defines body for PostObjectActionUnfreeze for application/json ContentType. -type PostObjectActionUnfreezeJSONRequestBody = PostObjectAction - -// PostObjectActionUnprovisionJSONRequestBody defines body for PostObjectActionUnprovision for application/json ContentType. -type PostObjectActionUnprovisionJSONRequestBody = PostObjectAction - -// PostObjectClearJSONRequestBody defines body for PostObjectClear for application/json ContentType. -type PostObjectClearJSONRequestBody = PostObjectClear - -// PostObjectProgressJSONRequestBody defines body for PostObjectProgress for application/json ContentType. -type PostObjectProgressJSONRequestBody = PostObjectProgress +// PostNodeDRBDConfigJSONRequestBody defines body for PostNodeDRBDConfig for application/json ContentType. +type PostNodeDRBDConfigJSONRequestBody = PostNodeDRBDConfigRequest // PostRelayMessageJSONRequestBody defines body for PostRelayMessage for application/json ContentType. type PostRelayMessageJSONRequestBody = PostRelayMessage diff --git a/daemon/daemonapi/get_object_logs.go b/daemon/daemonapi/get_instances_logs.go similarity index 74% rename from daemon/daemonapi/get_object_logs.go rename to daemon/daemonapi/get_instances_logs.go index 826f6a0b7..8a03a7990 100644 --- a/daemon/daemonapi/get_object_logs.go +++ b/daemon/daemonapi/get_instances_logs.go @@ -13,14 +13,26 @@ import ( "github.com/opensvc/om3/daemon/rbac" ) -// GetObjectLogs feeds publications in rss format. -func (a *DaemonApi) GetObjectLogs(ctx echo.Context, params api.GetObjectLogsParams) error { +func (a *DaemonApi) GetInstanceLogs(ctx echo.Context, namespace, kind, name string, params api.GetInstanceLogsParams) error { + p, err := path.New(name, namespace, kind) + if err != nil { + JSONProblemf(ctx, http.StatusBadRequest, "Invalid parameter", "%s", err) + return err + } + return a.GetInstancesLogs(ctx, api.GetInstancesLogsParams{ + Paths: path.L{p}.StrSlice(), + Filter: params.Filter, + }) +} + +// GetInstancesLogs feeds publications in rss format. +func (a *DaemonApi) GetInstancesLogs(ctx echo.Context, params api.GetInstancesLogsParams) error { if v, err := assertRole(ctx, rbac.RoleRoot); err != nil { return err } else if !v { return nil } - log := LogHandler(ctx, "GetObjectLogs") + log := LogHandler(ctx, "GetInstancesLogs") log.Debug().Msg("starting") defer log.Debug().Msg("done") diff --git a/daemon/daemonapi/get_object.go b/daemon/daemonapi/get_object.go index 87e2f49ca..b5cc2d8a8 100644 --- a/daemon/daemonapi/get_object.go +++ b/daemon/daemonapi/get_object.go @@ -8,17 +8,42 @@ import ( "github.com/opensvc/om3/core/instance" "github.com/opensvc/om3/core/object" + "github.com/opensvc/om3/core/path" "github.com/opensvc/om3/daemon/api" ) func (a *DaemonApi) GetObjects(ctx echo.Context, params api.GetObjectsParams) error { + if l, err := a.getObjects(ctx, params.Path); err != nil { + log.Error().Err(err).Send() + return JSONProblem(ctx, http.StatusInternalServerError, "Server error", "expand selection") + } else { + return ctx.JSON(http.StatusOK, api.ObjectList{Kind: "ObjectList", Items: l}) + } +} + +func (a *DaemonApi) GetObject(ctx echo.Context, namespace string, kind string, name string) error { + p, err := path.New(name, namespace, kind) + if err != nil { + return err + } + s := p.FQN() + if l, err := a.getObjects(ctx, &s); err != nil { + log.Error().Err(err).Send() + return JSONProblem(ctx, http.StatusInternalServerError, "Server error", "expand selection") + } else if len(l) == 0 { + return JSONProblem(ctx, http.StatusNotFound, "", "") + } else { + return ctx.JSON(http.StatusOK, l[0]) + } +} + +func (a *DaemonApi) getObjects(ctx echo.Context, pathSelector *string) (api.ObjectItems, error) { meta := Meta{ Context: ctx, - Path: params.Path, + Path: pathSelector, } if err := meta.Expand(); err != nil { - log.Error().Err(err).Send() - return JSONProblem(ctx, http.StatusInternalServerError, "Server error", "expand selection") + return nil, err } ostats := object.StatusData.GetAll() l := make(api.ObjectItems, 0) @@ -64,5 +89,5 @@ func (a *DaemonApi) GetObjects(ctx echo.Context, params api.GetObjectsParams) er } l = append(l, d) } - return ctx.JSON(http.StatusOK, api.ObjectList{Kind: "ObjectList", Items: l}) + return l, nil } diff --git a/daemon/daemonapi/get_object_backlogs.go b/daemon/daemonapi/get_object_backlogs.go index 5e0287a38..349585bf5 100644 --- a/daemon/daemonapi/get_object_backlogs.go +++ b/daemon/daemonapi/get_object_backlogs.go @@ -11,14 +11,26 @@ import ( "github.com/opensvc/om3/daemon/rbac" ) -// GetObjectBacklogs feeds publications in rss format. -func (a *DaemonApi) GetObjectBacklogs(ctx echo.Context, params api.GetObjectBacklogsParams) error { +func (a *DaemonApi) GetInstanceBacklogs(ctx echo.Context, namespace, kind, name string, params api.GetInstanceBacklogsParams) error { + p, err := path.New(name, namespace, kind) + if err != nil { + JSONProblemf(ctx, http.StatusBadRequest, "Invalid parameter", "%s", err) + return err + } + return a.GetInstancesBacklogs(ctx, api.GetInstancesBacklogsParams{ + Paths: path.L{p}.StrSlice(), + Filter: params.Filter, + }) +} + +// GetInstancesBacklogs feeds publications in rss format. +func (a *DaemonApi) GetInstancesBacklogs(ctx echo.Context, params api.GetInstancesBacklogsParams) error { if v, err := assertRole(ctx, rbac.RoleRoot); err != nil { return err } else if !v { return nil } - log := LogHandler(ctx, "GetObjectBacklogs") + log := LogHandler(ctx, "GetInstancesBacklogs") log.Debug().Msg("starting") defer log.Debug().Msg("done") diff --git a/daemon/daemonapi/get_object_config.go b/daemon/daemonapi/get_object_config.go index c3b7a3327..8c73414e2 100644 --- a/daemon/daemonapi/get_object_config.go +++ b/daemon/daemonapi/get_object_config.go @@ -13,7 +13,7 @@ import ( "github.com/opensvc/om3/util/file" ) -func (a *DaemonApi) GetObjectConfig(ctx echo.Context, params api.GetObjectConfigParams) error { +func (a *DaemonApi) GetObjectConfig(ctx echo.Context, namespace, kind, name string, params api.GetObjectConfigParams) error { var ( evaluate bool impersonate string @@ -29,10 +29,10 @@ func (a *DaemonApi) GetObjectConfig(ctx echo.Context, params api.GetObjectConfig log := LogHandler(ctx, "GetObjectConfig") log.Debug().Msg("starting") - objPath, err := path.Parse(params.Path) + objPath, err := path.New(name, namespace, kind) if err != nil { - log.Info().Err(err).Msgf("invalid path: %s", params.Path) - return JSONProblemf(ctx, http.StatusBadRequest, "Invalid parametter", "invalid path: %s", params.Path) + log.Info().Err(err).Send() + return JSONProblemf(ctx, http.StatusBadRequest, "Invalid parameter", "invalid path: %s", err) } if impersonate != "" && !evaluate { // Force evaluate when impersonate diff --git a/daemon/daemonapi/get_object_file.go b/daemon/daemonapi/get_object_file.go index c6dd1c113..65ec3c0aa 100644 --- a/daemon/daemonapi/get_object_file.go +++ b/daemon/daemonapi/get_object_file.go @@ -11,14 +11,14 @@ import ( "github.com/opensvc/om3/util/file" ) -func (a *DaemonApi) GetObjectFile(ctx echo.Context, params api.GetObjectFileParams) error { +func (a *DaemonApi) GetObjectFile(ctx echo.Context, namespace, kind, name string) error { log := LogHandler(ctx, "objecthandler.GetObjectFile") log.Debug().Msg("starting") - objPath, err := path.Parse(params.Path) + objPath, err := path.New(name, namespace, kind) if err != nil { - log.Warn().Err(err).Msgf("invalid path: %s", params.Path) - return JSONProblemf(ctx, http.StatusBadRequest, "Invalid parameter", "invalid path: %s", params.Path) + log.Warn().Err(err).Send() + return JSONProblemf(ctx, http.StatusBadRequest, "Invalid parameter", "invalid path: %s", err) } filename := objPath.ConfigFile() diff --git a/daemon/daemonapi/post_object_action.go b/daemon/daemonapi/post_object_action.go index 853154052..66ade3be9 100644 --- a/daemon/daemonapi/post_object_action.go +++ b/daemon/daemonapi/post_object_action.go @@ -16,62 +16,57 @@ import ( "github.com/opensvc/om3/util/pubsub" ) -func (a *DaemonApi) PostObjectActionAbort(ctx echo.Context) error { - return a.PostObjectAction(ctx, instance.MonitorGlobalExpectAborted) +func (a *DaemonApi) PostObjectActionAbort(ctx echo.Context, namespace, kind, name string) error { + return a.PostObjectAction(ctx, namespace, kind, name, instance.MonitorGlobalExpectAborted) } -func (a *DaemonApi) PostObjectActionDelete(ctx echo.Context) error { - return a.PostObjectAction(ctx, instance.MonitorGlobalExpectDeleted) +func (a *DaemonApi) PostObjectActionDelete(ctx echo.Context, namespace, kind, name string) error { + return a.PostObjectAction(ctx, namespace, kind, name, instance.MonitorGlobalExpectDeleted) } -func (a *DaemonApi) PostObjectActionFreeze(ctx echo.Context) error { - return a.PostObjectAction(ctx, instance.MonitorGlobalExpectFrozen) +func (a *DaemonApi) PostObjectActionFreeze(ctx echo.Context, namespace, kind, name string) error { + return a.PostObjectAction(ctx, namespace, kind, name, instance.MonitorGlobalExpectFrozen) } -func (a *DaemonApi) PostObjectActionGiveback(ctx echo.Context) error { - return a.PostObjectAction(ctx, instance.MonitorGlobalExpectPlaced) +func (a *DaemonApi) PostObjectActionGiveback(ctx echo.Context, namespace, kind, name string) error { + return a.PostObjectAction(ctx, namespace, kind, name, instance.MonitorGlobalExpectPlaced) } -func (a *DaemonApi) PostObjectActionProvision(ctx echo.Context) error { - return a.PostObjectAction(ctx, instance.MonitorGlobalExpectProvisioned) +func (a *DaemonApi) PostObjectActionProvision(ctx echo.Context, namespace, kind, name string) error { + return a.PostObjectAction(ctx, namespace, kind, name, instance.MonitorGlobalExpectProvisioned) } -func (a *DaemonApi) PostObjectActionPurge(ctx echo.Context) error { - return a.PostObjectAction(ctx, instance.MonitorGlobalExpectPurged) +func (a *DaemonApi) PostObjectActionPurge(ctx echo.Context, namespace, kind, name string) error { + return a.PostObjectAction(ctx, namespace, kind, name, instance.MonitorGlobalExpectPurged) } -func (a *DaemonApi) PostObjectActionStart(ctx echo.Context) error { - return a.PostObjectAction(ctx, instance.MonitorGlobalExpectStarted) +func (a *DaemonApi) PostObjectActionStart(ctx echo.Context, namespace, kind, name string) error { + return a.PostObjectAction(ctx, namespace, kind, name, instance.MonitorGlobalExpectStarted) } -func (a *DaemonApi) PostObjectActionStop(ctx echo.Context) error { - return a.PostObjectAction(ctx, instance.MonitorGlobalExpectStopped) +func (a *DaemonApi) PostObjectActionStop(ctx echo.Context, namespace, kind, name string) error { + return a.PostObjectAction(ctx, namespace, kind, name, instance.MonitorGlobalExpectStopped) } -func (a *DaemonApi) PostObjectActionUnfreeze(ctx echo.Context) error { - return a.PostObjectAction(ctx, instance.MonitorGlobalExpectThawed) +func (a *DaemonApi) PostObjectActionUnfreeze(ctx echo.Context, namespace, kind, name string) error { + return a.PostObjectAction(ctx, namespace, kind, name, instance.MonitorGlobalExpectThawed) } -func (a *DaemonApi) PostObjectActionUnprovision(ctx echo.Context) error { - return a.PostObjectAction(ctx, instance.MonitorGlobalExpectUnprovisioned) +func (a *DaemonApi) PostObjectActionUnprovision(ctx echo.Context, namespace, kind, name string) error { + return a.PostObjectAction(ctx, namespace, kind, name, instance.MonitorGlobalExpectUnprovisioned) } -func (a *DaemonApi) PostObjectAction(ctx echo.Context, globalExpect instance.MonitorGlobalExpect) error { +func (a *DaemonApi) PostObjectAction(ctx echo.Context, namespace, kind, name string, globalExpect instance.MonitorGlobalExpect) error { var ( - payload = api.PostObjectAction{} - value = instance.MonitorUpdate{} - p path.T - err error + value = instance.MonitorUpdate{} + p path.T + err error ) - if err := ctx.Bind(&payload); err != nil { - return JSONProblem(ctx, http.StatusBadRequest, "Invalid Body", err.Error()) - } - p, err = path.Parse(payload.Path) - if err != nil { - return JSONProblemf(ctx, http.StatusBadRequest, "Invalid Body", "Invalid path: %s", payload.Path) + if p, err = path.New(name, namespace, kind); err != nil { + return JSONProblem(ctx, http.StatusBadRequest, "Invalid parameters", err.Error()) } if instMon := instance.MonitorData.Get(p, hostname.Hostname()); instMon == nil { - return JSONProblemf(ctx, http.StatusNotFound, "Not found", "Object does not exist: %s", payload.Path) + return JSONProblemf(ctx, http.StatusNotFound, "Not found", "Object does not exist: %s", p) } value = instance.MonitorUpdate{ GlobalExpect: &globalExpect, diff --git a/daemon/daemonapi/post_object_action_switch.go b/daemon/daemonapi/post_object_action_switch.go index fb6b1ddd1..fe6e1b6fd 100644 --- a/daemon/daemonapi/post_object_action_switch.go +++ b/daemon/daemonapi/post_object_action_switch.go @@ -16,7 +16,7 @@ import ( "github.com/opensvc/om3/util/pubsub" ) -func (a *DaemonApi) PostObjectActionSwitch(ctx echo.Context) error { +func (a *DaemonApi) PostObjectActionSwitch(ctx echo.Context, namespace, kind, name string) error { var ( payload = api.PostObjectActionSwitch{} value = instance.MonitorUpdate{} @@ -26,12 +26,12 @@ func (a *DaemonApi) PostObjectActionSwitch(ctx echo.Context) error { if err := ctx.Bind(&payload); err != nil { return JSONProblem(ctx, http.StatusBadRequest, "Invalid Body", err.Error()) } - p, err = path.Parse(payload.Path) + p, err = path.New(name, namespace, kind) if err != nil { - return JSONProblemf(ctx, http.StatusBadRequest, "Invalid Body", "Invalid path: %s", payload.Path) + return JSONProblemf(ctx, http.StatusBadRequest, "Invalid parameters", "%s", err) } if instMon := instance.MonitorData.Get(p, hostname.Hostname()); instMon == nil { - return JSONProblemf(ctx, http.StatusNotFound, "Not found", "Object does not exist: %s", payload.Path) + return JSONProblemf(ctx, http.StatusNotFound, "Not found", "Object does not exist: %s", p) } globalExpect := instance.MonitorGlobalExpectPlacedAt options := instance.MonitorGlobalExpectOptionsPlacedAt{} diff --git a/daemon/daemonapi/post_object_clear.go b/daemon/daemonapi/post_object_clear.go index bd80c6031..fa7c6fd0e 100644 --- a/daemon/daemonapi/post_object_clear.go +++ b/daemon/daemonapi/post_object_clear.go @@ -7,30 +7,26 @@ import ( "github.com/opensvc/om3/core/instance" "github.com/opensvc/om3/core/path" - "github.com/opensvc/om3/daemon/api" "github.com/opensvc/om3/daemon/msgbus" "github.com/opensvc/om3/util/hostname" "github.com/opensvc/om3/util/pubsub" ) -func (a *DaemonApi) PostObjectClear(ctx echo.Context) error { - var ( - payload = api.PostObjectClear{} - p path.T - err error - ) - if err := ctx.Bind(&payload); err != nil { - return JSONProblemf(ctx, http.StatusBadRequest, "Invalid body", "%s", err) - } - p, err = path.Parse(payload.Path) +func (a *DaemonApi) PostInstanceClear(ctx echo.Context, namespace, kind, name string) error { + p, err := path.New(name, namespace, kind) if err != nil { - return JSONProblemf(ctx, http.StatusBadRequest, "Invalid body", "Error parsing path %s: %s", payload.Path, err) + return JSONProblemf(ctx, http.StatusBadRequest, "Invalid parameters", "%s", err) + return err } state := instance.MonitorStateIdle instMonitor := instance.MonitorUpdate{ State: &state, } - a.EventBus.Pub(&msgbus.SetInstanceMonitor{Path: p, Node: hostname.Hostname(), Value: instMonitor}, - pubsub.Label{"path", p.String()}, labelApi) + msg := msgbus.SetInstanceMonitor{ + Path: p, + Node: hostname.Hostname(), + Value: instMonitor, + } + a.EventBus.Pub(&msg, pubsub.Label{"path", p.String()}, labelApi) return ctx.JSON(http.StatusOK, nil) } diff --git a/daemon/daemonapi/post_object_progress.go b/daemon/daemonapi/post_object_progress.go index 0188f703a..d369d6570 100644 --- a/daemon/daemonapi/post_object_progress.go +++ b/daemon/daemonapi/post_object_progress.go @@ -13,23 +13,24 @@ import ( "github.com/opensvc/om3/util/pubsub" ) -func (a *DaemonApi) PostObjectProgress(ctx echo.Context) error { +func (a *DaemonApi) PostInstanceProgress(ctx echo.Context, namespace, kind, name string) error { var ( - payload = api.PostObjectProgress{} - p path.T - err error + payload = api.PostInstanceProgress{} isPartial bool ) - if err := ctx.Bind(&payload); err != nil { - return JSONProblem(ctx, http.StatusBadRequest, "Failed to json decode request body", err.Error()) - } - p, err = path.Parse(payload.Path) + p, err := path.New(name, namespace, kind) if err != nil { - return JSONProblemf(ctx, http.StatusBadRequest, "Invalid field", "path: %s", payload.Path) + JSONProblem(ctx, http.StatusBadRequest, "Invalid parameters", err.Error()) + return err + } + if err := ctx.Bind(&payload); err != nil { + JSONProblem(ctx, http.StatusBadRequest, "Failed to json decode request body", err.Error()) + return err } state, ok := instance.MonitorStateValues[payload.State] if !ok { - return JSONProblemf(ctx, http.StatusBadRequest, "Invalid field", "state: %s", payload.State) + JSONProblemf(ctx, http.StatusBadRequest, "Invalid field", "state: %s", payload.State) + return err } if payload.IsPartial != nil { isPartial = *payload.IsPartial diff --git a/daemon/remoteconfig/main.go b/daemon/remoteconfig/main.go index 937e867a0..c7a2063de 100644 --- a/daemon/remoteconfig/main.go +++ b/daemon/remoteconfig/main.go @@ -57,7 +57,7 @@ func fetchFromApi(cli *client.T, p path.T) (b []byte, updated time.Time, err err var ( resp *api.GetObjectFileResponse ) - resp, err = cli.GetObjectFileWithResponse(context.Background(), &api.GetObjectFileParams{Path: p.String()}) + resp, err = cli.GetObjectFileWithResponse(context.Background(), p.Namespace, p.Kind.String(), p.Name) if err != nil { return } else if resp.StatusCode() != http.StatusOK {