This is an automated email from the ASF dual-hosted git repository.
DImuthuUpe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/master by this push:
new 10a601345d chore(mcp): regenerate Go client from docs/openapi.yaml
(#746)
10a601345d is described below
commit 10a601345dc3894af4156638c772e99ab76223f2
Author: ShivangMishra <[email protected]>
AuthorDate: Sun Nov 8 02:19:17 2026 +0530
chore(mcp): regenerate Go client from docs/openapi.yaml (#746)
#740 and #744 changed docs/openapi.yaml before #738 merged, leaving
internal/mcp/client/client.gen.go stale and failing the CI
generated-code check. Regenerated with 'go generate ./internal/mcp/client/'.
---
internal/mcp/client/client.gen.go | 1975 ++++++++++++++++++++++++++++++++++---
1 file changed, 1814 insertions(+), 161 deletions(-)
diff --git a/internal/mcp/client/client.gen.go
b/internal/mcp/client/client.gen.go
index d38bbd2229..d09375af0a 100644
--- a/internal/mcp/client/client.gen.go
+++ b/internal/mcp/client/client.gen.go
@@ -231,6 +231,48 @@ func (e ProcessType) Valid() bool {
}
}
+// Defines values for ProcessWorkflowStatusType.
+const (
+ ProcessWorkflowStatusTypeFAILED ProcessWorkflowStatusType = "FAILED"
+ ProcessWorkflowStatusTypeRUNNING ProcessWorkflowStatusType = "RUNNING"
+ ProcessWorkflowStatusTypeSUCCEEDED ProcessWorkflowStatusType =
"SUCCEEDED"
+)
+
+// Valid indicates whether the value is a known member of the
ProcessWorkflowStatusType enum.
+func (e ProcessWorkflowStatusType) Valid() bool {
+ switch e {
+ case ProcessWorkflowStatusTypeFAILED:
+ return true
+ case ProcessWorkflowStatusTypeRUNNING:
+ return true
+ case ProcessWorkflowStatusTypeSUCCEEDED:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for ProcessWorkflowType.
+const (
+ BATCHJOBCOMPLETION ProcessWorkflowType = "BATCH_JOB_COMPLETION"
+ BATCHJOBSUBMISSION ProcessWorkflowType = "BATCH_JOB_SUBMISSION"
+ JOBMONITORING ProcessWorkflowType = "JOB_MONITORING"
+)
+
+// Valid indicates whether the value is a known member of the
ProcessWorkflowType enum.
+func (e ProcessWorkflowType) Valid() bool {
+ switch e {
+ case BATCHJOBCOMPLETION:
+ return true
+ case BATCHJOBSUBMISSION:
+ return true
+ case JOBMONITORING:
+ return true
+ default:
+ return false
+ }
+}
+
// Defines values for ProvisionStatus.
const (
ProvisionStatusDEPROVISIONED ProvisionStatus = "DEPROVISIONED"
@@ -941,8 +983,11 @@ type ProcessRequest struct {
type ProcessResponse struct {
BatchProcess *BatchProcessResponse `json:"batchProcess,omitempty"`
LastStatusId *openapi_types.UUID `json:"lastStatusId,omitempty"`
- ProcessId openapi_types.UUID `json:"processId"`
- ProcessType *ProcessType `json:"processType,omitempty"`
+
+ // LastWorkflowId The newest recorded workflow's `processWorkflowId`,
if any.
+ LastWorkflowId *openapi_types.UUID `json:"lastWorkflowId,omitempty"`
+ ProcessId openapi_types.UUID `json:"processId"`
+ ProcessType *ProcessType `json:"processType,omitempty"`
// UserId The owner, taken from the token at creation.
UserId *string `json:"userId,omitempty"`
@@ -954,6 +999,12 @@ type ProcessStatusType string
// ProcessType defines model for ProcessType.
type ProcessType string
+// ProcessWorkflowStatusType defines model for ProcessWorkflowStatusType.
+type ProcessWorkflowStatusType string
+
+// ProcessWorkflowType defines model for ProcessWorkflowType.
+type ProcessWorkflowType string
+
// ProvisionStatus The lifecycle state of a registered dataset. `REGISTERD` is
spelled that way
// on the wire.
type ProvisionStatus string
@@ -1212,6 +1263,25 @@ type UserResponse struct {
// UserStatus defines model for UserStatus.
type UserStatus string
+// WorkflowResponse One workflow started for a process. There is no request
counterpart:
+// workflows are recorded by the server when it starts a workflow, never
created
+// from a client body.
+type WorkflowResponse struct {
+ ProcessId *openapi_types.UUID `json:"processId,omitempty"`
+ ProcessWorkflowId openapi_types.UUID `json:"processWorkflowId"`
+
+ // Status `RUNNING` once the workflow is started, then `SUCCEEDED` or
`FAILED`. `null`
+ // for workflows recorded before the server tracked it.
+ Status *ProcessWorkflowStatusType `json:"status,omitempty"`
+
+ // Timestamp When the workflow was recorded, in milliseconds since the
epoch.
+ Timestamp *int64 `json:"timestamp,omitempty"`
+
+ // WorkflowId The id the workflow engine knows the run by.
+ WorkflowId string `json:"workflowId"`
+ WorkflowType *ProcessWorkflowType `json:"workflowType,omitempty"`
+}
+
// DataProductId defines model for DataProductId.
type DataProductId = openapi_types.UUID
@@ -1286,6 +1356,15 @@ type ListProcessesParams struct {
DeploymentId *string `form:"deploymentId,omitempty"
json:"deploymentId,omitempty"`
}
+// DiscoverPartitionsJSONBody defines parameters for DiscoverPartitions.
+type DiscoverPartitionsJSONBody struct {
+ HeadnodeHost string `json:"headnodeHost"`
+ HeadnodePort *int `json:"headnodePort,omitempty"`
+ LoginUser string `json:"loginUser"`
+ SlurmHome *string `json:"slurmHome,omitempty"`
+ SshCredentialId string `json:"sshCredentialId"`
+}
+
// ListBatchDeploymentsParams defines parameters for ListBatchDeployments.
type ListBatchDeploymentsParams struct {
// TemplateId Return only the deployments of this template.
@@ -1385,6 +1464,9 @@ type
PutApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesSharingIdJSONRequestBo
// CreateSlurmClusterJSONRequestBody defines body for CreateSlurmCluster for
application/json ContentType.
type CreateSlurmClusterJSONRequestBody = SlurmClusterRequest
+// DiscoverPartitionsJSONRequestBody defines body for DiscoverPartitions for
application/json ContentType.
+type DiscoverPartitionsJSONRequestBody DiscoverPartitionsJSONBody
+
// UpdateSlurmClusterJSONRequestBody defines body for UpdateSlurmCluster for
application/json ContentType.
type UpdateSlurmClusterJSONRequestBody = SlurmClusterRequest
@@ -1860,6 +1942,14 @@ type ClientInterface interface {
// Corresponds with POST /api/v1/processes (the `CreateProcess`
operationId).
CreateProcess(ctx context.Context, body CreateProcessJSONRequestBody,
reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ListMyProcesses List the caller's processes
+ //
+ // Every process the caller owns. Unlike the unfiltered listing it
needs no
+ // platform role.
+ //
+ // Corresponds with GET /api/v1/processes/me (the `ListMyProcesses`
operationId).
+ ListMyProcesses(ctx context.Context, reqEditors ...RequestEditorFn)
(*http.Response, error)
+
// DeleteProcess Delete a process
//
// Requires `ADMIN` or `SUPER_ADMIN` authority.
@@ -2082,6 +2172,18 @@ type ClientInterface interface {
// Corresponds with POST /api/v1/processes/{processId}/launch (the
`LaunchProcess` operationId).
LaunchProcess(ctx context.Context, processId ProcessId, reqEditors
...RequestEditorFn) (*http.Response, error)
+ // RetryProcess Retry a process's failed workflow
+ //
+ // Owner only. Takes no body. Starts again the workflow whose latest
run failed —
+ // the job submission, or, once that succeeded, the job completion —
and skips
+ // every task that has already completed, so the run picks up at the
step that
+ // failed. Refused with `409` while a workflow is still running, before
the
+ // process is launched, or when no workflow's latest run failed.
Answers `202`
+ // with the process as it now stands.
+ //
+ // Corresponds with POST /api/v1/processes/{processId}/retry (the
`RetryProcess` operationId).
+ RetryProcess(ctx context.Context, processId ProcessId, reqEditors
...RequestEditorFn) (*http.Response, error)
+
// ListProcessStatuses List a process's status history
//
// Read-only. Statuses are recorded internally — by process submission
and by
@@ -2096,6 +2198,22 @@ type ClientInterface interface {
// Corresponds with GET
/api/v1/processes/{processId}/statuses/{statusId} (the `GetProcessStatus`
operationId).
GetProcessStatus(ctx context.Context, processId ProcessId, statusId
string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ListProcessWorkflows List the workflows started for a process
+ //
+ // Read-only, oldest first. Workflows are recorded by the server when
it starts a
+ // workflow for the process, never accepted from a client, so there is
no `POST`
+ // or `PUT` here. Only the process's owner or an admin may read them.
+ //
+ // Corresponds with GET /api/v1/processes/{processId}/workflows (the
`ListProcessWorkflows` operationId).
+ ListProcessWorkflows(ctx context.Context, processId ProcessId,
reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetProcessWorkflow Read one recorded process workflow
+ //
+ // A workflow of another process is a `404` through this process's path.
+ //
+ // Corresponds with GET
/api/v1/processes/{processId}/workflows/{processWorkflowId} (the
`GetProcessWorkflow` operationId).
+ GetProcessWorkflow(ctx context.Context, processId ProcessId,
processWorkflowId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// ListSCPDataStorages List all SCP data storages
//
// Requires `ADMIN` or `SUPER_ADMIN` authority.
@@ -2293,6 +2411,15 @@ type ClientInterface interface {
// Corresponds with PUT
/api/v1/slurm-cluster-configs/{slurmClusterConfigId} (the
`UpdateSlurmClusterConfig` operationId).
UpdateSlurmClusterConfig(ctx context.Context, slurmClusterConfigId
SlurmClusterConfigId, body UpdateSlurmClusterConfigJSONRequestBody, reqEditors
...RequestEditorFn) (*http.Response, error)
+ // DiscoverAllocations Discover the allocations a config's login may
charge
+ //
+ // Logs in under the config and lists the Slurm accounts its login may
charge,
+ // from sacctmgr (falling back to sshare). Open to anyone who may
submit under the
+ // config.
+ //
+ // Corresponds with POST
/api/v1/slurm-cluster-configs/{slurmClusterConfigId}/discover-allocations (the
`DiscoverAllocations` operationId).
+ DiscoverAllocations(ctx context.Context, slurmClusterConfigId string,
reqEditors ...RequestEditorFn) (*http.Response, error)
+
// GetApiV1SlurmClusterConfigsSlurmClusterConfigIdShares List who has
access to this Slurm cluster config
//
// Both principal kinds together. Restricted to the owner and platform
admins: the list names who holds the record, which is more than a grantee needs
to know.
@@ -2372,6 +2499,28 @@ type ClientInterface interface {
// Corresponds with POST /api/v1/slurm-clusters (the
`CreateSlurmCluster` operationId).
CreateSlurmCluster(ctx context.Context, body
CreateSlurmClusterJSONRequestBody, reqEditors ...RequestEditorFn)
(*http.Response, error)
+ // DiscoverPartitionsWithBody Discover a head node's partitions
+ //
+ // Logs in to the head node under a credential the caller owns and
reads its
+ // partitions with scontrol (and sinfo, for per-node details). Admin
only. The
+ // result is in the shape a cluster registration's `partitions` takes.
+ //
+ // Takes any type of body and a specified content type.
+ //
+ // Corresponds with POST /api/v1/slurm-clusters/discover-partitions
(the `DiscoverPartitions` operationId).
+ DiscoverPartitionsWithBody(ctx context.Context, contentType string,
body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DiscoverPartitions Discover a head node's partitions
+ //
+ // Logs in to the head node under a credential the caller owns and
reads its
+ // partitions with scontrol (and sinfo, for per-node details). Admin
only. The
+ // result is in the shape a cluster registration's `partitions` takes.
+ //
+ // Takes a body of the `application/json` content type.
+ //
+ // Corresponds with POST /api/v1/slurm-clusters/discover-partitions
(the `DiscoverPartitions` operationId).
+ DiscoverPartitions(ctx context.Context, body
DiscoverPartitionsJSONRequestBody, reqEditors ...RequestEditorFn)
(*http.Response, error)
+
// DeleteSlurmCluster Delete a Slurm cluster
//
// Requires `ADMIN` or `SUPER_ADMIN` authority.
@@ -3534,6 +3683,24 @@ func (c *Client) CreateProcess(ctx context.Context, body
CreateProcessJSONReques
return c.Client.Do(req)
}
+// ListMyProcesses List the caller's processes
+//
+// Every process the caller owns. Unlike the unfiltered listing it needs no
+// platform role.
+//
+// Corresponds with GET /api/v1/processes/me (the `ListMyProcesses`
operationId).
+func (c *Client) ListMyProcesses(ctx context.Context, reqEditors
...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListMyProcessesRequest(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)
+}
+
// DeleteProcess Delete a process
//
// Requires `ADMIN` or `SUPER_ADMIN` authority.
@@ -4086,6 +4253,28 @@ func (c *Client) LaunchProcess(ctx context.Context,
processId ProcessId, reqEdit
return c.Client.Do(req)
}
+// RetryProcess Retry a process's failed workflow
+//
+// Owner only. Takes no body. Starts again the workflow whose latest run
failed —
+// the job submission, or, once that succeeded, the job completion — and skips
+// every task that has already completed, so the run picks up at the step that
+// failed. Refused with `409` while a workflow is still running, before the
+// process is launched, or when no workflow's latest run failed. Answers `202`
+// with the process as it now stands.
+//
+// Corresponds with POST /api/v1/processes/{processId}/retry (the
`RetryProcess` operationId).
+func (c *Client) RetryProcess(ctx context.Context, processId ProcessId,
reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewRetryProcessRequest(c.Server, processId)
+ 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)
+}
+
// ListProcessStatuses List a process's status history
//
// Read-only. Statuses are recorded internally — by process submission and by
@@ -4120,6 +4309,42 @@ func (c *Client) GetProcessStatus(ctx context.Context,
processId ProcessId, stat
return c.Client.Do(req)
}
+// ListProcessWorkflows List the workflows started for a process
+//
+// Read-only, oldest first. Workflows are recorded by the server when it
starts a
+// workflow for the process, never accepted from a client, so there is no
`POST`
+// or `PUT` here. Only the process's owner or an admin may read them.
+//
+// Corresponds with GET /api/v1/processes/{processId}/workflows (the
`ListProcessWorkflows` operationId).
+func (c *Client) ListProcessWorkflows(ctx context.Context, processId
ProcessId, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListProcessWorkflowsRequest(c.Server, processId)
+ 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)
+}
+
+// GetProcessWorkflow Read one recorded process workflow
+//
+// A workflow of another process is a `404` through this process's path.
+//
+// Corresponds with GET
/api/v1/processes/{processId}/workflows/{processWorkflowId} (the
`GetProcessWorkflow` operationId).
+func (c *Client) GetProcessWorkflow(ctx context.Context, processId ProcessId,
processWorkflowId string, reqEditors ...RequestEditorFn) (*http.Response,
error) {
+ req, err := NewGetProcessWorkflowRequest(c.Server, processId,
processWorkflowId)
+ 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)
+}
+
// ListSCPDataStorages List all SCP data storages
//
// Requires `ADMIN` or `SUPER_ADMIN` authority.
@@ -4557,6 +4782,25 @@ func (c *Client) UpdateSlurmClusterConfig(ctx
context.Context, slurmClusterConfi
return c.Client.Do(req)
}
+// DiscoverAllocations Discover the allocations a config's login may charge
+//
+// Logs in under the config and lists the Slurm accounts its login may charge,
+// from sacctmgr (falling back to sshare). Open to anyone who may submit under
the
+// config.
+//
+// Corresponds with POST
/api/v1/slurm-cluster-configs/{slurmClusterConfigId}/discover-allocations (the
`DiscoverAllocations` operationId).
+func (c *Client) DiscoverAllocations(ctx context.Context, slurmClusterConfigId
string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewDiscoverAllocationsRequest(c.Server,
slurmClusterConfigId)
+ 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)
+}
+
// GetApiV1SlurmClusterConfigsSlurmClusterConfigIdShares List who has access
to this Slurm cluster config
//
// Both principal kinds together. Restricted to the owner and platform admins:
the list names who holds the record, which is more than a grantee needs to know.
@@ -4726,6 +4970,48 @@ func (c *Client) CreateSlurmCluster(ctx context.Context,
body CreateSlurmCluster
return c.Client.Do(req)
}
+// DiscoverPartitionsWithBody Discover a head node's partitions
+//
+// Logs in to the head node under a credential the caller owns and reads its
+// partitions with scontrol (and sinfo, for per-node details). Admin only. The
+// result is in the shape a cluster registration's `partitions` takes.
+//
+// Takes any type of body and a specified content type.
+//
+// Corresponds with POST /api/v1/slurm-clusters/discover-partitions (the
`DiscoverPartitions` operationId).
+func (c *Client) DiscoverPartitionsWithBody(ctx context.Context, contentType
string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewDiscoverPartitionsRequestWithBody(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)
+}
+
+// DiscoverPartitions Discover a head node's partitions
+//
+// Logs in to the head node under a credential the caller owns and reads its
+// partitions with scontrol (and sinfo, for per-node details). Admin only. The
+// result is in the shape a cluster registration's `partitions` takes.
+//
+// Takes a body of the `application/json` content type.
+//
+// Corresponds with POST /api/v1/slurm-clusters/discover-partitions (the
`DiscoverPartitions` operationId).
+func (c *Client) DiscoverPartitions(ctx context.Context, body
DiscoverPartitionsJSONRequestBody, reqEditors ...RequestEditorFn)
(*http.Response, error) {
+ req, err := NewDiscoverPartitionsRequest(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)
+}
+
// DeleteSlurmCluster Delete a Slurm cluster
//
// Requires `ADMIN` or `SUPER_ADMIN` authority.
@@ -6716,6 +7002,33 @@ func NewCreateProcessRequestWithBody(server string,
contentType string, body io.
return req, nil
}
+// NewListMyProcessesRequest constructs an http.Request for the
ListMyProcesses method
+func NewListMyProcessesRequest(server string) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/processes/me")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
// NewDeleteProcessRequest constructs an http.Request for the DeleteProcess
method
func NewDeleteProcessRequest(server string, processId ProcessId)
(*http.Request, error) {
var err error
@@ -7733,8 +8046,8 @@ func NewLaunchProcessRequest(server string, processId
ProcessId) (*http.Request,
return req, nil
}
-// NewListProcessStatusesRequest constructs an http.Request for the
ListProcessStatuses method
-func NewListProcessStatusesRequest(server string, processId ProcessId)
(*http.Request, error) {
+// NewRetryProcessRequest constructs an http.Request for the RetryProcess
method
+func NewRetryProcessRequest(server string, processId ProcessId)
(*http.Request, error) {
var err error
var pathParam0 string
@@ -7749,7 +8062,7 @@ func NewListProcessStatusesRequest(server string,
processId ProcessId) (*http.Re
return nil, err
}
- operationPath := fmt.Sprintf("/api/v1/processes/%s/statuses",
pathParam0)
+ operationPath := fmt.Sprintf("/api/v1/processes/%s/retry", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -7759,7 +8072,7 @@ func NewListProcessStatusesRequest(server string,
processId ProcessId) (*http.Re
return nil, err
}
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
if err != nil {
return nil, err
}
@@ -7767,8 +8080,8 @@ func NewListProcessStatusesRequest(server string,
processId ProcessId) (*http.Re
return req, nil
}
-// NewGetProcessStatusRequest constructs an http.Request for the
GetProcessStatus method
-func NewGetProcessStatusRequest(server string, processId ProcessId, statusId
string) (*http.Request, error) {
+// NewListProcessStatusesRequest constructs an http.Request for the
ListProcessStatuses method
+func NewListProcessStatusesRequest(server string, processId ProcessId)
(*http.Request, error) {
var err error
var pathParam0 string
@@ -7778,19 +8091,12 @@ func NewGetProcessStatusRequest(server string,
processId ProcessId, statusId str
return nil, err
}
- var pathParam1 string
-
- pathParam1, err = runtime.StyleParamWithOptions("simple", false,
"statusId", statusId, runtime.StyleParamOptions{ParamLocation:
runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
-
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
- operationPath := fmt.Sprintf("/api/v1/processes/%s/statuses/%s",
pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/api/v1/processes/%s/statuses",
pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -7808,16 +8114,30 @@ func NewGetProcessStatusRequest(server string,
processId ProcessId, statusId str
return req, nil
}
-// NewListSCPDataStoragesRequest constructs an http.Request for the
ListSCPDataStorages method
-func NewListSCPDataStoragesRequest(server string) (*http.Request, error) {
+// NewGetProcessStatusRequest constructs an http.Request for the
GetProcessStatus method
+func NewGetProcessStatusRequest(server string, processId ProcessId, statusId
string) (*http.Request, error) {
var err error
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false,
"processId", processId, runtime.StyleParamOptions{ParamLocation:
runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false,
"statusId", statusId, runtime.StyleParamOptions{ParamLocation:
runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
- operationPath := fmt.Sprintf("/api/v1/scp-data-storages")
+ operationPath := fmt.Sprintf("/api/v1/processes/%s/statuses/%s",
pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -7835,27 +8155,23 @@ func NewListSCPDataStoragesRequest(server string)
(*http.Request, error) {
return req, nil
}
-// NewCreateSCPDataStorageRequest calls the generic CreateSCPDataStorage
builder with application/json body
-func NewCreateSCPDataStorageRequest(server string, body
CreateSCPDataStorageJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
+// NewListProcessWorkflowsRequest constructs an http.Request for the
ListProcessWorkflows method
+func NewListProcessWorkflowsRequest(server string, processId ProcessId)
(*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false,
"processId", processId, runtime.StyleParamOptions{ParamLocation:
runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
- bodyReader = bytes.NewReader(buf)
- return NewCreateSCPDataStorageRequestWithBody(server,
"application/json", bodyReader)
-}
-
-// NewCreateSCPDataStorageRequestWithBody constructs an http.Request for the
CreateSCPDataStorage method, with any body, and a specified content type
-func NewCreateSCPDataStorageRequestWithBody(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("/api/v1/scp-data-storages")
+ operationPath := fmt.Sprintf("/api/v1/processes/%s/workflows",
pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -7865,26 +8181,38 @@ func NewCreateSCPDataStorageRequestWithBody(server
string, contentType string, b
return nil, err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
- req.Header.Add("Content-Type", contentType)
-
return req, nil
}
-// NewListMySCPDataStoragesRequest constructs an http.Request for the
ListMySCPDataStorages method
-func NewListMySCPDataStoragesRequest(server string) (*http.Request, error) {
+// NewGetProcessWorkflowRequest constructs an http.Request for the
GetProcessWorkflow method
+func NewGetProcessWorkflowRequest(server string, processId ProcessId,
processWorkflowId string) (*http.Request, error) {
var err error
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false,
"processId", processId, runtime.StyleParamOptions{ParamLocation:
runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false,
"processWorkflowId", processWorkflowId,
runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type:
"string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
- operationPath := fmt.Sprintf("/api/v1/scp-data-storages/me")
+ operationPath := fmt.Sprintf("/api/v1/processes/%s/workflows/%s",
pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -7902,8 +8230,8 @@ func NewListMySCPDataStoragesRequest(server string)
(*http.Request, error) {
return req, nil
}
-// NewListSCPDataStoragesSharedWithMeRequest constructs an http.Request for
the ListSCPDataStoragesSharedWithMe method
-func NewListSCPDataStoragesSharedWithMeRequest(server string) (*http.Request,
error) {
+// NewListSCPDataStoragesRequest constructs an http.Request for the
ListSCPDataStorages method
+func NewListSCPDataStoragesRequest(server string) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
@@ -7911,7 +8239,7 @@ func NewListSCPDataStoragesSharedWithMeRequest(server
string) (*http.Request, er
return nil, err
}
- operationPath := fmt.Sprintf("/api/v1/scp-data-storages/shared-with-me")
+ operationPath := fmt.Sprintf("/api/v1/scp-data-storages")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -7929,8 +8257,102 @@ func NewListSCPDataStoragesSharedWithMeRequest(server
string) (*http.Request, er
return req, nil
}
-// NewDeleteSCPDataStorageRequest constructs an http.Request for the
DeleteSCPDataStorage method
-func NewDeleteSCPDataStorageRequest(server string, dataStorageId
DataStorageId) (*http.Request, error) {
+// NewCreateSCPDataStorageRequest calls the generic CreateSCPDataStorage
builder with application/json body
+func NewCreateSCPDataStorageRequest(server string, body
CreateSCPDataStorageJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateSCPDataStorageRequestWithBody(server,
"application/json", bodyReader)
+}
+
+// NewCreateSCPDataStorageRequestWithBody constructs an http.Request for the
CreateSCPDataStorage method, with any body, and a specified content type
+func NewCreateSCPDataStorageRequestWithBody(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("/api/v1/scp-data-storages")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewListMySCPDataStoragesRequest constructs an http.Request for the
ListMySCPDataStorages method
+func NewListMySCPDataStoragesRequest(server string) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/scp-data-storages/me")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewListSCPDataStoragesSharedWithMeRequest constructs an http.Request for
the ListSCPDataStoragesSharedWithMe method
+func NewListSCPDataStoragesSharedWithMeRequest(server string) (*http.Request,
error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/scp-data-storages/shared-with-me")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewDeleteSCPDataStorageRequest constructs an http.Request for the
DeleteSCPDataStorage method
+func NewDeleteSCPDataStorageRequest(server string, dataStorageId
DataStorageId) (*http.Request, error) {
var err error
var pathParam0 string
@@ -8456,6 +8878,40 @@ func NewUpdateSlurmClusterConfigRequestWithBody(server
string, slurmClusterConfi
return req, nil
}
+// NewDiscoverAllocationsRequest constructs an http.Request for the
DiscoverAllocations method
+func NewDiscoverAllocationsRequest(server string, slurmClusterConfigId string)
(*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false,
"slurmClusterConfigId", slurmClusterConfigId,
runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type:
"string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath :=
fmt.Sprintf("/api/v1/slurm-cluster-configs/%s/discover-allocations", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
// NewGetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesRequest constructs
an http.Request for the GetApiV1SlurmClusterConfigsSlurmClusterConfigIdShares
method
func NewGetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesRequest(server
string, slurmClusterConfigId SlurmClusterConfigId) (*http.Request, error) {
var err error
@@ -8699,6 +9155,46 @@ func NewCreateSlurmClusterRequestWithBody(server string,
contentType string, bod
return req, nil
}
+// NewDiscoverPartitionsRequest calls the generic DiscoverPartitions builder
with application/json body
+func NewDiscoverPartitionsRequest(server string, body
DiscoverPartitionsJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewDiscoverPartitionsRequestWithBody(server, "application/json",
bodyReader)
+}
+
+// NewDiscoverPartitionsRequestWithBody constructs an http.Request for the
DiscoverPartitions method, with any body, and a specified content type
+func NewDiscoverPartitionsRequestWithBody(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("/api/v1/slurm-clusters/discover-partitions")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
// NewDeleteSlurmClusterRequest constructs an http.Request for the
DeleteSlurmCluster method
func NewDeleteSlurmClusterRequest(server string, slurmClusterId
SlurmClusterId) (*http.Request, error) {
var err error
@@ -10362,6 +10858,16 @@ type ClientWithResponsesInterface interface {
// Corresponds with POST /api/v1/processes (the `CreateProcess`
operationId).
CreateProcessWithResponse(ctx context.Context, body
CreateProcessJSONRequestBody, reqEditors ...RequestEditorFn)
(*CreateProcessResponse, error)
+ // ListMyProcessesWithResponse List the caller's processes
+ //
+ // Every process the caller owns. Unlike the unfiltered listing it
needs no
+ // platform role.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ //
+ // Corresponds with GET /api/v1/processes/me (the `ListMyProcesses`
operationId).
+ ListMyProcessesWithResponse(ctx context.Context, reqEditors
...RequestEditorFn) (*ListMyProcessesResponse, error)
+
// DeleteProcessWithResponse Delete a process
//
// Requires `ADMIN` or `SUPER_ADMIN` authority.
@@ -10614,6 +11120,20 @@ type ClientWithResponsesInterface interface {
// Corresponds with POST /api/v1/processes/{processId}/launch (the
`LaunchProcess` operationId).
LaunchProcessWithResponse(ctx context.Context, processId ProcessId,
reqEditors ...RequestEditorFn) (*LaunchProcessResponse, error)
+ // RetryProcessWithResponse Retry a process's failed workflow
+ //
+ // Owner only. Takes no body. Starts again the workflow whose latest
run failed —
+ // the job submission, or, once that succeeded, the job completion —
and skips
+ // every task that has already completed, so the run picks up at the
step that
+ // failed. Refused with `409` while a workflow is still running, before
the
+ // process is launched, or when no workflow's latest run failed.
Answers `202`
+ // with the process as it now stands.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ //
+ // Corresponds with POST /api/v1/processes/{processId}/retry (the
`RetryProcess` operationId).
+ RetryProcessWithResponse(ctx context.Context, processId ProcessId,
reqEditors ...RequestEditorFn) (*RetryProcessResponse, error)
+
// ListProcessStatusesWithResponse List a process's status history
//
// Read-only. Statuses are recorded internally — by process submission
and by
@@ -10632,6 +11152,26 @@ type ClientWithResponsesInterface interface {
// Corresponds with GET
/api/v1/processes/{processId}/statuses/{statusId} (the `GetProcessStatus`
operationId).
GetProcessStatusWithResponse(ctx context.Context, processId ProcessId,
statusId string, reqEditors ...RequestEditorFn) (*GetProcessStatusResponse,
error)
+ // ListProcessWorkflowsWithResponse List the workflows started for a
process
+ //
+ // Read-only, oldest first. Workflows are recorded by the server when
it starts a
+ // workflow for the process, never accepted from a client, so there is
no `POST`
+ // or `PUT` here. Only the process's owner or an admin may read them.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ //
+ // Corresponds with GET /api/v1/processes/{processId}/workflows (the
`ListProcessWorkflows` operationId).
+ ListProcessWorkflowsWithResponse(ctx context.Context, processId
ProcessId, reqEditors ...RequestEditorFn) (*ListProcessWorkflowsResponse, error)
+
+ // GetProcessWorkflowWithResponse Read one recorded process workflow
+ //
+ // A workflow of another process is a `404` through this process's path.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ //
+ // Corresponds with GET
/api/v1/processes/{processId}/workflows/{processWorkflowId} (the
`GetProcessWorkflow` operationId).
+ GetProcessWorkflowWithResponse(ctx context.Context, processId
ProcessId, processWorkflowId string, reqEditors ...RequestEditorFn)
(*GetProcessWorkflowResponse, error)
+
// ListSCPDataStoragesWithResponse List all SCP data storages
//
// Requires `ADMIN` or `SUPER_ADMIN` authority.
@@ -10853,6 +11393,17 @@ type ClientWithResponsesInterface interface {
// Corresponds with PUT
/api/v1/slurm-cluster-configs/{slurmClusterConfigId} (the
`UpdateSlurmClusterConfig` operationId).
UpdateSlurmClusterConfigWithResponse(ctx context.Context,
slurmClusterConfigId SlurmClusterConfigId, body
UpdateSlurmClusterConfigJSONRequestBody, reqEditors ...RequestEditorFn)
(*UpdateSlurmClusterConfigResponse, error)
+ // DiscoverAllocationsWithResponse Discover the allocations a config's
login may charge
+ //
+ // Logs in under the config and lists the Slurm accounts its login may
charge,
+ // from sacctmgr (falling back to sshare). Open to anyone who may
submit under the
+ // config.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ //
+ // Corresponds with POST
/api/v1/slurm-cluster-configs/{slurmClusterConfigId}/discover-allocations (the
`DiscoverAllocations` operationId).
+ DiscoverAllocationsWithResponse(ctx context.Context,
slurmClusterConfigId string, reqEditors ...RequestEditorFn)
(*DiscoverAllocationsResponse, error)
+
// GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesWithResponse
List who has access to this Slurm cluster config
//
// Both principal kinds together. Restricted to the owner and platform
admins: the list names who holds the record, which is more than a grantee needs
to know.
@@ -10938,6 +11489,28 @@ type ClientWithResponsesInterface interface {
// Corresponds with POST /api/v1/slurm-clusters (the
`CreateSlurmCluster` operationId).
CreateSlurmClusterWithResponse(ctx context.Context, body
CreateSlurmClusterJSONRequestBody, reqEditors ...RequestEditorFn)
(*CreateSlurmClusterResponse, error)
+ // DiscoverPartitionsWithBodyWithResponse Discover a head node's
partitions
+ //
+ // Logs in to the head node under a credential the caller owns and
reads its
+ // partitions with scontrol (and sinfo, for per-node details). Admin
only. The
+ // result is in the shape a cluster registration's `partitions` takes.
+ //
+ // Takes any type of body and a specified content type, and returns a
wrapper object for the known response body format(s).
+ //
+ // Corresponds with POST /api/v1/slurm-clusters/discover-partitions
(the `DiscoverPartitions` operationId).
+ DiscoverPartitionsWithBodyWithResponse(ctx context.Context, contentType
string, body io.Reader, reqEditors ...RequestEditorFn)
(*DiscoverPartitionsResponse, error)
+
+ // DiscoverPartitionsWithResponse Discover a head node's partitions
+ //
+ // Logs in to the head node under a credential the caller owns and
reads its
+ // partitions with scontrol (and sinfo, for per-node details). Admin
only. The
+ // result is in the shape a cluster registration's `partitions` takes.
+ //
+ // Takes a body of the `application/json` content type, and returns a
wrapper object for the known response body format(s).
+ //
+ // Corresponds with POST /api/v1/slurm-clusters/discover-partitions
(the `DiscoverPartitions` operationId).
+ DiscoverPartitionsWithResponse(ctx context.Context, body
DiscoverPartitionsJSONRequestBody, reqEditors ...RequestEditorFn)
(*DiscoverPartitionsResponse, error)
+
// DeleteSlurmClusterWithResponse Delete a Slurm cluster
//
// Requires `ADMIN` or `SUPER_ADMIN` authority.
@@ -13947,6 +14520,75 @@ func (r CreateProcessResponse) ContentType() string {
return ""
}
+// ListMyProcessesResponse401Headers the declared response headers of an HTTP
401 response for ListMyProcesses
+type ListMyProcessesResponse401Headers struct {
+ WWWAuthenticate *string
+}
+
+type ListMyProcessesResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *[]ProcessResponse
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *Unauthorized
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *InternalError
+ // JSON502 the response for an HTTP 502 `application/json` response
+ JSON502 *BadGateway
+ // Headers401 the parsed response headers for an HTTP 401 response
+ Headers401 *ListMyProcessesResponse401Headers
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r ListMyProcessesResponse) GetJSON200() *[]ProcessResponse {
+ return r.JSON200
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r ListMyProcessesResponse) GetJSON401() *Unauthorized {
+ return r.JSON401
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r ListMyProcessesResponse) GetJSON500() *InternalError {
+ return r.JSON500
+}
+
+// GetJSON502 returns the response for an HTTP 502 `application/json` response
+func (r ListMyProcessesResponse) GetJSON502() *BadGateway {
+ return r.JSON502
+}
+
+// GetBody returns the raw response body bytes
+func (r ListMyProcessesResponse) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r ListMyProcessesResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListMyProcessesResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from
the HTTP response headers
+func (r ListMyProcessesResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
// DeleteProcessResponse401Headers the declared response headers of an HTTP
401 response for DeleteProcess
type DeleteProcessResponse401Headers struct {
WWWAuthenticate *string
@@ -15988,15 +16630,98 @@ func (r LaunchProcessResponse) ContentType() string {
return ""
}
-// ListProcessStatusesResponse401Headers the declared response headers of an
HTTP 401 response for ListProcessStatuses
-type ListProcessStatusesResponse401Headers struct {
+// RetryProcessResponse401Headers the declared response headers of an HTTP 401
response for RetryProcess
+type RetryProcessResponse401Headers struct {
WWWAuthenticate *string
}
-type ListProcessStatusesResponse struct {
+type RetryProcessResponse struct {
Body []byte
HTTPResponse *http.Response
- // JSON200 the response for an HTTP 200 `application/json` response
+ // JSON202 the response for an HTTP 202 `application/json` response
+ JSON202 *ProcessResponse
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *Unauthorized
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *Forbidden
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *NotFound
+ // JSON409 the response for an HTTP 409 `application/json` response
+ JSON409 *Conflict
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *InternalError
+ // Headers401 the parsed response headers for an HTTP 401 response
+ Headers401 *RetryProcessResponse401Headers
+}
+
+// GetJSON202 returns the response for an HTTP 202 `application/json` response
+func (r RetryProcessResponse) GetJSON202() *ProcessResponse {
+ return r.JSON202
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r RetryProcessResponse) GetJSON401() *Unauthorized {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r RetryProcessResponse) GetJSON403() *Forbidden {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r RetryProcessResponse) GetJSON404() *NotFound {
+ return r.JSON404
+}
+
+// GetJSON409 returns the response for an HTTP 409 `application/json` response
+func (r RetryProcessResponse) GetJSON409() *Conflict {
+ return r.JSON409
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r RetryProcessResponse) GetJSON500() *InternalError {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r RetryProcessResponse) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r RetryProcessResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r RetryProcessResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from
the HTTP response headers
+func (r RetryProcessResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+// ListProcessStatusesResponse401Headers the declared response headers of an
HTTP 401 response for ListProcessStatuses
+type ListProcessStatusesResponse401Headers struct {
+ WWWAuthenticate *string
+}
+
+type ListProcessStatusesResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]StatusResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
@@ -16154,6 +16879,158 @@ func (r GetProcessStatusResponse) ContentType()
string {
return ""
}
+// ListProcessWorkflowsResponse401Headers the declared response headers of an
HTTP 401 response for ListProcessWorkflows
+type ListProcessWorkflowsResponse401Headers struct {
+ WWWAuthenticate *string
+}
+
+type ListProcessWorkflowsResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *[]WorkflowResponse
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *Unauthorized
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *Forbidden
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *NotFound
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *InternalError
+ // Headers401 the parsed response headers for an HTTP 401 response
+ Headers401 *ListProcessWorkflowsResponse401Headers
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r ListProcessWorkflowsResponse) GetJSON200() *[]WorkflowResponse {
+ return r.JSON200
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r ListProcessWorkflowsResponse) GetJSON401() *Unauthorized {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r ListProcessWorkflowsResponse) GetJSON403() *Forbidden {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r ListProcessWorkflowsResponse) GetJSON404() *NotFound {
+ return r.JSON404
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r ListProcessWorkflowsResponse) GetJSON500() *InternalError {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r ListProcessWorkflowsResponse) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r ListProcessWorkflowsResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListProcessWorkflowsResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from
the HTTP response headers
+func (r ListProcessWorkflowsResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+// GetProcessWorkflowResponse401Headers the declared response headers of an
HTTP 401 response for GetProcessWorkflow
+type GetProcessWorkflowResponse401Headers struct {
+ WWWAuthenticate *string
+}
+
+type GetProcessWorkflowResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *WorkflowResponse
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *Unauthorized
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *Forbidden
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *NotFound
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *InternalError
+ // Headers401 the parsed response headers for an HTTP 401 response
+ Headers401 *GetProcessWorkflowResponse401Headers
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r GetProcessWorkflowResponse) GetJSON200() *WorkflowResponse {
+ return r.JSON200
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r GetProcessWorkflowResponse) GetJSON401() *Unauthorized {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r GetProcessWorkflowResponse) GetJSON403() *Forbidden {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r GetProcessWorkflowResponse) GetJSON404() *NotFound {
+ return r.JSON404
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r GetProcessWorkflowResponse) GetJSON500() *InternalError {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r GetProcessWorkflowResponse) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r GetProcessWorkflowResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetProcessWorkflowResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from
the HTTP response headers
+func (r GetProcessWorkflowResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
// ListSCPDataStoragesResponse401Headers the declared response headers of an
HTTP 401 response for ListSCPDataStorages
type ListSCPDataStoragesResponse401Headers struct {
WWWAuthenticate *string
@@ -17648,67 +18525,92 @@ func (r UpdateSlurmClusterConfigResponse)
ContentType() string {
return ""
}
-// GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse401Headers the
declared response headers of an HTTP 401 response for
GetApiV1SlurmClusterConfigsSlurmClusterConfigIdShares
-type GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse401Headers
struct {
+// DiscoverAllocationsResponse401Headers the declared response headers of an
HTTP 401 response for DiscoverAllocations
+type DiscoverAllocationsResponse401Headers struct {
WWWAuthenticate *string
}
-type GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse struct {
+type DiscoverAllocationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
- JSON200 *[]ShareResponse
+ JSON200 *struct {
+ Allocations *[]struct {
+ Account *string `json:"account,omitempty"`
+ Description *string `json:"description,omitempty"`
+
+ // Partitions Partitions the account is limited to;
empty means any.
+ Partitions *[]string `json:"partitions,omitempty"`
+ Qos *[]string `json:"qos,omitempty"`
+ } `json:"allocations,omitempty"`
+ }
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
+ // JSON409 the response for an HTTP 409 `application/json` response
+ JSON409 *Conflict
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *BadGateway
// Headers401 the parsed response headers for an HTTP 401 response
- Headers401
*GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse401Headers
+ Headers401 *DiscoverAllocationsResponse401Headers
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON200() *[]ShareResponse {
+func (r DiscoverAllocationsResponse) GetJSON200() *struct {
+ Allocations *[]struct {
+ Account *string `json:"account,omitempty"`
+ Description *string `json:"description,omitempty"`
+
+ // Partitions Partitions the account is limited to; empty means
any.
+ Partitions *[]string `json:"partitions,omitempty"`
+ Qos *[]string `json:"qos,omitempty"`
+ } `json:"allocations,omitempty"`
+} {
return r.JSON200
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON401() *Unauthorized {
+func (r DiscoverAllocationsResponse) GetJSON401() *Unauthorized {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON403() *Forbidden {
+func (r DiscoverAllocationsResponse) GetJSON403() *Forbidden {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON404() *NotFound {
+func (r DiscoverAllocationsResponse) GetJSON404() *NotFound {
return r.JSON404
}
+// GetJSON409 returns the response for an HTTP 409 `application/json` response
+func (r DiscoverAllocationsResponse) GetJSON409() *Conflict {
+ return r.JSON409
+}
+
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON500() *InternalError {
+func (r DiscoverAllocationsResponse) GetJSON500() *InternalError {
return r.JSON500
}
// GetJSON502 returns the response for an HTTP 502 `application/json` response
-func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON502() *BadGateway {
+func (r DiscoverAllocationsResponse) GetJSON502() *BadGateway {
return r.JSON502
}
// GetBody returns the raw response body bytes
-func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetBody() []byte {
+func (r DiscoverAllocationsResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
Status() string {
+func (r DiscoverAllocationsResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -17716,7 +18618,7 @@ func (r
GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse) Status()
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
StatusCode() int {
+func (r DiscoverAllocationsResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -17724,67 +18626,150 @@ func (r
GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse) StatusCod
}
// ContentType is a convenience method to retrieve the Content-Type value from
the HTTP response headers
-func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
ContentType() string {
+func (r DiscoverAllocationsResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-// PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse401Headers
the declared response headers of an HTTP 401 response for
PostApiV1SlurmClusterConfigsSlurmClusterConfigIdShares
-type PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse401Headers
struct {
+// GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse401Headers the
declared response headers of an HTTP 401 response for
GetApiV1SlurmClusterConfigsSlurmClusterConfigIdShares
+type GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse401Headers
struct {
WWWAuthenticate *string
}
-type PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse struct {
+type GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse struct {
Body []byte
HTTPResponse *http.Response
- // JSON201 the response for an HTTP 201 `application/json` response
- JSON201 *ShareResponse
- // JSON400 the response for an HTTP 400 `application/json` response
- JSON400 *BadRequest
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *[]ShareResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
- // JSON409 the response for an HTTP 409 `application/json` response
- JSON409 *Conflict
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *BadGateway
// Headers401 the parsed response headers for an HTTP 401 response
- Headers401
*PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse401Headers
-}
-
-// GetJSON201 returns the response for an HTTP 201 `application/json` response
-func (r PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON201() *ShareResponse {
- return r.JSON201
+ Headers401
*GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse401Headers
}
-// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON400() *BadRequest {
- return r.JSON400
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON200() *[]ShareResponse {
+ return r.JSON200
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON401() *Unauthorized {
+func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON401() *Unauthorized {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON403() *Forbidden {
+func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON403() *Forbidden {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON404() *NotFound {
+func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON404() *NotFound {
return r.JSON404
}
-// GetJSON409 returns the response for an HTTP 409 `application/json` response
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON500() *InternalError {
+ return r.JSON500
+}
+
+// GetJSON502 returns the response for an HTTP 502 `application/json` response
+func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON502() *BadGateway {
+ return r.JSON502
+}
+
+// GetBody returns the raw response body bytes
+func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from
the HTTP response headers
+func (r GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+// PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse401Headers
the declared response headers of an HTTP 401 response for
PostApiV1SlurmClusterConfigsSlurmClusterConfigIdShares
+type PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse401Headers
struct {
+ WWWAuthenticate *string
+}
+
+type PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON201 the response for an HTTP 201 `application/json` response
+ JSON201 *ShareResponse
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *BadRequest
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *Unauthorized
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *Forbidden
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *NotFound
+ // JSON409 the response for an HTTP 409 `application/json` response
+ JSON409 *Conflict
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *InternalError
+ // JSON502 the response for an HTTP 502 `application/json` response
+ JSON502 *BadGateway
+ // Headers401 the parsed response headers for an HTTP 401 response
+ Headers401
*PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse401Headers
+}
+
+// GetJSON201 returns the response for an HTTP 201 `application/json` response
+func (r PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON201() *ShareResponse {
+ return r.JSON201
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON400() *BadRequest {
+ return r.JSON400
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON401() *Unauthorized {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON403() *Forbidden {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON404() *NotFound {
+ return r.JSON404
+}
+
+// GetJSON409 returns the response for an HTTP 409 `application/json` response
func (r PostApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse)
GetJSON409() *Conflict {
return r.JSON409
}
@@ -18146,6 +19131,107 @@ func (r CreateSlurmClusterResponse) ContentType()
string {
return ""
}
+// DiscoverPartitionsResponse401Headers the declared response headers of an
HTTP 401 response for DiscoverPartitions
+type DiscoverPartitionsResponse401Headers struct {
+ WWWAuthenticate *string
+}
+
+type DiscoverPartitionsResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ Partitions *[]ClusterPartitionRequest
`json:"partitions,omitempty"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *BadRequest
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *Unauthorized
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *Forbidden
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *NotFound
+ // JSON409 the response for an HTTP 409 `application/json` response
+ JSON409 *Conflict
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *InternalError
+ // JSON502 the response for an HTTP 502 `application/json` response
+ JSON502 *BadGateway
+ // Headers401 the parsed response headers for an HTTP 401 response
+ Headers401 *DiscoverPartitionsResponse401Headers
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r DiscoverPartitionsResponse) GetJSON200() *struct {
+ Partitions *[]ClusterPartitionRequest `json:"partitions,omitempty"`
+} {
+ return r.JSON200
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r DiscoverPartitionsResponse) GetJSON400() *BadRequest {
+ return r.JSON400
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r DiscoverPartitionsResponse) GetJSON401() *Unauthorized {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r DiscoverPartitionsResponse) GetJSON403() *Forbidden {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r DiscoverPartitionsResponse) GetJSON404() *NotFound {
+ return r.JSON404
+}
+
+// GetJSON409 returns the response for an HTTP 409 `application/json` response
+func (r DiscoverPartitionsResponse) GetJSON409() *Conflict {
+ return r.JSON409
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r DiscoverPartitionsResponse) GetJSON500() *InternalError {
+ return r.JSON500
+}
+
+// GetJSON502 returns the response for an HTTP 502 `application/json` response
+func (r DiscoverPartitionsResponse) GetJSON502() *BadGateway {
+ return r.JSON502
+}
+
+// GetBody returns the raw response body bytes
+func (r DiscoverPartitionsResponse) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r DiscoverPartitionsResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r DiscoverPartitionsResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from
the HTTP response headers
+func (r DiscoverPartitionsResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
// DeleteSlurmClusterResponse401Headers the declared response headers of an
HTTP 401 response for DeleteSlurmCluster
type DeleteSlurmClusterResponse401Headers struct {
WWWAuthenticate *string
@@ -21294,6 +22380,22 @@ func (c *ClientWithResponses)
CreateProcessWithResponse(ctx context.Context, bod
return ParseCreateProcessResponse(rsp)
}
+// ListMyProcessesWithResponse List the caller's processes
+//
+// Every process the caller owns. Unlike the unfiltered listing it needs no
+// platform role.
+//
+// Returns a wrapper object for the known response body format(s).
+//
+// Corresponds with GET /api/v1/processes/me (the `ListMyProcesses`
operationId).
+func (c *ClientWithResponses) ListMyProcessesWithResponse(ctx context.Context,
reqEditors ...RequestEditorFn) (*ListMyProcessesResponse, error) {
+ rsp, err := c.ListMyProcesses(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListMyProcessesResponse(rsp)
+}
+
// DeleteProcessWithResponse Delete a process
//
// Requires `ADMIN` or `SUPER_ADMIN` authority.
@@ -21744,6 +22846,26 @@ func (c *ClientWithResponses)
LaunchProcessWithResponse(ctx context.Context, pro
return ParseLaunchProcessResponse(rsp)
}
+// RetryProcessWithResponse Retry a process's failed workflow
+//
+// Owner only. Takes no body. Starts again the workflow whose latest run
failed —
+// the job submission, or, once that succeeded, the job completion — and skips
+// every task that has already completed, so the run picks up at the step that
+// failed. Refused with `409` while a workflow is still running, before the
+// process is launched, or when no workflow's latest run failed. Answers `202`
+// with the process as it now stands.
+//
+// Returns a wrapper object for the known response body format(s).
+//
+// Corresponds with POST /api/v1/processes/{processId}/retry (the
`RetryProcess` operationId).
+func (c *ClientWithResponses) RetryProcessWithResponse(ctx context.Context,
processId ProcessId, reqEditors ...RequestEditorFn) (*RetryProcessResponse,
error) {
+ rsp, err := c.RetryProcess(ctx, processId, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseRetryProcessResponse(rsp)
+}
+
// ListProcessStatusesWithResponse List a process's status history
//
// Read-only. Statuses are recorded internally — by process submission and by
@@ -21774,6 +22896,38 @@ func (c *ClientWithResponses)
GetProcessStatusWithResponse(ctx context.Context,
return ParseGetProcessStatusResponse(rsp)
}
+// ListProcessWorkflowsWithResponse List the workflows started for a process
+//
+// Read-only, oldest first. Workflows are recorded by the server when it
starts a
+// workflow for the process, never accepted from a client, so there is no
`POST`
+// or `PUT` here. Only the process's owner or an admin may read them.
+//
+// Returns a wrapper object for the known response body format(s).
+//
+// Corresponds with GET /api/v1/processes/{processId}/workflows (the
`ListProcessWorkflows` operationId).
+func (c *ClientWithResponses) ListProcessWorkflowsWithResponse(ctx
context.Context, processId ProcessId, reqEditors ...RequestEditorFn)
(*ListProcessWorkflowsResponse, error) {
+ rsp, err := c.ListProcessWorkflows(ctx, processId, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListProcessWorkflowsResponse(rsp)
+}
+
+// GetProcessWorkflowWithResponse Read one recorded process workflow
+//
+// A workflow of another process is a `404` through this process's path.
+//
+// Returns a wrapper object for the known response body format(s).
+//
+// Corresponds with GET
/api/v1/processes/{processId}/workflows/{processWorkflowId} (the
`GetProcessWorkflow` operationId).
+func (c *ClientWithResponses) GetProcessWorkflowWithResponse(ctx
context.Context, processId ProcessId, processWorkflowId string, reqEditors
...RequestEditorFn) (*GetProcessWorkflowResponse, error) {
+ rsp, err := c.GetProcessWorkflow(ctx, processId, processWorkflowId,
reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseGetProcessWorkflowResponse(rsp)
+}
+
// ListSCPDataStoragesWithResponse List all SCP data storages
//
// Requires `ADMIN` or `SUPER_ADMIN` authority.
@@ -22139,6 +23293,23 @@ func (c *ClientWithResponses)
UpdateSlurmClusterConfigWithResponse(ctx context.C
return ParseUpdateSlurmClusterConfigResponse(rsp)
}
+// DiscoverAllocationsWithResponse Discover the allocations a config's login
may charge
+//
+// Logs in under the config and lists the Slurm accounts its login may charge,
+// from sacctmgr (falling back to sshare). Open to anyone who may submit under
the
+// config.
+//
+// Returns a wrapper object for the known response body format(s).
+//
+// Corresponds with POST
/api/v1/slurm-cluster-configs/{slurmClusterConfigId}/discover-allocations (the
`DiscoverAllocations` operationId).
+func (c *ClientWithResponses) DiscoverAllocationsWithResponse(ctx
context.Context, slurmClusterConfigId string, reqEditors ...RequestEditorFn)
(*DiscoverAllocationsResponse, error) {
+ rsp, err := c.DiscoverAllocations(ctx, slurmClusterConfigId,
reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseDiscoverAllocationsResponse(rsp)
+}
+
// GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesWithResponse List who
has access to this Slurm cluster config
//
// Both principal kinds together. Restricted to the owner and platform admins:
the list names who holds the record, which is more than a grantee needs to know.
@@ -22278,6 +23449,40 @@ func (c *ClientWithResponses)
CreateSlurmClusterWithResponse(ctx context.Context
return ParseCreateSlurmClusterResponse(rsp)
}
+// DiscoverPartitionsWithBodyWithResponse Discover a head node's partitions
+//
+// Logs in to the head node under a credential the caller owns and reads its
+// partitions with scontrol (and sinfo, for per-node details). Admin only. The
+// result is in the shape a cluster registration's `partitions` takes.
+//
+// Takes any type of body and a specified content type, and returns a wrapper
object for the known response body format(s).
+//
+// Corresponds with POST /api/v1/slurm-clusters/discover-partitions (the
`DiscoverPartitions` operationId).
+func (c *ClientWithResponses) DiscoverPartitionsWithBodyWithResponse(ctx
context.Context, contentType string, body io.Reader, reqEditors
...RequestEditorFn) (*DiscoverPartitionsResponse, error) {
+ rsp, err := c.DiscoverPartitionsWithBody(ctx, contentType, body,
reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseDiscoverPartitionsResponse(rsp)
+}
+
+// DiscoverPartitionsWithResponse Discover a head node's partitions
+//
+// Logs in to the head node under a credential the caller owns and reads its
+// partitions with scontrol (and sinfo, for per-node details). Admin only. The
+// result is in the shape a cluster registration's `partitions` takes.
+//
+// Takes a body of the `application/json` content type, and returns a wrapper
object for the known response body format(s).
+//
+// Corresponds with POST /api/v1/slurm-clusters/discover-partitions (the
`DiscoverPartitions` operationId).
+func (c *ClientWithResponses) DiscoverPartitionsWithResponse(ctx
context.Context, body DiscoverPartitionsJSONRequestBody, reqEditors
...RequestEditorFn) (*DiscoverPartitionsResponse, error) {
+ rsp, err := c.DiscoverPartitions(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseDiscoverPartitionsResponse(rsp)
+}
+
// DeleteSlurmClusterWithResponse Delete a Slurm cluster
//
// Requires `ADMIN` or `SUPER_ADMIN` authority.
@@ -25283,22 +26488,26 @@ func ParseCreateProcessResponse(rsp *http.Response)
(*CreateProcessResponse, err
return response, nil
}
-// ParseDeleteProcessResponse parses an HTTP response from a
DeleteProcessWithResponse call
-func ParseDeleteProcessResponse(rsp *http.Response) (*DeleteProcessResponse,
error) {
+// ParseListMyProcessesResponse parses an HTTP response from a
ListMyProcessesWithResponse call
+func ParseListMyProcessesResponse(rsp *http.Response)
(*ListMyProcessesResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DeleteProcessResponse{
+ response := &ListMyProcessesResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case rsp.StatusCode == 204:
- break // No content-type
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 200:
+ var dest []ProcessResponse
+ 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 Unauthorized
@@ -25307,12 +26516,68 @@ func ParseDeleteProcessResponse(rsp *http.Response)
(*DeleteProcessResponse, err
}
response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 403:
- var dest Forbidden
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 500:
+ var dest InternalError
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 == 502:
+ var dest BadGateway
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON502 = &dest
+
+ }
+
+ switch {
+ case rsp.StatusCode == 401:
+ var headers ListMyProcessesResponse401Headers
+ if values := rsp.Header.Values("WWW-Authenticate"); len(values)
> 0 {
+ var value string
+ if err :=
runtime.BindStyledParameterWithOptions("simple", "WWW-Authenticate", values[0],
&value, runtime.BindStyledParameterOptions{ParamLocation:
runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string",
Format: ""}); err != nil {
+ return nil, err
+ }
+ headers.WWWAuthenticate = &value
+ }
+ response.Headers401 = &headers
+ }
+
+ return response, nil
+}
+
+// ParseDeleteProcessResponse parses an HTTP response from a
DeleteProcessWithResponse call
+func ParseDeleteProcessResponse(rsp *http.Response) (*DeleteProcessResponse,
error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &DeleteProcessResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case rsp.StatusCode == 204:
+ break // No content-type
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 401:
+ var dest Unauthorized
+ 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 Forbidden
+ 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 == 404:
var dest NotFound
@@ -26880,26 +28145,269 @@ func ParseDeleteJobSubmissionTaskResponse(rsp
*http.Response) (*DeleteJobSubmiss
return response, nil
}
-// ParseGetJobSubmissionTaskResponse parses an HTTP response from a
GetJobSubmissionTaskWithResponse call
-func ParseGetJobSubmissionTaskResponse(rsp *http.Response)
(*GetJobSubmissionTaskResponse, error) {
+// ParseGetJobSubmissionTaskResponse parses an HTTP response from a
GetJobSubmissionTaskWithResponse call
+func ParseGetJobSubmissionTaskResponse(rsp *http.Response)
(*GetJobSubmissionTaskResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &GetJobSubmissionTaskResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 200:
+ var dest JobSubmissionTaskResponse
+ 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 Unauthorized
+ 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 Forbidden
+ 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 == 404:
+ var dest NotFound
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 500:
+ var dest InternalError
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 502:
+ var dest BadGateway
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON502 = &dest
+
+ }
+
+ switch {
+ case rsp.StatusCode == 401:
+ var headers GetJobSubmissionTaskResponse401Headers
+ if values := rsp.Header.Values("WWW-Authenticate"); len(values)
> 0 {
+ var value string
+ if err :=
runtime.BindStyledParameterWithOptions("simple", "WWW-Authenticate", values[0],
&value, runtime.BindStyledParameterOptions{ParamLocation:
runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string",
Format: ""}); err != nil {
+ return nil, err
+ }
+ headers.WWWAuthenticate = &value
+ }
+ response.Headers401 = &headers
+ }
+
+ return response, nil
+}
+
+// ParseUpdateJobSubmissionTaskResponse parses an HTTP response from a
UpdateJobSubmissionTaskWithResponse call
+func ParseUpdateJobSubmissionTaskResponse(rsp *http.Response)
(*UpdateJobSubmissionTaskResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &UpdateJobSubmissionTaskResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 200:
+ var dest JobSubmissionTaskResponse
+ 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 BadRequest
+ 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 Unauthorized
+ 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 Forbidden
+ 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 == 404:
+ var dest NotFound
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 500:
+ var dest InternalError
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 502:
+ var dest BadGateway
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON502 = &dest
+
+ }
+
+ switch {
+ case rsp.StatusCode == 401:
+ var headers UpdateJobSubmissionTaskResponse401Headers
+ if values := rsp.Header.Values("WWW-Authenticate"); len(values)
> 0 {
+ var value string
+ if err :=
runtime.BindStyledParameterWithOptions("simple", "WWW-Authenticate", values[0],
&value, runtime.BindStyledParameterOptions{ParamLocation:
runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string",
Format: ""}); err != nil {
+ return nil, err
+ }
+ headers.WWWAuthenticate = &value
+ }
+ response.Headers401 = &headers
+ }
+
+ return response, nil
+}
+
+// ParseLaunchProcessResponse parses an HTTP response from a
LaunchProcessWithResponse call
+func ParseLaunchProcessResponse(rsp *http.Response) (*LaunchProcessResponse,
error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &LaunchProcessResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 202:
+ var dest ProcessResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON202 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 400:
+ var dest BadRequest
+ 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 Unauthorized
+ 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 Forbidden
+ 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 == 404:
+ var dest NotFound
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 409:
+ var dest Conflict
+ 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 InternalError
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 502:
+ var dest BadGateway
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON502 = &dest
+
+ }
+
+ switch {
+ case rsp.StatusCode == 401:
+ var headers LaunchProcessResponse401Headers
+ if values := rsp.Header.Values("WWW-Authenticate"); len(values)
> 0 {
+ var value string
+ if err :=
runtime.BindStyledParameterWithOptions("simple", "WWW-Authenticate", values[0],
&value, runtime.BindStyledParameterOptions{ParamLocation:
runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string",
Format: ""}); err != nil {
+ return nil, err
+ }
+ headers.WWWAuthenticate = &value
+ }
+ response.Headers401 = &headers
+ }
+
+ return response, nil
+}
+
+// ParseRetryProcessResponse parses an HTTP response from a
RetryProcessWithResponse call
+func ParseRetryProcessResponse(rsp *http.Response) (*RetryProcessResponse,
error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetJobSubmissionTaskResponse{
+ response := &RetryProcessResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 200:
- var dest JobSubmissionTaskResponse
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 202:
+ var dest ProcessResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON202 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 401:
var dest Unauthorized
@@ -26922,25 +28430,25 @@ func ParseGetJobSubmissionTaskResponse(rsp
*http.Response) (*GetJobSubmissionTas
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 500:
- var dest InternalError
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 409:
+ var dest Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 502:
- var dest BadGateway
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 500:
+ var dest InternalError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON502 = &dest
+ response.JSON500 = &dest
}
switch {
case rsp.StatusCode == 401:
- var headers GetJobSubmissionTaskResponse401Headers
+ var headers RetryProcessResponse401Headers
if values := rsp.Header.Values("WWW-Authenticate"); len(values)
> 0 {
var value string
if err :=
runtime.BindStyledParameterWithOptions("simple", "WWW-Authenticate", values[0],
&value, runtime.BindStyledParameterOptions{ParamLocation:
runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string",
Format: ""}); err != nil {
@@ -26954,34 +28462,27 @@ func ParseGetJobSubmissionTaskResponse(rsp
*http.Response) (*GetJobSubmissionTas
return response, nil
}
-// ParseUpdateJobSubmissionTaskResponse parses an HTTP response from a
UpdateJobSubmissionTaskWithResponse call
-func ParseUpdateJobSubmissionTaskResponse(rsp *http.Response)
(*UpdateJobSubmissionTaskResponse, error) {
+// ParseListProcessStatusesResponse parses an HTTP response from a
ListProcessStatusesWithResponse call
+func ParseListProcessStatusesResponse(rsp *http.Response)
(*ListProcessStatusesResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateJobSubmissionTaskResponse{
+ response := &ListProcessStatusesResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 200:
- var dest JobSubmissionTaskResponse
+ var dest []StatusResponse
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 BadRequest
- 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 Unauthorized
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -27021,7 +28522,7 @@ func ParseUpdateJobSubmissionTaskResponse(rsp
*http.Response) (*UpdateJobSubmiss
switch {
case rsp.StatusCode == 401:
- var headers UpdateJobSubmissionTaskResponse401Headers
+ var headers ListProcessStatusesResponse401Headers
if values := rsp.Header.Values("WWW-Authenticate"); len(values)
> 0 {
var value string
if err :=
runtime.BindStyledParameterWithOptions("simple", "WWW-Authenticate", values[0],
&value, runtime.BindStyledParameterOptions{ParamLocation:
runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string",
Format: ""}); err != nil {
@@ -27035,33 +28536,26 @@ func ParseUpdateJobSubmissionTaskResponse(rsp
*http.Response) (*UpdateJobSubmiss
return response, nil
}
-// ParseLaunchProcessResponse parses an HTTP response from a
LaunchProcessWithResponse call
-func ParseLaunchProcessResponse(rsp *http.Response) (*LaunchProcessResponse,
error) {
+// ParseGetProcessStatusResponse parses an HTTP response from a
GetProcessStatusWithResponse call
+func ParseGetProcessStatusResponse(rsp *http.Response)
(*GetProcessStatusResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &LaunchProcessResponse{
+ response := &GetProcessStatusResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 202:
- var dest ProcessResponse
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON202 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 400:
- var dest BadRequest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 200:
+ var dest StatusResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 401:
var dest Unauthorized
@@ -27084,13 +28578,6 @@ func ParseLaunchProcessResponse(rsp *http.Response)
(*LaunchProcessResponse, err
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 409:
- var dest Conflict
- 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 InternalError
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -27109,7 +28596,7 @@ func ParseLaunchProcessResponse(rsp *http.Response)
(*LaunchProcessResponse, err
switch {
case rsp.StatusCode == 401:
- var headers LaunchProcessResponse401Headers
+ var headers GetProcessStatusResponse401Headers
if values := rsp.Header.Values("WWW-Authenticate"); len(values)
> 0 {
var value string
if err :=
runtime.BindStyledParameterWithOptions("simple", "WWW-Authenticate", values[0],
&value, runtime.BindStyledParameterOptions{ParamLocation:
runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string",
Format: ""}); err != nil {
@@ -27123,22 +28610,22 @@ func ParseLaunchProcessResponse(rsp *http.Response)
(*LaunchProcessResponse, err
return response, nil
}
-// ParseListProcessStatusesResponse parses an HTTP response from a
ListProcessStatusesWithResponse call
-func ParseListProcessStatusesResponse(rsp *http.Response)
(*ListProcessStatusesResponse, error) {
+// ParseListProcessWorkflowsResponse parses an HTTP response from a
ListProcessWorkflowsWithResponse call
+func ParseListProcessWorkflowsResponse(rsp *http.Response)
(*ListProcessWorkflowsResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListProcessStatusesResponse{
+ response := &ListProcessWorkflowsResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 200:
- var dest []StatusResponse
+ var dest []WorkflowResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -27172,18 +28659,11 @@ func ParseListProcessStatusesResponse(rsp
*http.Response) (*ListProcessStatusesR
}
response.JSON500 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 502:
- var dest BadGateway
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON502 = &dest
-
}
switch {
case rsp.StatusCode == 401:
- var headers ListProcessStatusesResponse401Headers
+ var headers ListProcessWorkflowsResponse401Headers
if values := rsp.Header.Values("WWW-Authenticate"); len(values)
> 0 {
var value string
if err :=
runtime.BindStyledParameterWithOptions("simple", "WWW-Authenticate", values[0],
&value, runtime.BindStyledParameterOptions{ParamLocation:
runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string",
Format: ""}); err != nil {
@@ -27197,22 +28677,22 @@ func ParseListProcessStatusesResponse(rsp
*http.Response) (*ListProcessStatusesR
return response, nil
}
-// ParseGetProcessStatusResponse parses an HTTP response from a
GetProcessStatusWithResponse call
-func ParseGetProcessStatusResponse(rsp *http.Response)
(*GetProcessStatusResponse, error) {
+// ParseGetProcessWorkflowResponse parses an HTTP response from a
GetProcessWorkflowWithResponse call
+func ParseGetProcessWorkflowResponse(rsp *http.Response)
(*GetProcessWorkflowResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetProcessStatusResponse{
+ response := &GetProcessWorkflowResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 200:
- var dest StatusResponse
+ var dest WorkflowResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -27246,18 +28726,11 @@ func ParseGetProcessStatusResponse(rsp
*http.Response) (*GetProcessStatusRespons
}
response.JSON500 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 502:
- var dest BadGateway
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON502 = &dest
-
}
switch {
case rsp.StatusCode == 401:
- var headers GetProcessStatusResponse401Headers
+ var headers GetProcessWorkflowResponse401Headers
if values := rsp.Header.Values("WWW-Authenticate"); len(values)
> 0 {
var value string
if err :=
runtime.BindStyledParameterWithOptions("simple", "WWW-Authenticate", values[0],
&value, runtime.BindStyledParameterOptions{ParamLocation:
runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string",
Format: ""}); err != nil {
@@ -28612,6 +30085,96 @@ func ParseUpdateSlurmClusterConfigResponse(rsp
*http.Response) (*UpdateSlurmClus
return response, nil
}
+// ParseDiscoverAllocationsResponse parses an HTTP response from a
DiscoverAllocationsWithResponse call
+func ParseDiscoverAllocationsResponse(rsp *http.Response)
(*DiscoverAllocationsResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &DiscoverAllocationsResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 200:
+ var dest struct {
+ Allocations *[]struct {
+ Account *string `json:"account,omitempty"`
+ Description *string
`json:"description,omitempty"`
+
+ // Partitions Partitions the account is limited
to; empty means any.
+ Partitions *[]string
`json:"partitions,omitempty"`
+ Qos *[]string `json:"qos,omitempty"`
+ } `json:"allocations,omitempty"`
+ }
+ 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 Unauthorized
+ 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 Forbidden
+ 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 == 404:
+ var dest NotFound
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 409:
+ var dest Conflict
+ 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 InternalError
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 502:
+ var dest BadGateway
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON502 = &dest
+
+ }
+
+ switch {
+ case rsp.StatusCode == 401:
+ var headers DiscoverAllocationsResponse401Headers
+ if values := rsp.Header.Values("WWW-Authenticate"); len(values)
> 0 {
+ var value string
+ if err :=
runtime.BindStyledParameterWithOptions("simple", "WWW-Authenticate", values[0],
&value, runtime.BindStyledParameterOptions{ParamLocation:
runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string",
Format: ""}); err != nil {
+ return nil, err
+ }
+ headers.WWWAuthenticate = &value
+ }
+ response.Headers401 = &headers
+ }
+
+ return response, nil
+}
+
// ParseGetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse parses
an HTTP response from a
GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesWithResponse call
func ParseGetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse(rsp
*http.Response)
(*GetApiV1SlurmClusterConfigsSlurmClusterConfigIdSharesResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
@@ -29059,6 +30622,96 @@ func ParseCreateSlurmClusterResponse(rsp
*http.Response) (*CreateSlurmClusterRes
return response, nil
}
+// ParseDiscoverPartitionsResponse parses an HTTP response from a
DiscoverPartitionsWithResponse call
+func ParseDiscoverPartitionsResponse(rsp *http.Response)
(*DiscoverPartitionsResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &DiscoverPartitionsResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 200:
+ var dest struct {
+ Partitions *[]ClusterPartitionRequest
`json:"partitions,omitempty"`
+ }
+ 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 BadRequest
+ 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 Unauthorized
+ 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 Forbidden
+ 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 == 404:
+ var dest NotFound
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 409:
+ var dest Conflict
+ 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 InternalError
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") &&
rsp.StatusCode == 502:
+ var dest BadGateway
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON502 = &dest
+
+ }
+
+ switch {
+ case rsp.StatusCode == 401:
+ var headers DiscoverPartitionsResponse401Headers
+ if values := rsp.Header.Values("WWW-Authenticate"); len(values)
> 0 {
+ var value string
+ if err :=
runtime.BindStyledParameterWithOptions("simple", "WWW-Authenticate", values[0],
&value, runtime.BindStyledParameterOptions{ParamLocation:
runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string",
Format: ""}); err != nil {
+ return nil, err
+ }
+ headers.WWWAuthenticate = &value
+ }
+ response.Headers401 = &headers
+ }
+
+ return response, nil
+}
+
// ParseDeleteSlurmClusterResponse parses an HTTP response from a
DeleteSlurmClusterWithResponse call
func ParseDeleteSlurmClusterResponse(rsp *http.Response)
(*DeleteSlurmClusterResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)