mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-02-04 15:25:17 +01:00
Remove generated REST client
This commit is contained in:
parent
03175681b6
commit
d4f09b4679
24
internal/api/0.0.37/.gitignore
vendored
24
internal/api/0.0.37/.gitignore
vendored
@ -1,24 +0,0 @@
|
||||
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
||||
*.o
|
||||
*.a
|
||||
*.so
|
||||
|
||||
# Folders
|
||||
_obj
|
||||
_test
|
||||
|
||||
# Architecture specific extensions/prefixes
|
||||
*.[568vq]
|
||||
[568vq].out
|
||||
|
||||
*.cgo1.go
|
||||
*.cgo2.c
|
||||
_cgo_defun.c
|
||||
_cgo_gotypes.go
|
||||
_cgo_export.*
|
||||
|
||||
_testmain.go
|
||||
|
||||
*.exe
|
||||
*.test
|
||||
*.prof
|
@ -1,23 +0,0 @@
|
||||
# OpenAPI Generator Ignore
|
||||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
||||
|
||||
# Use this file to prevent files from being overwritten by the generator.
|
||||
# The patterns follow closely to .gitignore or .dockerignore.
|
||||
|
||||
# As an example, the C# client generator defines ApiClient.cs.
|
||||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
||||
#ApiClient.cs
|
||||
|
||||
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
||||
#foo/*/qux
|
||||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
||||
|
||||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
||||
#foo/**/qux
|
||||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
||||
|
||||
# You can also negate patterns with an exclamation (!).
|
||||
# For example, you can ignore all files in a docs folder with the file extension .md:
|
||||
#docs/*.md
|
||||
# Then explicitly reverse the ignore rule for a single file:
|
||||
#!docs/README.md
|
@ -1,58 +0,0 @@
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
.travis.yml
|
||||
README.md
|
||||
api/openapi.yaml
|
||||
api_openapi.go
|
||||
api_slurm.go
|
||||
client.go
|
||||
configuration.go
|
||||
docs/OpenapiAPI.md
|
||||
docs/SlurmAPI.md
|
||||
docs/V0037Diag.md
|
||||
docs/V0037DiagStatistics.md
|
||||
docs/V0037Error.md
|
||||
docs/V0037JobProperties.md
|
||||
docs/V0037JobResources.md
|
||||
docs/V0037JobResponseProperties.md
|
||||
docs/V0037JobSubmission.md
|
||||
docs/V0037JobSubmissionResponse.md
|
||||
docs/V0037JobsResponse.md
|
||||
docs/V0037Node.md
|
||||
docs/V0037NodeAllocation.md
|
||||
docs/V0037NodesResponse.md
|
||||
docs/V0037Partition.md
|
||||
docs/V0037PartitionsResponse.md
|
||||
docs/V0037Ping.md
|
||||
docs/V0037Pings.md
|
||||
docs/V0037Reservation.md
|
||||
docs/V0037ReservationPurgeCompleted.md
|
||||
docs/V0037ReservationsResponse.md
|
||||
docs/V0037Signal.md
|
||||
git_push.sh
|
||||
go.mod
|
||||
go.sum
|
||||
model_v0_0_37_diag.go
|
||||
model_v0_0_37_diag_statistics.go
|
||||
model_v0_0_37_error.go
|
||||
model_v0_0_37_job_properties.go
|
||||
model_v0_0_37_job_resources.go
|
||||
model_v0_0_37_job_response_properties.go
|
||||
model_v0_0_37_job_submission.go
|
||||
model_v0_0_37_job_submission_response.go
|
||||
model_v0_0_37_jobs_response.go
|
||||
model_v0_0_37_node.go
|
||||
model_v0_0_37_node_allocation.go
|
||||
model_v0_0_37_nodes_response.go
|
||||
model_v0_0_37_partition.go
|
||||
model_v0_0_37_partitions_response.go
|
||||
model_v0_0_37_ping.go
|
||||
model_v0_0_37_pings.go
|
||||
model_v0_0_37_reservation.go
|
||||
model_v0_0_37_reservation_purge_completed.go
|
||||
model_v0_0_37_reservations_response.go
|
||||
model_v0_0_37_signal.go
|
||||
response.go
|
||||
test/api_openapi_test.go
|
||||
test/api_slurm_test.go
|
||||
utils.go
|
@ -1 +0,0 @@
|
||||
7.0.0-SNAPSHOT
|
@ -1,8 +0,0 @@
|
||||
language: go
|
||||
|
||||
install:
|
||||
- go get -d -v .
|
||||
|
||||
script:
|
||||
- go build -v ./
|
||||
|
@ -1,190 +0,0 @@
|
||||
# Go API client for openapi
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
## Overview
|
||||
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
|
||||
|
||||
- API version: 0.0.37
|
||||
- Package version: 1.0.0
|
||||
- Build package: org.openapitools.codegen.languages.GoClientCodegen
|
||||
For more information, please visit [https://www.schedmd.com/](https://www.schedmd.com/)
|
||||
|
||||
## Installation
|
||||
|
||||
Install the following dependencies:
|
||||
|
||||
```shell
|
||||
go get github.com/stretchr/testify/assert
|
||||
go get golang.org/x/net/context
|
||||
```
|
||||
|
||||
Put the package under your project folder and add the following in import:
|
||||
|
||||
```golang
|
||||
import openapi "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
```
|
||||
|
||||
To use a proxy, set the environment variable `HTTP_PROXY`:
|
||||
|
||||
```golang
|
||||
os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")
|
||||
```
|
||||
|
||||
## Configuration of Server URL
|
||||
|
||||
Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification.
|
||||
|
||||
### Select Server Configuration
|
||||
|
||||
For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`.
|
||||
|
||||
```golang
|
||||
ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1)
|
||||
```
|
||||
|
||||
### Templated Server URL
|
||||
|
||||
Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`.
|
||||
|
||||
```golang
|
||||
ctx := context.WithValue(context.Background(), openapi.ContextServerVariables, map[string]string{
|
||||
"basePath": "v2",
|
||||
})
|
||||
```
|
||||
|
||||
Note, enum values are always validated and all unused variables are silently ignored.
|
||||
|
||||
### URLs Configuration per Operation
|
||||
|
||||
Each operation can use different server URL defined using `OperationServers` map in the `Configuration`.
|
||||
An operation is uniquely identified by `"{classname}Service.{nickname}"` string.
|
||||
Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps.
|
||||
|
||||
```golang
|
||||
ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{
|
||||
"{classname}Service.{nickname}": 2,
|
||||
})
|
||||
ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{
|
||||
"{classname}Service.{nickname}": {
|
||||
"port": "8443",
|
||||
},
|
||||
})
|
||||
```
|
||||
|
||||
## Documentation for API Endpoints
|
||||
|
||||
All URIs are relative to *http://localhost/slurm/v0.0.37*
|
||||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*OpenapiAPI* | [**OpenapiGet**](docs/OpenapiAPI.md#openapiget) | **Get** /openapi | Retrieve OpenAPI Specification
|
||||
*OpenapiAPI* | [**OpenapiJsonGet**](docs/OpenapiAPI.md#openapijsonget) | **Get** /openapi.json | Retrieve OpenAPI Specification
|
||||
*OpenapiAPI* | [**OpenapiV3Get**](docs/OpenapiAPI.md#openapiv3get) | **Get** /openapi/v3 | Retrieve OpenAPI Specification
|
||||
*OpenapiAPI* | [**OpenapiYamlGet**](docs/OpenapiAPI.md#openapiyamlget) | **Get** /openapi.yaml | Retrieve OpenAPI Specification
|
||||
*SlurmAPI* | [**SlurmctldCancelJob**](docs/SlurmAPI.md#slurmctldcanceljob) | **Delete** /job/{job_id} | cancel or signal job
|
||||
*SlurmAPI* | [**SlurmctldDiag**](docs/SlurmAPI.md#slurmctlddiag) | **Get** /diag/ | get diagnostics
|
||||
*SlurmAPI* | [**SlurmctldGetJob**](docs/SlurmAPI.md#slurmctldgetjob) | **Get** /job/{job_id} | get job info
|
||||
*SlurmAPI* | [**SlurmctldGetJobs**](docs/SlurmAPI.md#slurmctldgetjobs) | **Get** /jobs/ | get list of jobs
|
||||
*SlurmAPI* | [**SlurmctldGetNode**](docs/SlurmAPI.md#slurmctldgetnode) | **Get** /node/{node_name} | get node info
|
||||
*SlurmAPI* | [**SlurmctldGetNodes**](docs/SlurmAPI.md#slurmctldgetnodes) | **Get** /nodes/ | get all node info
|
||||
*SlurmAPI* | [**SlurmctldGetPartition**](docs/SlurmAPI.md#slurmctldgetpartition) | **Get** /partition/{partition_name} | get partition info
|
||||
*SlurmAPI* | [**SlurmctldGetPartitions**](docs/SlurmAPI.md#slurmctldgetpartitions) | **Get** /partitions/ | get all partition info
|
||||
*SlurmAPI* | [**SlurmctldGetReservation**](docs/SlurmAPI.md#slurmctldgetreservation) | **Get** /reservation/{reservation_name} | get reservation info
|
||||
*SlurmAPI* | [**SlurmctldGetReservations**](docs/SlurmAPI.md#slurmctldgetreservations) | **Get** /reservations/ | get all reservation info
|
||||
*SlurmAPI* | [**SlurmctldPing**](docs/SlurmAPI.md#slurmctldping) | **Get** /ping/ | ping test
|
||||
*SlurmAPI* | [**SlurmctldSubmitJob**](docs/SlurmAPI.md#slurmctldsubmitjob) | **Post** /job/submit | submit new job
|
||||
*SlurmAPI* | [**SlurmctldUpdateJob**](docs/SlurmAPI.md#slurmctldupdatejob) | **Post** /job/{job_id} | update job
|
||||
|
||||
|
||||
## Documentation For Models
|
||||
|
||||
- [V0037Diag](docs/V0037Diag.md)
|
||||
- [V0037DiagStatistics](docs/V0037DiagStatistics.md)
|
||||
- [V0037Error](docs/V0037Error.md)
|
||||
- [V0037JobProperties](docs/V0037JobProperties.md)
|
||||
- [V0037JobResources](docs/V0037JobResources.md)
|
||||
- [V0037JobResponseProperties](docs/V0037JobResponseProperties.md)
|
||||
- [V0037JobSubmission](docs/V0037JobSubmission.md)
|
||||
- [V0037JobSubmissionResponse](docs/V0037JobSubmissionResponse.md)
|
||||
- [V0037JobsResponse](docs/V0037JobsResponse.md)
|
||||
- [V0037Node](docs/V0037Node.md)
|
||||
- [V0037NodeAllocation](docs/V0037NodeAllocation.md)
|
||||
- [V0037NodesResponse](docs/V0037NodesResponse.md)
|
||||
- [V0037Partition](docs/V0037Partition.md)
|
||||
- [V0037PartitionsResponse](docs/V0037PartitionsResponse.md)
|
||||
- [V0037Ping](docs/V0037Ping.md)
|
||||
- [V0037Pings](docs/V0037Pings.md)
|
||||
- [V0037Reservation](docs/V0037Reservation.md)
|
||||
- [V0037ReservationPurgeCompleted](docs/V0037ReservationPurgeCompleted.md)
|
||||
- [V0037ReservationsResponse](docs/V0037ReservationsResponse.md)
|
||||
- [V0037Signal](docs/V0037Signal.md)
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
|
||||
|
||||
Authentication schemes defined for the API:
|
||||
### user
|
||||
|
||||
- **Type**: API key
|
||||
- **API key parameter name**: X-SLURM-USER-NAME
|
||||
- **Location**: HTTP header
|
||||
|
||||
Note, each API key must be added to a map of `map[string]APIKey` where the key is: X-SLURM-USER-NAME and passed in as the auth context for each request.
|
||||
|
||||
Example
|
||||
|
||||
```golang
|
||||
auth := context.WithValue(
|
||||
context.Background(),
|
||||
sw.ContextAPIKeys,
|
||||
map[string]sw.APIKey{
|
||||
"X-SLURM-USER-NAME": {Key: "API_KEY_STRING"},
|
||||
},
|
||||
)
|
||||
r, err := client.Service.Operation(auth, args)
|
||||
```
|
||||
|
||||
### token
|
||||
|
||||
- **Type**: API key
|
||||
- **API key parameter name**: X-SLURM-USER-TOKEN
|
||||
- **Location**: HTTP header
|
||||
|
||||
Note, each API key must be added to a map of `map[string]APIKey` where the key is: X-SLURM-USER-TOKEN and passed in as the auth context for each request.
|
||||
|
||||
Example
|
||||
|
||||
```golang
|
||||
auth := context.WithValue(
|
||||
context.Background(),
|
||||
sw.ContextAPIKeys,
|
||||
map[string]sw.APIKey{
|
||||
"X-SLURM-USER-TOKEN": {Key: "API_KEY_STRING"},
|
||||
},
|
||||
)
|
||||
r, err := client.Service.Operation(auth, args)
|
||||
```
|
||||
|
||||
|
||||
## Documentation for Utility Methods
|
||||
|
||||
Due to the fact that model structure members are all pointers, this package contains
|
||||
a number of utility functions to easily obtain pointers to values of basic types.
|
||||
Each of these functions takes a value of the given basic type and returns a pointer to it:
|
||||
|
||||
* `PtrBool`
|
||||
* `PtrInt`
|
||||
* `PtrInt32`
|
||||
* `PtrInt64`
|
||||
* `PtrFloat`
|
||||
* `PtrFloat32`
|
||||
* `PtrFloat64`
|
||||
* `PtrString`
|
||||
* `PtrTime`
|
||||
|
||||
## Author
|
||||
|
||||
sales@schedmd.com
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,480 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
|
||||
// OpenapiAPIService OpenapiAPI service
|
||||
type OpenapiAPIService service
|
||||
|
||||
type ApiOpenapiGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *OpenapiAPIService
|
||||
}
|
||||
|
||||
func (r ApiOpenapiGetRequest) Execute() (*http.Response, error) {
|
||||
return r.ApiService.OpenapiGetExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
OpenapiGet Retrieve OpenAPI Specification
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiOpenapiGetRequest
|
||||
*/
|
||||
func (a *OpenapiAPIService) OpenapiGet(ctx context.Context) ApiOpenapiGetRequest {
|
||||
return ApiOpenapiGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
func (a *OpenapiAPIService) OpenapiGetExecute(r ApiOpenapiGetRequest) (*http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OpenapiAPIService.OpenapiGet")
|
||||
if err != nil {
|
||||
return nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/openapi"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["user"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["X-SLURM-USER-NAME"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["token"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["X-SLURM-USER-TOKEN"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiOpenapiJsonGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *OpenapiAPIService
|
||||
}
|
||||
|
||||
func (r ApiOpenapiJsonGetRequest) Execute() (*http.Response, error) {
|
||||
return r.ApiService.OpenapiJsonGetExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
OpenapiJsonGet Retrieve OpenAPI Specification
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiOpenapiJsonGetRequest
|
||||
*/
|
||||
func (a *OpenapiAPIService) OpenapiJsonGet(ctx context.Context) ApiOpenapiJsonGetRequest {
|
||||
return ApiOpenapiJsonGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
func (a *OpenapiAPIService) OpenapiJsonGetExecute(r ApiOpenapiJsonGetRequest) (*http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OpenapiAPIService.OpenapiJsonGet")
|
||||
if err != nil {
|
||||
return nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/openapi.json"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["user"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["X-SLURM-USER-NAME"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["token"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["X-SLURM-USER-TOKEN"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiOpenapiV3GetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *OpenapiAPIService
|
||||
}
|
||||
|
||||
func (r ApiOpenapiV3GetRequest) Execute() (*http.Response, error) {
|
||||
return r.ApiService.OpenapiV3GetExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
OpenapiV3Get Retrieve OpenAPI Specification
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiOpenapiV3GetRequest
|
||||
*/
|
||||
func (a *OpenapiAPIService) OpenapiV3Get(ctx context.Context) ApiOpenapiV3GetRequest {
|
||||
return ApiOpenapiV3GetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
func (a *OpenapiAPIService) OpenapiV3GetExecute(r ApiOpenapiV3GetRequest) (*http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OpenapiAPIService.OpenapiV3Get")
|
||||
if err != nil {
|
||||
return nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/openapi/v3"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["user"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["X-SLURM-USER-NAME"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["token"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["X-SLURM-USER-TOKEN"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiOpenapiYamlGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *OpenapiAPIService
|
||||
}
|
||||
|
||||
func (r ApiOpenapiYamlGetRequest) Execute() (*http.Response, error) {
|
||||
return r.ApiService.OpenapiYamlGetExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
OpenapiYamlGet Retrieve OpenAPI Specification
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiOpenapiYamlGetRequest
|
||||
*/
|
||||
func (a *OpenapiAPIService) OpenapiYamlGet(ctx context.Context) ApiOpenapiYamlGetRequest {
|
||||
return ApiOpenapiYamlGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
func (a *OpenapiAPIService) OpenapiYamlGetExecute(r ApiOpenapiYamlGetRequest) (*http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OpenapiAPIService.OpenapiYamlGet")
|
||||
if err != nil {
|
||||
return nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/openapi.yaml"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["user"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["X-SLURM-USER-NAME"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["token"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["X-SLURM-USER-TOKEN"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarHTTPResponse, nil
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,666 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"encoding/xml"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"mime/multipart"
|
||||
"net/http"
|
||||
"net/http/httputil"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
)
|
||||
|
||||
var (
|
||||
jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`)
|
||||
xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`)
|
||||
queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`)
|
||||
queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" )
|
||||
)
|
||||
|
||||
// APIClient manages communication with the Slurm Rest API API v0.0.37
|
||||
// In most cases there should be only one, shared, APIClient.
|
||||
type APIClient struct {
|
||||
cfg *Configuration
|
||||
common service // Reuse a single struct instead of allocating one for each service on the heap.
|
||||
|
||||
// API Services
|
||||
|
||||
OpenapiAPI *OpenapiAPIService
|
||||
|
||||
SlurmAPI *SlurmAPIService
|
||||
}
|
||||
|
||||
type service struct {
|
||||
client *APIClient
|
||||
}
|
||||
|
||||
// NewAPIClient creates a new API client. Requires a userAgent string describing your application.
|
||||
// optionally a custom http.Client to allow for advanced features such as caching.
|
||||
func NewAPIClient(cfg *Configuration) *APIClient {
|
||||
if cfg.HTTPClient == nil {
|
||||
cfg.HTTPClient = http.DefaultClient
|
||||
}
|
||||
|
||||
c := &APIClient{}
|
||||
c.cfg = cfg
|
||||
c.common.client = c
|
||||
|
||||
// API Services
|
||||
c.OpenapiAPI = (*OpenapiAPIService)(&c.common)
|
||||
c.SlurmAPI = (*SlurmAPIService)(&c.common)
|
||||
|
||||
return c
|
||||
}
|
||||
|
||||
func atoi(in string) (int, error) {
|
||||
return strconv.Atoi(in)
|
||||
}
|
||||
|
||||
// selectHeaderContentType select a content type from the available list.
|
||||
func selectHeaderContentType(contentTypes []string) string {
|
||||
if len(contentTypes) == 0 {
|
||||
return ""
|
||||
}
|
||||
if contains(contentTypes, "application/json") {
|
||||
return "application/json"
|
||||
}
|
||||
return contentTypes[0] // use the first content type specified in 'consumes'
|
||||
}
|
||||
|
||||
// selectHeaderAccept join all accept types and return
|
||||
func selectHeaderAccept(accepts []string) string {
|
||||
if len(accepts) == 0 {
|
||||
return ""
|
||||
}
|
||||
|
||||
if contains(accepts, "application/json") {
|
||||
return "application/json"
|
||||
}
|
||||
|
||||
return strings.Join(accepts, ",")
|
||||
}
|
||||
|
||||
// contains is a case insensitive match, finding needle in a haystack
|
||||
func contains(haystack []string, needle string) bool {
|
||||
for _, a := range haystack {
|
||||
if strings.EqualFold(a, needle) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Verify optional parameters are of the correct type.
|
||||
func typeCheckParameter(obj interface{}, expected string, name string) error {
|
||||
// Make sure there is an object.
|
||||
if obj == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Check the type is as expected.
|
||||
if reflect.TypeOf(obj).String() != expected {
|
||||
return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String())
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func parameterValueToString( obj interface{}, key string ) string {
|
||||
if reflect.TypeOf(obj).Kind() != reflect.Ptr {
|
||||
return fmt.Sprintf("%v", obj)
|
||||
}
|
||||
var param,ok = obj.(MappedNullable)
|
||||
if !ok {
|
||||
return ""
|
||||
}
|
||||
dataMap,err := param.ToMap()
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
return fmt.Sprintf("%v", dataMap[key])
|
||||
}
|
||||
|
||||
// parameterAddToHeaderOrQuery adds the provided object to the request header or url query
|
||||
// supporting deep object syntax
|
||||
func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) {
|
||||
var v = reflect.ValueOf(obj)
|
||||
var value = ""
|
||||
if v == reflect.ValueOf(nil) {
|
||||
value = "null"
|
||||
} else {
|
||||
switch v.Kind() {
|
||||
case reflect.Invalid:
|
||||
value = "invalid"
|
||||
|
||||
case reflect.Struct:
|
||||
if t,ok := obj.(MappedNullable); ok {
|
||||
dataMap,err := t.ToMap()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType)
|
||||
return
|
||||
}
|
||||
if t, ok := obj.(time.Time); ok {
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType)
|
||||
return
|
||||
}
|
||||
value = v.Type().String() + " value"
|
||||
case reflect.Slice:
|
||||
var indValue = reflect.ValueOf(obj)
|
||||
if indValue == reflect.ValueOf(nil) {
|
||||
return
|
||||
}
|
||||
var lenIndValue = indValue.Len()
|
||||
for i:=0;i<lenIndValue;i++ {
|
||||
var arrayValue = indValue.Index(i)
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, arrayValue.Interface(), collectionType)
|
||||
}
|
||||
return
|
||||
|
||||
case reflect.Map:
|
||||
var indValue = reflect.ValueOf(obj)
|
||||
if indValue == reflect.ValueOf(nil) {
|
||||
return
|
||||
}
|
||||
iter := indValue.MapRange()
|
||||
for iter.Next() {
|
||||
k,v := iter.Key(), iter.Value()
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), collectionType)
|
||||
}
|
||||
return
|
||||
|
||||
case reflect.Interface:
|
||||
fallthrough
|
||||
case reflect.Ptr:
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), collectionType)
|
||||
return
|
||||
|
||||
case reflect.Int, reflect.Int8, reflect.Int16,
|
||||
reflect.Int32, reflect.Int64:
|
||||
value = strconv.FormatInt(v.Int(), 10)
|
||||
case reflect.Uint, reflect.Uint8, reflect.Uint16,
|
||||
reflect.Uint32, reflect.Uint64, reflect.Uintptr:
|
||||
value = strconv.FormatUint(v.Uint(), 10)
|
||||
case reflect.Float32, reflect.Float64:
|
||||
value = strconv.FormatFloat(v.Float(), 'g', -1, 32)
|
||||
case reflect.Bool:
|
||||
value = strconv.FormatBool(v.Bool())
|
||||
case reflect.String:
|
||||
value = v.String()
|
||||
default:
|
||||
value = v.Type().String() + " value"
|
||||
}
|
||||
}
|
||||
|
||||
switch valuesMap := headerOrQueryParams.(type) {
|
||||
case url.Values:
|
||||
if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" {
|
||||
valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix) + "," + value)
|
||||
} else {
|
||||
valuesMap.Add(keyPrefix, value)
|
||||
}
|
||||
break
|
||||
case map[string]string:
|
||||
valuesMap[keyPrefix] = value
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// helper for converting interface{} parameters to json strings
|
||||
func parameterToJson(obj interface{}) (string, error) {
|
||||
jsonBuf, err := json.Marshal(obj)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return string(jsonBuf), err
|
||||
}
|
||||
|
||||
// callAPI do the request.
|
||||
func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
|
||||
if c.cfg.Debug {
|
||||
dump, err := httputil.DumpRequestOut(request, true)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
log.Printf("\n%s\n", string(dump))
|
||||
}
|
||||
|
||||
resp, err := c.cfg.HTTPClient.Do(request)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
if c.cfg.Debug {
|
||||
dump, err := httputil.DumpResponse(resp, true)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
log.Printf("\n%s\n", string(dump))
|
||||
}
|
||||
return resp, err
|
||||
}
|
||||
|
||||
// Allow modification of underlying config for alternate implementations and testing
|
||||
// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
|
||||
func (c *APIClient) GetConfig() *Configuration {
|
||||
return c.cfg
|
||||
}
|
||||
|
||||
type formFile struct {
|
||||
fileBytes []byte
|
||||
fileName string
|
||||
formFileName string
|
||||
}
|
||||
|
||||
// prepareRequest build the request
|
||||
func (c *APIClient) prepareRequest(
|
||||
ctx context.Context,
|
||||
path string, method string,
|
||||
postBody interface{},
|
||||
headerParams map[string]string,
|
||||
queryParams url.Values,
|
||||
formParams url.Values,
|
||||
formFiles []formFile) (localVarRequest *http.Request, err error) {
|
||||
|
||||
var body *bytes.Buffer
|
||||
|
||||
// Detect postBody type and post.
|
||||
if postBody != nil {
|
||||
contentType := headerParams["Content-Type"]
|
||||
if contentType == "" {
|
||||
contentType = detectContentType(postBody)
|
||||
headerParams["Content-Type"] = contentType
|
||||
}
|
||||
|
||||
body, err = setBody(postBody, contentType)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
// add form parameters and file if available.
|
||||
if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) {
|
||||
if body != nil {
|
||||
return nil, errors.New("Cannot specify postBody and multipart form at the same time.")
|
||||
}
|
||||
body = &bytes.Buffer{}
|
||||
w := multipart.NewWriter(body)
|
||||
|
||||
for k, v := range formParams {
|
||||
for _, iv := range v {
|
||||
if strings.HasPrefix(k, "@") { // file
|
||||
err = addFile(w, k[1:], iv)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
} else { // form value
|
||||
w.WriteField(k, iv)
|
||||
}
|
||||
}
|
||||
}
|
||||
for _, formFile := range formFiles {
|
||||
if len(formFile.fileBytes) > 0 && formFile.fileName != "" {
|
||||
w.Boundary()
|
||||
part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
_, err = part.Write(formFile.fileBytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Set the Boundary in the Content-Type
|
||||
headerParams["Content-Type"] = w.FormDataContentType()
|
||||
|
||||
// Set Content-Length
|
||||
headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len())
|
||||
w.Close()
|
||||
}
|
||||
|
||||
if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 {
|
||||
if body != nil {
|
||||
return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.")
|
||||
}
|
||||
body = &bytes.Buffer{}
|
||||
body.WriteString(formParams.Encode())
|
||||
// Set Content-Length
|
||||
headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len())
|
||||
}
|
||||
|
||||
// Setup path and query parameters
|
||||
url, err := url.Parse(path)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Override request host, if applicable
|
||||
if c.cfg.Host != "" {
|
||||
url.Host = c.cfg.Host
|
||||
}
|
||||
|
||||
// Override request scheme, if applicable
|
||||
if c.cfg.Scheme != "" {
|
||||
url.Scheme = c.cfg.Scheme
|
||||
}
|
||||
|
||||
// Adding Query Param
|
||||
query := url.Query()
|
||||
for k, v := range queryParams {
|
||||
for _, iv := range v {
|
||||
query.Add(k, iv)
|
||||
}
|
||||
}
|
||||
|
||||
// Encode the parameters.
|
||||
url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string {
|
||||
pieces := strings.Split(s, "=")
|
||||
pieces[0] = queryDescape.Replace(pieces[0])
|
||||
return strings.Join(pieces, "=")
|
||||
})
|
||||
|
||||
// Generate a new request
|
||||
if body != nil {
|
||||
localVarRequest, err = http.NewRequest(method, url.String(), body)
|
||||
} else {
|
||||
localVarRequest, err = http.NewRequest(method, url.String(), nil)
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// add header parameters, if any
|
||||
if len(headerParams) > 0 {
|
||||
headers := http.Header{}
|
||||
for h, v := range headerParams {
|
||||
headers[h] = []string{v}
|
||||
}
|
||||
localVarRequest.Header = headers
|
||||
}
|
||||
|
||||
// Add the user agent to the request.
|
||||
localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent)
|
||||
|
||||
if ctx != nil {
|
||||
// add context to the request
|
||||
localVarRequest = localVarRequest.WithContext(ctx)
|
||||
|
||||
// Walk through any authentication.
|
||||
|
||||
}
|
||||
|
||||
for header, value := range c.cfg.DefaultHeader {
|
||||
localVarRequest.Header.Add(header, value)
|
||||
}
|
||||
return localVarRequest, nil
|
||||
}
|
||||
|
||||
func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) {
|
||||
if len(b) == 0 {
|
||||
return nil
|
||||
}
|
||||
if s, ok := v.(*string); ok {
|
||||
*s = string(b)
|
||||
return nil
|
||||
}
|
||||
if f, ok := v.(*os.File); ok {
|
||||
f, err = os.CreateTemp("", "HttpClientFile")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, err = f.Write(b)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, err = f.Seek(0, io.SeekStart)
|
||||
err = os.Remove(f.Name())
|
||||
return
|
||||
}
|
||||
if f, ok := v.(**os.File); ok {
|
||||
*f, err = os.CreateTemp("", "HttpClientFile")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, err = (*f).Write(b)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, err = (*f).Seek(0, io.SeekStart)
|
||||
err = os.Remove((*f).Name())
|
||||
return
|
||||
}
|
||||
if xmlCheck.MatchString(contentType) {
|
||||
if err = xml.Unmarshal(b, v); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
if jsonCheck.MatchString(contentType) {
|
||||
if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas
|
||||
if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined
|
||||
if err = unmarshalObj.UnmarshalJSON(b); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined")
|
||||
}
|
||||
} else if err = json.Unmarshal(b, v); err != nil { // simple model
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return errors.New("undefined response type")
|
||||
}
|
||||
|
||||
// Add a file to the multipart request
|
||||
func addFile(w *multipart.Writer, fieldName, path string) error {
|
||||
file, err := os.Open(filepath.Clean(path))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = file.Close()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
part, err := w.CreateFormFile(fieldName, filepath.Base(path))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = io.Copy(part, file)
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// Prevent trying to import "fmt"
|
||||
func reportError(format string, a ...interface{}) error {
|
||||
return fmt.Errorf(format, a...)
|
||||
}
|
||||
|
||||
// A wrapper for strict JSON decoding
|
||||
func newStrictDecoder(data []byte) *json.Decoder {
|
||||
dec := json.NewDecoder(bytes.NewBuffer(data))
|
||||
dec.DisallowUnknownFields()
|
||||
return dec
|
||||
}
|
||||
|
||||
// Set request body from an interface{}
|
||||
func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) {
|
||||
if bodyBuf == nil {
|
||||
bodyBuf = &bytes.Buffer{}
|
||||
}
|
||||
|
||||
if reader, ok := body.(io.Reader); ok {
|
||||
_, err = bodyBuf.ReadFrom(reader)
|
||||
} else if fp, ok := body.(*os.File); ok {
|
||||
_, err = bodyBuf.ReadFrom(fp)
|
||||
} else if b, ok := body.([]byte); ok {
|
||||
_, err = bodyBuf.Write(b)
|
||||
} else if s, ok := body.(string); ok {
|
||||
_, err = bodyBuf.WriteString(s)
|
||||
} else if s, ok := body.(*string); ok {
|
||||
_, err = bodyBuf.WriteString(*s)
|
||||
} else if jsonCheck.MatchString(contentType) {
|
||||
err = json.NewEncoder(bodyBuf).Encode(body)
|
||||
} else if xmlCheck.MatchString(contentType) {
|
||||
var bs []byte
|
||||
bs, err = xml.Marshal(body)
|
||||
if err == nil {
|
||||
bodyBuf.Write(bs)
|
||||
}
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if bodyBuf.Len() == 0 {
|
||||
err = fmt.Errorf("invalid body type %s\n", contentType)
|
||||
return nil, err
|
||||
}
|
||||
return bodyBuf, nil
|
||||
}
|
||||
|
||||
// detectContentType method is used to figure out `Request.Body` content type for request header
|
||||
func detectContentType(body interface{}) string {
|
||||
contentType := "text/plain; charset=utf-8"
|
||||
kind := reflect.TypeOf(body).Kind()
|
||||
|
||||
switch kind {
|
||||
case reflect.Struct, reflect.Map, reflect.Ptr:
|
||||
contentType = "application/json; charset=utf-8"
|
||||
case reflect.String:
|
||||
contentType = "text/plain; charset=utf-8"
|
||||
default:
|
||||
if b, ok := body.([]byte); ok {
|
||||
contentType = http.DetectContentType(b)
|
||||
} else if kind == reflect.Slice {
|
||||
contentType = "application/json; charset=utf-8"
|
||||
}
|
||||
}
|
||||
|
||||
return contentType
|
||||
}
|
||||
|
||||
// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go
|
||||
type cacheControl map[string]string
|
||||
|
||||
func parseCacheControl(headers http.Header) cacheControl {
|
||||
cc := cacheControl{}
|
||||
ccHeader := headers.Get("Cache-Control")
|
||||
for _, part := range strings.Split(ccHeader, ",") {
|
||||
part = strings.Trim(part, " ")
|
||||
if part == "" {
|
||||
continue
|
||||
}
|
||||
if strings.ContainsRune(part, '=') {
|
||||
keyval := strings.Split(part, "=")
|
||||
cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",")
|
||||
} else {
|
||||
cc[part] = ""
|
||||
}
|
||||
}
|
||||
return cc
|
||||
}
|
||||
|
||||
// CacheExpires helper function to determine remaining time before repeating a request.
|
||||
func CacheExpires(r *http.Response) time.Time {
|
||||
// Figure out when the cache expires.
|
||||
var expires time.Time
|
||||
now, err := time.Parse(time.RFC1123, r.Header.Get("date"))
|
||||
if err != nil {
|
||||
return time.Now()
|
||||
}
|
||||
respCacheControl := parseCacheControl(r.Header)
|
||||
|
||||
if maxAge, ok := respCacheControl["max-age"]; ok {
|
||||
lifetime, err := time.ParseDuration(maxAge + "s")
|
||||
if err != nil {
|
||||
expires = now
|
||||
} else {
|
||||
expires = now.Add(lifetime)
|
||||
}
|
||||
} else {
|
||||
expiresHeader := r.Header.Get("Expires")
|
||||
if expiresHeader != "" {
|
||||
expires, err = time.Parse(time.RFC1123, expiresHeader)
|
||||
if err != nil {
|
||||
expires = now
|
||||
}
|
||||
}
|
||||
}
|
||||
return expires
|
||||
}
|
||||
|
||||
func strlen(s string) int {
|
||||
return utf8.RuneCountInString(s)
|
||||
}
|
||||
|
||||
// GenericOpenAPIError Provides access to the body, error and model on returned errors.
|
||||
type GenericOpenAPIError struct {
|
||||
body []byte
|
||||
error string
|
||||
model interface{}
|
||||
}
|
||||
|
||||
// Error returns non-empty string if there was an error.
|
||||
func (e GenericOpenAPIError) Error() string {
|
||||
return e.error
|
||||
}
|
||||
|
||||
// Body returns the raw bytes of the response
|
||||
func (e GenericOpenAPIError) Body() []byte {
|
||||
return e.body
|
||||
}
|
||||
|
||||
// Model returns the unpacked model of the error
|
||||
func (e GenericOpenAPIError) Model() interface{} {
|
||||
return e.model
|
||||
}
|
||||
|
||||
// format error message using title and detail when model implements rfc7807
|
||||
func formatErrorMessage(status string, v interface{}) string {
|
||||
str := ""
|
||||
metaValue := reflect.ValueOf(v).Elem()
|
||||
|
||||
if metaValue.Kind() == reflect.Struct {
|
||||
field := metaValue.FieldByName("Title")
|
||||
if field != (reflect.Value{}) {
|
||||
str = fmt.Sprintf("%s", field.Interface())
|
||||
}
|
||||
|
||||
field = metaValue.FieldByName("Detail")
|
||||
if field != (reflect.Value{}) {
|
||||
str = fmt.Sprintf("%s (%s)", str, field.Interface())
|
||||
}
|
||||
}
|
||||
|
||||
return strings.TrimSpace(fmt.Sprintf("%s %s", status, str))
|
||||
}
|
@ -1,243 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// contextKeys are used to identify the type of value in the context.
|
||||
// Since these are string, it is possible to get a short description of the
|
||||
// context key for logging and debugging using key.String().
|
||||
|
||||
type contextKey string
|
||||
|
||||
func (c contextKey) String() string {
|
||||
return "auth " + string(c)
|
||||
}
|
||||
|
||||
var (
|
||||
// ContextAPIKeys takes a string apikey as authentication for the request
|
||||
ContextAPIKeys = contextKey("apiKeys")
|
||||
|
||||
// ContextServerIndex uses a server configuration from the index.
|
||||
ContextServerIndex = contextKey("serverIndex")
|
||||
|
||||
// ContextOperationServerIndices uses a server configuration from the index mapping.
|
||||
ContextOperationServerIndices = contextKey("serverOperationIndices")
|
||||
|
||||
// ContextServerVariables overrides a server configuration variables.
|
||||
ContextServerVariables = contextKey("serverVariables")
|
||||
|
||||
// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
|
||||
ContextOperationServerVariables = contextKey("serverOperationVariables")
|
||||
)
|
||||
|
||||
// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
|
||||
type BasicAuth struct {
|
||||
UserName string `json:"userName,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
}
|
||||
|
||||
// APIKey provides API key based authentication to a request passed via context using ContextAPIKey
|
||||
type APIKey struct {
|
||||
Key string
|
||||
Prefix string
|
||||
}
|
||||
|
||||
// ServerVariable stores the information about a server variable
|
||||
type ServerVariable struct {
|
||||
Description string
|
||||
DefaultValue string
|
||||
EnumValues []string
|
||||
}
|
||||
|
||||
// ServerConfiguration stores the information about a server
|
||||
type ServerConfiguration struct {
|
||||
URL string
|
||||
Description string
|
||||
Variables map[string]ServerVariable
|
||||
}
|
||||
|
||||
// ServerConfigurations stores multiple ServerConfiguration items
|
||||
type ServerConfigurations []ServerConfiguration
|
||||
|
||||
// Configuration stores the configuration of the API client
|
||||
type Configuration struct {
|
||||
Host string `json:"host,omitempty"`
|
||||
Scheme string `json:"scheme,omitempty"`
|
||||
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
|
||||
UserAgent string `json:"userAgent,omitempty"`
|
||||
Debug bool `json:"debug,omitempty"`
|
||||
Servers ServerConfigurations
|
||||
OperationServers map[string]ServerConfigurations
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// NewConfiguration returns a new Configuration object
|
||||
func NewConfiguration() *Configuration {
|
||||
cfg := &Configuration{
|
||||
DefaultHeader: make(map[string]string),
|
||||
UserAgent: "OpenAPI-Generator/1.0.0/go",
|
||||
Debug: false,
|
||||
Servers: ServerConfigurations{
|
||||
{
|
||||
URL: "/slurm/v0.0.37",
|
||||
Description: "No description provided",
|
||||
},
|
||||
},
|
||||
OperationServers: map[string]ServerConfigurations{
|
||||
"OpenapiAPIService.OpenapiGet": {
|
||||
{
|
||||
URL: "/",
|
||||
Description: "No description provided",
|
||||
},
|
||||
},
|
||||
"OpenapiAPIService.OpenapiJsonGet": {
|
||||
{
|
||||
URL: "/",
|
||||
Description: "No description provided",
|
||||
},
|
||||
},
|
||||
"OpenapiAPIService.OpenapiV3Get": {
|
||||
{
|
||||
URL: "/",
|
||||
Description: "No description provided",
|
||||
},
|
||||
},
|
||||
"OpenapiAPIService.OpenapiYamlGet": {
|
||||
{
|
||||
URL: "/",
|
||||
Description: "No description provided",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
return cfg
|
||||
}
|
||||
|
||||
// AddDefaultHeader adds a new HTTP header to the default header in the request
|
||||
func (c *Configuration) AddDefaultHeader(key string, value string) {
|
||||
c.DefaultHeader[key] = value
|
||||
}
|
||||
|
||||
// URL formats template on a index using given variables
|
||||
func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) {
|
||||
if index < 0 || len(sc) <= index {
|
||||
return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1)
|
||||
}
|
||||
server := sc[index]
|
||||
url := server.URL
|
||||
|
||||
// go through variables and replace placeholders
|
||||
for name, variable := range server.Variables {
|
||||
if value, ok := variables[name]; ok {
|
||||
found := bool(len(variable.EnumValues) == 0)
|
||||
for _, enumValue := range variable.EnumValues {
|
||||
if value == enumValue {
|
||||
found = true
|
||||
}
|
||||
}
|
||||
if !found {
|
||||
return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues)
|
||||
}
|
||||
url = strings.Replace(url, "{"+name+"}", value, -1)
|
||||
} else {
|
||||
url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1)
|
||||
}
|
||||
}
|
||||
return url, nil
|
||||
}
|
||||
|
||||
// ServerURL returns URL based on server settings
|
||||
func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) {
|
||||
return c.Servers.URL(index, variables)
|
||||
}
|
||||
|
||||
func getServerIndex(ctx context.Context) (int, error) {
|
||||
si := ctx.Value(ContextServerIndex)
|
||||
if si != nil {
|
||||
if index, ok := si.(int); ok {
|
||||
return index, nil
|
||||
}
|
||||
return 0, reportError("Invalid type %T should be int", si)
|
||||
}
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) {
|
||||
osi := ctx.Value(ContextOperationServerIndices)
|
||||
if osi != nil {
|
||||
if operationIndices, ok := osi.(map[string]int); !ok {
|
||||
return 0, reportError("Invalid type %T should be map[string]int", osi)
|
||||
} else {
|
||||
index, ok := operationIndices[endpoint]
|
||||
if ok {
|
||||
return index, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
return getServerIndex(ctx)
|
||||
}
|
||||
|
||||
func getServerVariables(ctx context.Context) (map[string]string, error) {
|
||||
sv := ctx.Value(ContextServerVariables)
|
||||
if sv != nil {
|
||||
if variables, ok := sv.(map[string]string); ok {
|
||||
return variables, nil
|
||||
}
|
||||
return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv)
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) {
|
||||
osv := ctx.Value(ContextOperationServerVariables)
|
||||
if osv != nil {
|
||||
if operationVariables, ok := osv.(map[string]map[string]string); !ok {
|
||||
return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv)
|
||||
} else {
|
||||
variables, ok := operationVariables[endpoint]
|
||||
if ok {
|
||||
return variables, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
return getServerVariables(ctx)
|
||||
}
|
||||
|
||||
// ServerURLWithContext returns a new server URL given an endpoint
|
||||
func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) {
|
||||
sc, ok := c.OperationServers[endpoint]
|
||||
if !ok {
|
||||
sc = c.Servers
|
||||
}
|
||||
|
||||
if ctx == nil {
|
||||
return sc.URL(0, nil)
|
||||
}
|
||||
|
||||
index, err := getServerOperationIndex(ctx, endpoint)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
variables, err := getServerOperationVariables(ctx, endpoint)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return sc.URL(index, variables)
|
||||
}
|
@ -1,240 +0,0 @@
|
||||
# \OpenapiAPI
|
||||
|
||||
All URIs are relative to *http://localhost/slurm/v0.0.37*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**OpenapiGet**](OpenapiAPI.md#OpenapiGet) | **Get** /openapi | Retrieve OpenAPI Specification
|
||||
[**OpenapiJsonGet**](OpenapiAPI.md#OpenapiJsonGet) | **Get** /openapi.json | Retrieve OpenAPI Specification
|
||||
[**OpenapiV3Get**](OpenapiAPI.md#OpenapiV3Get) | **Get** /openapi/v3 | Retrieve OpenAPI Specification
|
||||
[**OpenapiYamlGet**](OpenapiAPI.md#OpenapiYamlGet) | **Get** /openapi.yaml | Retrieve OpenAPI Specification
|
||||
|
||||
|
||||
|
||||
## OpenapiGet
|
||||
|
||||
> OpenapiGet(ctx).Execute()
|
||||
|
||||
Retrieve OpenAPI Specification
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
r, err := apiClient.OpenapiAPI.OpenapiGet(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OpenapiAPI.OpenapiGet``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiOpenapiGetRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## OpenapiJsonGet
|
||||
|
||||
> OpenapiJsonGet(ctx).Execute()
|
||||
|
||||
Retrieve OpenAPI Specification
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
r, err := apiClient.OpenapiAPI.OpenapiJsonGet(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OpenapiAPI.OpenapiJsonGet``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiOpenapiJsonGetRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## OpenapiV3Get
|
||||
|
||||
> OpenapiV3Get(ctx).Execute()
|
||||
|
||||
Retrieve OpenAPI Specification
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
r, err := apiClient.OpenapiAPI.OpenapiV3Get(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OpenapiAPI.OpenapiV3Get``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiOpenapiV3GetRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## OpenapiYamlGet
|
||||
|
||||
> OpenapiYamlGet(ctx).Execute()
|
||||
|
||||
Retrieve OpenAPI Specification
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
r, err := apiClient.OpenapiAPI.OpenapiYamlGet(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OpenapiAPI.OpenapiYamlGet``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiOpenapiYamlGetRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
@ -1,871 +0,0 @@
|
||||
# \SlurmAPI
|
||||
|
||||
All URIs are relative to *http://localhost/slurm/v0.0.37*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**SlurmctldCancelJob**](SlurmAPI.md#SlurmctldCancelJob) | **Delete** /job/{job_id} | cancel or signal job
|
||||
[**SlurmctldDiag**](SlurmAPI.md#SlurmctldDiag) | **Get** /diag/ | get diagnostics
|
||||
[**SlurmctldGetJob**](SlurmAPI.md#SlurmctldGetJob) | **Get** /job/{job_id} | get job info
|
||||
[**SlurmctldGetJobs**](SlurmAPI.md#SlurmctldGetJobs) | **Get** /jobs/ | get list of jobs
|
||||
[**SlurmctldGetNode**](SlurmAPI.md#SlurmctldGetNode) | **Get** /node/{node_name} | get node info
|
||||
[**SlurmctldGetNodes**](SlurmAPI.md#SlurmctldGetNodes) | **Get** /nodes/ | get all node info
|
||||
[**SlurmctldGetPartition**](SlurmAPI.md#SlurmctldGetPartition) | **Get** /partition/{partition_name} | get partition info
|
||||
[**SlurmctldGetPartitions**](SlurmAPI.md#SlurmctldGetPartitions) | **Get** /partitions/ | get all partition info
|
||||
[**SlurmctldGetReservation**](SlurmAPI.md#SlurmctldGetReservation) | **Get** /reservation/{reservation_name} | get reservation info
|
||||
[**SlurmctldGetReservations**](SlurmAPI.md#SlurmctldGetReservations) | **Get** /reservations/ | get all reservation info
|
||||
[**SlurmctldPing**](SlurmAPI.md#SlurmctldPing) | **Get** /ping/ | ping test
|
||||
[**SlurmctldSubmitJob**](SlurmAPI.md#SlurmctldSubmitJob) | **Post** /job/submit | submit new job
|
||||
[**SlurmctldUpdateJob**](SlurmAPI.md#SlurmctldUpdateJob) | **Post** /job/{job_id} | update job
|
||||
|
||||
|
||||
|
||||
## SlurmctldCancelJob
|
||||
|
||||
> SlurmctldCancelJob(ctx, jobId).Signal(signal).Execute()
|
||||
|
||||
cancel or signal job
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
jobId := "jobId_example" // string | Slurm Job ID
|
||||
signal := openapiclient.v0.0.37_signal("HUP") // V0037Signal | signal to send to job (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
r, err := apiClient.SlurmAPI.SlurmctldCancelJob(context.Background(), jobId).Signal(signal).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmctldCancelJob``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**jobId** | **string** | Slurm Job ID |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiSlurmctldCancelJobRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**signal** | [**V0037Signal**](V0037Signal.md) | signal to send to job |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## SlurmctldDiag
|
||||
|
||||
> V0037Diag SlurmctldDiag(ctx).Execute()
|
||||
|
||||
get diagnostics
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SlurmAPI.SlurmctldDiag(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmctldDiag``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `SlurmctldDiag`: V0037Diag
|
||||
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmctldDiag`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiSlurmctldDiagRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**V0037Diag**](V0037Diag.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/x-yaml
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## SlurmctldGetJob
|
||||
|
||||
> V0037JobsResponse SlurmctldGetJob(ctx, jobId).Execute()
|
||||
|
||||
get job info
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
jobId := "jobId_example" // string | Slurm JobID
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SlurmAPI.SlurmctldGetJob(context.Background(), jobId).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmctldGetJob``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `SlurmctldGetJob`: V0037JobsResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmctldGetJob`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**jobId** | **string** | Slurm JobID |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiSlurmctldGetJobRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**V0037JobsResponse**](V0037JobsResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/x-yaml
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## SlurmctldGetJobs
|
||||
|
||||
> V0037JobsResponse SlurmctldGetJobs(ctx).UpdateTime(updateTime).Execute()
|
||||
|
||||
get list of jobs
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
updateTime := int64(789) // int64 | Filter if changed since update_time. Use of this parameter can result in faster replies. (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SlurmAPI.SlurmctldGetJobs(context.Background()).UpdateTime(updateTime).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmctldGetJobs``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `SlurmctldGetJobs`: V0037JobsResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmctldGetJobs`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiSlurmctldGetJobsRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**updateTime** | **int64** | Filter if changed since update_time. Use of this parameter can result in faster replies. |
|
||||
|
||||
### Return type
|
||||
|
||||
[**V0037JobsResponse**](V0037JobsResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/x-yaml
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## SlurmctldGetNode
|
||||
|
||||
> V0037NodesResponse SlurmctldGetNode(ctx, nodeName).Execute()
|
||||
|
||||
get node info
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
nodeName := "nodeName_example" // string | Slurm Node Name
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SlurmAPI.SlurmctldGetNode(context.Background(), nodeName).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmctldGetNode``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `SlurmctldGetNode`: V0037NodesResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmctldGetNode`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**nodeName** | **string** | Slurm Node Name |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiSlurmctldGetNodeRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**V0037NodesResponse**](V0037NodesResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/x-yaml
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## SlurmctldGetNodes
|
||||
|
||||
> V0037NodesResponse SlurmctldGetNodes(ctx).UpdateTime(updateTime).Execute()
|
||||
|
||||
get all node info
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
updateTime := int64(789) // int64 | Filter if changed since update_time. Use of this parameter can result in faster replies. (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SlurmAPI.SlurmctldGetNodes(context.Background()).UpdateTime(updateTime).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmctldGetNodes``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `SlurmctldGetNodes`: V0037NodesResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmctldGetNodes`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiSlurmctldGetNodesRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**updateTime** | **int64** | Filter if changed since update_time. Use of this parameter can result in faster replies. |
|
||||
|
||||
### Return type
|
||||
|
||||
[**V0037NodesResponse**](V0037NodesResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/x-yaml
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## SlurmctldGetPartition
|
||||
|
||||
> V0037PartitionsResponse SlurmctldGetPartition(ctx, partitionName).UpdateTime(updateTime).Execute()
|
||||
|
||||
get partition info
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
partitionName := "partitionName_example" // string | Slurm Partition Name
|
||||
updateTime := int64(789) // int64 | Filter if there were no partition changes (not limited to partition in URL endpoint) since update_time. (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SlurmAPI.SlurmctldGetPartition(context.Background(), partitionName).UpdateTime(updateTime).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmctldGetPartition``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `SlurmctldGetPartition`: V0037PartitionsResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmctldGetPartition`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**partitionName** | **string** | Slurm Partition Name |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiSlurmctldGetPartitionRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**updateTime** | **int64** | Filter if there were no partition changes (not limited to partition in URL endpoint) since update_time. |
|
||||
|
||||
### Return type
|
||||
|
||||
[**V0037PartitionsResponse**](V0037PartitionsResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/x-yaml
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## SlurmctldGetPartitions
|
||||
|
||||
> V0037PartitionsResponse SlurmctldGetPartitions(ctx).UpdateTime(updateTime).Execute()
|
||||
|
||||
get all partition info
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
updateTime := int64(789) // int64 | Filter if changed since update_time. Use of this parameter can result in faster replies. (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SlurmAPI.SlurmctldGetPartitions(context.Background()).UpdateTime(updateTime).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmctldGetPartitions``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `SlurmctldGetPartitions`: V0037PartitionsResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmctldGetPartitions`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiSlurmctldGetPartitionsRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**updateTime** | **int64** | Filter if changed since update_time. Use of this parameter can result in faster replies. |
|
||||
|
||||
### Return type
|
||||
|
||||
[**V0037PartitionsResponse**](V0037PartitionsResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/x-yaml
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## SlurmctldGetReservation
|
||||
|
||||
> V0037ReservationsResponse SlurmctldGetReservation(ctx, reservationName).UpdateTime(updateTime).Execute()
|
||||
|
||||
get reservation info
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
reservationName := "reservationName_example" // string | Slurm Reservation Name
|
||||
updateTime := int64(789) // int64 | Filter if no reservation (not limited to reservation in URL) changed since update_time. (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SlurmAPI.SlurmctldGetReservation(context.Background(), reservationName).UpdateTime(updateTime).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmctldGetReservation``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `SlurmctldGetReservation`: V0037ReservationsResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmctldGetReservation`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**reservationName** | **string** | Slurm Reservation Name |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiSlurmctldGetReservationRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**updateTime** | **int64** | Filter if no reservation (not limited to reservation in URL) changed since update_time. |
|
||||
|
||||
### Return type
|
||||
|
||||
[**V0037ReservationsResponse**](V0037ReservationsResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/x-yaml
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## SlurmctldGetReservations
|
||||
|
||||
> V0037ReservationsResponse SlurmctldGetReservations(ctx).UpdateTime(updateTime).Execute()
|
||||
|
||||
get all reservation info
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
updateTime := int64(789) // int64 | Filter if changed since update_time. Use of this parameter can result in faster replies. (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SlurmAPI.SlurmctldGetReservations(context.Background()).UpdateTime(updateTime).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmctldGetReservations``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `SlurmctldGetReservations`: V0037ReservationsResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmctldGetReservations`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiSlurmctldGetReservationsRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**updateTime** | **int64** | Filter if changed since update_time. Use of this parameter can result in faster replies. |
|
||||
|
||||
### Return type
|
||||
|
||||
[**V0037ReservationsResponse**](V0037ReservationsResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/x-yaml
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## SlurmctldPing
|
||||
|
||||
> V0037Pings SlurmctldPing(ctx).Execute()
|
||||
|
||||
ping test
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SlurmAPI.SlurmctldPing(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmctldPing``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `SlurmctldPing`: V0037Pings
|
||||
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmctldPing`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiSlurmctldPingRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**V0037Pings**](V0037Pings.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/x-yaml
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## SlurmctldSubmitJob
|
||||
|
||||
> V0037JobSubmissionResponse SlurmctldSubmitJob(ctx).V0037JobSubmission(v0037JobSubmission).Execute()
|
||||
|
||||
submit new job
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
v0037JobSubmission := *openapiclient.NewV0037JobSubmission("Script_example") // V0037JobSubmission | submit new job
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SlurmAPI.SlurmctldSubmitJob(context.Background()).V0037JobSubmission(v0037JobSubmission).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmctldSubmitJob``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `SlurmctldSubmitJob`: V0037JobSubmissionResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmctldSubmitJob`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiSlurmctldSubmitJobRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**v0037JobSubmission** | [**V0037JobSubmission**](V0037JobSubmission.md) | submit new job |
|
||||
|
||||
### Return type
|
||||
|
||||
[**V0037JobSubmissionResponse**](V0037JobSubmissionResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, application/x-yaml
|
||||
- **Accept**: application/json, application/x-yaml
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## SlurmctldUpdateJob
|
||||
|
||||
> SlurmctldUpdateJob(ctx, jobId).V0037JobProperties(v0037JobProperties).Execute()
|
||||
|
||||
update job
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
jobId := "jobId_example" // string | Slurm Job ID
|
||||
v0037JobProperties := *openapiclient.NewV0037JobProperties(map[string]interface{}(123)) // V0037JobProperties | update job
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
r, err := apiClient.SlurmAPI.SlurmctldUpdateJob(context.Background(), jobId).V0037JobProperties(v0037JobProperties).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmctldUpdateJob``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**jobId** | **string** | Slurm Job ID |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiSlurmctldUpdateJobRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**v0037JobProperties** | [**V0037JobProperties**](V0037JobProperties.md) | update job |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[user](../README.md#user), [token](../README.md#token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, application/x-yaml
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
@ -1,82 +0,0 @@
|
||||
# V0037Diag
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Errors** | Pointer to [**[]V0037Error**](V0037Error.md) | slurm errors | [optional]
|
||||
**Statistics** | Pointer to [**V0037DiagStatistics**](V0037DiagStatistics.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037Diag
|
||||
|
||||
`func NewV0037Diag() *V0037Diag`
|
||||
|
||||
NewV0037Diag instantiates a new V0037Diag object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037DiagWithDefaults
|
||||
|
||||
`func NewV0037DiagWithDefaults() *V0037Diag`
|
||||
|
||||
NewV0037DiagWithDefaults instantiates a new V0037Diag object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetErrors
|
||||
|
||||
`func (o *V0037Diag) GetErrors() []V0037Error`
|
||||
|
||||
GetErrors returns the Errors field if non-nil, zero value otherwise.
|
||||
|
||||
### GetErrorsOk
|
||||
|
||||
`func (o *V0037Diag) GetErrorsOk() (*[]V0037Error, bool)`
|
||||
|
||||
GetErrorsOk returns a tuple with the Errors field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetErrors
|
||||
|
||||
`func (o *V0037Diag) SetErrors(v []V0037Error)`
|
||||
|
||||
SetErrors sets Errors field to given value.
|
||||
|
||||
### HasErrors
|
||||
|
||||
`func (o *V0037Diag) HasErrors() bool`
|
||||
|
||||
HasErrors returns a boolean if a field has been set.
|
||||
|
||||
### GetStatistics
|
||||
|
||||
`func (o *V0037Diag) GetStatistics() V0037DiagStatistics`
|
||||
|
||||
GetStatistics returns the Statistics field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStatisticsOk
|
||||
|
||||
`func (o *V0037Diag) GetStatisticsOk() (*V0037DiagStatistics, bool)`
|
||||
|
||||
GetStatisticsOk returns a tuple with the Statistics field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStatistics
|
||||
|
||||
`func (o *V0037Diag) SetStatistics(v V0037DiagStatistics)`
|
||||
|
||||
SetStatistics sets Statistics field to given value.
|
||||
|
||||
### HasStatistics
|
||||
|
||||
`func (o *V0037Diag) HasStatistics() bool`
|
||||
|
||||
HasStatistics returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,82 +0,0 @@
|
||||
# V0037Error
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Error** | Pointer to **string** | error message | [optional]
|
||||
**Errno** | Pointer to **int32** | error number | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037Error
|
||||
|
||||
`func NewV0037Error() *V0037Error`
|
||||
|
||||
NewV0037Error instantiates a new V0037Error object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037ErrorWithDefaults
|
||||
|
||||
`func NewV0037ErrorWithDefaults() *V0037Error`
|
||||
|
||||
NewV0037ErrorWithDefaults instantiates a new V0037Error object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetError
|
||||
|
||||
`func (o *V0037Error) GetError() string`
|
||||
|
||||
GetError returns the Error field if non-nil, zero value otherwise.
|
||||
|
||||
### GetErrorOk
|
||||
|
||||
`func (o *V0037Error) GetErrorOk() (*string, bool)`
|
||||
|
||||
GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetError
|
||||
|
||||
`func (o *V0037Error) SetError(v string)`
|
||||
|
||||
SetError sets Error field to given value.
|
||||
|
||||
### HasError
|
||||
|
||||
`func (o *V0037Error) HasError() bool`
|
||||
|
||||
HasError returns a boolean if a field has been set.
|
||||
|
||||
### GetErrno
|
||||
|
||||
`func (o *V0037Error) GetErrno() int32`
|
||||
|
||||
GetErrno returns the Errno field if non-nil, zero value otherwise.
|
||||
|
||||
### GetErrnoOk
|
||||
|
||||
`func (o *V0037Error) GetErrnoOk() (*int32, bool)`
|
||||
|
||||
GetErrnoOk returns a tuple with the Errno field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetErrno
|
||||
|
||||
`func (o *V0037Error) SetErrno(v int32)`
|
||||
|
||||
SetErrno sets Errno field to given value.
|
||||
|
||||
### HasErrno
|
||||
|
||||
`func (o *V0037Error) HasErrno() bool`
|
||||
|
||||
HasErrno returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,134 +0,0 @@
|
||||
# V0037JobResources
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Nodes** | Pointer to **string** | list of assigned job nodes | [optional]
|
||||
**AllocatedCpus** | Pointer to **int32** | number of assigned job cpus | [optional]
|
||||
**AllocatedHosts** | Pointer to **int32** | number of assigned job hosts | [optional]
|
||||
**AllocatedNodes** | Pointer to [**[]V0037NodeAllocation**](V0037NodeAllocation.md) | node allocations | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037JobResources
|
||||
|
||||
`func NewV0037JobResources() *V0037JobResources`
|
||||
|
||||
NewV0037JobResources instantiates a new V0037JobResources object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037JobResourcesWithDefaults
|
||||
|
||||
`func NewV0037JobResourcesWithDefaults() *V0037JobResources`
|
||||
|
||||
NewV0037JobResourcesWithDefaults instantiates a new V0037JobResources object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetNodes
|
||||
|
||||
`func (o *V0037JobResources) GetNodes() string`
|
||||
|
||||
GetNodes returns the Nodes field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNodesOk
|
||||
|
||||
`func (o *V0037JobResources) GetNodesOk() (*string, bool)`
|
||||
|
||||
GetNodesOk returns a tuple with the Nodes field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetNodes
|
||||
|
||||
`func (o *V0037JobResources) SetNodes(v string)`
|
||||
|
||||
SetNodes sets Nodes field to given value.
|
||||
|
||||
### HasNodes
|
||||
|
||||
`func (o *V0037JobResources) HasNodes() bool`
|
||||
|
||||
HasNodes returns a boolean if a field has been set.
|
||||
|
||||
### GetAllocatedCpus
|
||||
|
||||
`func (o *V0037JobResources) GetAllocatedCpus() int32`
|
||||
|
||||
GetAllocatedCpus returns the AllocatedCpus field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAllocatedCpusOk
|
||||
|
||||
`func (o *V0037JobResources) GetAllocatedCpusOk() (*int32, bool)`
|
||||
|
||||
GetAllocatedCpusOk returns a tuple with the AllocatedCpus field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAllocatedCpus
|
||||
|
||||
`func (o *V0037JobResources) SetAllocatedCpus(v int32)`
|
||||
|
||||
SetAllocatedCpus sets AllocatedCpus field to given value.
|
||||
|
||||
### HasAllocatedCpus
|
||||
|
||||
`func (o *V0037JobResources) HasAllocatedCpus() bool`
|
||||
|
||||
HasAllocatedCpus returns a boolean if a field has been set.
|
||||
|
||||
### GetAllocatedHosts
|
||||
|
||||
`func (o *V0037JobResources) GetAllocatedHosts() int32`
|
||||
|
||||
GetAllocatedHosts returns the AllocatedHosts field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAllocatedHostsOk
|
||||
|
||||
`func (o *V0037JobResources) GetAllocatedHostsOk() (*int32, bool)`
|
||||
|
||||
GetAllocatedHostsOk returns a tuple with the AllocatedHosts field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAllocatedHosts
|
||||
|
||||
`func (o *V0037JobResources) SetAllocatedHosts(v int32)`
|
||||
|
||||
SetAllocatedHosts sets AllocatedHosts field to given value.
|
||||
|
||||
### HasAllocatedHosts
|
||||
|
||||
`func (o *V0037JobResources) HasAllocatedHosts() bool`
|
||||
|
||||
HasAllocatedHosts returns a boolean if a field has been set.
|
||||
|
||||
### GetAllocatedNodes
|
||||
|
||||
`func (o *V0037JobResources) GetAllocatedNodes() []V0037NodeAllocation`
|
||||
|
||||
GetAllocatedNodes returns the AllocatedNodes field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAllocatedNodesOk
|
||||
|
||||
`func (o *V0037JobResources) GetAllocatedNodesOk() (*[]V0037NodeAllocation, bool)`
|
||||
|
||||
GetAllocatedNodesOk returns a tuple with the AllocatedNodes field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAllocatedNodes
|
||||
|
||||
`func (o *V0037JobResources) SetAllocatedNodes(v []V0037NodeAllocation)`
|
||||
|
||||
SetAllocatedNodes sets AllocatedNodes field to given value.
|
||||
|
||||
### HasAllocatedNodes
|
||||
|
||||
`func (o *V0037JobResources) HasAllocatedNodes() bool`
|
||||
|
||||
HasAllocatedNodes returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,103 +0,0 @@
|
||||
# V0037JobSubmission
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Script** | **string** | Executable script (full contents) to run in batch step |
|
||||
**Job** | Pointer to [**V0037JobProperties**](V0037JobProperties.md) | | [optional]
|
||||
**Jobs** | Pointer to [**[]V0037JobProperties**](V0037JobProperties.md) | Properties of an HetJob | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037JobSubmission
|
||||
|
||||
`func NewV0037JobSubmission(script string, ) *V0037JobSubmission`
|
||||
|
||||
NewV0037JobSubmission instantiates a new V0037JobSubmission object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037JobSubmissionWithDefaults
|
||||
|
||||
`func NewV0037JobSubmissionWithDefaults() *V0037JobSubmission`
|
||||
|
||||
NewV0037JobSubmissionWithDefaults instantiates a new V0037JobSubmission object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetScript
|
||||
|
||||
`func (o *V0037JobSubmission) GetScript() string`
|
||||
|
||||
GetScript returns the Script field if non-nil, zero value otherwise.
|
||||
|
||||
### GetScriptOk
|
||||
|
||||
`func (o *V0037JobSubmission) GetScriptOk() (*string, bool)`
|
||||
|
||||
GetScriptOk returns a tuple with the Script field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetScript
|
||||
|
||||
`func (o *V0037JobSubmission) SetScript(v string)`
|
||||
|
||||
SetScript sets Script field to given value.
|
||||
|
||||
|
||||
### GetJob
|
||||
|
||||
`func (o *V0037JobSubmission) GetJob() V0037JobProperties`
|
||||
|
||||
GetJob returns the Job field if non-nil, zero value otherwise.
|
||||
|
||||
### GetJobOk
|
||||
|
||||
`func (o *V0037JobSubmission) GetJobOk() (*V0037JobProperties, bool)`
|
||||
|
||||
GetJobOk returns a tuple with the Job field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetJob
|
||||
|
||||
`func (o *V0037JobSubmission) SetJob(v V0037JobProperties)`
|
||||
|
||||
SetJob sets Job field to given value.
|
||||
|
||||
### HasJob
|
||||
|
||||
`func (o *V0037JobSubmission) HasJob() bool`
|
||||
|
||||
HasJob returns a boolean if a field has been set.
|
||||
|
||||
### GetJobs
|
||||
|
||||
`func (o *V0037JobSubmission) GetJobs() []V0037JobProperties`
|
||||
|
||||
GetJobs returns the Jobs field if non-nil, zero value otherwise.
|
||||
|
||||
### GetJobsOk
|
||||
|
||||
`func (o *V0037JobSubmission) GetJobsOk() (*[]V0037JobProperties, bool)`
|
||||
|
||||
GetJobsOk returns a tuple with the Jobs field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetJobs
|
||||
|
||||
`func (o *V0037JobSubmission) SetJobs(v []V0037JobProperties)`
|
||||
|
||||
SetJobs sets Jobs field to given value.
|
||||
|
||||
### HasJobs
|
||||
|
||||
`func (o *V0037JobSubmission) HasJobs() bool`
|
||||
|
||||
HasJobs returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,134 +0,0 @@
|
||||
# V0037JobSubmissionResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Errors** | Pointer to [**[]V0037Error**](V0037Error.md) | slurm errors | [optional]
|
||||
**JobId** | Pointer to **int32** | new job ID | [optional]
|
||||
**StepId** | Pointer to **string** | new job step ID | [optional]
|
||||
**JobSubmitUserMsg** | Pointer to **string** | Message to user from job_submit plugin | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037JobSubmissionResponse
|
||||
|
||||
`func NewV0037JobSubmissionResponse() *V0037JobSubmissionResponse`
|
||||
|
||||
NewV0037JobSubmissionResponse instantiates a new V0037JobSubmissionResponse object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037JobSubmissionResponseWithDefaults
|
||||
|
||||
`func NewV0037JobSubmissionResponseWithDefaults() *V0037JobSubmissionResponse`
|
||||
|
||||
NewV0037JobSubmissionResponseWithDefaults instantiates a new V0037JobSubmissionResponse object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetErrors
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) GetErrors() []V0037Error`
|
||||
|
||||
GetErrors returns the Errors field if non-nil, zero value otherwise.
|
||||
|
||||
### GetErrorsOk
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) GetErrorsOk() (*[]V0037Error, bool)`
|
||||
|
||||
GetErrorsOk returns a tuple with the Errors field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetErrors
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) SetErrors(v []V0037Error)`
|
||||
|
||||
SetErrors sets Errors field to given value.
|
||||
|
||||
### HasErrors
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) HasErrors() bool`
|
||||
|
||||
HasErrors returns a boolean if a field has been set.
|
||||
|
||||
### GetJobId
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) GetJobId() int32`
|
||||
|
||||
GetJobId returns the JobId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetJobIdOk
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) GetJobIdOk() (*int32, bool)`
|
||||
|
||||
GetJobIdOk returns a tuple with the JobId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetJobId
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) SetJobId(v int32)`
|
||||
|
||||
SetJobId sets JobId field to given value.
|
||||
|
||||
### HasJobId
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) HasJobId() bool`
|
||||
|
||||
HasJobId returns a boolean if a field has been set.
|
||||
|
||||
### GetStepId
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) GetStepId() string`
|
||||
|
||||
GetStepId returns the StepId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStepIdOk
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) GetStepIdOk() (*string, bool)`
|
||||
|
||||
GetStepIdOk returns a tuple with the StepId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStepId
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) SetStepId(v string)`
|
||||
|
||||
SetStepId sets StepId field to given value.
|
||||
|
||||
### HasStepId
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) HasStepId() bool`
|
||||
|
||||
HasStepId returns a boolean if a field has been set.
|
||||
|
||||
### GetJobSubmitUserMsg
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) GetJobSubmitUserMsg() string`
|
||||
|
||||
GetJobSubmitUserMsg returns the JobSubmitUserMsg field if non-nil, zero value otherwise.
|
||||
|
||||
### GetJobSubmitUserMsgOk
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) GetJobSubmitUserMsgOk() (*string, bool)`
|
||||
|
||||
GetJobSubmitUserMsgOk returns a tuple with the JobSubmitUserMsg field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetJobSubmitUserMsg
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) SetJobSubmitUserMsg(v string)`
|
||||
|
||||
SetJobSubmitUserMsg sets JobSubmitUserMsg field to given value.
|
||||
|
||||
### HasJobSubmitUserMsg
|
||||
|
||||
`func (o *V0037JobSubmissionResponse) HasJobSubmitUserMsg() bool`
|
||||
|
||||
HasJobSubmitUserMsg returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,82 +0,0 @@
|
||||
# V0037JobsResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Errors** | Pointer to [**[]V0037Error**](V0037Error.md) | slurm errors | [optional]
|
||||
**Jobs** | Pointer to [**[]V0037JobResponseProperties**](V0037JobResponseProperties.md) | job descriptions | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037JobsResponse
|
||||
|
||||
`func NewV0037JobsResponse() *V0037JobsResponse`
|
||||
|
||||
NewV0037JobsResponse instantiates a new V0037JobsResponse object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037JobsResponseWithDefaults
|
||||
|
||||
`func NewV0037JobsResponseWithDefaults() *V0037JobsResponse`
|
||||
|
||||
NewV0037JobsResponseWithDefaults instantiates a new V0037JobsResponse object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetErrors
|
||||
|
||||
`func (o *V0037JobsResponse) GetErrors() []V0037Error`
|
||||
|
||||
GetErrors returns the Errors field if non-nil, zero value otherwise.
|
||||
|
||||
### GetErrorsOk
|
||||
|
||||
`func (o *V0037JobsResponse) GetErrorsOk() (*[]V0037Error, bool)`
|
||||
|
||||
GetErrorsOk returns a tuple with the Errors field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetErrors
|
||||
|
||||
`func (o *V0037JobsResponse) SetErrors(v []V0037Error)`
|
||||
|
||||
SetErrors sets Errors field to given value.
|
||||
|
||||
### HasErrors
|
||||
|
||||
`func (o *V0037JobsResponse) HasErrors() bool`
|
||||
|
||||
HasErrors returns a boolean if a field has been set.
|
||||
|
||||
### GetJobs
|
||||
|
||||
`func (o *V0037JobsResponse) GetJobs() []V0037JobResponseProperties`
|
||||
|
||||
GetJobs returns the Jobs field if non-nil, zero value otherwise.
|
||||
|
||||
### GetJobsOk
|
||||
|
||||
`func (o *V0037JobsResponse) GetJobsOk() (*[]V0037JobResponseProperties, bool)`
|
||||
|
||||
GetJobsOk returns a tuple with the Jobs field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetJobs
|
||||
|
||||
`func (o *V0037JobsResponse) SetJobs(v []V0037JobResponseProperties)`
|
||||
|
||||
SetJobs sets Jobs field to given value.
|
||||
|
||||
### HasJobs
|
||||
|
||||
`func (o *V0037JobsResponse) HasJobs() bool`
|
||||
|
||||
HasJobs returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,134 +0,0 @@
|
||||
# V0037NodeAllocation
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Memory** | Pointer to **int32** | amount of assigned job memory | [optional]
|
||||
**Cpus** | Pointer to **map[string]interface{}** | amount of assigned job CPUs | [optional]
|
||||
**Sockets** | Pointer to **map[string]interface{}** | assignment status of each socket by socket id | [optional]
|
||||
**Cores** | Pointer to **map[string]interface{}** | assignment status of each core by core id | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037NodeAllocation
|
||||
|
||||
`func NewV0037NodeAllocation() *V0037NodeAllocation`
|
||||
|
||||
NewV0037NodeAllocation instantiates a new V0037NodeAllocation object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037NodeAllocationWithDefaults
|
||||
|
||||
`func NewV0037NodeAllocationWithDefaults() *V0037NodeAllocation`
|
||||
|
||||
NewV0037NodeAllocationWithDefaults instantiates a new V0037NodeAllocation object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetMemory
|
||||
|
||||
`func (o *V0037NodeAllocation) GetMemory() int32`
|
||||
|
||||
GetMemory returns the Memory field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMemoryOk
|
||||
|
||||
`func (o *V0037NodeAllocation) GetMemoryOk() (*int32, bool)`
|
||||
|
||||
GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMemory
|
||||
|
||||
`func (o *V0037NodeAllocation) SetMemory(v int32)`
|
||||
|
||||
SetMemory sets Memory field to given value.
|
||||
|
||||
### HasMemory
|
||||
|
||||
`func (o *V0037NodeAllocation) HasMemory() bool`
|
||||
|
||||
HasMemory returns a boolean if a field has been set.
|
||||
|
||||
### GetCpus
|
||||
|
||||
`func (o *V0037NodeAllocation) GetCpus() map[string]interface{}`
|
||||
|
||||
GetCpus returns the Cpus field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCpusOk
|
||||
|
||||
`func (o *V0037NodeAllocation) GetCpusOk() (*map[string]interface{}, bool)`
|
||||
|
||||
GetCpusOk returns a tuple with the Cpus field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetCpus
|
||||
|
||||
`func (o *V0037NodeAllocation) SetCpus(v map[string]interface{})`
|
||||
|
||||
SetCpus sets Cpus field to given value.
|
||||
|
||||
### HasCpus
|
||||
|
||||
`func (o *V0037NodeAllocation) HasCpus() bool`
|
||||
|
||||
HasCpus returns a boolean if a field has been set.
|
||||
|
||||
### GetSockets
|
||||
|
||||
`func (o *V0037NodeAllocation) GetSockets() map[string]interface{}`
|
||||
|
||||
GetSockets returns the Sockets field if non-nil, zero value otherwise.
|
||||
|
||||
### GetSocketsOk
|
||||
|
||||
`func (o *V0037NodeAllocation) GetSocketsOk() (*map[string]interface{}, bool)`
|
||||
|
||||
GetSocketsOk returns a tuple with the Sockets field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetSockets
|
||||
|
||||
`func (o *V0037NodeAllocation) SetSockets(v map[string]interface{})`
|
||||
|
||||
SetSockets sets Sockets field to given value.
|
||||
|
||||
### HasSockets
|
||||
|
||||
`func (o *V0037NodeAllocation) HasSockets() bool`
|
||||
|
||||
HasSockets returns a boolean if a field has been set.
|
||||
|
||||
### GetCores
|
||||
|
||||
`func (o *V0037NodeAllocation) GetCores() map[string]interface{}`
|
||||
|
||||
GetCores returns the Cores field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCoresOk
|
||||
|
||||
`func (o *V0037NodeAllocation) GetCoresOk() (*map[string]interface{}, bool)`
|
||||
|
||||
GetCoresOk returns a tuple with the Cores field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetCores
|
||||
|
||||
`func (o *V0037NodeAllocation) SetCores(v map[string]interface{})`
|
||||
|
||||
SetCores sets Cores field to given value.
|
||||
|
||||
### HasCores
|
||||
|
||||
`func (o *V0037NodeAllocation) HasCores() bool`
|
||||
|
||||
HasCores returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,82 +0,0 @@
|
||||
# V0037NodesResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Errors** | Pointer to [**[]V0037Error**](V0037Error.md) | slurm errors | [optional]
|
||||
**Nodes** | Pointer to [**[]V0037Node**](V0037Node.md) | nodes info | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037NodesResponse
|
||||
|
||||
`func NewV0037NodesResponse() *V0037NodesResponse`
|
||||
|
||||
NewV0037NodesResponse instantiates a new V0037NodesResponse object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037NodesResponseWithDefaults
|
||||
|
||||
`func NewV0037NodesResponseWithDefaults() *V0037NodesResponse`
|
||||
|
||||
NewV0037NodesResponseWithDefaults instantiates a new V0037NodesResponse object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetErrors
|
||||
|
||||
`func (o *V0037NodesResponse) GetErrors() []V0037Error`
|
||||
|
||||
GetErrors returns the Errors field if non-nil, zero value otherwise.
|
||||
|
||||
### GetErrorsOk
|
||||
|
||||
`func (o *V0037NodesResponse) GetErrorsOk() (*[]V0037Error, bool)`
|
||||
|
||||
GetErrorsOk returns a tuple with the Errors field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetErrors
|
||||
|
||||
`func (o *V0037NodesResponse) SetErrors(v []V0037Error)`
|
||||
|
||||
SetErrors sets Errors field to given value.
|
||||
|
||||
### HasErrors
|
||||
|
||||
`func (o *V0037NodesResponse) HasErrors() bool`
|
||||
|
||||
HasErrors returns a boolean if a field has been set.
|
||||
|
||||
### GetNodes
|
||||
|
||||
`func (o *V0037NodesResponse) GetNodes() []V0037Node`
|
||||
|
||||
GetNodes returns the Nodes field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNodesOk
|
||||
|
||||
`func (o *V0037NodesResponse) GetNodesOk() (*[]V0037Node, bool)`
|
||||
|
||||
GetNodesOk returns a tuple with the Nodes field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetNodes
|
||||
|
||||
`func (o *V0037NodesResponse) SetNodes(v []V0037Node)`
|
||||
|
||||
SetNodes sets Nodes field to given value.
|
||||
|
||||
### HasNodes
|
||||
|
||||
`func (o *V0037NodesResponse) HasNodes() bool`
|
||||
|
||||
HasNodes returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,758 +0,0 @@
|
||||
# V0037Partition
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Flags** | Pointer to **[]string** | partition options | [optional]
|
||||
**PreemptionMode** | Pointer to **[]string** | preemption type | [optional]
|
||||
**AllowedAllocationNodes** | Pointer to **string** | list names of allowed allocating nodes | [optional]
|
||||
**AllowedAccounts** | Pointer to **string** | comma delimited list of accounts | [optional]
|
||||
**AllowedGroups** | Pointer to **string** | comma delimited list of groups | [optional]
|
||||
**AllowedQos** | Pointer to **string** | comma delimited list of qos | [optional]
|
||||
**Alternative** | Pointer to **string** | name of alternate partition | [optional]
|
||||
**BillingWeights** | Pointer to **string** | TRES billing weights | [optional]
|
||||
**DefaultMemoryPerCpu** | Pointer to **int64** | default MB memory per allocated CPU | [optional]
|
||||
**DefaultTimeLimit** | Pointer to **int64** | default time limit (minutes) | [optional]
|
||||
**DeniedAccounts** | Pointer to **string** | comma delimited list of denied accounts | [optional]
|
||||
**DeniedQos** | Pointer to **string** | comma delimited list of denied qos | [optional]
|
||||
**PreemptionGraceTime** | Pointer to **int64** | preemption grace time (seconds) | [optional]
|
||||
**MaximumCpusPerNode** | Pointer to **int32** | maximum allocated CPUs per node | [optional]
|
||||
**MaximumMemoryPerNode** | Pointer to **int64** | maximum memory per allocated CPU (MiB) | [optional]
|
||||
**MaximumNodesPerJob** | Pointer to **int32** | Max nodes per job | [optional]
|
||||
**MaxTimeLimit** | Pointer to **int64** | Max time limit per job | [optional]
|
||||
**MinNodesPerJob** | Pointer to **int32** | Min number of nodes per job | [optional]
|
||||
**Name** | Pointer to **string** | Partition name | [optional]
|
||||
**Nodes** | Pointer to **string** | list names of nodes in partition | [optional]
|
||||
**OverTimeLimit** | Pointer to **int32** | job's time limit can be exceeded by this number of minutes before cancellation | [optional]
|
||||
**PriorityJobFactor** | Pointer to **int32** | job priority weight factor | [optional]
|
||||
**PriorityTier** | Pointer to **int32** | tier for scheduling and preemption | [optional]
|
||||
**Qos** | Pointer to **string** | partition QOS name | [optional]
|
||||
**State** | Pointer to **string** | Partition state | [optional]
|
||||
**TotalCpus** | Pointer to **int32** | Total cpus in partition | [optional]
|
||||
**TotalNodes** | Pointer to **int32** | Total number of nodes in partition | [optional]
|
||||
**Tres** | Pointer to **string** | configured TRES in partition | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037Partition
|
||||
|
||||
`func NewV0037Partition() *V0037Partition`
|
||||
|
||||
NewV0037Partition instantiates a new V0037Partition object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037PartitionWithDefaults
|
||||
|
||||
`func NewV0037PartitionWithDefaults() *V0037Partition`
|
||||
|
||||
NewV0037PartitionWithDefaults instantiates a new V0037Partition object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetFlags
|
||||
|
||||
`func (o *V0037Partition) GetFlags() []string`
|
||||
|
||||
GetFlags returns the Flags field if non-nil, zero value otherwise.
|
||||
|
||||
### GetFlagsOk
|
||||
|
||||
`func (o *V0037Partition) GetFlagsOk() (*[]string, bool)`
|
||||
|
||||
GetFlagsOk returns a tuple with the Flags field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetFlags
|
||||
|
||||
`func (o *V0037Partition) SetFlags(v []string)`
|
||||
|
||||
SetFlags sets Flags field to given value.
|
||||
|
||||
### HasFlags
|
||||
|
||||
`func (o *V0037Partition) HasFlags() bool`
|
||||
|
||||
HasFlags returns a boolean if a field has been set.
|
||||
|
||||
### GetPreemptionMode
|
||||
|
||||
`func (o *V0037Partition) GetPreemptionMode() []string`
|
||||
|
||||
GetPreemptionMode returns the PreemptionMode field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPreemptionModeOk
|
||||
|
||||
`func (o *V0037Partition) GetPreemptionModeOk() (*[]string, bool)`
|
||||
|
||||
GetPreemptionModeOk returns a tuple with the PreemptionMode field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPreemptionMode
|
||||
|
||||
`func (o *V0037Partition) SetPreemptionMode(v []string)`
|
||||
|
||||
SetPreemptionMode sets PreemptionMode field to given value.
|
||||
|
||||
### HasPreemptionMode
|
||||
|
||||
`func (o *V0037Partition) HasPreemptionMode() bool`
|
||||
|
||||
HasPreemptionMode returns a boolean if a field has been set.
|
||||
|
||||
### GetAllowedAllocationNodes
|
||||
|
||||
`func (o *V0037Partition) GetAllowedAllocationNodes() string`
|
||||
|
||||
GetAllowedAllocationNodes returns the AllowedAllocationNodes field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAllowedAllocationNodesOk
|
||||
|
||||
`func (o *V0037Partition) GetAllowedAllocationNodesOk() (*string, bool)`
|
||||
|
||||
GetAllowedAllocationNodesOk returns a tuple with the AllowedAllocationNodes field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAllowedAllocationNodes
|
||||
|
||||
`func (o *V0037Partition) SetAllowedAllocationNodes(v string)`
|
||||
|
||||
SetAllowedAllocationNodes sets AllowedAllocationNodes field to given value.
|
||||
|
||||
### HasAllowedAllocationNodes
|
||||
|
||||
`func (o *V0037Partition) HasAllowedAllocationNodes() bool`
|
||||
|
||||
HasAllowedAllocationNodes returns a boolean if a field has been set.
|
||||
|
||||
### GetAllowedAccounts
|
||||
|
||||
`func (o *V0037Partition) GetAllowedAccounts() string`
|
||||
|
||||
GetAllowedAccounts returns the AllowedAccounts field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAllowedAccountsOk
|
||||
|
||||
`func (o *V0037Partition) GetAllowedAccountsOk() (*string, bool)`
|
||||
|
||||
GetAllowedAccountsOk returns a tuple with the AllowedAccounts field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAllowedAccounts
|
||||
|
||||
`func (o *V0037Partition) SetAllowedAccounts(v string)`
|
||||
|
||||
SetAllowedAccounts sets AllowedAccounts field to given value.
|
||||
|
||||
### HasAllowedAccounts
|
||||
|
||||
`func (o *V0037Partition) HasAllowedAccounts() bool`
|
||||
|
||||
HasAllowedAccounts returns a boolean if a field has been set.
|
||||
|
||||
### GetAllowedGroups
|
||||
|
||||
`func (o *V0037Partition) GetAllowedGroups() string`
|
||||
|
||||
GetAllowedGroups returns the AllowedGroups field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAllowedGroupsOk
|
||||
|
||||
`func (o *V0037Partition) GetAllowedGroupsOk() (*string, bool)`
|
||||
|
||||
GetAllowedGroupsOk returns a tuple with the AllowedGroups field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAllowedGroups
|
||||
|
||||
`func (o *V0037Partition) SetAllowedGroups(v string)`
|
||||
|
||||
SetAllowedGroups sets AllowedGroups field to given value.
|
||||
|
||||
### HasAllowedGroups
|
||||
|
||||
`func (o *V0037Partition) HasAllowedGroups() bool`
|
||||
|
||||
HasAllowedGroups returns a boolean if a field has been set.
|
||||
|
||||
### GetAllowedQos
|
||||
|
||||
`func (o *V0037Partition) GetAllowedQos() string`
|
||||
|
||||
GetAllowedQos returns the AllowedQos field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAllowedQosOk
|
||||
|
||||
`func (o *V0037Partition) GetAllowedQosOk() (*string, bool)`
|
||||
|
||||
GetAllowedQosOk returns a tuple with the AllowedQos field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAllowedQos
|
||||
|
||||
`func (o *V0037Partition) SetAllowedQos(v string)`
|
||||
|
||||
SetAllowedQos sets AllowedQos field to given value.
|
||||
|
||||
### HasAllowedQos
|
||||
|
||||
`func (o *V0037Partition) HasAllowedQos() bool`
|
||||
|
||||
HasAllowedQos returns a boolean if a field has been set.
|
||||
|
||||
### GetAlternative
|
||||
|
||||
`func (o *V0037Partition) GetAlternative() string`
|
||||
|
||||
GetAlternative returns the Alternative field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAlternativeOk
|
||||
|
||||
`func (o *V0037Partition) GetAlternativeOk() (*string, bool)`
|
||||
|
||||
GetAlternativeOk returns a tuple with the Alternative field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAlternative
|
||||
|
||||
`func (o *V0037Partition) SetAlternative(v string)`
|
||||
|
||||
SetAlternative sets Alternative field to given value.
|
||||
|
||||
### HasAlternative
|
||||
|
||||
`func (o *V0037Partition) HasAlternative() bool`
|
||||
|
||||
HasAlternative returns a boolean if a field has been set.
|
||||
|
||||
### GetBillingWeights
|
||||
|
||||
`func (o *V0037Partition) GetBillingWeights() string`
|
||||
|
||||
GetBillingWeights returns the BillingWeights field if non-nil, zero value otherwise.
|
||||
|
||||
### GetBillingWeightsOk
|
||||
|
||||
`func (o *V0037Partition) GetBillingWeightsOk() (*string, bool)`
|
||||
|
||||
GetBillingWeightsOk returns a tuple with the BillingWeights field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetBillingWeights
|
||||
|
||||
`func (o *V0037Partition) SetBillingWeights(v string)`
|
||||
|
||||
SetBillingWeights sets BillingWeights field to given value.
|
||||
|
||||
### HasBillingWeights
|
||||
|
||||
`func (o *V0037Partition) HasBillingWeights() bool`
|
||||
|
||||
HasBillingWeights returns a boolean if a field has been set.
|
||||
|
||||
### GetDefaultMemoryPerCpu
|
||||
|
||||
`func (o *V0037Partition) GetDefaultMemoryPerCpu() int64`
|
||||
|
||||
GetDefaultMemoryPerCpu returns the DefaultMemoryPerCpu field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDefaultMemoryPerCpuOk
|
||||
|
||||
`func (o *V0037Partition) GetDefaultMemoryPerCpuOk() (*int64, bool)`
|
||||
|
||||
GetDefaultMemoryPerCpuOk returns a tuple with the DefaultMemoryPerCpu field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDefaultMemoryPerCpu
|
||||
|
||||
`func (o *V0037Partition) SetDefaultMemoryPerCpu(v int64)`
|
||||
|
||||
SetDefaultMemoryPerCpu sets DefaultMemoryPerCpu field to given value.
|
||||
|
||||
### HasDefaultMemoryPerCpu
|
||||
|
||||
`func (o *V0037Partition) HasDefaultMemoryPerCpu() bool`
|
||||
|
||||
HasDefaultMemoryPerCpu returns a boolean if a field has been set.
|
||||
|
||||
### GetDefaultTimeLimit
|
||||
|
||||
`func (o *V0037Partition) GetDefaultTimeLimit() int64`
|
||||
|
||||
GetDefaultTimeLimit returns the DefaultTimeLimit field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDefaultTimeLimitOk
|
||||
|
||||
`func (o *V0037Partition) GetDefaultTimeLimitOk() (*int64, bool)`
|
||||
|
||||
GetDefaultTimeLimitOk returns a tuple with the DefaultTimeLimit field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDefaultTimeLimit
|
||||
|
||||
`func (o *V0037Partition) SetDefaultTimeLimit(v int64)`
|
||||
|
||||
SetDefaultTimeLimit sets DefaultTimeLimit field to given value.
|
||||
|
||||
### HasDefaultTimeLimit
|
||||
|
||||
`func (o *V0037Partition) HasDefaultTimeLimit() bool`
|
||||
|
||||
HasDefaultTimeLimit returns a boolean if a field has been set.
|
||||
|
||||
### GetDeniedAccounts
|
||||
|
||||
`func (o *V0037Partition) GetDeniedAccounts() string`
|
||||
|
||||
GetDeniedAccounts returns the DeniedAccounts field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDeniedAccountsOk
|
||||
|
||||
`func (o *V0037Partition) GetDeniedAccountsOk() (*string, bool)`
|
||||
|
||||
GetDeniedAccountsOk returns a tuple with the DeniedAccounts field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDeniedAccounts
|
||||
|
||||
`func (o *V0037Partition) SetDeniedAccounts(v string)`
|
||||
|
||||
SetDeniedAccounts sets DeniedAccounts field to given value.
|
||||
|
||||
### HasDeniedAccounts
|
||||
|
||||
`func (o *V0037Partition) HasDeniedAccounts() bool`
|
||||
|
||||
HasDeniedAccounts returns a boolean if a field has been set.
|
||||
|
||||
### GetDeniedQos
|
||||
|
||||
`func (o *V0037Partition) GetDeniedQos() string`
|
||||
|
||||
GetDeniedQos returns the DeniedQos field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDeniedQosOk
|
||||
|
||||
`func (o *V0037Partition) GetDeniedQosOk() (*string, bool)`
|
||||
|
||||
GetDeniedQosOk returns a tuple with the DeniedQos field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDeniedQos
|
||||
|
||||
`func (o *V0037Partition) SetDeniedQos(v string)`
|
||||
|
||||
SetDeniedQos sets DeniedQos field to given value.
|
||||
|
||||
### HasDeniedQos
|
||||
|
||||
`func (o *V0037Partition) HasDeniedQos() bool`
|
||||
|
||||
HasDeniedQos returns a boolean if a field has been set.
|
||||
|
||||
### GetPreemptionGraceTime
|
||||
|
||||
`func (o *V0037Partition) GetPreemptionGraceTime() int64`
|
||||
|
||||
GetPreemptionGraceTime returns the PreemptionGraceTime field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPreemptionGraceTimeOk
|
||||
|
||||
`func (o *V0037Partition) GetPreemptionGraceTimeOk() (*int64, bool)`
|
||||
|
||||
GetPreemptionGraceTimeOk returns a tuple with the PreemptionGraceTime field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPreemptionGraceTime
|
||||
|
||||
`func (o *V0037Partition) SetPreemptionGraceTime(v int64)`
|
||||
|
||||
SetPreemptionGraceTime sets PreemptionGraceTime field to given value.
|
||||
|
||||
### HasPreemptionGraceTime
|
||||
|
||||
`func (o *V0037Partition) HasPreemptionGraceTime() bool`
|
||||
|
||||
HasPreemptionGraceTime returns a boolean if a field has been set.
|
||||
|
||||
### GetMaximumCpusPerNode
|
||||
|
||||
`func (o *V0037Partition) GetMaximumCpusPerNode() int32`
|
||||
|
||||
GetMaximumCpusPerNode returns the MaximumCpusPerNode field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMaximumCpusPerNodeOk
|
||||
|
||||
`func (o *V0037Partition) GetMaximumCpusPerNodeOk() (*int32, bool)`
|
||||
|
||||
GetMaximumCpusPerNodeOk returns a tuple with the MaximumCpusPerNode field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMaximumCpusPerNode
|
||||
|
||||
`func (o *V0037Partition) SetMaximumCpusPerNode(v int32)`
|
||||
|
||||
SetMaximumCpusPerNode sets MaximumCpusPerNode field to given value.
|
||||
|
||||
### HasMaximumCpusPerNode
|
||||
|
||||
`func (o *V0037Partition) HasMaximumCpusPerNode() bool`
|
||||
|
||||
HasMaximumCpusPerNode returns a boolean if a field has been set.
|
||||
|
||||
### GetMaximumMemoryPerNode
|
||||
|
||||
`func (o *V0037Partition) GetMaximumMemoryPerNode() int64`
|
||||
|
||||
GetMaximumMemoryPerNode returns the MaximumMemoryPerNode field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMaximumMemoryPerNodeOk
|
||||
|
||||
`func (o *V0037Partition) GetMaximumMemoryPerNodeOk() (*int64, bool)`
|
||||
|
||||
GetMaximumMemoryPerNodeOk returns a tuple with the MaximumMemoryPerNode field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMaximumMemoryPerNode
|
||||
|
||||
`func (o *V0037Partition) SetMaximumMemoryPerNode(v int64)`
|
||||
|
||||
SetMaximumMemoryPerNode sets MaximumMemoryPerNode field to given value.
|
||||
|
||||
### HasMaximumMemoryPerNode
|
||||
|
||||
`func (o *V0037Partition) HasMaximumMemoryPerNode() bool`
|
||||
|
||||
HasMaximumMemoryPerNode returns a boolean if a field has been set.
|
||||
|
||||
### GetMaximumNodesPerJob
|
||||
|
||||
`func (o *V0037Partition) GetMaximumNodesPerJob() int32`
|
||||
|
||||
GetMaximumNodesPerJob returns the MaximumNodesPerJob field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMaximumNodesPerJobOk
|
||||
|
||||
`func (o *V0037Partition) GetMaximumNodesPerJobOk() (*int32, bool)`
|
||||
|
||||
GetMaximumNodesPerJobOk returns a tuple with the MaximumNodesPerJob field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMaximumNodesPerJob
|
||||
|
||||
`func (o *V0037Partition) SetMaximumNodesPerJob(v int32)`
|
||||
|
||||
SetMaximumNodesPerJob sets MaximumNodesPerJob field to given value.
|
||||
|
||||
### HasMaximumNodesPerJob
|
||||
|
||||
`func (o *V0037Partition) HasMaximumNodesPerJob() bool`
|
||||
|
||||
HasMaximumNodesPerJob returns a boolean if a field has been set.
|
||||
|
||||
### GetMaxTimeLimit
|
||||
|
||||
`func (o *V0037Partition) GetMaxTimeLimit() int64`
|
||||
|
||||
GetMaxTimeLimit returns the MaxTimeLimit field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMaxTimeLimitOk
|
||||
|
||||
`func (o *V0037Partition) GetMaxTimeLimitOk() (*int64, bool)`
|
||||
|
||||
GetMaxTimeLimitOk returns a tuple with the MaxTimeLimit field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMaxTimeLimit
|
||||
|
||||
`func (o *V0037Partition) SetMaxTimeLimit(v int64)`
|
||||
|
||||
SetMaxTimeLimit sets MaxTimeLimit field to given value.
|
||||
|
||||
### HasMaxTimeLimit
|
||||
|
||||
`func (o *V0037Partition) HasMaxTimeLimit() bool`
|
||||
|
||||
HasMaxTimeLimit returns a boolean if a field has been set.
|
||||
|
||||
### GetMinNodesPerJob
|
||||
|
||||
`func (o *V0037Partition) GetMinNodesPerJob() int32`
|
||||
|
||||
GetMinNodesPerJob returns the MinNodesPerJob field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMinNodesPerJobOk
|
||||
|
||||
`func (o *V0037Partition) GetMinNodesPerJobOk() (*int32, bool)`
|
||||
|
||||
GetMinNodesPerJobOk returns a tuple with the MinNodesPerJob field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMinNodesPerJob
|
||||
|
||||
`func (o *V0037Partition) SetMinNodesPerJob(v int32)`
|
||||
|
||||
SetMinNodesPerJob sets MinNodesPerJob field to given value.
|
||||
|
||||
### HasMinNodesPerJob
|
||||
|
||||
`func (o *V0037Partition) HasMinNodesPerJob() bool`
|
||||
|
||||
HasMinNodesPerJob returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *V0037Partition) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *V0037Partition) GetNameOk() (*string, bool)`
|
||||
|
||||
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetName
|
||||
|
||||
`func (o *V0037Partition) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *V0037Partition) HasName() bool`
|
||||
|
||||
HasName returns a boolean if a field has been set.
|
||||
|
||||
### GetNodes
|
||||
|
||||
`func (o *V0037Partition) GetNodes() string`
|
||||
|
||||
GetNodes returns the Nodes field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNodesOk
|
||||
|
||||
`func (o *V0037Partition) GetNodesOk() (*string, bool)`
|
||||
|
||||
GetNodesOk returns a tuple with the Nodes field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetNodes
|
||||
|
||||
`func (o *V0037Partition) SetNodes(v string)`
|
||||
|
||||
SetNodes sets Nodes field to given value.
|
||||
|
||||
### HasNodes
|
||||
|
||||
`func (o *V0037Partition) HasNodes() bool`
|
||||
|
||||
HasNodes returns a boolean if a field has been set.
|
||||
|
||||
### GetOverTimeLimit
|
||||
|
||||
`func (o *V0037Partition) GetOverTimeLimit() int32`
|
||||
|
||||
GetOverTimeLimit returns the OverTimeLimit field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOverTimeLimitOk
|
||||
|
||||
`func (o *V0037Partition) GetOverTimeLimitOk() (*int32, bool)`
|
||||
|
||||
GetOverTimeLimitOk returns a tuple with the OverTimeLimit field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOverTimeLimit
|
||||
|
||||
`func (o *V0037Partition) SetOverTimeLimit(v int32)`
|
||||
|
||||
SetOverTimeLimit sets OverTimeLimit field to given value.
|
||||
|
||||
### HasOverTimeLimit
|
||||
|
||||
`func (o *V0037Partition) HasOverTimeLimit() bool`
|
||||
|
||||
HasOverTimeLimit returns a boolean if a field has been set.
|
||||
|
||||
### GetPriorityJobFactor
|
||||
|
||||
`func (o *V0037Partition) GetPriorityJobFactor() int32`
|
||||
|
||||
GetPriorityJobFactor returns the PriorityJobFactor field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPriorityJobFactorOk
|
||||
|
||||
`func (o *V0037Partition) GetPriorityJobFactorOk() (*int32, bool)`
|
||||
|
||||
GetPriorityJobFactorOk returns a tuple with the PriorityJobFactor field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPriorityJobFactor
|
||||
|
||||
`func (o *V0037Partition) SetPriorityJobFactor(v int32)`
|
||||
|
||||
SetPriorityJobFactor sets PriorityJobFactor field to given value.
|
||||
|
||||
### HasPriorityJobFactor
|
||||
|
||||
`func (o *V0037Partition) HasPriorityJobFactor() bool`
|
||||
|
||||
HasPriorityJobFactor returns a boolean if a field has been set.
|
||||
|
||||
### GetPriorityTier
|
||||
|
||||
`func (o *V0037Partition) GetPriorityTier() int32`
|
||||
|
||||
GetPriorityTier returns the PriorityTier field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPriorityTierOk
|
||||
|
||||
`func (o *V0037Partition) GetPriorityTierOk() (*int32, bool)`
|
||||
|
||||
GetPriorityTierOk returns a tuple with the PriorityTier field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPriorityTier
|
||||
|
||||
`func (o *V0037Partition) SetPriorityTier(v int32)`
|
||||
|
||||
SetPriorityTier sets PriorityTier field to given value.
|
||||
|
||||
### HasPriorityTier
|
||||
|
||||
`func (o *V0037Partition) HasPriorityTier() bool`
|
||||
|
||||
HasPriorityTier returns a boolean if a field has been set.
|
||||
|
||||
### GetQos
|
||||
|
||||
`func (o *V0037Partition) GetQos() string`
|
||||
|
||||
GetQos returns the Qos field if non-nil, zero value otherwise.
|
||||
|
||||
### GetQosOk
|
||||
|
||||
`func (o *V0037Partition) GetQosOk() (*string, bool)`
|
||||
|
||||
GetQosOk returns a tuple with the Qos field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetQos
|
||||
|
||||
`func (o *V0037Partition) SetQos(v string)`
|
||||
|
||||
SetQos sets Qos field to given value.
|
||||
|
||||
### HasQos
|
||||
|
||||
`func (o *V0037Partition) HasQos() bool`
|
||||
|
||||
HasQos returns a boolean if a field has been set.
|
||||
|
||||
### GetState
|
||||
|
||||
`func (o *V0037Partition) GetState() string`
|
||||
|
||||
GetState returns the State field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStateOk
|
||||
|
||||
`func (o *V0037Partition) GetStateOk() (*string, bool)`
|
||||
|
||||
GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetState
|
||||
|
||||
`func (o *V0037Partition) SetState(v string)`
|
||||
|
||||
SetState sets State field to given value.
|
||||
|
||||
### HasState
|
||||
|
||||
`func (o *V0037Partition) HasState() bool`
|
||||
|
||||
HasState returns a boolean if a field has been set.
|
||||
|
||||
### GetTotalCpus
|
||||
|
||||
`func (o *V0037Partition) GetTotalCpus() int32`
|
||||
|
||||
GetTotalCpus returns the TotalCpus field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTotalCpusOk
|
||||
|
||||
`func (o *V0037Partition) GetTotalCpusOk() (*int32, bool)`
|
||||
|
||||
GetTotalCpusOk returns a tuple with the TotalCpus field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTotalCpus
|
||||
|
||||
`func (o *V0037Partition) SetTotalCpus(v int32)`
|
||||
|
||||
SetTotalCpus sets TotalCpus field to given value.
|
||||
|
||||
### HasTotalCpus
|
||||
|
||||
`func (o *V0037Partition) HasTotalCpus() bool`
|
||||
|
||||
HasTotalCpus returns a boolean if a field has been set.
|
||||
|
||||
### GetTotalNodes
|
||||
|
||||
`func (o *V0037Partition) GetTotalNodes() int32`
|
||||
|
||||
GetTotalNodes returns the TotalNodes field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTotalNodesOk
|
||||
|
||||
`func (o *V0037Partition) GetTotalNodesOk() (*int32, bool)`
|
||||
|
||||
GetTotalNodesOk returns a tuple with the TotalNodes field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTotalNodes
|
||||
|
||||
`func (o *V0037Partition) SetTotalNodes(v int32)`
|
||||
|
||||
SetTotalNodes sets TotalNodes field to given value.
|
||||
|
||||
### HasTotalNodes
|
||||
|
||||
`func (o *V0037Partition) HasTotalNodes() bool`
|
||||
|
||||
HasTotalNodes returns a boolean if a field has been set.
|
||||
|
||||
### GetTres
|
||||
|
||||
`func (o *V0037Partition) GetTres() string`
|
||||
|
||||
GetTres returns the Tres field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTresOk
|
||||
|
||||
`func (o *V0037Partition) GetTresOk() (*string, bool)`
|
||||
|
||||
GetTresOk returns a tuple with the Tres field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTres
|
||||
|
||||
`func (o *V0037Partition) SetTres(v string)`
|
||||
|
||||
SetTres sets Tres field to given value.
|
||||
|
||||
### HasTres
|
||||
|
||||
`func (o *V0037Partition) HasTres() bool`
|
||||
|
||||
HasTres returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,82 +0,0 @@
|
||||
# V0037PartitionsResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Errors** | Pointer to [**[]V0037Error**](V0037Error.md) | slurm errors | [optional]
|
||||
**Partitions** | Pointer to [**[]V0037Partition**](V0037Partition.md) | partition info | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037PartitionsResponse
|
||||
|
||||
`func NewV0037PartitionsResponse() *V0037PartitionsResponse`
|
||||
|
||||
NewV0037PartitionsResponse instantiates a new V0037PartitionsResponse object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037PartitionsResponseWithDefaults
|
||||
|
||||
`func NewV0037PartitionsResponseWithDefaults() *V0037PartitionsResponse`
|
||||
|
||||
NewV0037PartitionsResponseWithDefaults instantiates a new V0037PartitionsResponse object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetErrors
|
||||
|
||||
`func (o *V0037PartitionsResponse) GetErrors() []V0037Error`
|
||||
|
||||
GetErrors returns the Errors field if non-nil, zero value otherwise.
|
||||
|
||||
### GetErrorsOk
|
||||
|
||||
`func (o *V0037PartitionsResponse) GetErrorsOk() (*[]V0037Error, bool)`
|
||||
|
||||
GetErrorsOk returns a tuple with the Errors field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetErrors
|
||||
|
||||
`func (o *V0037PartitionsResponse) SetErrors(v []V0037Error)`
|
||||
|
||||
SetErrors sets Errors field to given value.
|
||||
|
||||
### HasErrors
|
||||
|
||||
`func (o *V0037PartitionsResponse) HasErrors() bool`
|
||||
|
||||
HasErrors returns a boolean if a field has been set.
|
||||
|
||||
### GetPartitions
|
||||
|
||||
`func (o *V0037PartitionsResponse) GetPartitions() []V0037Partition`
|
||||
|
||||
GetPartitions returns the Partitions field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPartitionsOk
|
||||
|
||||
`func (o *V0037PartitionsResponse) GetPartitionsOk() (*[]V0037Partition, bool)`
|
||||
|
||||
GetPartitionsOk returns a tuple with the Partitions field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPartitions
|
||||
|
||||
`func (o *V0037PartitionsResponse) SetPartitions(v []V0037Partition)`
|
||||
|
||||
SetPartitions sets Partitions field to given value.
|
||||
|
||||
### HasPartitions
|
||||
|
||||
`func (o *V0037PartitionsResponse) HasPartitions() bool`
|
||||
|
||||
HasPartitions returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,134 +0,0 @@
|
||||
# V0037Ping
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Hostname** | Pointer to **string** | slurm controller hostname | [optional]
|
||||
**Ping** | Pointer to **string** | slurm controller host up | [optional]
|
||||
**Mode** | Pointer to **string** | slurm controller mode | [optional]
|
||||
**Status** | Pointer to **int32** | slurm controller status | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037Ping
|
||||
|
||||
`func NewV0037Ping() *V0037Ping`
|
||||
|
||||
NewV0037Ping instantiates a new V0037Ping object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037PingWithDefaults
|
||||
|
||||
`func NewV0037PingWithDefaults() *V0037Ping`
|
||||
|
||||
NewV0037PingWithDefaults instantiates a new V0037Ping object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetHostname
|
||||
|
||||
`func (o *V0037Ping) GetHostname() string`
|
||||
|
||||
GetHostname returns the Hostname field if non-nil, zero value otherwise.
|
||||
|
||||
### GetHostnameOk
|
||||
|
||||
`func (o *V0037Ping) GetHostnameOk() (*string, bool)`
|
||||
|
||||
GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetHostname
|
||||
|
||||
`func (o *V0037Ping) SetHostname(v string)`
|
||||
|
||||
SetHostname sets Hostname field to given value.
|
||||
|
||||
### HasHostname
|
||||
|
||||
`func (o *V0037Ping) HasHostname() bool`
|
||||
|
||||
HasHostname returns a boolean if a field has been set.
|
||||
|
||||
### GetPing
|
||||
|
||||
`func (o *V0037Ping) GetPing() string`
|
||||
|
||||
GetPing returns the Ping field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPingOk
|
||||
|
||||
`func (o *V0037Ping) GetPingOk() (*string, bool)`
|
||||
|
||||
GetPingOk returns a tuple with the Ping field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPing
|
||||
|
||||
`func (o *V0037Ping) SetPing(v string)`
|
||||
|
||||
SetPing sets Ping field to given value.
|
||||
|
||||
### HasPing
|
||||
|
||||
`func (o *V0037Ping) HasPing() bool`
|
||||
|
||||
HasPing returns a boolean if a field has been set.
|
||||
|
||||
### GetMode
|
||||
|
||||
`func (o *V0037Ping) GetMode() string`
|
||||
|
||||
GetMode returns the Mode field if non-nil, zero value otherwise.
|
||||
|
||||
### GetModeOk
|
||||
|
||||
`func (o *V0037Ping) GetModeOk() (*string, bool)`
|
||||
|
||||
GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMode
|
||||
|
||||
`func (o *V0037Ping) SetMode(v string)`
|
||||
|
||||
SetMode sets Mode field to given value.
|
||||
|
||||
### HasMode
|
||||
|
||||
`func (o *V0037Ping) HasMode() bool`
|
||||
|
||||
HasMode returns a boolean if a field has been set.
|
||||
|
||||
### GetStatus
|
||||
|
||||
`func (o *V0037Ping) GetStatus() int32`
|
||||
|
||||
GetStatus returns the Status field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStatusOk
|
||||
|
||||
`func (o *V0037Ping) GetStatusOk() (*int32, bool)`
|
||||
|
||||
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStatus
|
||||
|
||||
`func (o *V0037Ping) SetStatus(v int32)`
|
||||
|
||||
SetStatus sets Status field to given value.
|
||||
|
||||
### HasStatus
|
||||
|
||||
`func (o *V0037Ping) HasStatus() bool`
|
||||
|
||||
HasStatus returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,82 +0,0 @@
|
||||
# V0037Pings
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Errors** | Pointer to [**[]V0037Error**](V0037Error.md) | slurm errors | [optional]
|
||||
**Pings** | Pointer to [**[]V0037Ping**](V0037Ping.md) | slurm controller pings | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037Pings
|
||||
|
||||
`func NewV0037Pings() *V0037Pings`
|
||||
|
||||
NewV0037Pings instantiates a new V0037Pings object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037PingsWithDefaults
|
||||
|
||||
`func NewV0037PingsWithDefaults() *V0037Pings`
|
||||
|
||||
NewV0037PingsWithDefaults instantiates a new V0037Pings object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetErrors
|
||||
|
||||
`func (o *V0037Pings) GetErrors() []V0037Error`
|
||||
|
||||
GetErrors returns the Errors field if non-nil, zero value otherwise.
|
||||
|
||||
### GetErrorsOk
|
||||
|
||||
`func (o *V0037Pings) GetErrorsOk() (*[]V0037Error, bool)`
|
||||
|
||||
GetErrorsOk returns a tuple with the Errors field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetErrors
|
||||
|
||||
`func (o *V0037Pings) SetErrors(v []V0037Error)`
|
||||
|
||||
SetErrors sets Errors field to given value.
|
||||
|
||||
### HasErrors
|
||||
|
||||
`func (o *V0037Pings) HasErrors() bool`
|
||||
|
||||
HasErrors returns a boolean if a field has been set.
|
||||
|
||||
### GetPings
|
||||
|
||||
`func (o *V0037Pings) GetPings() []V0037Ping`
|
||||
|
||||
GetPings returns the Pings field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPingsOk
|
||||
|
||||
`func (o *V0037Pings) GetPingsOk() (*[]V0037Ping, bool)`
|
||||
|
||||
GetPingsOk returns a tuple with the Pings field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPings
|
||||
|
||||
`func (o *V0037Pings) SetPings(v []V0037Ping)`
|
||||
|
||||
SetPings sets Pings field to given value.
|
||||
|
||||
### HasPings
|
||||
|
||||
`func (o *V0037Pings) HasPings() bool`
|
||||
|
||||
HasPings returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,524 +0,0 @@
|
||||
# V0037Reservation
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Accounts** | Pointer to **string** | Allowed accounts | [optional]
|
||||
**BurstBuffer** | Pointer to **string** | Reserved burst buffer | [optional]
|
||||
**CoreCount** | Pointer to **int32** | Number of reserved cores | [optional]
|
||||
**CoreSpecCnt** | Pointer to **int32** | Number of reserved specialized cores | [optional]
|
||||
**EndTime** | Pointer to **int32** | End time of the reservation | [optional]
|
||||
**Features** | Pointer to **string** | List of features | [optional]
|
||||
**Flags** | Pointer to **[]string** | Reservation options | [optional]
|
||||
**Groups** | Pointer to **string** | List of groups permitted to use the reserved nodes | [optional]
|
||||
**Licenses** | Pointer to **string** | List of licenses | [optional]
|
||||
**MaxStartDelay** | Pointer to **int32** | Maximum delay in which jobs outside of the reservation will be permitted to overlap once any jobs are queued for the reservation | [optional]
|
||||
**Name** | Pointer to **string** | Reservationn name | [optional]
|
||||
**NodeCount** | Pointer to **int32** | Count of nodes reserved | [optional]
|
||||
**NodeList** | Pointer to **string** | List of reserved nodes | [optional]
|
||||
**Partition** | Pointer to **string** | Partition | [optional]
|
||||
**PurgeCompleted** | Pointer to [**V0037ReservationPurgeCompleted**](V0037ReservationPurgeCompleted.md) | | [optional]
|
||||
**StartTime** | Pointer to **int32** | Start time of reservation | [optional]
|
||||
**Watts** | Pointer to **int32** | amount of power to reserve in watts | [optional]
|
||||
**Tres** | Pointer to **string** | List of TRES | [optional]
|
||||
**Users** | Pointer to **string** | List of users | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037Reservation
|
||||
|
||||
`func NewV0037Reservation() *V0037Reservation`
|
||||
|
||||
NewV0037Reservation instantiates a new V0037Reservation object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037ReservationWithDefaults
|
||||
|
||||
`func NewV0037ReservationWithDefaults() *V0037Reservation`
|
||||
|
||||
NewV0037ReservationWithDefaults instantiates a new V0037Reservation object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetAccounts
|
||||
|
||||
`func (o *V0037Reservation) GetAccounts() string`
|
||||
|
||||
GetAccounts returns the Accounts field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAccountsOk
|
||||
|
||||
`func (o *V0037Reservation) GetAccountsOk() (*string, bool)`
|
||||
|
||||
GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAccounts
|
||||
|
||||
`func (o *V0037Reservation) SetAccounts(v string)`
|
||||
|
||||
SetAccounts sets Accounts field to given value.
|
||||
|
||||
### HasAccounts
|
||||
|
||||
`func (o *V0037Reservation) HasAccounts() bool`
|
||||
|
||||
HasAccounts returns a boolean if a field has been set.
|
||||
|
||||
### GetBurstBuffer
|
||||
|
||||
`func (o *V0037Reservation) GetBurstBuffer() string`
|
||||
|
||||
GetBurstBuffer returns the BurstBuffer field if non-nil, zero value otherwise.
|
||||
|
||||
### GetBurstBufferOk
|
||||
|
||||
`func (o *V0037Reservation) GetBurstBufferOk() (*string, bool)`
|
||||
|
||||
GetBurstBufferOk returns a tuple with the BurstBuffer field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetBurstBuffer
|
||||
|
||||
`func (o *V0037Reservation) SetBurstBuffer(v string)`
|
||||
|
||||
SetBurstBuffer sets BurstBuffer field to given value.
|
||||
|
||||
### HasBurstBuffer
|
||||
|
||||
`func (o *V0037Reservation) HasBurstBuffer() bool`
|
||||
|
||||
HasBurstBuffer returns a boolean if a field has been set.
|
||||
|
||||
### GetCoreCount
|
||||
|
||||
`func (o *V0037Reservation) GetCoreCount() int32`
|
||||
|
||||
GetCoreCount returns the CoreCount field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCoreCountOk
|
||||
|
||||
`func (o *V0037Reservation) GetCoreCountOk() (*int32, bool)`
|
||||
|
||||
GetCoreCountOk returns a tuple with the CoreCount field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetCoreCount
|
||||
|
||||
`func (o *V0037Reservation) SetCoreCount(v int32)`
|
||||
|
||||
SetCoreCount sets CoreCount field to given value.
|
||||
|
||||
### HasCoreCount
|
||||
|
||||
`func (o *V0037Reservation) HasCoreCount() bool`
|
||||
|
||||
HasCoreCount returns a boolean if a field has been set.
|
||||
|
||||
### GetCoreSpecCnt
|
||||
|
||||
`func (o *V0037Reservation) GetCoreSpecCnt() int32`
|
||||
|
||||
GetCoreSpecCnt returns the CoreSpecCnt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCoreSpecCntOk
|
||||
|
||||
`func (o *V0037Reservation) GetCoreSpecCntOk() (*int32, bool)`
|
||||
|
||||
GetCoreSpecCntOk returns a tuple with the CoreSpecCnt field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetCoreSpecCnt
|
||||
|
||||
`func (o *V0037Reservation) SetCoreSpecCnt(v int32)`
|
||||
|
||||
SetCoreSpecCnt sets CoreSpecCnt field to given value.
|
||||
|
||||
### HasCoreSpecCnt
|
||||
|
||||
`func (o *V0037Reservation) HasCoreSpecCnt() bool`
|
||||
|
||||
HasCoreSpecCnt returns a boolean if a field has been set.
|
||||
|
||||
### GetEndTime
|
||||
|
||||
`func (o *V0037Reservation) GetEndTime() int32`
|
||||
|
||||
GetEndTime returns the EndTime field if non-nil, zero value otherwise.
|
||||
|
||||
### GetEndTimeOk
|
||||
|
||||
`func (o *V0037Reservation) GetEndTimeOk() (*int32, bool)`
|
||||
|
||||
GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetEndTime
|
||||
|
||||
`func (o *V0037Reservation) SetEndTime(v int32)`
|
||||
|
||||
SetEndTime sets EndTime field to given value.
|
||||
|
||||
### HasEndTime
|
||||
|
||||
`func (o *V0037Reservation) HasEndTime() bool`
|
||||
|
||||
HasEndTime returns a boolean if a field has been set.
|
||||
|
||||
### GetFeatures
|
||||
|
||||
`func (o *V0037Reservation) GetFeatures() string`
|
||||
|
||||
GetFeatures returns the Features field if non-nil, zero value otherwise.
|
||||
|
||||
### GetFeaturesOk
|
||||
|
||||
`func (o *V0037Reservation) GetFeaturesOk() (*string, bool)`
|
||||
|
||||
GetFeaturesOk returns a tuple with the Features field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetFeatures
|
||||
|
||||
`func (o *V0037Reservation) SetFeatures(v string)`
|
||||
|
||||
SetFeatures sets Features field to given value.
|
||||
|
||||
### HasFeatures
|
||||
|
||||
`func (o *V0037Reservation) HasFeatures() bool`
|
||||
|
||||
HasFeatures returns a boolean if a field has been set.
|
||||
|
||||
### GetFlags
|
||||
|
||||
`func (o *V0037Reservation) GetFlags() []string`
|
||||
|
||||
GetFlags returns the Flags field if non-nil, zero value otherwise.
|
||||
|
||||
### GetFlagsOk
|
||||
|
||||
`func (o *V0037Reservation) GetFlagsOk() (*[]string, bool)`
|
||||
|
||||
GetFlagsOk returns a tuple with the Flags field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetFlags
|
||||
|
||||
`func (o *V0037Reservation) SetFlags(v []string)`
|
||||
|
||||
SetFlags sets Flags field to given value.
|
||||
|
||||
### HasFlags
|
||||
|
||||
`func (o *V0037Reservation) HasFlags() bool`
|
||||
|
||||
HasFlags returns a boolean if a field has been set.
|
||||
|
||||
### GetGroups
|
||||
|
||||
`func (o *V0037Reservation) GetGroups() string`
|
||||
|
||||
GetGroups returns the Groups field if non-nil, zero value otherwise.
|
||||
|
||||
### GetGroupsOk
|
||||
|
||||
`func (o *V0037Reservation) GetGroupsOk() (*string, bool)`
|
||||
|
||||
GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetGroups
|
||||
|
||||
`func (o *V0037Reservation) SetGroups(v string)`
|
||||
|
||||
SetGroups sets Groups field to given value.
|
||||
|
||||
### HasGroups
|
||||
|
||||
`func (o *V0037Reservation) HasGroups() bool`
|
||||
|
||||
HasGroups returns a boolean if a field has been set.
|
||||
|
||||
### GetLicenses
|
||||
|
||||
`func (o *V0037Reservation) GetLicenses() string`
|
||||
|
||||
GetLicenses returns the Licenses field if non-nil, zero value otherwise.
|
||||
|
||||
### GetLicensesOk
|
||||
|
||||
`func (o *V0037Reservation) GetLicensesOk() (*string, bool)`
|
||||
|
||||
GetLicensesOk returns a tuple with the Licenses field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetLicenses
|
||||
|
||||
`func (o *V0037Reservation) SetLicenses(v string)`
|
||||
|
||||
SetLicenses sets Licenses field to given value.
|
||||
|
||||
### HasLicenses
|
||||
|
||||
`func (o *V0037Reservation) HasLicenses() bool`
|
||||
|
||||
HasLicenses returns a boolean if a field has been set.
|
||||
|
||||
### GetMaxStartDelay
|
||||
|
||||
`func (o *V0037Reservation) GetMaxStartDelay() int32`
|
||||
|
||||
GetMaxStartDelay returns the MaxStartDelay field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMaxStartDelayOk
|
||||
|
||||
`func (o *V0037Reservation) GetMaxStartDelayOk() (*int32, bool)`
|
||||
|
||||
GetMaxStartDelayOk returns a tuple with the MaxStartDelay field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMaxStartDelay
|
||||
|
||||
`func (o *V0037Reservation) SetMaxStartDelay(v int32)`
|
||||
|
||||
SetMaxStartDelay sets MaxStartDelay field to given value.
|
||||
|
||||
### HasMaxStartDelay
|
||||
|
||||
`func (o *V0037Reservation) HasMaxStartDelay() bool`
|
||||
|
||||
HasMaxStartDelay returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *V0037Reservation) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *V0037Reservation) GetNameOk() (*string, bool)`
|
||||
|
||||
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetName
|
||||
|
||||
`func (o *V0037Reservation) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *V0037Reservation) HasName() bool`
|
||||
|
||||
HasName returns a boolean if a field has been set.
|
||||
|
||||
### GetNodeCount
|
||||
|
||||
`func (o *V0037Reservation) GetNodeCount() int32`
|
||||
|
||||
GetNodeCount returns the NodeCount field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNodeCountOk
|
||||
|
||||
`func (o *V0037Reservation) GetNodeCountOk() (*int32, bool)`
|
||||
|
||||
GetNodeCountOk returns a tuple with the NodeCount field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetNodeCount
|
||||
|
||||
`func (o *V0037Reservation) SetNodeCount(v int32)`
|
||||
|
||||
SetNodeCount sets NodeCount field to given value.
|
||||
|
||||
### HasNodeCount
|
||||
|
||||
`func (o *V0037Reservation) HasNodeCount() bool`
|
||||
|
||||
HasNodeCount returns a boolean if a field has been set.
|
||||
|
||||
### GetNodeList
|
||||
|
||||
`func (o *V0037Reservation) GetNodeList() string`
|
||||
|
||||
GetNodeList returns the NodeList field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNodeListOk
|
||||
|
||||
`func (o *V0037Reservation) GetNodeListOk() (*string, bool)`
|
||||
|
||||
GetNodeListOk returns a tuple with the NodeList field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetNodeList
|
||||
|
||||
`func (o *V0037Reservation) SetNodeList(v string)`
|
||||
|
||||
SetNodeList sets NodeList field to given value.
|
||||
|
||||
### HasNodeList
|
||||
|
||||
`func (o *V0037Reservation) HasNodeList() bool`
|
||||
|
||||
HasNodeList returns a boolean if a field has been set.
|
||||
|
||||
### GetPartition
|
||||
|
||||
`func (o *V0037Reservation) GetPartition() string`
|
||||
|
||||
GetPartition returns the Partition field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPartitionOk
|
||||
|
||||
`func (o *V0037Reservation) GetPartitionOk() (*string, bool)`
|
||||
|
||||
GetPartitionOk returns a tuple with the Partition field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPartition
|
||||
|
||||
`func (o *V0037Reservation) SetPartition(v string)`
|
||||
|
||||
SetPartition sets Partition field to given value.
|
||||
|
||||
### HasPartition
|
||||
|
||||
`func (o *V0037Reservation) HasPartition() bool`
|
||||
|
||||
HasPartition returns a boolean if a field has been set.
|
||||
|
||||
### GetPurgeCompleted
|
||||
|
||||
`func (o *V0037Reservation) GetPurgeCompleted() V0037ReservationPurgeCompleted`
|
||||
|
||||
GetPurgeCompleted returns the PurgeCompleted field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPurgeCompletedOk
|
||||
|
||||
`func (o *V0037Reservation) GetPurgeCompletedOk() (*V0037ReservationPurgeCompleted, bool)`
|
||||
|
||||
GetPurgeCompletedOk returns a tuple with the PurgeCompleted field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPurgeCompleted
|
||||
|
||||
`func (o *V0037Reservation) SetPurgeCompleted(v V0037ReservationPurgeCompleted)`
|
||||
|
||||
SetPurgeCompleted sets PurgeCompleted field to given value.
|
||||
|
||||
### HasPurgeCompleted
|
||||
|
||||
`func (o *V0037Reservation) HasPurgeCompleted() bool`
|
||||
|
||||
HasPurgeCompleted returns a boolean if a field has been set.
|
||||
|
||||
### GetStartTime
|
||||
|
||||
`func (o *V0037Reservation) GetStartTime() int32`
|
||||
|
||||
GetStartTime returns the StartTime field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStartTimeOk
|
||||
|
||||
`func (o *V0037Reservation) GetStartTimeOk() (*int32, bool)`
|
||||
|
||||
GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStartTime
|
||||
|
||||
`func (o *V0037Reservation) SetStartTime(v int32)`
|
||||
|
||||
SetStartTime sets StartTime field to given value.
|
||||
|
||||
### HasStartTime
|
||||
|
||||
`func (o *V0037Reservation) HasStartTime() bool`
|
||||
|
||||
HasStartTime returns a boolean if a field has been set.
|
||||
|
||||
### GetWatts
|
||||
|
||||
`func (o *V0037Reservation) GetWatts() int32`
|
||||
|
||||
GetWatts returns the Watts field if non-nil, zero value otherwise.
|
||||
|
||||
### GetWattsOk
|
||||
|
||||
`func (o *V0037Reservation) GetWattsOk() (*int32, bool)`
|
||||
|
||||
GetWattsOk returns a tuple with the Watts field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetWatts
|
||||
|
||||
`func (o *V0037Reservation) SetWatts(v int32)`
|
||||
|
||||
SetWatts sets Watts field to given value.
|
||||
|
||||
### HasWatts
|
||||
|
||||
`func (o *V0037Reservation) HasWatts() bool`
|
||||
|
||||
HasWatts returns a boolean if a field has been set.
|
||||
|
||||
### GetTres
|
||||
|
||||
`func (o *V0037Reservation) GetTres() string`
|
||||
|
||||
GetTres returns the Tres field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTresOk
|
||||
|
||||
`func (o *V0037Reservation) GetTresOk() (*string, bool)`
|
||||
|
||||
GetTresOk returns a tuple with the Tres field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTres
|
||||
|
||||
`func (o *V0037Reservation) SetTres(v string)`
|
||||
|
||||
SetTres sets Tres field to given value.
|
||||
|
||||
### HasTres
|
||||
|
||||
`func (o *V0037Reservation) HasTres() bool`
|
||||
|
||||
HasTres returns a boolean if a field has been set.
|
||||
|
||||
### GetUsers
|
||||
|
||||
`func (o *V0037Reservation) GetUsers() string`
|
||||
|
||||
GetUsers returns the Users field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUsersOk
|
||||
|
||||
`func (o *V0037Reservation) GetUsersOk() (*string, bool)`
|
||||
|
||||
GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUsers
|
||||
|
||||
`func (o *V0037Reservation) SetUsers(v string)`
|
||||
|
||||
SetUsers sets Users field to given value.
|
||||
|
||||
### HasUsers
|
||||
|
||||
`func (o *V0037Reservation) HasUsers() bool`
|
||||
|
||||
HasUsers returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,56 +0,0 @@
|
||||
# V0037ReservationPurgeCompleted
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Time** | Pointer to **int32** | amount of seconds this reservation will sit idle until it is revoked | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037ReservationPurgeCompleted
|
||||
|
||||
`func NewV0037ReservationPurgeCompleted() *V0037ReservationPurgeCompleted`
|
||||
|
||||
NewV0037ReservationPurgeCompleted instantiates a new V0037ReservationPurgeCompleted object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037ReservationPurgeCompletedWithDefaults
|
||||
|
||||
`func NewV0037ReservationPurgeCompletedWithDefaults() *V0037ReservationPurgeCompleted`
|
||||
|
||||
NewV0037ReservationPurgeCompletedWithDefaults instantiates a new V0037ReservationPurgeCompleted object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetTime
|
||||
|
||||
`func (o *V0037ReservationPurgeCompleted) GetTime() int32`
|
||||
|
||||
GetTime returns the Time field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTimeOk
|
||||
|
||||
`func (o *V0037ReservationPurgeCompleted) GetTimeOk() (*int32, bool)`
|
||||
|
||||
GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTime
|
||||
|
||||
`func (o *V0037ReservationPurgeCompleted) SetTime(v int32)`
|
||||
|
||||
SetTime sets Time field to given value.
|
||||
|
||||
### HasTime
|
||||
|
||||
`func (o *V0037ReservationPurgeCompleted) HasTime() bool`
|
||||
|
||||
HasTime returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,82 +0,0 @@
|
||||
# V0037ReservationsResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Errors** | Pointer to [**[]V0037Error**](V0037Error.md) | slurm errors | [optional]
|
||||
**Reservations** | Pointer to [**[]V0037Reservation**](V0037Reservation.md) | reservation info | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewV0037ReservationsResponse
|
||||
|
||||
`func NewV0037ReservationsResponse() *V0037ReservationsResponse`
|
||||
|
||||
NewV0037ReservationsResponse instantiates a new V0037ReservationsResponse object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewV0037ReservationsResponseWithDefaults
|
||||
|
||||
`func NewV0037ReservationsResponseWithDefaults() *V0037ReservationsResponse`
|
||||
|
||||
NewV0037ReservationsResponseWithDefaults instantiates a new V0037ReservationsResponse object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetErrors
|
||||
|
||||
`func (o *V0037ReservationsResponse) GetErrors() []V0037Error`
|
||||
|
||||
GetErrors returns the Errors field if non-nil, zero value otherwise.
|
||||
|
||||
### GetErrorsOk
|
||||
|
||||
`func (o *V0037ReservationsResponse) GetErrorsOk() (*[]V0037Error, bool)`
|
||||
|
||||
GetErrorsOk returns a tuple with the Errors field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetErrors
|
||||
|
||||
`func (o *V0037ReservationsResponse) SetErrors(v []V0037Error)`
|
||||
|
||||
SetErrors sets Errors field to given value.
|
||||
|
||||
### HasErrors
|
||||
|
||||
`func (o *V0037ReservationsResponse) HasErrors() bool`
|
||||
|
||||
HasErrors returns a boolean if a field has been set.
|
||||
|
||||
### GetReservations
|
||||
|
||||
`func (o *V0037ReservationsResponse) GetReservations() []V0037Reservation`
|
||||
|
||||
GetReservations returns the Reservations field if non-nil, zero value otherwise.
|
||||
|
||||
### GetReservationsOk
|
||||
|
||||
`func (o *V0037ReservationsResponse) GetReservationsOk() (*[]V0037Reservation, bool)`
|
||||
|
||||
GetReservationsOk returns a tuple with the Reservations field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetReservations
|
||||
|
||||
`func (o *V0037ReservationsResponse) SetReservations(v []V0037Reservation)`
|
||||
|
||||
SetReservations sets Reservations field to given value.
|
||||
|
||||
### HasReservations
|
||||
|
||||
`func (o *V0037ReservationsResponse) HasReservations() bool`
|
||||
|
||||
HasReservations returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,39 +0,0 @@
|
||||
# V0037Signal
|
||||
|
||||
## Enum
|
||||
|
||||
|
||||
* `HUP` (value: `"HUP"`)
|
||||
|
||||
* `INT` (value: `"INT"`)
|
||||
|
||||
* `QUIT` (value: `"QUIT"`)
|
||||
|
||||
* `ABRT` (value: `"ABRT"`)
|
||||
|
||||
* `KILL` (value: `"KILL"`)
|
||||
|
||||
* `ALRM` (value: `"ALRM"`)
|
||||
|
||||
* `TERM` (value: `"TERM"`)
|
||||
|
||||
* `USR1` (value: `"USR1"`)
|
||||
|
||||
* `USR2` (value: `"USR2"`)
|
||||
|
||||
* `URG` (value: `"URG"`)
|
||||
|
||||
* `CONT` (value: `"CONT"`)
|
||||
|
||||
* `STOP` (value: `"STOP"`)
|
||||
|
||||
* `TSTP` (value: `"TSTP"`)
|
||||
|
||||
* `TTIN` (value: `"TTIN"`)
|
||||
|
||||
* `TTOU` (value: `"TTOU"`)
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,57 +0,0 @@
|
||||
#!/bin/sh
|
||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||
#
|
||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
||||
|
||||
git_user_id=$1
|
||||
git_repo_id=$2
|
||||
release_note=$3
|
||||
git_host=$4
|
||||
|
||||
if [ "$git_host" = "" ]; then
|
||||
git_host="github.com"
|
||||
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
||||
fi
|
||||
|
||||
if [ "$git_user_id" = "" ]; then
|
||||
git_user_id="GIT_USER_ID"
|
||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||
fi
|
||||
|
||||
if [ "$git_repo_id" = "" ]; then
|
||||
git_repo_id="GIT_REPO_ID"
|
||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||
fi
|
||||
|
||||
if [ "$release_note" = "" ]; then
|
||||
release_note="Minor update"
|
||||
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
||||
fi
|
||||
|
||||
# Initialize the local directory as a Git repository
|
||||
git init
|
||||
|
||||
# Adds the files in the local repository and stages them for commit.
|
||||
git add .
|
||||
|
||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||
git commit -m "$release_note"
|
||||
|
||||
# Sets the new remote
|
||||
git_remote=$(git remote)
|
||||
if [ "$git_remote" = "" ]; then # git remote not defined
|
||||
|
||||
if [ "$GIT_TOKEN" = "" ]; then
|
||||
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
||||
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
||||
else
|
||||
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
git pull origin master
|
||||
|
||||
# Pushes (Forces) the changes in the local repository up to the remote repository
|
||||
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
||||
git push origin master 2>&1 | grep -v 'To https'
|
@ -1,6 +0,0 @@
|
||||
module github.com/GIT_USER_ID/GIT_REPO_ID
|
||||
|
||||
go 1.18
|
||||
|
||||
require (
|
||||
)
|
@ -1,11 +0,0 @@
|
||||
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg=
|
||||
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw=
|
||||
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508=
|
||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
@ -1,164 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the V0037Diag type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &V0037Diag{}
|
||||
|
||||
// V0037Diag struct for V0037Diag
|
||||
type V0037Diag struct {
|
||||
// slurm errors
|
||||
Errors []V0037Error `json:"errors,omitempty"`
|
||||
Statistics *V0037DiagStatistics `json:"statistics,omitempty"`
|
||||
}
|
||||
|
||||
// NewV0037Diag instantiates a new V0037Diag object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewV0037Diag() *V0037Diag {
|
||||
this := V0037Diag{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewV0037DiagWithDefaults instantiates a new V0037Diag object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewV0037DiagWithDefaults() *V0037Diag {
|
||||
this := V0037Diag{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetErrors returns the Errors field value if set, zero value otherwise.
|
||||
func (o *V0037Diag) GetErrors() []V0037Error {
|
||||
if o == nil || IsNil(o.Errors) {
|
||||
var ret []V0037Error
|
||||
return ret
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Diag) GetErrorsOk() ([]V0037Error, bool) {
|
||||
if o == nil || IsNil(o.Errors) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Errors, true
|
||||
}
|
||||
|
||||
// HasErrors returns a boolean if a field has been set.
|
||||
func (o *V0037Diag) HasErrors() bool {
|
||||
if o != nil && !IsNil(o.Errors) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetErrors gets a reference to the given []V0037Error and assigns it to the Errors field.
|
||||
func (o *V0037Diag) SetErrors(v []V0037Error) {
|
||||
o.Errors = v
|
||||
}
|
||||
|
||||
// GetStatistics returns the Statistics field value if set, zero value otherwise.
|
||||
func (o *V0037Diag) GetStatistics() V0037DiagStatistics {
|
||||
if o == nil || IsNil(o.Statistics) {
|
||||
var ret V0037DiagStatistics
|
||||
return ret
|
||||
}
|
||||
return *o.Statistics
|
||||
}
|
||||
|
||||
// GetStatisticsOk returns a tuple with the Statistics field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Diag) GetStatisticsOk() (*V0037DiagStatistics, bool) {
|
||||
if o == nil || IsNil(o.Statistics) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Statistics, true
|
||||
}
|
||||
|
||||
// HasStatistics returns a boolean if a field has been set.
|
||||
func (o *V0037Diag) HasStatistics() bool {
|
||||
if o != nil && !IsNil(o.Statistics) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetStatistics gets a reference to the given V0037DiagStatistics and assigns it to the Statistics field.
|
||||
func (o *V0037Diag) SetStatistics(v V0037DiagStatistics) {
|
||||
o.Statistics = &v
|
||||
}
|
||||
|
||||
func (o V0037Diag) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o V0037Diag) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Errors) {
|
||||
toSerialize["errors"] = o.Errors
|
||||
}
|
||||
if !IsNil(o.Statistics) {
|
||||
toSerialize["statistics"] = o.Statistics
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableV0037Diag struct {
|
||||
value *V0037Diag
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037Diag) Get() *V0037Diag {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037Diag) Set(val *V0037Diag) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037Diag) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037Diag) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037Diag(val *V0037Diag) *NullableV0037Diag {
|
||||
return &NullableV0037Diag{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037Diag) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037Diag) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,165 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the V0037Error type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &V0037Error{}
|
||||
|
||||
// V0037Error struct for V0037Error
|
||||
type V0037Error struct {
|
||||
// error message
|
||||
Error *string `json:"error,omitempty"`
|
||||
// error number
|
||||
Errno *int32 `json:"errno,omitempty"`
|
||||
}
|
||||
|
||||
// NewV0037Error instantiates a new V0037Error object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewV0037Error() *V0037Error {
|
||||
this := V0037Error{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewV0037ErrorWithDefaults instantiates a new V0037Error object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewV0037ErrorWithDefaults() *V0037Error {
|
||||
this := V0037Error{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetError returns the Error field value if set, zero value otherwise.
|
||||
func (o *V0037Error) GetError() string {
|
||||
if o == nil || IsNil(o.Error) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Error
|
||||
}
|
||||
|
||||
// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Error) GetErrorOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Error) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Error, true
|
||||
}
|
||||
|
||||
// HasError returns a boolean if a field has been set.
|
||||
func (o *V0037Error) HasError() bool {
|
||||
if o != nil && !IsNil(o.Error) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetError gets a reference to the given string and assigns it to the Error field.
|
||||
func (o *V0037Error) SetError(v string) {
|
||||
o.Error = &v
|
||||
}
|
||||
|
||||
// GetErrno returns the Errno field value if set, zero value otherwise.
|
||||
func (o *V0037Error) GetErrno() int32 {
|
||||
if o == nil || IsNil(o.Errno) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.Errno
|
||||
}
|
||||
|
||||
// GetErrnoOk returns a tuple with the Errno field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Error) GetErrnoOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.Errno) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Errno, true
|
||||
}
|
||||
|
||||
// HasErrno returns a boolean if a field has been set.
|
||||
func (o *V0037Error) HasErrno() bool {
|
||||
if o != nil && !IsNil(o.Errno) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetErrno gets a reference to the given int32 and assigns it to the Errno field.
|
||||
func (o *V0037Error) SetErrno(v int32) {
|
||||
o.Errno = &v
|
||||
}
|
||||
|
||||
func (o V0037Error) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o V0037Error) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Error) {
|
||||
toSerialize["error"] = o.Error
|
||||
}
|
||||
if !IsNil(o.Errno) {
|
||||
toSerialize["errno"] = o.Errno
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableV0037Error struct {
|
||||
value *V0037Error
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037Error) Get() *V0037Error {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037Error) Set(val *V0037Error) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037Error) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037Error) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037Error(val *V0037Error) *NullableV0037Error {
|
||||
return &NullableV0037Error{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037Error) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037Error) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,239 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the V0037JobResources type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &V0037JobResources{}
|
||||
|
||||
// V0037JobResources struct for V0037JobResources
|
||||
type V0037JobResources struct {
|
||||
// list of assigned job nodes
|
||||
Nodes *string `json:"nodes,omitempty"`
|
||||
// number of assigned job cpus
|
||||
AllocatedCpus *int32 `json:"allocated_cpus,omitempty"`
|
||||
// number of assigned job hosts
|
||||
AllocatedHosts *int32 `json:"allocated_hosts,omitempty"`
|
||||
// node allocations
|
||||
AllocatedNodes []V0037NodeAllocation `json:"allocated_nodes,omitempty"`
|
||||
}
|
||||
|
||||
// NewV0037JobResources instantiates a new V0037JobResources object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewV0037JobResources() *V0037JobResources {
|
||||
this := V0037JobResources{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewV0037JobResourcesWithDefaults instantiates a new V0037JobResources object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewV0037JobResourcesWithDefaults() *V0037JobResources {
|
||||
this := V0037JobResources{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetNodes returns the Nodes field value if set, zero value otherwise.
|
||||
func (o *V0037JobResources) GetNodes() string {
|
||||
if o == nil || IsNil(o.Nodes) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Nodes
|
||||
}
|
||||
|
||||
// GetNodesOk returns a tuple with the Nodes field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037JobResources) GetNodesOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Nodes) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Nodes, true
|
||||
}
|
||||
|
||||
// HasNodes returns a boolean if a field has been set.
|
||||
func (o *V0037JobResources) HasNodes() bool {
|
||||
if o != nil && !IsNil(o.Nodes) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetNodes gets a reference to the given string and assigns it to the Nodes field.
|
||||
func (o *V0037JobResources) SetNodes(v string) {
|
||||
o.Nodes = &v
|
||||
}
|
||||
|
||||
// GetAllocatedCpus returns the AllocatedCpus field value if set, zero value otherwise.
|
||||
func (o *V0037JobResources) GetAllocatedCpus() int32 {
|
||||
if o == nil || IsNil(o.AllocatedCpus) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.AllocatedCpus
|
||||
}
|
||||
|
||||
// GetAllocatedCpusOk returns a tuple with the AllocatedCpus field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037JobResources) GetAllocatedCpusOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.AllocatedCpus) {
|
||||
return nil, false
|
||||
}
|
||||
return o.AllocatedCpus, true
|
||||
}
|
||||
|
||||
// HasAllocatedCpus returns a boolean if a field has been set.
|
||||
func (o *V0037JobResources) HasAllocatedCpus() bool {
|
||||
if o != nil && !IsNil(o.AllocatedCpus) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAllocatedCpus gets a reference to the given int32 and assigns it to the AllocatedCpus field.
|
||||
func (o *V0037JobResources) SetAllocatedCpus(v int32) {
|
||||
o.AllocatedCpus = &v
|
||||
}
|
||||
|
||||
// GetAllocatedHosts returns the AllocatedHosts field value if set, zero value otherwise.
|
||||
func (o *V0037JobResources) GetAllocatedHosts() int32 {
|
||||
if o == nil || IsNil(o.AllocatedHosts) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.AllocatedHosts
|
||||
}
|
||||
|
||||
// GetAllocatedHostsOk returns a tuple with the AllocatedHosts field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037JobResources) GetAllocatedHostsOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.AllocatedHosts) {
|
||||
return nil, false
|
||||
}
|
||||
return o.AllocatedHosts, true
|
||||
}
|
||||
|
||||
// HasAllocatedHosts returns a boolean if a field has been set.
|
||||
func (o *V0037JobResources) HasAllocatedHosts() bool {
|
||||
if o != nil && !IsNil(o.AllocatedHosts) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAllocatedHosts gets a reference to the given int32 and assigns it to the AllocatedHosts field.
|
||||
func (o *V0037JobResources) SetAllocatedHosts(v int32) {
|
||||
o.AllocatedHosts = &v
|
||||
}
|
||||
|
||||
// GetAllocatedNodes returns the AllocatedNodes field value if set, zero value otherwise.
|
||||
func (o *V0037JobResources) GetAllocatedNodes() []V0037NodeAllocation {
|
||||
if o == nil || IsNil(o.AllocatedNodes) {
|
||||
var ret []V0037NodeAllocation
|
||||
return ret
|
||||
}
|
||||
return o.AllocatedNodes
|
||||
}
|
||||
|
||||
// GetAllocatedNodesOk returns a tuple with the AllocatedNodes field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037JobResources) GetAllocatedNodesOk() ([]V0037NodeAllocation, bool) {
|
||||
if o == nil || IsNil(o.AllocatedNodes) {
|
||||
return nil, false
|
||||
}
|
||||
return o.AllocatedNodes, true
|
||||
}
|
||||
|
||||
// HasAllocatedNodes returns a boolean if a field has been set.
|
||||
func (o *V0037JobResources) HasAllocatedNodes() bool {
|
||||
if o != nil && !IsNil(o.AllocatedNodes) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAllocatedNodes gets a reference to the given []V0037NodeAllocation and assigns it to the AllocatedNodes field.
|
||||
func (o *V0037JobResources) SetAllocatedNodes(v []V0037NodeAllocation) {
|
||||
o.AllocatedNodes = v
|
||||
}
|
||||
|
||||
func (o V0037JobResources) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o V0037JobResources) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Nodes) {
|
||||
toSerialize["nodes"] = o.Nodes
|
||||
}
|
||||
if !IsNil(o.AllocatedCpus) {
|
||||
toSerialize["allocated_cpus"] = o.AllocatedCpus
|
||||
}
|
||||
if !IsNil(o.AllocatedHosts) {
|
||||
toSerialize["allocated_hosts"] = o.AllocatedHosts
|
||||
}
|
||||
if !IsNil(o.AllocatedNodes) {
|
||||
toSerialize["allocated_nodes"] = o.AllocatedNodes
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableV0037JobResources struct {
|
||||
value *V0037JobResources
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037JobResources) Get() *V0037JobResources {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037JobResources) Set(val *V0037JobResources) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037JobResources) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037JobResources) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037JobResources(val *V0037JobResources) *NullableV0037JobResources {
|
||||
return &NullableV0037JobResources{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037JobResources) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037JobResources) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,192 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the V0037JobSubmission type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &V0037JobSubmission{}
|
||||
|
||||
// V0037JobSubmission struct for V0037JobSubmission
|
||||
type V0037JobSubmission struct {
|
||||
// Executable script (full contents) to run in batch step
|
||||
Script string `json:"script"`
|
||||
Job *V0037JobProperties `json:"job,omitempty"`
|
||||
// Properties of an HetJob
|
||||
Jobs []V0037JobProperties `json:"jobs,omitempty"`
|
||||
}
|
||||
|
||||
// NewV0037JobSubmission instantiates a new V0037JobSubmission object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewV0037JobSubmission(script string) *V0037JobSubmission {
|
||||
this := V0037JobSubmission{}
|
||||
this.Script = script
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewV0037JobSubmissionWithDefaults instantiates a new V0037JobSubmission object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewV0037JobSubmissionWithDefaults() *V0037JobSubmission {
|
||||
this := V0037JobSubmission{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetScript returns the Script field value
|
||||
func (o *V0037JobSubmission) GetScript() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Script
|
||||
}
|
||||
|
||||
// GetScriptOk returns a tuple with the Script field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037JobSubmission) GetScriptOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Script, true
|
||||
}
|
||||
|
||||
// SetScript sets field value
|
||||
func (o *V0037JobSubmission) SetScript(v string) {
|
||||
o.Script = v
|
||||
}
|
||||
|
||||
// GetJob returns the Job field value if set, zero value otherwise.
|
||||
func (o *V0037JobSubmission) GetJob() V0037JobProperties {
|
||||
if o == nil || IsNil(o.Job) {
|
||||
var ret V0037JobProperties
|
||||
return ret
|
||||
}
|
||||
return *o.Job
|
||||
}
|
||||
|
||||
// GetJobOk returns a tuple with the Job field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037JobSubmission) GetJobOk() (*V0037JobProperties, bool) {
|
||||
if o == nil || IsNil(o.Job) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Job, true
|
||||
}
|
||||
|
||||
// HasJob returns a boolean if a field has been set.
|
||||
func (o *V0037JobSubmission) HasJob() bool {
|
||||
if o != nil && !IsNil(o.Job) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetJob gets a reference to the given V0037JobProperties and assigns it to the Job field.
|
||||
func (o *V0037JobSubmission) SetJob(v V0037JobProperties) {
|
||||
o.Job = &v
|
||||
}
|
||||
|
||||
// GetJobs returns the Jobs field value if set, zero value otherwise.
|
||||
func (o *V0037JobSubmission) GetJobs() []V0037JobProperties {
|
||||
if o == nil || IsNil(o.Jobs) {
|
||||
var ret []V0037JobProperties
|
||||
return ret
|
||||
}
|
||||
return o.Jobs
|
||||
}
|
||||
|
||||
// GetJobsOk returns a tuple with the Jobs field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037JobSubmission) GetJobsOk() ([]V0037JobProperties, bool) {
|
||||
if o == nil || IsNil(o.Jobs) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Jobs, true
|
||||
}
|
||||
|
||||
// HasJobs returns a boolean if a field has been set.
|
||||
func (o *V0037JobSubmission) HasJobs() bool {
|
||||
if o != nil && !IsNil(o.Jobs) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetJobs gets a reference to the given []V0037JobProperties and assigns it to the Jobs field.
|
||||
func (o *V0037JobSubmission) SetJobs(v []V0037JobProperties) {
|
||||
o.Jobs = v
|
||||
}
|
||||
|
||||
func (o V0037JobSubmission) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o V0037JobSubmission) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
toSerialize["script"] = o.Script
|
||||
if !IsNil(o.Job) {
|
||||
toSerialize["job"] = o.Job
|
||||
}
|
||||
if !IsNil(o.Jobs) {
|
||||
toSerialize["jobs"] = o.Jobs
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableV0037JobSubmission struct {
|
||||
value *V0037JobSubmission
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037JobSubmission) Get() *V0037JobSubmission {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037JobSubmission) Set(val *V0037JobSubmission) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037JobSubmission) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037JobSubmission) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037JobSubmission(val *V0037JobSubmission) *NullableV0037JobSubmission {
|
||||
return &NullableV0037JobSubmission{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037JobSubmission) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037JobSubmission) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -1,239 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the V0037JobSubmissionResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &V0037JobSubmissionResponse{}
|
||||
|
||||
// V0037JobSubmissionResponse struct for V0037JobSubmissionResponse
|
||||
type V0037JobSubmissionResponse struct {
|
||||
// slurm errors
|
||||
Errors []V0037Error `json:"errors,omitempty"`
|
||||
// new job ID
|
||||
JobId *int32 `json:"job_id,omitempty"`
|
||||
// new job step ID
|
||||
StepId *string `json:"step_id,omitempty"`
|
||||
// Message to user from job_submit plugin
|
||||
JobSubmitUserMsg *string `json:"job_submit_user_msg,omitempty"`
|
||||
}
|
||||
|
||||
// NewV0037JobSubmissionResponse instantiates a new V0037JobSubmissionResponse object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewV0037JobSubmissionResponse() *V0037JobSubmissionResponse {
|
||||
this := V0037JobSubmissionResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewV0037JobSubmissionResponseWithDefaults instantiates a new V0037JobSubmissionResponse object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewV0037JobSubmissionResponseWithDefaults() *V0037JobSubmissionResponse {
|
||||
this := V0037JobSubmissionResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetErrors returns the Errors field value if set, zero value otherwise.
|
||||
func (o *V0037JobSubmissionResponse) GetErrors() []V0037Error {
|
||||
if o == nil || IsNil(o.Errors) {
|
||||
var ret []V0037Error
|
||||
return ret
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037JobSubmissionResponse) GetErrorsOk() ([]V0037Error, bool) {
|
||||
if o == nil || IsNil(o.Errors) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Errors, true
|
||||
}
|
||||
|
||||
// HasErrors returns a boolean if a field has been set.
|
||||
func (o *V0037JobSubmissionResponse) HasErrors() bool {
|
||||
if o != nil && !IsNil(o.Errors) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetErrors gets a reference to the given []V0037Error and assigns it to the Errors field.
|
||||
func (o *V0037JobSubmissionResponse) SetErrors(v []V0037Error) {
|
||||
o.Errors = v
|
||||
}
|
||||
|
||||
// GetJobId returns the JobId field value if set, zero value otherwise.
|
||||
func (o *V0037JobSubmissionResponse) GetJobId() int32 {
|
||||
if o == nil || IsNil(o.JobId) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.JobId
|
||||
}
|
||||
|
||||
// GetJobIdOk returns a tuple with the JobId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037JobSubmissionResponse) GetJobIdOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.JobId) {
|
||||
return nil, false
|
||||
}
|
||||
return o.JobId, true
|
||||
}
|
||||
|
||||
// HasJobId returns a boolean if a field has been set.
|
||||
func (o *V0037JobSubmissionResponse) HasJobId() bool {
|
||||
if o != nil && !IsNil(o.JobId) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetJobId gets a reference to the given int32 and assigns it to the JobId field.
|
||||
func (o *V0037JobSubmissionResponse) SetJobId(v int32) {
|
||||
o.JobId = &v
|
||||
}
|
||||
|
||||
// GetStepId returns the StepId field value if set, zero value otherwise.
|
||||
func (o *V0037JobSubmissionResponse) GetStepId() string {
|
||||
if o == nil || IsNil(o.StepId) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.StepId
|
||||
}
|
||||
|
||||
// GetStepIdOk returns a tuple with the StepId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037JobSubmissionResponse) GetStepIdOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.StepId) {
|
||||
return nil, false
|
||||
}
|
||||
return o.StepId, true
|
||||
}
|
||||
|
||||
// HasStepId returns a boolean if a field has been set.
|
||||
func (o *V0037JobSubmissionResponse) HasStepId() bool {
|
||||
if o != nil && !IsNil(o.StepId) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetStepId gets a reference to the given string and assigns it to the StepId field.
|
||||
func (o *V0037JobSubmissionResponse) SetStepId(v string) {
|
||||
o.StepId = &v
|
||||
}
|
||||
|
||||
// GetJobSubmitUserMsg returns the JobSubmitUserMsg field value if set, zero value otherwise.
|
||||
func (o *V0037JobSubmissionResponse) GetJobSubmitUserMsg() string {
|
||||
if o == nil || IsNil(o.JobSubmitUserMsg) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.JobSubmitUserMsg
|
||||
}
|
||||
|
||||
// GetJobSubmitUserMsgOk returns a tuple with the JobSubmitUserMsg field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037JobSubmissionResponse) GetJobSubmitUserMsgOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.JobSubmitUserMsg) {
|
||||
return nil, false
|
||||
}
|
||||
return o.JobSubmitUserMsg, true
|
||||
}
|
||||
|
||||
// HasJobSubmitUserMsg returns a boolean if a field has been set.
|
||||
func (o *V0037JobSubmissionResponse) HasJobSubmitUserMsg() bool {
|
||||
if o != nil && !IsNil(o.JobSubmitUserMsg) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetJobSubmitUserMsg gets a reference to the given string and assigns it to the JobSubmitUserMsg field.
|
||||
func (o *V0037JobSubmissionResponse) SetJobSubmitUserMsg(v string) {
|
||||
o.JobSubmitUserMsg = &v
|
||||
}
|
||||
|
||||
func (o V0037JobSubmissionResponse) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o V0037JobSubmissionResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Errors) {
|
||||
toSerialize["errors"] = o.Errors
|
||||
}
|
||||
if !IsNil(o.JobId) {
|
||||
toSerialize["job_id"] = o.JobId
|
||||
}
|
||||
if !IsNil(o.StepId) {
|
||||
toSerialize["step_id"] = o.StepId
|
||||
}
|
||||
if !IsNil(o.JobSubmitUserMsg) {
|
||||
toSerialize["job_submit_user_msg"] = o.JobSubmitUserMsg
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableV0037JobSubmissionResponse struct {
|
||||
value *V0037JobSubmissionResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037JobSubmissionResponse) Get() *V0037JobSubmissionResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037JobSubmissionResponse) Set(val *V0037JobSubmissionResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037JobSubmissionResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037JobSubmissionResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037JobSubmissionResponse(val *V0037JobSubmissionResponse) *NullableV0037JobSubmissionResponse {
|
||||
return &NullableV0037JobSubmissionResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037JobSubmissionResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037JobSubmissionResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -1,165 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the V0037JobsResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &V0037JobsResponse{}
|
||||
|
||||
// V0037JobsResponse struct for V0037JobsResponse
|
||||
type V0037JobsResponse struct {
|
||||
// slurm errors
|
||||
Errors []V0037Error `json:"errors,omitempty"`
|
||||
// job descriptions
|
||||
Jobs []V0037JobResponseProperties `json:"jobs,omitempty"`
|
||||
}
|
||||
|
||||
// NewV0037JobsResponse instantiates a new V0037JobsResponse object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewV0037JobsResponse() *V0037JobsResponse {
|
||||
this := V0037JobsResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewV0037JobsResponseWithDefaults instantiates a new V0037JobsResponse object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewV0037JobsResponseWithDefaults() *V0037JobsResponse {
|
||||
this := V0037JobsResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetErrors returns the Errors field value if set, zero value otherwise.
|
||||
func (o *V0037JobsResponse) GetErrors() []V0037Error {
|
||||
if o == nil || IsNil(o.Errors) {
|
||||
var ret []V0037Error
|
||||
return ret
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037JobsResponse) GetErrorsOk() ([]V0037Error, bool) {
|
||||
if o == nil || IsNil(o.Errors) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Errors, true
|
||||
}
|
||||
|
||||
// HasErrors returns a boolean if a field has been set.
|
||||
func (o *V0037JobsResponse) HasErrors() bool {
|
||||
if o != nil && !IsNil(o.Errors) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetErrors gets a reference to the given []V0037Error and assigns it to the Errors field.
|
||||
func (o *V0037JobsResponse) SetErrors(v []V0037Error) {
|
||||
o.Errors = v
|
||||
}
|
||||
|
||||
// GetJobs returns the Jobs field value if set, zero value otherwise.
|
||||
func (o *V0037JobsResponse) GetJobs() []V0037JobResponseProperties {
|
||||
if o == nil || IsNil(o.Jobs) {
|
||||
var ret []V0037JobResponseProperties
|
||||
return ret
|
||||
}
|
||||
return o.Jobs
|
||||
}
|
||||
|
||||
// GetJobsOk returns a tuple with the Jobs field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037JobsResponse) GetJobsOk() ([]V0037JobResponseProperties, bool) {
|
||||
if o == nil || IsNil(o.Jobs) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Jobs, true
|
||||
}
|
||||
|
||||
// HasJobs returns a boolean if a field has been set.
|
||||
func (o *V0037JobsResponse) HasJobs() bool {
|
||||
if o != nil && !IsNil(o.Jobs) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetJobs gets a reference to the given []V0037JobResponseProperties and assigns it to the Jobs field.
|
||||
func (o *V0037JobsResponse) SetJobs(v []V0037JobResponseProperties) {
|
||||
o.Jobs = v
|
||||
}
|
||||
|
||||
func (o V0037JobsResponse) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o V0037JobsResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Errors) {
|
||||
toSerialize["errors"] = o.Errors
|
||||
}
|
||||
if !IsNil(o.Jobs) {
|
||||
toSerialize["jobs"] = o.Jobs
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableV0037JobsResponse struct {
|
||||
value *V0037JobsResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037JobsResponse) Get() *V0037JobsResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037JobsResponse) Set(val *V0037JobsResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037JobsResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037JobsResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037JobsResponse(val *V0037JobsResponse) *NullableV0037JobsResponse {
|
||||
return &NullableV0037JobsResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037JobsResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037JobsResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,239 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the V0037NodeAllocation type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &V0037NodeAllocation{}
|
||||
|
||||
// V0037NodeAllocation struct for V0037NodeAllocation
|
||||
type V0037NodeAllocation struct {
|
||||
// amount of assigned job memory
|
||||
Memory *int32 `json:"memory,omitempty"`
|
||||
// amount of assigned job CPUs
|
||||
Cpus map[string]interface{} `json:"cpus,omitempty"`
|
||||
// assignment status of each socket by socket id
|
||||
Sockets map[string]interface{} `json:"sockets,omitempty"`
|
||||
// assignment status of each core by core id
|
||||
Cores map[string]interface{} `json:"cores,omitempty"`
|
||||
}
|
||||
|
||||
// NewV0037NodeAllocation instantiates a new V0037NodeAllocation object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewV0037NodeAllocation() *V0037NodeAllocation {
|
||||
this := V0037NodeAllocation{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewV0037NodeAllocationWithDefaults instantiates a new V0037NodeAllocation object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewV0037NodeAllocationWithDefaults() *V0037NodeAllocation {
|
||||
this := V0037NodeAllocation{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetMemory returns the Memory field value if set, zero value otherwise.
|
||||
func (o *V0037NodeAllocation) GetMemory() int32 {
|
||||
if o == nil || IsNil(o.Memory) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.Memory
|
||||
}
|
||||
|
||||
// GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037NodeAllocation) GetMemoryOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.Memory) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Memory, true
|
||||
}
|
||||
|
||||
// HasMemory returns a boolean if a field has been set.
|
||||
func (o *V0037NodeAllocation) HasMemory() bool {
|
||||
if o != nil && !IsNil(o.Memory) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMemory gets a reference to the given int32 and assigns it to the Memory field.
|
||||
func (o *V0037NodeAllocation) SetMemory(v int32) {
|
||||
o.Memory = &v
|
||||
}
|
||||
|
||||
// GetCpus returns the Cpus field value if set, zero value otherwise.
|
||||
func (o *V0037NodeAllocation) GetCpus() map[string]interface{} {
|
||||
if o == nil || IsNil(o.Cpus) {
|
||||
var ret map[string]interface{}
|
||||
return ret
|
||||
}
|
||||
return o.Cpus
|
||||
}
|
||||
|
||||
// GetCpusOk returns a tuple with the Cpus field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037NodeAllocation) GetCpusOk() (map[string]interface{}, bool) {
|
||||
if o == nil || IsNil(o.Cpus) {
|
||||
return map[string]interface{}{}, false
|
||||
}
|
||||
return o.Cpus, true
|
||||
}
|
||||
|
||||
// HasCpus returns a boolean if a field has been set.
|
||||
func (o *V0037NodeAllocation) HasCpus() bool {
|
||||
if o != nil && !IsNil(o.Cpus) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCpus gets a reference to the given map[string]interface{} and assigns it to the Cpus field.
|
||||
func (o *V0037NodeAllocation) SetCpus(v map[string]interface{}) {
|
||||
o.Cpus = v
|
||||
}
|
||||
|
||||
// GetSockets returns the Sockets field value if set, zero value otherwise.
|
||||
func (o *V0037NodeAllocation) GetSockets() map[string]interface{} {
|
||||
if o == nil || IsNil(o.Sockets) {
|
||||
var ret map[string]interface{}
|
||||
return ret
|
||||
}
|
||||
return o.Sockets
|
||||
}
|
||||
|
||||
// GetSocketsOk returns a tuple with the Sockets field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037NodeAllocation) GetSocketsOk() (map[string]interface{}, bool) {
|
||||
if o == nil || IsNil(o.Sockets) {
|
||||
return map[string]interface{}{}, false
|
||||
}
|
||||
return o.Sockets, true
|
||||
}
|
||||
|
||||
// HasSockets returns a boolean if a field has been set.
|
||||
func (o *V0037NodeAllocation) HasSockets() bool {
|
||||
if o != nil && !IsNil(o.Sockets) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetSockets gets a reference to the given map[string]interface{} and assigns it to the Sockets field.
|
||||
func (o *V0037NodeAllocation) SetSockets(v map[string]interface{}) {
|
||||
o.Sockets = v
|
||||
}
|
||||
|
||||
// GetCores returns the Cores field value if set, zero value otherwise.
|
||||
func (o *V0037NodeAllocation) GetCores() map[string]interface{} {
|
||||
if o == nil || IsNil(o.Cores) {
|
||||
var ret map[string]interface{}
|
||||
return ret
|
||||
}
|
||||
return o.Cores
|
||||
}
|
||||
|
||||
// GetCoresOk returns a tuple with the Cores field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037NodeAllocation) GetCoresOk() (map[string]interface{}, bool) {
|
||||
if o == nil || IsNil(o.Cores) {
|
||||
return map[string]interface{}{}, false
|
||||
}
|
||||
return o.Cores, true
|
||||
}
|
||||
|
||||
// HasCores returns a boolean if a field has been set.
|
||||
func (o *V0037NodeAllocation) HasCores() bool {
|
||||
if o != nil && !IsNil(o.Cores) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCores gets a reference to the given map[string]interface{} and assigns it to the Cores field.
|
||||
func (o *V0037NodeAllocation) SetCores(v map[string]interface{}) {
|
||||
o.Cores = v
|
||||
}
|
||||
|
||||
func (o V0037NodeAllocation) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o V0037NodeAllocation) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Memory) {
|
||||
toSerialize["memory"] = o.Memory
|
||||
}
|
||||
if !IsNil(o.Cpus) {
|
||||
toSerialize["cpus"] = o.Cpus
|
||||
}
|
||||
if !IsNil(o.Sockets) {
|
||||
toSerialize["sockets"] = o.Sockets
|
||||
}
|
||||
if !IsNil(o.Cores) {
|
||||
toSerialize["cores"] = o.Cores
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableV0037NodeAllocation struct {
|
||||
value *V0037NodeAllocation
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037NodeAllocation) Get() *V0037NodeAllocation {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037NodeAllocation) Set(val *V0037NodeAllocation) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037NodeAllocation) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037NodeAllocation) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037NodeAllocation(val *V0037NodeAllocation) *NullableV0037NodeAllocation {
|
||||
return &NullableV0037NodeAllocation{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037NodeAllocation) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037NodeAllocation) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -1,165 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the V0037NodesResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &V0037NodesResponse{}
|
||||
|
||||
// V0037NodesResponse struct for V0037NodesResponse
|
||||
type V0037NodesResponse struct {
|
||||
// slurm errors
|
||||
Errors []V0037Error `json:"errors,omitempty"`
|
||||
// nodes info
|
||||
Nodes []V0037Node `json:"nodes,omitempty"`
|
||||
}
|
||||
|
||||
// NewV0037NodesResponse instantiates a new V0037NodesResponse object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewV0037NodesResponse() *V0037NodesResponse {
|
||||
this := V0037NodesResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewV0037NodesResponseWithDefaults instantiates a new V0037NodesResponse object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewV0037NodesResponseWithDefaults() *V0037NodesResponse {
|
||||
this := V0037NodesResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetErrors returns the Errors field value if set, zero value otherwise.
|
||||
func (o *V0037NodesResponse) GetErrors() []V0037Error {
|
||||
if o == nil || IsNil(o.Errors) {
|
||||
var ret []V0037Error
|
||||
return ret
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037NodesResponse) GetErrorsOk() ([]V0037Error, bool) {
|
||||
if o == nil || IsNil(o.Errors) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Errors, true
|
||||
}
|
||||
|
||||
// HasErrors returns a boolean if a field has been set.
|
||||
func (o *V0037NodesResponse) HasErrors() bool {
|
||||
if o != nil && !IsNil(o.Errors) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetErrors gets a reference to the given []V0037Error and assigns it to the Errors field.
|
||||
func (o *V0037NodesResponse) SetErrors(v []V0037Error) {
|
||||
o.Errors = v
|
||||
}
|
||||
|
||||
// GetNodes returns the Nodes field value if set, zero value otherwise.
|
||||
func (o *V0037NodesResponse) GetNodes() []V0037Node {
|
||||
if o == nil || IsNil(o.Nodes) {
|
||||
var ret []V0037Node
|
||||
return ret
|
||||
}
|
||||
return o.Nodes
|
||||
}
|
||||
|
||||
// GetNodesOk returns a tuple with the Nodes field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037NodesResponse) GetNodesOk() ([]V0037Node, bool) {
|
||||
if o == nil || IsNil(o.Nodes) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Nodes, true
|
||||
}
|
||||
|
||||
// HasNodes returns a boolean if a field has been set.
|
||||
func (o *V0037NodesResponse) HasNodes() bool {
|
||||
if o != nil && !IsNil(o.Nodes) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetNodes gets a reference to the given []V0037Node and assigns it to the Nodes field.
|
||||
func (o *V0037NodesResponse) SetNodes(v []V0037Node) {
|
||||
o.Nodes = v
|
||||
}
|
||||
|
||||
func (o V0037NodesResponse) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o V0037NodesResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Errors) {
|
||||
toSerialize["errors"] = o.Errors
|
||||
}
|
||||
if !IsNil(o.Nodes) {
|
||||
toSerialize["nodes"] = o.Nodes
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableV0037NodesResponse struct {
|
||||
value *V0037NodesResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037NodesResponse) Get() *V0037NodesResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037NodesResponse) Set(val *V0037NodesResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037NodesResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037NodesResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037NodesResponse(val *V0037NodesResponse) *NullableV0037NodesResponse {
|
||||
return &NullableV0037NodesResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037NodesResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037NodesResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,165 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the V0037PartitionsResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &V0037PartitionsResponse{}
|
||||
|
||||
// V0037PartitionsResponse struct for V0037PartitionsResponse
|
||||
type V0037PartitionsResponse struct {
|
||||
// slurm errors
|
||||
Errors []V0037Error `json:"errors,omitempty"`
|
||||
// partition info
|
||||
Partitions []V0037Partition `json:"partitions,omitempty"`
|
||||
}
|
||||
|
||||
// NewV0037PartitionsResponse instantiates a new V0037PartitionsResponse object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewV0037PartitionsResponse() *V0037PartitionsResponse {
|
||||
this := V0037PartitionsResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewV0037PartitionsResponseWithDefaults instantiates a new V0037PartitionsResponse object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewV0037PartitionsResponseWithDefaults() *V0037PartitionsResponse {
|
||||
this := V0037PartitionsResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetErrors returns the Errors field value if set, zero value otherwise.
|
||||
func (o *V0037PartitionsResponse) GetErrors() []V0037Error {
|
||||
if o == nil || IsNil(o.Errors) {
|
||||
var ret []V0037Error
|
||||
return ret
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037PartitionsResponse) GetErrorsOk() ([]V0037Error, bool) {
|
||||
if o == nil || IsNil(o.Errors) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Errors, true
|
||||
}
|
||||
|
||||
// HasErrors returns a boolean if a field has been set.
|
||||
func (o *V0037PartitionsResponse) HasErrors() bool {
|
||||
if o != nil && !IsNil(o.Errors) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetErrors gets a reference to the given []V0037Error and assigns it to the Errors field.
|
||||
func (o *V0037PartitionsResponse) SetErrors(v []V0037Error) {
|
||||
o.Errors = v
|
||||
}
|
||||
|
||||
// GetPartitions returns the Partitions field value if set, zero value otherwise.
|
||||
func (o *V0037PartitionsResponse) GetPartitions() []V0037Partition {
|
||||
if o == nil || IsNil(o.Partitions) {
|
||||
var ret []V0037Partition
|
||||
return ret
|
||||
}
|
||||
return o.Partitions
|
||||
}
|
||||
|
||||
// GetPartitionsOk returns a tuple with the Partitions field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037PartitionsResponse) GetPartitionsOk() ([]V0037Partition, bool) {
|
||||
if o == nil || IsNil(o.Partitions) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Partitions, true
|
||||
}
|
||||
|
||||
// HasPartitions returns a boolean if a field has been set.
|
||||
func (o *V0037PartitionsResponse) HasPartitions() bool {
|
||||
if o != nil && !IsNil(o.Partitions) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPartitions gets a reference to the given []V0037Partition and assigns it to the Partitions field.
|
||||
func (o *V0037PartitionsResponse) SetPartitions(v []V0037Partition) {
|
||||
o.Partitions = v
|
||||
}
|
||||
|
||||
func (o V0037PartitionsResponse) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o V0037PartitionsResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Errors) {
|
||||
toSerialize["errors"] = o.Errors
|
||||
}
|
||||
if !IsNil(o.Partitions) {
|
||||
toSerialize["partitions"] = o.Partitions
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableV0037PartitionsResponse struct {
|
||||
value *V0037PartitionsResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037PartitionsResponse) Get() *V0037PartitionsResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037PartitionsResponse) Set(val *V0037PartitionsResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037PartitionsResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037PartitionsResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037PartitionsResponse(val *V0037PartitionsResponse) *NullableV0037PartitionsResponse {
|
||||
return &NullableV0037PartitionsResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037PartitionsResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037PartitionsResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -1,239 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the V0037Ping type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &V0037Ping{}
|
||||
|
||||
// V0037Ping struct for V0037Ping
|
||||
type V0037Ping struct {
|
||||
// slurm controller hostname
|
||||
Hostname *string `json:"hostname,omitempty"`
|
||||
// slurm controller host up
|
||||
Ping *string `json:"ping,omitempty"`
|
||||
// slurm controller mode
|
||||
Mode *string `json:"mode,omitempty"`
|
||||
// slurm controller status
|
||||
Status *int32 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// NewV0037Ping instantiates a new V0037Ping object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewV0037Ping() *V0037Ping {
|
||||
this := V0037Ping{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewV0037PingWithDefaults instantiates a new V0037Ping object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewV0037PingWithDefaults() *V0037Ping {
|
||||
this := V0037Ping{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetHostname returns the Hostname field value if set, zero value otherwise.
|
||||
func (o *V0037Ping) GetHostname() string {
|
||||
if o == nil || IsNil(o.Hostname) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Hostname
|
||||
}
|
||||
|
||||
// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Ping) GetHostnameOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Hostname) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Hostname, true
|
||||
}
|
||||
|
||||
// HasHostname returns a boolean if a field has been set.
|
||||
func (o *V0037Ping) HasHostname() bool {
|
||||
if o != nil && !IsNil(o.Hostname) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetHostname gets a reference to the given string and assigns it to the Hostname field.
|
||||
func (o *V0037Ping) SetHostname(v string) {
|
||||
o.Hostname = &v
|
||||
}
|
||||
|
||||
// GetPing returns the Ping field value if set, zero value otherwise.
|
||||
func (o *V0037Ping) GetPing() string {
|
||||
if o == nil || IsNil(o.Ping) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Ping
|
||||
}
|
||||
|
||||
// GetPingOk returns a tuple with the Ping field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Ping) GetPingOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Ping) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Ping, true
|
||||
}
|
||||
|
||||
// HasPing returns a boolean if a field has been set.
|
||||
func (o *V0037Ping) HasPing() bool {
|
||||
if o != nil && !IsNil(o.Ping) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPing gets a reference to the given string and assigns it to the Ping field.
|
||||
func (o *V0037Ping) SetPing(v string) {
|
||||
o.Ping = &v
|
||||
}
|
||||
|
||||
// GetMode returns the Mode field value if set, zero value otherwise.
|
||||
func (o *V0037Ping) GetMode() string {
|
||||
if o == nil || IsNil(o.Mode) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Mode
|
||||
}
|
||||
|
||||
// GetModeOk returns a tuple with the Mode field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Ping) GetModeOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Mode) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Mode, true
|
||||
}
|
||||
|
||||
// HasMode returns a boolean if a field has been set.
|
||||
func (o *V0037Ping) HasMode() bool {
|
||||
if o != nil && !IsNil(o.Mode) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMode gets a reference to the given string and assigns it to the Mode field.
|
||||
func (o *V0037Ping) SetMode(v string) {
|
||||
o.Mode = &v
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value if set, zero value otherwise.
|
||||
func (o *V0037Ping) GetStatus() int32 {
|
||||
if o == nil || IsNil(o.Status) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.Status
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Ping) GetStatusOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.Status) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Status, true
|
||||
}
|
||||
|
||||
// HasStatus returns a boolean if a field has been set.
|
||||
func (o *V0037Ping) HasStatus() bool {
|
||||
if o != nil && !IsNil(o.Status) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetStatus gets a reference to the given int32 and assigns it to the Status field.
|
||||
func (o *V0037Ping) SetStatus(v int32) {
|
||||
o.Status = &v
|
||||
}
|
||||
|
||||
func (o V0037Ping) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o V0037Ping) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Hostname) {
|
||||
toSerialize["hostname"] = o.Hostname
|
||||
}
|
||||
if !IsNil(o.Ping) {
|
||||
toSerialize["ping"] = o.Ping
|
||||
}
|
||||
if !IsNil(o.Mode) {
|
||||
toSerialize["mode"] = o.Mode
|
||||
}
|
||||
if !IsNil(o.Status) {
|
||||
toSerialize["status"] = o.Status
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableV0037Ping struct {
|
||||
value *V0037Ping
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037Ping) Get() *V0037Ping {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037Ping) Set(val *V0037Ping) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037Ping) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037Ping) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037Ping(val *V0037Ping) *NullableV0037Ping {
|
||||
return &NullableV0037Ping{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037Ping) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037Ping) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -1,165 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the V0037Pings type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &V0037Pings{}
|
||||
|
||||
// V0037Pings struct for V0037Pings
|
||||
type V0037Pings struct {
|
||||
// slurm errors
|
||||
Errors []V0037Error `json:"errors,omitempty"`
|
||||
// slurm controller pings
|
||||
Pings []V0037Ping `json:"pings,omitempty"`
|
||||
}
|
||||
|
||||
// NewV0037Pings instantiates a new V0037Pings object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewV0037Pings() *V0037Pings {
|
||||
this := V0037Pings{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewV0037PingsWithDefaults instantiates a new V0037Pings object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewV0037PingsWithDefaults() *V0037Pings {
|
||||
this := V0037Pings{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetErrors returns the Errors field value if set, zero value otherwise.
|
||||
func (o *V0037Pings) GetErrors() []V0037Error {
|
||||
if o == nil || IsNil(o.Errors) {
|
||||
var ret []V0037Error
|
||||
return ret
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Pings) GetErrorsOk() ([]V0037Error, bool) {
|
||||
if o == nil || IsNil(o.Errors) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Errors, true
|
||||
}
|
||||
|
||||
// HasErrors returns a boolean if a field has been set.
|
||||
func (o *V0037Pings) HasErrors() bool {
|
||||
if o != nil && !IsNil(o.Errors) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetErrors gets a reference to the given []V0037Error and assigns it to the Errors field.
|
||||
func (o *V0037Pings) SetErrors(v []V0037Error) {
|
||||
o.Errors = v
|
||||
}
|
||||
|
||||
// GetPings returns the Pings field value if set, zero value otherwise.
|
||||
func (o *V0037Pings) GetPings() []V0037Ping {
|
||||
if o == nil || IsNil(o.Pings) {
|
||||
var ret []V0037Ping
|
||||
return ret
|
||||
}
|
||||
return o.Pings
|
||||
}
|
||||
|
||||
// GetPingsOk returns a tuple with the Pings field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Pings) GetPingsOk() ([]V0037Ping, bool) {
|
||||
if o == nil || IsNil(o.Pings) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Pings, true
|
||||
}
|
||||
|
||||
// HasPings returns a boolean if a field has been set.
|
||||
func (o *V0037Pings) HasPings() bool {
|
||||
if o != nil && !IsNil(o.Pings) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPings gets a reference to the given []V0037Ping and assigns it to the Pings field.
|
||||
func (o *V0037Pings) SetPings(v []V0037Ping) {
|
||||
o.Pings = v
|
||||
}
|
||||
|
||||
func (o V0037Pings) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o V0037Pings) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Errors) {
|
||||
toSerialize["errors"] = o.Errors
|
||||
}
|
||||
if !IsNil(o.Pings) {
|
||||
toSerialize["pings"] = o.Pings
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableV0037Pings struct {
|
||||
value *V0037Pings
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037Pings) Get() *V0037Pings {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037Pings) Set(val *V0037Pings) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037Pings) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037Pings) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037Pings(val *V0037Pings) *NullableV0037Pings {
|
||||
return &NullableV0037Pings{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037Pings) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037Pings) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -1,793 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the V0037Reservation type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &V0037Reservation{}
|
||||
|
||||
// V0037Reservation struct for V0037Reservation
|
||||
type V0037Reservation struct {
|
||||
// Allowed accounts
|
||||
Accounts *string `json:"accounts,omitempty"`
|
||||
// Reserved burst buffer
|
||||
BurstBuffer *string `json:"burst_buffer,omitempty"`
|
||||
// Number of reserved cores
|
||||
CoreCount *int32 `json:"core_count,omitempty"`
|
||||
// Number of reserved specialized cores
|
||||
CoreSpecCnt *int32 `json:"core_spec_cnt,omitempty"`
|
||||
// End time of the reservation
|
||||
EndTime *int32 `json:"end_time,omitempty"`
|
||||
// List of features
|
||||
Features *string `json:"features,omitempty"`
|
||||
// Reservation options
|
||||
Flags []string `json:"flags,omitempty"`
|
||||
// List of groups permitted to use the reserved nodes
|
||||
Groups *string `json:"groups,omitempty"`
|
||||
// List of licenses
|
||||
Licenses *string `json:"licenses,omitempty"`
|
||||
// Maximum delay in which jobs outside of the reservation will be permitted to overlap once any jobs are queued for the reservation
|
||||
MaxStartDelay *int32 `json:"max_start_delay,omitempty"`
|
||||
// Reservationn name
|
||||
Name *string `json:"name,omitempty"`
|
||||
// Count of nodes reserved
|
||||
NodeCount *int32 `json:"node_count,omitempty"`
|
||||
// List of reserved nodes
|
||||
NodeList *string `json:"node_list,omitempty"`
|
||||
// Partition
|
||||
Partition *string `json:"partition,omitempty"`
|
||||
PurgeCompleted *V0037ReservationPurgeCompleted `json:"purge_completed,omitempty"`
|
||||
// Start time of reservation
|
||||
StartTime *int32 `json:"start_time,omitempty"`
|
||||
// amount of power to reserve in watts
|
||||
Watts *int32 `json:"watts,omitempty"`
|
||||
// List of TRES
|
||||
Tres *string `json:"tres,omitempty"`
|
||||
// List of users
|
||||
Users *string `json:"users,omitempty"`
|
||||
}
|
||||
|
||||
// NewV0037Reservation instantiates a new V0037Reservation object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewV0037Reservation() *V0037Reservation {
|
||||
this := V0037Reservation{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewV0037ReservationWithDefaults instantiates a new V0037Reservation object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewV0037ReservationWithDefaults() *V0037Reservation {
|
||||
this := V0037Reservation{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAccounts returns the Accounts field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetAccounts() string {
|
||||
if o == nil || IsNil(o.Accounts) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Accounts
|
||||
}
|
||||
|
||||
// GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetAccountsOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Accounts) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Accounts, true
|
||||
}
|
||||
|
||||
// HasAccounts returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasAccounts() bool {
|
||||
if o != nil && !IsNil(o.Accounts) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAccounts gets a reference to the given string and assigns it to the Accounts field.
|
||||
func (o *V0037Reservation) SetAccounts(v string) {
|
||||
o.Accounts = &v
|
||||
}
|
||||
|
||||
// GetBurstBuffer returns the BurstBuffer field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetBurstBuffer() string {
|
||||
if o == nil || IsNil(o.BurstBuffer) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.BurstBuffer
|
||||
}
|
||||
|
||||
// GetBurstBufferOk returns a tuple with the BurstBuffer field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetBurstBufferOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.BurstBuffer) {
|
||||
return nil, false
|
||||
}
|
||||
return o.BurstBuffer, true
|
||||
}
|
||||
|
||||
// HasBurstBuffer returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasBurstBuffer() bool {
|
||||
if o != nil && !IsNil(o.BurstBuffer) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetBurstBuffer gets a reference to the given string and assigns it to the BurstBuffer field.
|
||||
func (o *V0037Reservation) SetBurstBuffer(v string) {
|
||||
o.BurstBuffer = &v
|
||||
}
|
||||
|
||||
// GetCoreCount returns the CoreCount field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetCoreCount() int32 {
|
||||
if o == nil || IsNil(o.CoreCount) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.CoreCount
|
||||
}
|
||||
|
||||
// GetCoreCountOk returns a tuple with the CoreCount field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetCoreCountOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.CoreCount) {
|
||||
return nil, false
|
||||
}
|
||||
return o.CoreCount, true
|
||||
}
|
||||
|
||||
// HasCoreCount returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasCoreCount() bool {
|
||||
if o != nil && !IsNil(o.CoreCount) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCoreCount gets a reference to the given int32 and assigns it to the CoreCount field.
|
||||
func (o *V0037Reservation) SetCoreCount(v int32) {
|
||||
o.CoreCount = &v
|
||||
}
|
||||
|
||||
// GetCoreSpecCnt returns the CoreSpecCnt field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetCoreSpecCnt() int32 {
|
||||
if o == nil || IsNil(o.CoreSpecCnt) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.CoreSpecCnt
|
||||
}
|
||||
|
||||
// GetCoreSpecCntOk returns a tuple with the CoreSpecCnt field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetCoreSpecCntOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.CoreSpecCnt) {
|
||||
return nil, false
|
||||
}
|
||||
return o.CoreSpecCnt, true
|
||||
}
|
||||
|
||||
// HasCoreSpecCnt returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasCoreSpecCnt() bool {
|
||||
if o != nil && !IsNil(o.CoreSpecCnt) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCoreSpecCnt gets a reference to the given int32 and assigns it to the CoreSpecCnt field.
|
||||
func (o *V0037Reservation) SetCoreSpecCnt(v int32) {
|
||||
o.CoreSpecCnt = &v
|
||||
}
|
||||
|
||||
// GetEndTime returns the EndTime field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetEndTime() int32 {
|
||||
if o == nil || IsNil(o.EndTime) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.EndTime
|
||||
}
|
||||
|
||||
// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetEndTimeOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.EndTime) {
|
||||
return nil, false
|
||||
}
|
||||
return o.EndTime, true
|
||||
}
|
||||
|
||||
// HasEndTime returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasEndTime() bool {
|
||||
if o != nil && !IsNil(o.EndTime) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetEndTime gets a reference to the given int32 and assigns it to the EndTime field.
|
||||
func (o *V0037Reservation) SetEndTime(v int32) {
|
||||
o.EndTime = &v
|
||||
}
|
||||
|
||||
// GetFeatures returns the Features field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetFeatures() string {
|
||||
if o == nil || IsNil(o.Features) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Features
|
||||
}
|
||||
|
||||
// GetFeaturesOk returns a tuple with the Features field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetFeaturesOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Features) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Features, true
|
||||
}
|
||||
|
||||
// HasFeatures returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasFeatures() bool {
|
||||
if o != nil && !IsNil(o.Features) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetFeatures gets a reference to the given string and assigns it to the Features field.
|
||||
func (o *V0037Reservation) SetFeatures(v string) {
|
||||
o.Features = &v
|
||||
}
|
||||
|
||||
// GetFlags returns the Flags field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetFlags() []string {
|
||||
if o == nil || IsNil(o.Flags) {
|
||||
var ret []string
|
||||
return ret
|
||||
}
|
||||
return o.Flags
|
||||
}
|
||||
|
||||
// GetFlagsOk returns a tuple with the Flags field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetFlagsOk() ([]string, bool) {
|
||||
if o == nil || IsNil(o.Flags) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Flags, true
|
||||
}
|
||||
|
||||
// HasFlags returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasFlags() bool {
|
||||
if o != nil && !IsNil(o.Flags) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetFlags gets a reference to the given []string and assigns it to the Flags field.
|
||||
func (o *V0037Reservation) SetFlags(v []string) {
|
||||
o.Flags = v
|
||||
}
|
||||
|
||||
// GetGroups returns the Groups field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetGroups() string {
|
||||
if o == nil || IsNil(o.Groups) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Groups
|
||||
}
|
||||
|
||||
// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetGroupsOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Groups) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Groups, true
|
||||
}
|
||||
|
||||
// HasGroups returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasGroups() bool {
|
||||
if o != nil && !IsNil(o.Groups) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetGroups gets a reference to the given string and assigns it to the Groups field.
|
||||
func (o *V0037Reservation) SetGroups(v string) {
|
||||
o.Groups = &v
|
||||
}
|
||||
|
||||
// GetLicenses returns the Licenses field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetLicenses() string {
|
||||
if o == nil || IsNil(o.Licenses) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Licenses
|
||||
}
|
||||
|
||||
// GetLicensesOk returns a tuple with the Licenses field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetLicensesOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Licenses) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Licenses, true
|
||||
}
|
||||
|
||||
// HasLicenses returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasLicenses() bool {
|
||||
if o != nil && !IsNil(o.Licenses) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetLicenses gets a reference to the given string and assigns it to the Licenses field.
|
||||
func (o *V0037Reservation) SetLicenses(v string) {
|
||||
o.Licenses = &v
|
||||
}
|
||||
|
||||
// GetMaxStartDelay returns the MaxStartDelay field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetMaxStartDelay() int32 {
|
||||
if o == nil || IsNil(o.MaxStartDelay) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.MaxStartDelay
|
||||
}
|
||||
|
||||
// GetMaxStartDelayOk returns a tuple with the MaxStartDelay field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetMaxStartDelayOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.MaxStartDelay) {
|
||||
return nil, false
|
||||
}
|
||||
return o.MaxStartDelay, true
|
||||
}
|
||||
|
||||
// HasMaxStartDelay returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasMaxStartDelay() bool {
|
||||
if o != nil && !IsNil(o.MaxStartDelay) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMaxStartDelay gets a reference to the given int32 and assigns it to the MaxStartDelay field.
|
||||
func (o *V0037Reservation) SetMaxStartDelay(v int32) {
|
||||
o.MaxStartDelay = &v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetName() string {
|
||||
if o == nil || IsNil(o.Name) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetNameOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Name) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Name, true
|
||||
}
|
||||
|
||||
// HasName returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasName() bool {
|
||||
if o != nil && !IsNil(o.Name) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetName gets a reference to the given string and assigns it to the Name field.
|
||||
func (o *V0037Reservation) SetName(v string) {
|
||||
o.Name = &v
|
||||
}
|
||||
|
||||
// GetNodeCount returns the NodeCount field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetNodeCount() int32 {
|
||||
if o == nil || IsNil(o.NodeCount) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.NodeCount
|
||||
}
|
||||
|
||||
// GetNodeCountOk returns a tuple with the NodeCount field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetNodeCountOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.NodeCount) {
|
||||
return nil, false
|
||||
}
|
||||
return o.NodeCount, true
|
||||
}
|
||||
|
||||
// HasNodeCount returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasNodeCount() bool {
|
||||
if o != nil && !IsNil(o.NodeCount) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetNodeCount gets a reference to the given int32 and assigns it to the NodeCount field.
|
||||
func (o *V0037Reservation) SetNodeCount(v int32) {
|
||||
o.NodeCount = &v
|
||||
}
|
||||
|
||||
// GetNodeList returns the NodeList field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetNodeList() string {
|
||||
if o == nil || IsNil(o.NodeList) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.NodeList
|
||||
}
|
||||
|
||||
// GetNodeListOk returns a tuple with the NodeList field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetNodeListOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.NodeList) {
|
||||
return nil, false
|
||||
}
|
||||
return o.NodeList, true
|
||||
}
|
||||
|
||||
// HasNodeList returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasNodeList() bool {
|
||||
if o != nil && !IsNil(o.NodeList) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetNodeList gets a reference to the given string and assigns it to the NodeList field.
|
||||
func (o *V0037Reservation) SetNodeList(v string) {
|
||||
o.NodeList = &v
|
||||
}
|
||||
|
||||
// GetPartition returns the Partition field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetPartition() string {
|
||||
if o == nil || IsNil(o.Partition) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Partition
|
||||
}
|
||||
|
||||
// GetPartitionOk returns a tuple with the Partition field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetPartitionOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Partition) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Partition, true
|
||||
}
|
||||
|
||||
// HasPartition returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasPartition() bool {
|
||||
if o != nil && !IsNil(o.Partition) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPartition gets a reference to the given string and assigns it to the Partition field.
|
||||
func (o *V0037Reservation) SetPartition(v string) {
|
||||
o.Partition = &v
|
||||
}
|
||||
|
||||
// GetPurgeCompleted returns the PurgeCompleted field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetPurgeCompleted() V0037ReservationPurgeCompleted {
|
||||
if o == nil || IsNil(o.PurgeCompleted) {
|
||||
var ret V0037ReservationPurgeCompleted
|
||||
return ret
|
||||
}
|
||||
return *o.PurgeCompleted
|
||||
}
|
||||
|
||||
// GetPurgeCompletedOk returns a tuple with the PurgeCompleted field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetPurgeCompletedOk() (*V0037ReservationPurgeCompleted, bool) {
|
||||
if o == nil || IsNil(o.PurgeCompleted) {
|
||||
return nil, false
|
||||
}
|
||||
return o.PurgeCompleted, true
|
||||
}
|
||||
|
||||
// HasPurgeCompleted returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasPurgeCompleted() bool {
|
||||
if o != nil && !IsNil(o.PurgeCompleted) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPurgeCompleted gets a reference to the given V0037ReservationPurgeCompleted and assigns it to the PurgeCompleted field.
|
||||
func (o *V0037Reservation) SetPurgeCompleted(v V0037ReservationPurgeCompleted) {
|
||||
o.PurgeCompleted = &v
|
||||
}
|
||||
|
||||
// GetStartTime returns the StartTime field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetStartTime() int32 {
|
||||
if o == nil || IsNil(o.StartTime) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.StartTime
|
||||
}
|
||||
|
||||
// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetStartTimeOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.StartTime) {
|
||||
return nil, false
|
||||
}
|
||||
return o.StartTime, true
|
||||
}
|
||||
|
||||
// HasStartTime returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasStartTime() bool {
|
||||
if o != nil && !IsNil(o.StartTime) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetStartTime gets a reference to the given int32 and assigns it to the StartTime field.
|
||||
func (o *V0037Reservation) SetStartTime(v int32) {
|
||||
o.StartTime = &v
|
||||
}
|
||||
|
||||
// GetWatts returns the Watts field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetWatts() int32 {
|
||||
if o == nil || IsNil(o.Watts) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.Watts
|
||||
}
|
||||
|
||||
// GetWattsOk returns a tuple with the Watts field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetWattsOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.Watts) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Watts, true
|
||||
}
|
||||
|
||||
// HasWatts returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasWatts() bool {
|
||||
if o != nil && !IsNil(o.Watts) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetWatts gets a reference to the given int32 and assigns it to the Watts field.
|
||||
func (o *V0037Reservation) SetWatts(v int32) {
|
||||
o.Watts = &v
|
||||
}
|
||||
|
||||
// GetTres returns the Tres field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetTres() string {
|
||||
if o == nil || IsNil(o.Tres) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Tres
|
||||
}
|
||||
|
||||
// GetTresOk returns a tuple with the Tres field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetTresOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Tres) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Tres, true
|
||||
}
|
||||
|
||||
// HasTres returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasTres() bool {
|
||||
if o != nil && !IsNil(o.Tres) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTres gets a reference to the given string and assigns it to the Tres field.
|
||||
func (o *V0037Reservation) SetTres(v string) {
|
||||
o.Tres = &v
|
||||
}
|
||||
|
||||
// GetUsers returns the Users field value if set, zero value otherwise.
|
||||
func (o *V0037Reservation) GetUsers() string {
|
||||
if o == nil || IsNil(o.Users) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Users
|
||||
}
|
||||
|
||||
// GetUsersOk returns a tuple with the Users field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037Reservation) GetUsersOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Users) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Users, true
|
||||
}
|
||||
|
||||
// HasUsers returns a boolean if a field has been set.
|
||||
func (o *V0037Reservation) HasUsers() bool {
|
||||
if o != nil && !IsNil(o.Users) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUsers gets a reference to the given string and assigns it to the Users field.
|
||||
func (o *V0037Reservation) SetUsers(v string) {
|
||||
o.Users = &v
|
||||
}
|
||||
|
||||
func (o V0037Reservation) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o V0037Reservation) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Accounts) {
|
||||
toSerialize["accounts"] = o.Accounts
|
||||
}
|
||||
if !IsNil(o.BurstBuffer) {
|
||||
toSerialize["burst_buffer"] = o.BurstBuffer
|
||||
}
|
||||
if !IsNil(o.CoreCount) {
|
||||
toSerialize["core_count"] = o.CoreCount
|
||||
}
|
||||
if !IsNil(o.CoreSpecCnt) {
|
||||
toSerialize["core_spec_cnt"] = o.CoreSpecCnt
|
||||
}
|
||||
if !IsNil(o.EndTime) {
|
||||
toSerialize["end_time"] = o.EndTime
|
||||
}
|
||||
if !IsNil(o.Features) {
|
||||
toSerialize["features"] = o.Features
|
||||
}
|
||||
if !IsNil(o.Flags) {
|
||||
toSerialize["flags"] = o.Flags
|
||||
}
|
||||
if !IsNil(o.Groups) {
|
||||
toSerialize["groups"] = o.Groups
|
||||
}
|
||||
if !IsNil(o.Licenses) {
|
||||
toSerialize["licenses"] = o.Licenses
|
||||
}
|
||||
if !IsNil(o.MaxStartDelay) {
|
||||
toSerialize["max_start_delay"] = o.MaxStartDelay
|
||||
}
|
||||
if !IsNil(o.Name) {
|
||||
toSerialize["name"] = o.Name
|
||||
}
|
||||
if !IsNil(o.NodeCount) {
|
||||
toSerialize["node_count"] = o.NodeCount
|
||||
}
|
||||
if !IsNil(o.NodeList) {
|
||||
toSerialize["node_list"] = o.NodeList
|
||||
}
|
||||
if !IsNil(o.Partition) {
|
||||
toSerialize["partition"] = o.Partition
|
||||
}
|
||||
if !IsNil(o.PurgeCompleted) {
|
||||
toSerialize["purge_completed"] = o.PurgeCompleted
|
||||
}
|
||||
if !IsNil(o.StartTime) {
|
||||
toSerialize["start_time"] = o.StartTime
|
||||
}
|
||||
if !IsNil(o.Watts) {
|
||||
toSerialize["watts"] = o.Watts
|
||||
}
|
||||
if !IsNil(o.Tres) {
|
||||
toSerialize["tres"] = o.Tres
|
||||
}
|
||||
if !IsNil(o.Users) {
|
||||
toSerialize["users"] = o.Users
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableV0037Reservation struct {
|
||||
value *V0037Reservation
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037Reservation) Get() *V0037Reservation {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037Reservation) Set(val *V0037Reservation) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037Reservation) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037Reservation) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037Reservation(val *V0037Reservation) *NullableV0037Reservation {
|
||||
return &NullableV0037Reservation{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037Reservation) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037Reservation) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -1,128 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the V0037ReservationPurgeCompleted type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &V0037ReservationPurgeCompleted{}
|
||||
|
||||
// V0037ReservationPurgeCompleted If PURGE_COMP flag is set the amount of seconds this reservation will sit idle until it is revoked
|
||||
type V0037ReservationPurgeCompleted struct {
|
||||
// amount of seconds this reservation will sit idle until it is revoked
|
||||
Time *int32 `json:"time,omitempty"`
|
||||
}
|
||||
|
||||
// NewV0037ReservationPurgeCompleted instantiates a new V0037ReservationPurgeCompleted object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewV0037ReservationPurgeCompleted() *V0037ReservationPurgeCompleted {
|
||||
this := V0037ReservationPurgeCompleted{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewV0037ReservationPurgeCompletedWithDefaults instantiates a new V0037ReservationPurgeCompleted object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewV0037ReservationPurgeCompletedWithDefaults() *V0037ReservationPurgeCompleted {
|
||||
this := V0037ReservationPurgeCompleted{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetTime returns the Time field value if set, zero value otherwise.
|
||||
func (o *V0037ReservationPurgeCompleted) GetTime() int32 {
|
||||
if o == nil || IsNil(o.Time) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.Time
|
||||
}
|
||||
|
||||
// GetTimeOk returns a tuple with the Time field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037ReservationPurgeCompleted) GetTimeOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.Time) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Time, true
|
||||
}
|
||||
|
||||
// HasTime returns a boolean if a field has been set.
|
||||
func (o *V0037ReservationPurgeCompleted) HasTime() bool {
|
||||
if o != nil && !IsNil(o.Time) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTime gets a reference to the given int32 and assigns it to the Time field.
|
||||
func (o *V0037ReservationPurgeCompleted) SetTime(v int32) {
|
||||
o.Time = &v
|
||||
}
|
||||
|
||||
func (o V0037ReservationPurgeCompleted) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o V0037ReservationPurgeCompleted) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Time) {
|
||||
toSerialize["time"] = o.Time
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableV0037ReservationPurgeCompleted struct {
|
||||
value *V0037ReservationPurgeCompleted
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037ReservationPurgeCompleted) Get() *V0037ReservationPurgeCompleted {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037ReservationPurgeCompleted) Set(val *V0037ReservationPurgeCompleted) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037ReservationPurgeCompleted) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037ReservationPurgeCompleted) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037ReservationPurgeCompleted(val *V0037ReservationPurgeCompleted) *NullableV0037ReservationPurgeCompleted {
|
||||
return &NullableV0037ReservationPurgeCompleted{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037ReservationPurgeCompleted) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037ReservationPurgeCompleted) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -1,165 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the V0037ReservationsResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &V0037ReservationsResponse{}
|
||||
|
||||
// V0037ReservationsResponse struct for V0037ReservationsResponse
|
||||
type V0037ReservationsResponse struct {
|
||||
// slurm errors
|
||||
Errors []V0037Error `json:"errors,omitempty"`
|
||||
// reservation info
|
||||
Reservations []V0037Reservation `json:"reservations,omitempty"`
|
||||
}
|
||||
|
||||
// NewV0037ReservationsResponse instantiates a new V0037ReservationsResponse object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewV0037ReservationsResponse() *V0037ReservationsResponse {
|
||||
this := V0037ReservationsResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewV0037ReservationsResponseWithDefaults instantiates a new V0037ReservationsResponse object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewV0037ReservationsResponseWithDefaults() *V0037ReservationsResponse {
|
||||
this := V0037ReservationsResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetErrors returns the Errors field value if set, zero value otherwise.
|
||||
func (o *V0037ReservationsResponse) GetErrors() []V0037Error {
|
||||
if o == nil || IsNil(o.Errors) {
|
||||
var ret []V0037Error
|
||||
return ret
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037ReservationsResponse) GetErrorsOk() ([]V0037Error, bool) {
|
||||
if o == nil || IsNil(o.Errors) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Errors, true
|
||||
}
|
||||
|
||||
// HasErrors returns a boolean if a field has been set.
|
||||
func (o *V0037ReservationsResponse) HasErrors() bool {
|
||||
if o != nil && !IsNil(o.Errors) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetErrors gets a reference to the given []V0037Error and assigns it to the Errors field.
|
||||
func (o *V0037ReservationsResponse) SetErrors(v []V0037Error) {
|
||||
o.Errors = v
|
||||
}
|
||||
|
||||
// GetReservations returns the Reservations field value if set, zero value otherwise.
|
||||
func (o *V0037ReservationsResponse) GetReservations() []V0037Reservation {
|
||||
if o == nil || IsNil(o.Reservations) {
|
||||
var ret []V0037Reservation
|
||||
return ret
|
||||
}
|
||||
return o.Reservations
|
||||
}
|
||||
|
||||
// GetReservationsOk returns a tuple with the Reservations field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *V0037ReservationsResponse) GetReservationsOk() ([]V0037Reservation, bool) {
|
||||
if o == nil || IsNil(o.Reservations) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Reservations, true
|
||||
}
|
||||
|
||||
// HasReservations returns a boolean if a field has been set.
|
||||
func (o *V0037ReservationsResponse) HasReservations() bool {
|
||||
if o != nil && !IsNil(o.Reservations) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetReservations gets a reference to the given []V0037Reservation and assigns it to the Reservations field.
|
||||
func (o *V0037ReservationsResponse) SetReservations(v []V0037Reservation) {
|
||||
o.Reservations = v
|
||||
}
|
||||
|
||||
func (o V0037ReservationsResponse) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o V0037ReservationsResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Errors) {
|
||||
toSerialize["errors"] = o.Errors
|
||||
}
|
||||
if !IsNil(o.Reservations) {
|
||||
toSerialize["reservations"] = o.Reservations
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableV0037ReservationsResponse struct {
|
||||
value *V0037ReservationsResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037ReservationsResponse) Get() *V0037ReservationsResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037ReservationsResponse) Set(val *V0037ReservationsResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037ReservationsResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037ReservationsResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037ReservationsResponse(val *V0037ReservationsResponse) *NullableV0037ReservationsResponse {
|
||||
return &NullableV0037ReservationsResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037ReservationsResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037ReservationsResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -1,138 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// V0037Signal POSIX signal name
|
||||
type V0037Signal int32
|
||||
|
||||
// List of v0.0.37_signal
|
||||
const (
|
||||
HUP V0037Signal = "HUP"
|
||||
INT V0037Signal = "INT"
|
||||
QUIT V0037Signal = "QUIT"
|
||||
ABRT V0037Signal = "ABRT"
|
||||
KILL V0037Signal = "KILL"
|
||||
ALRM V0037Signal = "ALRM"
|
||||
TERM V0037Signal = "TERM"
|
||||
USR1 V0037Signal = "USR1"
|
||||
USR2 V0037Signal = "USR2"
|
||||
URG V0037Signal = "URG"
|
||||
CONT V0037Signal = "CONT"
|
||||
STOP V0037Signal = "STOP"
|
||||
TSTP V0037Signal = "TSTP"
|
||||
TTIN V0037Signal = "TTIN"
|
||||
TTOU V0037Signal = "TTOU"
|
||||
)
|
||||
|
||||
// All allowed values of V0037Signal enum
|
||||
var AllowedV0037SignalEnumValues = []V0037Signal{
|
||||
"HUP",
|
||||
"INT",
|
||||
"QUIT",
|
||||
"ABRT",
|
||||
"KILL",
|
||||
"ALRM",
|
||||
"TERM",
|
||||
"USR1",
|
||||
"USR2",
|
||||
"URG",
|
||||
"CONT",
|
||||
"STOP",
|
||||
"TSTP",
|
||||
"TTIN",
|
||||
"TTOU",
|
||||
}
|
||||
|
||||
func (v *V0037Signal) UnmarshalJSON(src []byte) error {
|
||||
var value int32
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := V0037Signal(value)
|
||||
for _, existing := range AllowedV0037SignalEnumValues {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid V0037Signal", value)
|
||||
}
|
||||
|
||||
// NewV0037SignalFromValue returns a pointer to a valid V0037Signal
|
||||
// for the value passed as argument, or an error if the value passed is not allowed by the enum
|
||||
func NewV0037SignalFromValue(v int32) (*V0037Signal, error) {
|
||||
ev := V0037Signal(v)
|
||||
if ev.IsValid() {
|
||||
return &ev, nil
|
||||
} else {
|
||||
return nil, fmt.Errorf("invalid value '%v' for V0037Signal: valid values are %v", v, AllowedV0037SignalEnumValues)
|
||||
}
|
||||
}
|
||||
|
||||
// IsValid return true if the value is valid for the enum, false otherwise
|
||||
func (v V0037Signal) IsValid() bool {
|
||||
for _, existing := range AllowedV0037SignalEnumValues {
|
||||
if existing == v {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Ptr returns reference to v0.0.37_signal value
|
||||
func (v V0037Signal) Ptr() *V0037Signal {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableV0037Signal struct {
|
||||
value *V0037Signal
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableV0037Signal) Get() *V0037Signal {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableV0037Signal) Set(val *V0037Signal) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableV0037Signal) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableV0037Signal) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableV0037Signal(val *V0037Signal) *NullableV0037Signal {
|
||||
return &NullableV0037Signal{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableV0037Signal) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableV0037Signal) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
@ -1,48 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// APIResponse stores the API response returned by the server.
|
||||
type APIResponse struct {
|
||||
*http.Response `json:"-"`
|
||||
Message string `json:"message,omitempty"`
|
||||
// Operation is the name of the OpenAPI operation.
|
||||
Operation string `json:"operation,omitempty"`
|
||||
// RequestURL is the request URL. This value is always available, even if the
|
||||
// embedded *http.Response is nil.
|
||||
RequestURL string `json:"url,omitempty"`
|
||||
// Method is the HTTP method used for the request. This value is always
|
||||
// available, even if the embedded *http.Response is nil.
|
||||
Method string `json:"method,omitempty"`
|
||||
// Payload holds the contents of the response body (which may be nil or empty).
|
||||
// This is provided here as the raw response.Body() reader will have already
|
||||
// been drained.
|
||||
Payload []byte `json:"-"`
|
||||
}
|
||||
|
||||
// NewAPIResponse returns a new APIResponse object.
|
||||
func NewAPIResponse(r *http.Response) *APIResponse {
|
||||
|
||||
response := &APIResponse{Response: r}
|
||||
return response
|
||||
}
|
||||
|
||||
// NewAPIResponseWithError returns a new APIResponse object with the provided error message.
|
||||
func NewAPIResponseWithError(errorMessage string) *APIResponse {
|
||||
|
||||
response := &APIResponse{Message: errorMessage}
|
||||
return response
|
||||
}
|
@ -1,69 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
Testing OpenapiAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func Test_openapi_OpenapiAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test OpenapiAPIService OpenapiGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
httpRes, err := apiClient.OpenapiAPI.OpenapiGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test OpenapiAPIService OpenapiJsonGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
httpRes, err := apiClient.OpenapiAPI.OpenapiJsonGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test OpenapiAPIService OpenapiV3Get", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
httpRes, err := apiClient.OpenapiAPI.OpenapiV3Get(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test OpenapiAPIService OpenapiYamlGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
httpRes, err := apiClient.OpenapiAPI.OpenapiYamlGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
}
|
@ -1,191 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
Testing SlurmAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func Test_openapi_SlurmAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test SlurmAPIService SlurmctldCancelJob", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var jobId string
|
||||
|
||||
httpRes, err := apiClient.SlurmAPI.SlurmctldCancelJob(context.Background(), jobId).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SlurmAPIService SlurmctldDiag", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SlurmAPI.SlurmctldDiag(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SlurmAPIService SlurmctldGetJob", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var jobId string
|
||||
|
||||
resp, httpRes, err := apiClient.SlurmAPI.SlurmctldGetJob(context.Background(), jobId).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SlurmAPIService SlurmctldGetJobs", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SlurmAPI.SlurmctldGetJobs(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SlurmAPIService SlurmctldGetNode", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var nodeName string
|
||||
|
||||
resp, httpRes, err := apiClient.SlurmAPI.SlurmctldGetNode(context.Background(), nodeName).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SlurmAPIService SlurmctldGetNodes", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SlurmAPI.SlurmctldGetNodes(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SlurmAPIService SlurmctldGetPartition", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var partitionName string
|
||||
|
||||
resp, httpRes, err := apiClient.SlurmAPI.SlurmctldGetPartition(context.Background(), partitionName).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SlurmAPIService SlurmctldGetPartitions", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SlurmAPI.SlurmctldGetPartitions(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SlurmAPIService SlurmctldGetReservation", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var reservationName string
|
||||
|
||||
resp, httpRes, err := apiClient.SlurmAPI.SlurmctldGetReservation(context.Background(), reservationName).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SlurmAPIService SlurmctldGetReservations", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SlurmAPI.SlurmctldGetReservations(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SlurmAPIService SlurmctldPing", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SlurmAPI.SlurmctldPing(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SlurmAPIService SlurmctldSubmitJob", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.SlurmAPI.SlurmctldSubmitJob(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test SlurmAPIService SlurmctldUpdateJob", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var jobId string
|
||||
|
||||
httpRes, err := apiClient.SlurmAPI.SlurmctldUpdateJob(context.Background(), jobId).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
}
|
@ -1,348 +0,0 @@
|
||||
/*
|
||||
Slurm Rest API
|
||||
|
||||
API to access and control Slurm.
|
||||
|
||||
API version: 0.0.37
|
||||
Contact: sales@schedmd.com
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"reflect"
|
||||
"time"
|
||||
)
|
||||
|
||||
// PtrBool is a helper routine that returns a pointer to given boolean value.
|
||||
func PtrBool(v bool) *bool { return &v }
|
||||
|
||||
// PtrInt is a helper routine that returns a pointer to given integer value.
|
||||
func PtrInt(v int) *int { return &v }
|
||||
|
||||
// PtrInt32 is a helper routine that returns a pointer to given integer value.
|
||||
func PtrInt32(v int32) *int32 { return &v }
|
||||
|
||||
// PtrInt64 is a helper routine that returns a pointer to given integer value.
|
||||
func PtrInt64(v int64) *int64 { return &v }
|
||||
|
||||
// PtrFloat32 is a helper routine that returns a pointer to given float value.
|
||||
func PtrFloat32(v float32) *float32 { return &v }
|
||||
|
||||
// PtrFloat64 is a helper routine that returns a pointer to given float value.
|
||||
func PtrFloat64(v float64) *float64 { return &v }
|
||||
|
||||
// PtrString is a helper routine that returns a pointer to given string value.
|
||||
func PtrString(v string) *string { return &v }
|
||||
|
||||
// PtrTime is helper routine that returns a pointer to given Time value.
|
||||
func PtrTime(v time.Time) *time.Time { return &v }
|
||||
|
||||
type NullableBool struct {
|
||||
value *bool
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableBool) Get() *bool {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableBool) Set(val *bool) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableBool) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableBool) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableBool(val *bool) *NullableBool {
|
||||
return &NullableBool{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableBool) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableBool) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
type NullableInt struct {
|
||||
value *int
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableInt) Get() *int {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableInt) Set(val *int) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableInt) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableInt) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableInt(val *int) *NullableInt {
|
||||
return &NullableInt{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableInt) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableInt) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
type NullableInt32 struct {
|
||||
value *int32
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableInt32) Get() *int32 {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableInt32) Set(val *int32) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableInt32) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableInt32) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableInt32(val *int32) *NullableInt32 {
|
||||
return &NullableInt32{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableInt32) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableInt32) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
type NullableInt64 struct {
|
||||
value *int64
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableInt64) Get() *int64 {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableInt64) Set(val *int64) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableInt64) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableInt64) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableInt64(val *int64) *NullableInt64 {
|
||||
return &NullableInt64{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableInt64) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableInt64) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
type NullableFloat32 struct {
|
||||
value *float32
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableFloat32) Get() *float32 {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableFloat32) Set(val *float32) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableFloat32) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableFloat32) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableFloat32(val *float32) *NullableFloat32 {
|
||||
return &NullableFloat32{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableFloat32) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableFloat32) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
type NullableFloat64 struct {
|
||||
value *float64
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableFloat64) Get() *float64 {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableFloat64) Set(val *float64) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableFloat64) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableFloat64) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableFloat64(val *float64) *NullableFloat64 {
|
||||
return &NullableFloat64{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableFloat64) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableFloat64) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
type NullableString struct {
|
||||
value *string
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableString) Get() *string {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableString) Set(val *string) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableString) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableString) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableString(val *string) *NullableString {
|
||||
return &NullableString{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableString) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableString) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
type NullableTime struct {
|
||||
value *time.Time
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableTime) Get() *time.Time {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableTime) Set(val *time.Time) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableTime) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableTime) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableTime(val *time.Time) *NullableTime {
|
||||
return &NullableTime{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableTime) MarshalJSON() ([]byte, error) {
|
||||
return v.value.MarshalJSON()
|
||||
}
|
||||
|
||||
func (v *NullableTime) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
// IsNil checks if an input is nil
|
||||
func IsNil(i interface{}) bool {
|
||||
if i == nil {
|
||||
return true
|
||||
}
|
||||
switch reflect.TypeOf(i).Kind() {
|
||||
case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice:
|
||||
return reflect.ValueOf(i).IsNil()
|
||||
case reflect.Array:
|
||||
return reflect.ValueOf(i).IsZero()
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type MappedNullable interface {
|
||||
ToMap() (map[string]interface{}, error)
|
||||
}
|
0
internal/scheduler/slurmRestClient.go
Normal file
0
internal/scheduler/slurmRestClient.go
Normal file
Loading…
Reference in New Issue
Block a user