diff --git a/go.mod b/go.mod index b75d077..652a253 100644 --- a/go.mod +++ b/go.mod @@ -10,12 +10,15 @@ require ( github.com/cenkalti/backoff v2.2.1+incompatible github.com/cenkalti/backoff/v4 v4.3.0 github.com/gliderlabs/ssh v0.3.8 + github.com/go-ozzo/ozzo-validation/v4 v4.3.0 github.com/google/go-cmp v0.7.0 github.com/google/uuid v1.6.0 github.com/jarcoal/httpmock v1.4.0 github.com/nebius/gosdk v0.0.0-20250826102719-940ad1dfb5de + github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.11.0 golang.org/x/crypto v0.41.0 + gopkg.in/validator.v2 v2.0.1 ) require ( diff --git a/go.sum b/go.sum index 91dfffa..64dd129 100644 --- a/go.sum +++ b/go.sum @@ -4,6 +4,8 @@ github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b h1:mimo19zliBX/vS github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b/go.mod h1:fvzegU4vN3H1qMT+8wDmzjAcDONcgo2/SZ/TyfdUOFs= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= +github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496 h1:zV3ejI06GQ59hwDQAvmK1qxOQGB3WuVTRoY0okPTAv0= +github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= github.com/bojanz/currency v1.3.1 h1:3BUAvy/5hU/Pzqg5nrQslVihV50QG+A2xKPoQw1RKH4= github.com/bojanz/currency v1.3.1/go.mod h1:jNoZiJyRTqoU5DFoa+n+9lputxPUDa8Fz8BdDrW06Go= github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= @@ -22,6 +24,8 @@ github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-ozzo/ozzo-validation/v4 v4.3.0 h1:byhDUpfEwjsVQb1vBunvIjh2BHQ9ead57VkAEY4V+Es= +github.com/go-ozzo/ozzo-validation/v4 v4.3.0/go.mod h1:2NKgrcHl3z6cJs+3Oo940FPRiTzuqKbvfrL2RxCj6Ew= github.com/gofrs/flock v0.12.1 h1:MTLVXXHf8ekldpJk3AKicLij9MdwOWkZ+a/jHHZby9E= github.com/gofrs/flock v0.12.1/go.mod h1:9zxTsyu5xtJ9DK+1tFZyibEV7y3uwDxPPfbxeeHCoD0= github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI= @@ -46,6 +50,8 @@ github.com/maxatome/go-testdeep v1.14.0 h1:rRlLv1+kI8eOI3OaBXZwb3O7xY3exRzdW5QyX github.com/maxatome/go-testdeep v1.14.0/go.mod h1:lPZc/HAcJMP92l7yI6TRz1aZN5URwUBUAfUNvrclaNM= github.com/nebius/gosdk v0.0.0-20250826102719-940ad1dfb5de h1:7GbDUDyH22dvN7ata8HuNVuDlcyaDzUs/s+03Y3pDqU= github.com/nebius/gosdk v0.0.0-20250826102719-940ad1dfb5de/go.mod h1:eVbm4Qc4GPzBn3EL4rLvy1WS9zqJDw+giksOA2NZERY= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -55,6 +61,7 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= @@ -98,6 +105,9 @@ google.golang.org/protobuf v1.36.8/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXn gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/validator.v2 v2.0.1 h1:xF0KWyGWXm/LM2G1TrEjqOu4pa6coO9AlWSf3msVfDY= +gopkg.in/validator.v2 v2.0.1/go.mod h1:lIUZBlB3Im4s/eYp39Ry/wkR02yOPhZ9IwIRBjuPuG8= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/internal/errors/errors.go b/internal/errors/errors.go new file mode 100644 index 0000000..dcbc663 --- /dev/null +++ b/internal/errors/errors.go @@ -0,0 +1,211 @@ +package errors + +import ( + stderrors "errors" + "fmt" + "runtime" + "strconv" + "strings" + + pkgerrors "github.com/pkg/errors" +) + +type ValidationError struct { + Message string +} + +var _ error = ValidationError{} + +func NewValidationError(message string) ValidationError { + return ValidationError{Message: message} +} + +func (v ValidationError) Error() string { + return v.Message +} + +var New = stderrors.New + +var Errorf = fmt.Errorf + +func Wrap(err error, msg string) error { + if err == nil { + return nil + } + return Errorf("%s: %w", msg, err) +} + +var As = stderrors.As + +var Unwrap = stderrors.Unwrap + +func Unwraps(err error) []error { + u, ok := err.(interface { + Unwrap() []error + }) + if !ok { + return nil + } + return u.Unwrap() +} + +func Root(err error) error { + for Unwrap(err) != nil { + err = Unwrap(err) + } + joinedErrs := Unwraps(err) + if len(joinedErrs) == 0 { + return err + } + return Roots(joinedErrs) +} + +func Roots(errs []error) error { + if len(errs) == 0 { + return nil + } + rootedErrs := make([]error, len(errs)) + for i, e := range errs { + rootedErrs[i] = Root(e) + } + return Join(rootedErrs...) +} + +// flattens error tree +func Flatten(err error) []error { + if err == nil { + return nil + } + joinedErrs := Unwraps(err) + if joinedErrs == nil { + return []error{err} + } + flatErrs := []error{} + for _, e := range joinedErrs { + flatErrs = append(flatErrs, Flatten(e)...) + } + return flatErrs +} + +// var ReturnTrace = errtrace.Wrap + +func Join(errs ...error) error { + noNilErrs := make([]error, 0, len(errs)) + for _, err := range errs { + if err != nil { + noNilErrs = append(noNilErrs, err) + } + } + if len(noNilErrs) == 0 { + return nil + } + if len(noNilErrs) == 1 { + return noNilErrs[0] + } + return stderrors.Join(errs...) //nolint:wrapcheck // this is a wrapper +} + +// if multi err, combine similar errors +func CombineByString(err error) error { + if err == nil { + return nil + } + errs := Flatten(err) + mapE := make(map[string]error) + mapEList := []error{} + for _, e := range errs { + _, ok := mapE[e.Error()] + if !ok { + mapE[e.Error()] = e + mapEList = append(mapEList, e) + } + } + errsOut := make([]error, 0, len(mapE)) + for _, e := range mapEList { + errsOut = append(errsOut, e) + } + return Join(errsOut...) +} + +var Is = stderrors.Is + +var WrapAndTrace = WrapAndTraceInMsg + +func WrapAndTraceInMsg(err error) error { + if err == nil { + return nil + } + return pkgerrors.Wrap(err, makeErrorMessage("", 0)) // this wrap also adds a stacktrace which can be nice +} + +func WrapAndTrace2[T any](t T, err error) (T, error) { + if err == nil { + return t, nil + } + return t, pkgerrors.Wrap(err, makeErrorMessage("", 0)) +} + +func makeErrorMessage(message string, skip int) string { + skip += 2 + pc, file, line, _ := runtime.Caller(skip) + + funcName := "unknown" + fn := runtime.FuncForPC(pc) + if fn != nil { + funcName = fn.Name() + } + + lineNum := strconv.Itoa(line) + return fmt.Sprintf("[error] %s\n%s\n%s:%s\n", message, funcName, file, lineNum) +} + +func HandleErrDefer(f func() error) { + _ = f() + // logger.L().Error("", zap.Error(err)) +} + +func ErrorContainsAny(err error, substrs ...string) bool { + for _, substr := range substrs { + if ErrorContains(err, substr) { + return true + } + } + return false +} + +func ErrorContains(err error, substr string) bool { + return err != nil && strings.Contains(err.Error(), substr) +} + +func IsErrorExcept(err error, errs ...error) bool { + return err != nil && !IsAny(err, errs...) +} + +func IsErrorExceptSubstr(err error, substr ...string) bool { + return err != nil && !ErrorContainsAny(err, substr...) +} + +func IsAny(err error, errs ...error) bool { + for _, e := range errs { + if Is(err, e) { + return true + } + } + return false +} + +// TruncateErrorForLogging truncates a long error message to a more manageable size +// while preserving the most important parts of the error message +func TruncateErrorForLogging(err error, maxLength int) error { + if err == nil { + return nil + } + + errStr := err.Error() + if len(errStr) <= maxLength { + return err + } + + // Otherwise truncate with indication + return New(fmt.Sprintf("ERROR (truncated): %s... (truncated)", errStr[:maxLength-20])) +} diff --git a/v1/hashutil.go b/v1/hashutil.go new file mode 100644 index 0000000..aa47466 --- /dev/null +++ b/v1/hashutil.go @@ -0,0 +1,13 @@ +package v1 + +import ( + "crypto/sha256" + "encoding/hex" +) + +func HashSensitiveString(s string) (string, error) { + // Preprocess the password with SHA-256 + sha256Hash := sha256.Sum256([]byte(s)) + sha256HashString := hex.EncodeToString(sha256Hash[:]) + return sha256HashString, nil +} diff --git a/v1/instancetype.go b/v1/instancetype.go index 4013800..3cf6e82 100644 --- a/v1/instancetype.go +++ b/v1/instancetype.go @@ -87,6 +87,7 @@ type InstanceType struct { Provider string Cloud string CanModifyFirewallRules bool + ReservedInstancePoolID string } func MakeGenericInstanceTypeID(instanceType InstanceType) InstanceTypeID { diff --git a/v1/location.go b/v1/location.go index 5518595..a98e143 100644 --- a/v1/location.go +++ b/v1/location.go @@ -3,6 +3,7 @@ package v1 import ( "context" "fmt" + "slices" ) type CloudLocation interface { @@ -26,8 +27,8 @@ type LocationsFilter []string var All = []string{"all"} -func (l LocationsFilter) IsAll() bool { - for _, v := range l { +func (f LocationsFilter) IsAll() bool { + for _, v := range f { if v == "*" || v == "all" { return true } @@ -35,6 +36,13 @@ func (l LocationsFilter) IsAll() bool { return false } +func (f LocationsFilter) IsAllowed(location string) bool { + if f.IsAll() { + return true + } + return slices.Contains(f, location) +} + // ValidateGetLocations validates that the CloudLocation implementation returns at least one available location without error. func ValidateGetLocations(ctx context.Context, client CloudLocation) error { locs, err := client.GetLocations(ctx, GetLocationsArgs{}) diff --git a/v1/log.go b/v1/log.go new file mode 100644 index 0000000..015bfd3 --- /dev/null +++ b/v1/log.go @@ -0,0 +1,28 @@ +package v1 + +import "context" + +type Field struct { + Key string + Value any +} + +func LogField(key string, value any) Field { + return Field{Key: key, Value: value} +} + +type Logger interface { + Debug(ctx context.Context, msg string, fields ...Field) + Info(ctx context.Context, msg string, fields ...Field) + Warn(ctx context.Context, msg string, args ...Field) + Error(ctx context.Context, err error, fields ...Field) +} + +type NoopLogger struct{} + +func (l *NoopLogger) Debug(_ context.Context, _ string, _ ...Field) {} +func (l *NoopLogger) Info(_ context.Context, _ string, _ ...Field) {} +func (l *NoopLogger) Warn(_ context.Context, _ string, _ ...Field) {} +func (l *NoopLogger) Error(_ context.Context, _ error, _ ...Field) {} + +var _ Logger = &NoopLogger{} diff --git a/v1/providers/launchpad/Makefile b/v1/providers/launchpad/Makefile new file mode 100644 index 0000000..9635028 --- /dev/null +++ b/v1/providers/launchpad/Makefile @@ -0,0 +1,20 @@ +SPEC_VERSION ?= v2.36.1 +SPEC_FILE ?= /local/swagger-${SPEC_VERSION}.yaml +OUTPUT_DIR ?= launchpad +# To understand disallowAdditionalPropertiesIfNotPresent=false +# Check out https://openapi-generator.tech/docs/generators/go/#config-options +generate-launchpad-client: + rm -rf gen/${OUTPUT_DIR} + mkdir -p gen/${OUTPUT_DIR} + docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli:v7.8.0 generate \ + --additional-properties disallowAdditionalPropertiesIfNotPresent=false \ + -i ${SPEC_FILE} \ + -g go \ + --git-user-id brevdev \ + --git-repo-id cloud \ + --skip-validate-spec \ + -o /local/gen/${OUTPUT_DIR} + sudo chown -R $(shell id -u):$(shell id -g) gen/${OUTPUT_DIR}// + find gen/${OUTPUT_DIR} -name "*.go" -type f -exec sed -i.bak 's|openapiclient "github.com/brevdev/cloud"|openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad"|g' {} \; && find gen/${OUTPUT_DIR} -name "*.go.bak" -delete + gofmt -s -w gen/${OUTPUT_DIR} + rm -rf gen/${OUTPUT_DIR}/go.mod gen/${OUTPUT_DIR}/go.sum diff --git a/v1/providers/launchpad/client.go b/v1/providers/launchpad/client.go new file mode 100644 index 0000000..fca9a54 --- /dev/null +++ b/v1/providers/launchpad/client.go @@ -0,0 +1,91 @@ +package v1 + +import ( + "context" + "fmt" + "net/http" + + v1 "github.com/brevdev/cloud/v1" + openapi "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/pkg/errors" +) + +type LaunchpadClient struct { + v1.NotImplCloudClient + refID string + apiKey string + client *openapi.APIClient + logger v1.Logger +} + +var _ v1.CloudClient = &LaunchpadClient{} + +type LaunchpadClientOption func(c *LaunchpadClient) + +func WithLogger(logger v1.Logger) LaunchpadClientOption { + return func(c *LaunchpadClient) { + c.logger = logger + } +} + +func NewLaunchpadClient(launchpadCredential LaunchpadCredential, opts ...LaunchpadClientOption) (*LaunchpadClient, error) { + launchpadCredential.SetDefaults() + err := launchpadCredential.Validate() + if err != nil { + return nil, errors.Wrap(err, "failed to validate launchpad credential") + } + + conf := openapi.NewConfiguration() + conf.HTTPClient = http.DefaultClient + conf.Servers = []openapi.ServerConfiguration{ + { + URL: launchpadCredential.APIURL, + Description: "Production server", + }, + } + client := openapi.NewAPIClient(conf) + + launchpadClient := &LaunchpadClient{ + refID: launchpadCredential.RefID, + apiKey: launchpadCredential.APIToken, + client: client, + logger: &v1.NoopLogger{}, + } + + for _, opt := range opts { + opt(launchpadClient) + } + + return launchpadClient, nil +} + +func (c *LaunchpadClient) makeAuthContext(ctx context.Context) context.Context { + authCtx := context.WithValue(ctx, openapi.ContextAPIKeys, map[string]openapi.APIKey{ + "TokenAuthentication": { + Key: fmt.Sprintf("Token %s", c.apiKey), + }, + }) + return authCtx +} + +func (c *LaunchpadClient) GetAPIType() v1.APIType { + return v1.APITypeGlobal +} + +func (c *LaunchpadClient) GetCloudProviderID() v1.CloudProviderID { + return CloudProviderID +} + +func (c *LaunchpadClient) GetReferenceID() string { + return c.refID +} + +// GetCapabilities implements v1.CloudCredential. +func (c LaunchpadClient) GetCapabilities(_ context.Context) (v1.Capabilities, error) { + return v1.Capabilities{ + v1.CapabilityCreateTerminateInstance, + v1.CapabilityCreateInstance, + v1.CapabilityTerminateInstance, + v1.CapabilityCreateIdempotentInstance, + }, nil +} diff --git a/v1/providers/launchpad/credential.go b/v1/providers/launchpad/credential.go new file mode 100644 index 0000000..7db43e7 --- /dev/null +++ b/v1/providers/launchpad/credential.go @@ -0,0 +1,94 @@ +package v1 + +import ( + "context" + "fmt" + "time" + + v1 "github.com/brevdev/cloud/v1" + validation "github.com/go-ozzo/ozzo-validation/v4" + + "github.com/pkg/errors" +) + +const CloudProviderID = "launchpad" + +type LaunchpadCredential struct { + RefID string + APIToken string `json:"api_token"` + APIURL string `json:"api_url"` +} + +var _ v1.CloudCredential = &LaunchpadCredential{} + +func NewLaunchpadCredential(refID, apiToken, apiURL string) *LaunchpadCredential { + return &LaunchpadCredential{ + RefID: refID, + APIToken: apiToken, + APIURL: apiURL, + } +} + +func (c *LaunchpadCredential) SetDefaults() { + if c.APIURL == "" { + c.APIURL = "https://launchpad.api.nvidia.com" + } +} + +func (c *LaunchpadCredential) Validate() error { + err := validation.ValidateStruct( + c, + validation.Field(&c.APIToken, validation.Required), + validation.Field(&c.APIURL, validation.Required), + ) + if err != nil { + return errors.Wrap(err, "failed to validate launchpad credential") + } + return nil +} + +// GetAPIType implements v1.CloudCredential. +func (c *LaunchpadCredential) GetAPIType() v1.APIType { + return v1.APITypeGlobal +} + +// GetCloudProviderID implements v1.CloudCredential. +func (c *LaunchpadCredential) GetCloudProviderID() v1.CloudProviderID { + return CloudProviderID +} + +// GetReferenceID implements v1.CloudCredential. +func (c *LaunchpadCredential) GetReferenceID() string { + return c.RefID +} + +// GetTenantID implements v1.CloudCredential. +func (c *LaunchpadCredential) GetTenantID() (string, error) { + hAPIKey, err := v1.HashSensitiveString(c.APIToken) + if err != nil { + return "", errors.Wrap(err, "failed to hash api key") + } + return fmt.Sprintf("launchpad-%s", hAPIKey), nil +} + +func (c *LaunchpadCredential) MakeClientWithOptions(_ context.Context, _ string, opts ...LaunchpadClientOption) (v1.CloudClient, error) { + return NewLaunchpadClient(*c, opts...) +} + +// MakeClient implements v1.CloudCredential. +func (c *LaunchpadCredential) MakeClient(ctx context.Context, location string) (v1.CloudClient, error) { + return c.MakeClientWithOptions(ctx, location) +} + +func (c *LaunchpadCredential) GetInstancePollTime() time.Duration { + return 1 * time.Minute +} + +// GetCapabilities returns the capabilities for Launchpad +func (c *LaunchpadCredential) GetCapabilities(ctx context.Context) (v1.Capabilities, error) { + client, err := c.MakeClient(ctx, "") + if err != nil { + return nil, err + } + return client.GetCapabilities(ctx) +} diff --git a/v1/providers/launchpad/gen/launchpad/.gitignore b/v1/providers/launchpad/gen/launchpad/.gitignore new file mode 100644 index 0000000..daf913b --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/.gitignore @@ -0,0 +1,24 @@ +# 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 diff --git a/v1/providers/launchpad/gen/launchpad/.openapi-generator-ignore b/v1/providers/launchpad/gen/launchpad/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# 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 diff --git a/v1/providers/launchpad/gen/launchpad/.openapi-generator/FILES b/v1/providers/launchpad/gen/launchpad/.openapi-generator/FILES new file mode 100644 index 0000000..9d2965f --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/.openapi-generator/FILES @@ -0,0 +1,238 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_auth.go +api_catalog_deployments.go +api_catalog_experiences.go +api_catalog_gpu_os_choices.go +api_catalog_instance_types.go +api_catalog_persona_choices.go +api_identity_profile.go +api_inventory_clusters.go +api_inventory_gpus.go +api_inventory_instances.go +api_inventory_locations.go +api_inventory_nodes.go +api_inventory_oems.go +api_inventory_providers.go +client.go +configuration.go +docs/AuthAPI.md +docs/AuthLogin.md +docs/AuthRedirect.md +docs/AuthToken.md +docs/BlankEnum.md +docs/CatalogDeploymentsAPI.md +docs/CatalogExperiencesAPI.md +docs/CatalogGpuOsChoicesAPI.md +docs/CatalogInstanceTypesAPI.md +docs/CatalogPersonaChoicesAPI.md +docs/CategoryEnum.md +docs/Cluster.md +docs/ClusterBulkUpdate.md +docs/ClusterDeployment.md +docs/ClusterGpusInner.md +docs/ClusterInstancesInner.md +docs/ClusterNodesInner.md +docs/CpuManufacturerEnum.md +docs/Deployment.md +docs/DeploymentBulkUpdate.md +docs/DeploymentCluster.md +docs/DeploymentExperience.md +docs/DeploymentInstance.md +docs/DeploymentKey.md +docs/DeploymentNote.md +docs/DeploymentPipeline.md +docs/DeploymentPipelineActionEnum.md +docs/DeploymentService.md +docs/DeploymentState.md +docs/DeploymentTask.md +docs/DeploymentTaskActionEnum.md +docs/DeploymentUpdate.md +docs/DocDeploymentDelete.md +docs/Experience.md +docs/ExperienceBulk.md +docs/ExperienceBulkUpdate.md +docs/ExperienceNote.md +docs/FcPlatformEnum.md +docs/Gpu.md +docs/GpuBulkUpdate.md +docs/GpuOs.md +docs/GpuOsChoice.md +docs/IdentityProfileAPI.md +docs/Instance.md +docs/InstanceBulkUpdate.md +docs/InstanceState.md +docs/InstanceType.md +docs/InstanceTypeGpu.md +docs/InstanceTypePrice.md +docs/InstanceTypeStorage.md +docs/InterconnectionTypeEnum.md +docs/InventoryClustersAPI.md +docs/InventoryGpusAPI.md +docs/InventoryInstancesAPI.md +docs/InventoryLocationsAPI.md +docs/InventoryNodesAPI.md +docs/InventoryOemsAPI.md +docs/InventoryProvidersAPI.md +docs/Location.md +docs/LocationProvider.md +docs/Logout.md +docs/ModelChange.md +docs/ModelChangeChangesInner.md +docs/ModelChangeChangesInnerNewValue.md +docs/NetworkTypeEnum.md +docs/Node.md +docs/NodeBulk.md +docs/NodeBulkUpdate.md +docs/NodeLocation.md +docs/NodeStorage.md +docs/OEM.md +docs/PaginatedClusterList.md +docs/PaginatedDeploymentInstanceList.md +docs/PaginatedDeploymentKeyList.md +docs/PaginatedDeploymentList.md +docs/PaginatedDeploymentNoteList.md +docs/PaginatedDeploymentPipelineList.md +docs/PaginatedDeploymentServiceList.md +docs/PaginatedDeploymentTaskList.md +docs/PaginatedExperienceList.md +docs/PaginatedExperienceNoteList.md +docs/PaginatedGpuList.md +docs/PaginatedGpuOsChoiceList.md +docs/PaginatedInstanceList.md +docs/PaginatedInstanceTypeList.md +docs/PaginatedLocationList.md +docs/PaginatedModelChangeList.md +docs/PaginatedNodeList.md +docs/PaginatedOEMList.md +docs/PaginatedPersonaChoiceList.md +docs/PaginatedProviderList.md +docs/PasswordChange.md +docs/PersonaChoice.md +docs/PlatformEnum.md +docs/PreferredThemeEnum.md +docs/PriorityEnum.md +docs/Profile.md +docs/Provider.md +docs/ProviderBulkUpdate.md +docs/ProvisioningStateEnum.md +docs/PublishedEnum.md +docs/StatusEnum.md +docs/SystemArchEnum.md +docs/Tenant.md +docs/TypeEnum.md +docs/VgpuProfileEnum.md +git_push.sh +go.mod +go.sum +model_auth_login.go +model_auth_redirect.go +model_auth_token.go +model_blank_enum.go +model_category_enum.go +model_cluster.go +model_cluster_bulk_update.go +model_cluster_deployment.go +model_cluster_gpus_inner.go +model_cluster_instances_inner.go +model_cluster_nodes_inner.go +model_cpu_manufacturer_enum.go +model_deployment.go +model_deployment_bulk_update.go +model_deployment_cluster.go +model_deployment_experience.go +model_deployment_instance.go +model_deployment_key.go +model_deployment_note.go +model_deployment_pipeline.go +model_deployment_pipeline_action_enum.go +model_deployment_service.go +model_deployment_state.go +model_deployment_task.go +model_deployment_task_action_enum.go +model_deployment_update.go +model_doc_deployment_delete.go +model_experience.go +model_experience_bulk.go +model_experience_bulk_update.go +model_experience_note.go +model_fc_platform_enum.go +model_gpu.go +model_gpu_bulk_update.go +model_gpu_os.go +model_gpu_os_choice.go +model_instance.go +model_instance_bulk_update.go +model_instance_state.go +model_instance_type.go +model_instance_type_gpu.go +model_instance_type_price.go +model_instance_type_storage.go +model_interconnection_type_enum.go +model_location.go +model_location_provider.go +model_logout.go +model_model_change.go +model_model_change_changes_inner.go +model_model_change_changes_inner_new_value.go +model_network_type_enum.go +model_node.go +model_node_bulk.go +model_node_bulk_update.go +model_node_location.go +model_node_storage.go +model_oem.go +model_paginated_cluster_list.go +model_paginated_deployment_instance_list.go +model_paginated_deployment_key_list.go +model_paginated_deployment_list.go +model_paginated_deployment_note_list.go +model_paginated_deployment_pipeline_list.go +model_paginated_deployment_service_list.go +model_paginated_deployment_task_list.go +model_paginated_experience_list.go +model_paginated_experience_note_list.go +model_paginated_gpu_list.go +model_paginated_gpu_os_choice_list.go +model_paginated_instance_list.go +model_paginated_instance_type_list.go +model_paginated_location_list.go +model_paginated_model_change_list.go +model_paginated_node_list.go +model_paginated_oem_list.go +model_paginated_persona_choice_list.go +model_paginated_provider_list.go +model_password_change.go +model_persona_choice.go +model_platform_enum.go +model_preferred_theme_enum.go +model_priority_enum.go +model_profile.go +model_provider.go +model_provider_bulk_update.go +model_provisioning_state_enum.go +model_published_enum.go +model_status_enum.go +model_system_arch_enum.go +model_tenant.go +model_type_enum.go +model_vgpu_profile_enum.go +response.go +test/api_auth_test.go +test/api_catalog_deployments_test.go +test/api_catalog_experiences_test.go +test/api_catalog_gpu_os_choices_test.go +test/api_catalog_instance_types_test.go +test/api_catalog_persona_choices_test.go +test/api_identity_profile_test.go +test/api_inventory_clusters_test.go +test/api_inventory_gpus_test.go +test/api_inventory_instances_test.go +test/api_inventory_locations_test.go +test/api_inventory_nodes_test.go +test/api_inventory_oems_test.go +test/api_inventory_providers_test.go +utils.go diff --git a/v1/providers/launchpad/gen/launchpad/.openapi-generator/VERSION b/v1/providers/launchpad/gen/launchpad/.openapi-generator/VERSION new file mode 100644 index 0000000..09a6d30 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.8.0 diff --git a/v1/providers/launchpad/gen/launchpad/.travis.yml b/v1/providers/launchpad/gen/launchpad/.travis.yml new file mode 100644 index 0000000..f5cb2ce --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/v1/providers/launchpad/gen/launchpad/README.md b/v1/providers/launchpad/gen/launchpad/README.md new file mode 100644 index 0000000..aa2cc8e --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/README.md @@ -0,0 +1,337 @@ +# Go API client for openapi + +RESTful API for interacting with the NVIDIA LaunchPad platform + +## 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: 2.36.1 +- Package version: 1.0.0 +- Generator version: 7.8.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```sh +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: + +```go +import openapi "github.com/brevdev/cloud" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```go +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 `openapi.ContextServerIndex` of type `int`. + +```go +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 `openapi.ContextServerVariables` of type `map[string]string`. + +```go +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 `openapi.ContextOperationServerIndices` and `openapi.ContextOperationServerVariables` context maps. + +```go +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* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AuthAPI* | [**AuthLoginCreate**](docs/AuthAPI.md#authlogincreate) | **Post** /v1/auth/login/ | +*AuthAPI* | [**AuthLogoutCreate**](docs/AuthAPI.md#authlogoutcreate) | **Post** /v1/auth/logout/ | +*AuthAPI* | [**AuthPasswordChangeCreate**](docs/AuthAPI.md#authpasswordchangecreate) | **Post** /v1/auth/password-change/ | +*AuthAPI* | [**AuthRedirectRetrieve**](docs/AuthAPI.md#authredirectretrieve) | **Get** /v1/auth/redirect/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsBulkPartialUpdate**](docs/CatalogDeploymentsAPI.md#catalogdeploymentsbulkpartialupdate) | **Patch** /v1/catalog/deployments/bulk/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsCreate**](docs/CatalogDeploymentsAPI.md#catalogdeploymentscreate) | **Post** /v1/catalog/deployments/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsDestroy**](docs/CatalogDeploymentsAPI.md#catalogdeploymentsdestroy) | **Delete** /v1/catalog/deployments/{id}/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsHistoryList**](docs/CatalogDeploymentsAPI.md#catalogdeploymentshistorylist) | **Get** /v1/catalog/deployments/{id}/history/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsInstancesList**](docs/CatalogDeploymentsAPI.md#catalogdeploymentsinstanceslist) | **Get** /v1/catalog/deployments/{deployment_id}/instances/ | 🚧 [Beta Feature] +*CatalogDeploymentsAPI* | [**CatalogDeploymentsList**](docs/CatalogDeploymentsAPI.md#catalogdeploymentslist) | **Get** /v1/catalog/deployments/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsNotesCreate**](docs/CatalogDeploymentsAPI.md#catalogdeploymentsnotescreate) | **Post** /v1/catalog/deployments/{deployment_id}/notes/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsNotesDestroy**](docs/CatalogDeploymentsAPI.md#catalogdeploymentsnotesdestroy) | **Delete** /v1/catalog/deployments/{deployment_id}/notes/{id}/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsNotesList**](docs/CatalogDeploymentsAPI.md#catalogdeploymentsnoteslist) | **Get** /v1/catalog/deployments/{deployment_id}/notes/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsNotesPartialUpdate**](docs/CatalogDeploymentsAPI.md#catalogdeploymentsnotespartialupdate) | **Patch** /v1/catalog/deployments/{deployment_id}/notes/{id}/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsNotesRetrieve**](docs/CatalogDeploymentsAPI.md#catalogdeploymentsnotesretrieve) | **Get** /v1/catalog/deployments/{deployment_id}/notes/{id}/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsNotesUpdate**](docs/CatalogDeploymentsAPI.md#catalogdeploymentsnotesupdate) | **Put** /v1/catalog/deployments/{deployment_id}/notes/{id}/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsPartialUpdate**](docs/CatalogDeploymentsAPI.md#catalogdeploymentspartialupdate) | **Patch** /v1/catalog/deployments/{id}/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsPipelinesCreate**](docs/CatalogDeploymentsAPI.md#catalogdeploymentspipelinescreate) | **Post** /v1/catalog/deployments/{deployment_id}/pipelines/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsPipelinesList**](docs/CatalogDeploymentsAPI.md#catalogdeploymentspipelineslist) | **Get** /v1/catalog/deployments/{deployment_id}/pipelines/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsRetrieve**](docs/CatalogDeploymentsAPI.md#catalogdeploymentsretrieve) | **Get** /v1/catalog/deployments/{id}/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsServicesCreate**](docs/CatalogDeploymentsAPI.md#catalogdeploymentsservicescreate) | **Post** /v1/catalog/deployments/{deployment_id}/services/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsServicesList**](docs/CatalogDeploymentsAPI.md#catalogdeploymentsserviceslist) | **Get** /v1/catalog/deployments/{deployment_id}/services/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsSshKeysCreate**](docs/CatalogDeploymentsAPI.md#catalogdeploymentssshkeyscreate) | **Post** /v1/catalog/deployments/{deployment_id}/ssh-keys/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsSshKeysDestroy**](docs/CatalogDeploymentsAPI.md#catalogdeploymentssshkeysdestroy) | **Delete** /v1/catalog/deployments/{deployment_id}/ssh-keys/{id}/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsSshKeysList**](docs/CatalogDeploymentsAPI.md#catalogdeploymentssshkeyslist) | **Get** /v1/catalog/deployments/{deployment_id}/ssh-keys/ | +*CatalogDeploymentsAPI* | [**CatalogDeploymentsStatsRetrieve**](docs/CatalogDeploymentsAPI.md#catalogdeploymentsstatsretrieve) | **Get** /v1/catalog/deployments/stats/ | 🚧 [Beta Feature] +*CatalogDeploymentsAPI* | [**CatalogDeploymentsTasksCreate**](docs/CatalogDeploymentsAPI.md#catalogdeploymentstaskscreate) | **Post** /v1/catalog/deployments/{deployment_id}/tasks/ | 🚧 [Beta Feature] +*CatalogDeploymentsAPI* | [**CatalogDeploymentsTasksList**](docs/CatalogDeploymentsAPI.md#catalogdeploymentstaskslist) | **Get** /v1/catalog/deployments/{deployment_id}/tasks/ | 🚧 [Beta Feature] +*CatalogDeploymentsAPI* | [**CatalogDeploymentsTasksRetrieve**](docs/CatalogDeploymentsAPI.md#catalogdeploymentstasksretrieve) | **Get** /v1/catalog/deployments/{deployment_id}/tasks/{id}/ | 🚧 [Beta Feature] +*CatalogDeploymentsAPI* | [**CatalogDeploymentsUpdate**](docs/CatalogDeploymentsAPI.md#catalogdeploymentsupdate) | **Put** /v1/catalog/deployments/{id}/ | +*CatalogDeploymentsAPI* | [**CatalogExperiencesNotesCreate**](docs/CatalogDeploymentsAPI.md#catalogexperiencesnotescreate) | **Post** /v1/catalog/experiences/{experience_id}/notes/ | +*CatalogDeploymentsAPI* | [**CatalogExperiencesNotesDestroy**](docs/CatalogDeploymentsAPI.md#catalogexperiencesnotesdestroy) | **Delete** /v1/catalog/experiences/{experience_id}/notes/{id}/ | +*CatalogDeploymentsAPI* | [**CatalogExperiencesNotesList**](docs/CatalogDeploymentsAPI.md#catalogexperiencesnoteslist) | **Get** /v1/catalog/experiences/{experience_id}/notes/ | +*CatalogDeploymentsAPI* | [**CatalogExperiencesNotesPartialUpdate**](docs/CatalogDeploymentsAPI.md#catalogexperiencesnotespartialupdate) | **Patch** /v1/catalog/experiences/{experience_id}/notes/{id}/ | +*CatalogDeploymentsAPI* | [**CatalogExperiencesNotesRetrieve**](docs/CatalogDeploymentsAPI.md#catalogexperiencesnotesretrieve) | **Get** /v1/catalog/experiences/{experience_id}/notes/{id}/ | +*CatalogDeploymentsAPI* | [**CatalogExperiencesNotesUpdate**](docs/CatalogDeploymentsAPI.md#catalogexperiencesnotesupdate) | **Put** /v1/catalog/experiences/{experience_id}/notes/{id}/ | +*CatalogExperiencesAPI* | [**CatalogExperiencesBulkCreate**](docs/CatalogExperiencesAPI.md#catalogexperiencesbulkcreate) | **Post** /v1/catalog/experiences/bulk/ | +*CatalogExperiencesAPI* | [**CatalogExperiencesBulkPartialUpdate**](docs/CatalogExperiencesAPI.md#catalogexperiencesbulkpartialupdate) | **Patch** /v1/catalog/experiences/bulk/ | +*CatalogExperiencesAPI* | [**CatalogExperiencesCreate**](docs/CatalogExperiencesAPI.md#catalogexperiencescreate) | **Post** /v1/catalog/experiences/ | +*CatalogExperiencesAPI* | [**CatalogExperiencesDestroy**](docs/CatalogExperiencesAPI.md#catalogexperiencesdestroy) | **Delete** /v1/catalog/experiences/{id}/ | +*CatalogExperiencesAPI* | [**CatalogExperiencesHistoryList**](docs/CatalogExperiencesAPI.md#catalogexperienceshistorylist) | **Get** /v1/catalog/experiences/{id}/history/ | +*CatalogExperiencesAPI* | [**CatalogExperiencesList**](docs/CatalogExperiencesAPI.md#catalogexperienceslist) | **Get** /v1/catalog/experiences/ | +*CatalogExperiencesAPI* | [**CatalogExperiencesPartialUpdate**](docs/CatalogExperiencesAPI.md#catalogexperiencespartialupdate) | **Patch** /v1/catalog/experiences/{id}/ | +*CatalogExperiencesAPI* | [**CatalogExperiencesRetrieve**](docs/CatalogExperiencesAPI.md#catalogexperiencesretrieve) | **Get** /v1/catalog/experiences/{id}/ | +*CatalogExperiencesAPI* | [**CatalogExperiencesStatsRetrieve**](docs/CatalogExperiencesAPI.md#catalogexperiencesstatsretrieve) | **Get** /v1/catalog/experiences/stats/ | 🚧 [Beta Feature] +*CatalogExperiencesAPI* | [**CatalogExperiencesUpdate**](docs/CatalogExperiencesAPI.md#catalogexperiencesupdate) | **Put** /v1/catalog/experiences/{id}/ | +*CatalogGpuOsChoicesAPI* | [**CatalogGpuOsChoicesCreate**](docs/CatalogGpuOsChoicesAPI.md#cataloggpuoschoicescreate) | **Post** /v1/catalog/gpu-os-choices/ | +*CatalogGpuOsChoicesAPI* | [**CatalogGpuOsChoicesList**](docs/CatalogGpuOsChoicesAPI.md#cataloggpuoschoiceslist) | **Get** /v1/catalog/gpu-os-choices/ | +*CatalogInstanceTypesAPI* | [**CatalogInstanceTypesList**](docs/CatalogInstanceTypesAPI.md#cataloginstancetypeslist) | **Get** /v1/catalog/instance-types/ | +*CatalogPersonaChoicesAPI* | [**CatalogPersonaChoicesCreate**](docs/CatalogPersonaChoicesAPI.md#catalogpersonachoicescreate) | **Post** /v1/catalog/persona-choices/ | +*CatalogPersonaChoicesAPI* | [**CatalogPersonaChoicesList**](docs/CatalogPersonaChoicesAPI.md#catalogpersonachoiceslist) | **Get** /v1/catalog/persona-choices/ | +*IdentityProfileAPI* | [**IdentityProfilePartialUpdate**](docs/IdentityProfileAPI.md#identityprofilepartialupdate) | **Patch** /v1/identity/profile/ | +*IdentityProfileAPI* | [**IdentityProfileRetrieve**](docs/IdentityProfileAPI.md#identityprofileretrieve) | **Get** /v1/identity/profile/ | +*InventoryClustersAPI* | [**InventoryClustersBulkPartialUpdate**](docs/InventoryClustersAPI.md#inventoryclustersbulkpartialupdate) | **Patch** /v1/inventory/clusters/bulk/ | +*InventoryClustersAPI* | [**InventoryClustersCreate**](docs/InventoryClustersAPI.md#inventoryclusterscreate) | **Post** /v1/inventory/clusters/ | +*InventoryClustersAPI* | [**InventoryClustersDestroy**](docs/InventoryClustersAPI.md#inventoryclustersdestroy) | **Delete** /v1/inventory/clusters/{id}/ | +*InventoryClustersAPI* | [**InventoryClustersHistoryList**](docs/InventoryClustersAPI.md#inventoryclustershistorylist) | **Get** /v1/inventory/clusters/{id}/history/ | +*InventoryClustersAPI* | [**InventoryClustersList**](docs/InventoryClustersAPI.md#inventoryclusterslist) | **Get** /v1/inventory/clusters/ | +*InventoryClustersAPI* | [**InventoryClustersPartialUpdate**](docs/InventoryClustersAPI.md#inventoryclusterspartialupdate) | **Patch** /v1/inventory/clusters/{id}/ | +*InventoryClustersAPI* | [**InventoryClustersRetrieve**](docs/InventoryClustersAPI.md#inventoryclustersretrieve) | **Get** /v1/inventory/clusters/{id}/ | +*InventoryClustersAPI* | [**InventoryClustersStatsRetrieve**](docs/InventoryClustersAPI.md#inventoryclustersstatsretrieve) | **Get** /v1/inventory/clusters/stats/ | 🚧 [Beta Feature] +*InventoryClustersAPI* | [**InventoryClustersTenantsCreate**](docs/InventoryClustersAPI.md#inventoryclusterstenantscreate) | **Post** /v1/inventory/clusters/{cluster_id}/tenants/ | +*InventoryClustersAPI* | [**InventoryClustersTenantsDestroy**](docs/InventoryClustersAPI.md#inventoryclusterstenantsdestroy) | **Delete** /v1/inventory/clusters/{cluster_id}/tenants/{id}/ | +*InventoryClustersAPI* | [**InventoryClustersUpdate**](docs/InventoryClustersAPI.md#inventoryclustersupdate) | **Put** /v1/inventory/clusters/{id}/ | +*InventoryGpusAPI* | [**InventoryGpusBulkPartialUpdate**](docs/InventoryGpusAPI.md#inventorygpusbulkpartialupdate) | **Patch** /v1/inventory/gpus/bulk/ | +*InventoryGpusAPI* | [**InventoryGpusCreate**](docs/InventoryGpusAPI.md#inventorygpuscreate) | **Post** /v1/inventory/gpus/ | +*InventoryGpusAPI* | [**InventoryGpusDestroy**](docs/InventoryGpusAPI.md#inventorygpusdestroy) | **Delete** /v1/inventory/gpus/{id}/ | +*InventoryGpusAPI* | [**InventoryGpusHistoryList**](docs/InventoryGpusAPI.md#inventorygpushistorylist) | **Get** /v1/inventory/gpus/{id}/history/ | +*InventoryGpusAPI* | [**InventoryGpusList**](docs/InventoryGpusAPI.md#inventorygpuslist) | **Get** /v1/inventory/gpus/ | +*InventoryGpusAPI* | [**InventoryGpusPartialUpdate**](docs/InventoryGpusAPI.md#inventorygpuspartialupdate) | **Patch** /v1/inventory/gpus/{id}/ | +*InventoryGpusAPI* | [**InventoryGpusRetrieve**](docs/InventoryGpusAPI.md#inventorygpusretrieve) | **Get** /v1/inventory/gpus/{id}/ | +*InventoryGpusAPI* | [**InventoryGpusStatsRetrieve**](docs/InventoryGpusAPI.md#inventorygpusstatsretrieve) | **Get** /v1/inventory/gpus/stats/ | 🚧 [Beta Feature] +*InventoryGpusAPI* | [**InventoryGpusUpdate**](docs/InventoryGpusAPI.md#inventorygpusupdate) | **Put** /v1/inventory/gpus/{id}/ | +*InventoryInstancesAPI* | [**InventoryInstancesBulkPartialUpdate**](docs/InventoryInstancesAPI.md#inventoryinstancesbulkpartialupdate) | **Patch** /v1/inventory/instances/bulk/ | 🚧 [Beta Feature] +*InventoryInstancesAPI* | [**InventoryInstancesCreate**](docs/InventoryInstancesAPI.md#inventoryinstancescreate) | **Post** /v1/inventory/instances/ | 🚧 [Beta Feature] +*InventoryInstancesAPI* | [**InventoryInstancesDestroy**](docs/InventoryInstancesAPI.md#inventoryinstancesdestroy) | **Delete** /v1/inventory/instances/{id}/ | 🚧 [Beta Feature] +*InventoryInstancesAPI* | [**InventoryInstancesHistoryList**](docs/InventoryInstancesAPI.md#inventoryinstanceshistorylist) | **Get** /v1/inventory/instances/{id}/history/ | 🚧 [Beta Feature] +*InventoryInstancesAPI* | [**InventoryInstancesList**](docs/InventoryInstancesAPI.md#inventoryinstanceslist) | **Get** /v1/inventory/instances/ | 🚧 [Beta Feature] +*InventoryInstancesAPI* | [**InventoryInstancesPartialUpdate**](docs/InventoryInstancesAPI.md#inventoryinstancespartialupdate) | **Patch** /v1/inventory/instances/{id}/ | 🚧 [Beta Feature] +*InventoryInstancesAPI* | [**InventoryInstancesRetrieve**](docs/InventoryInstancesAPI.md#inventoryinstancesretrieve) | **Get** /v1/inventory/instances/{id}/ | 🚧 [Beta Feature] +*InventoryInstancesAPI* | [**InventoryInstancesUpdate**](docs/InventoryInstancesAPI.md#inventoryinstancesupdate) | **Put** /v1/inventory/instances/{id}/ | 🚧 [Beta Feature] +*InventoryLocationsAPI* | [**InventoryLocationsCreate**](docs/InventoryLocationsAPI.md#inventorylocationscreate) | **Post** /v1/inventory/locations/ | +*InventoryLocationsAPI* | [**InventoryLocationsDestroy**](docs/InventoryLocationsAPI.md#inventorylocationsdestroy) | **Delete** /v1/inventory/locations/{id}/ | +*InventoryLocationsAPI* | [**InventoryLocationsHistoryList**](docs/InventoryLocationsAPI.md#inventorylocationshistorylist) | **Get** /v1/inventory/locations/{id}/history/ | +*InventoryLocationsAPI* | [**InventoryLocationsList**](docs/InventoryLocationsAPI.md#inventorylocationslist) | **Get** /v1/inventory/locations/ | +*InventoryLocationsAPI* | [**InventoryLocationsPartialUpdate**](docs/InventoryLocationsAPI.md#inventorylocationspartialupdate) | **Patch** /v1/inventory/locations/{id}/ | +*InventoryLocationsAPI* | [**InventoryLocationsRetrieve**](docs/InventoryLocationsAPI.md#inventorylocationsretrieve) | **Get** /v1/inventory/locations/{id}/ | +*InventoryLocationsAPI* | [**InventoryLocationsUpdate**](docs/InventoryLocationsAPI.md#inventorylocationsupdate) | **Put** /v1/inventory/locations/{id}/ | +*InventoryNodesAPI* | [**InventoryNodesBulkCreate**](docs/InventoryNodesAPI.md#inventorynodesbulkcreate) | **Post** /v1/inventory/nodes/bulk/ | +*InventoryNodesAPI* | [**InventoryNodesBulkPartialUpdate**](docs/InventoryNodesAPI.md#inventorynodesbulkpartialupdate) | **Patch** /v1/inventory/nodes/bulk/ | +*InventoryNodesAPI* | [**InventoryNodesCreate**](docs/InventoryNodesAPI.md#inventorynodescreate) | **Post** /v1/inventory/nodes/ | +*InventoryNodesAPI* | [**InventoryNodesDestroy**](docs/InventoryNodesAPI.md#inventorynodesdestroy) | **Delete** /v1/inventory/nodes/{id}/ | +*InventoryNodesAPI* | [**InventoryNodesHistoryList**](docs/InventoryNodesAPI.md#inventorynodeshistorylist) | **Get** /v1/inventory/nodes/{id}/history/ | +*InventoryNodesAPI* | [**InventoryNodesList**](docs/InventoryNodesAPI.md#inventorynodeslist) | **Get** /v1/inventory/nodes/ | +*InventoryNodesAPI* | [**InventoryNodesPartialUpdate**](docs/InventoryNodesAPI.md#inventorynodespartialupdate) | **Patch** /v1/inventory/nodes/{id}/ | +*InventoryNodesAPI* | [**InventoryNodesRetrieve**](docs/InventoryNodesAPI.md#inventorynodesretrieve) | **Get** /v1/inventory/nodes/{id}/ | +*InventoryNodesAPI* | [**InventoryNodesUpdate**](docs/InventoryNodesAPI.md#inventorynodesupdate) | **Put** /v1/inventory/nodes/{id}/ | +*InventoryOemsAPI* | [**InventoryOemsCreate**](docs/InventoryOemsAPI.md#inventoryoemscreate) | **Post** /v1/inventory/oems/ | +*InventoryOemsAPI* | [**InventoryOemsDestroy**](docs/InventoryOemsAPI.md#inventoryoemsdestroy) | **Delete** /v1/inventory/oems/{id}/ | +*InventoryOemsAPI* | [**InventoryOemsHistoryList**](docs/InventoryOemsAPI.md#inventoryoemshistorylist) | **Get** /v1/inventory/oems/{id}/history/ | +*InventoryOemsAPI* | [**InventoryOemsList**](docs/InventoryOemsAPI.md#inventoryoemslist) | **Get** /v1/inventory/oems/ | +*InventoryOemsAPI* | [**InventoryOemsPartialUpdate**](docs/InventoryOemsAPI.md#inventoryoemspartialupdate) | **Patch** /v1/inventory/oems/{id}/ | +*InventoryOemsAPI* | [**InventoryOemsRetrieve**](docs/InventoryOemsAPI.md#inventoryoemsretrieve) | **Get** /v1/inventory/oems/{id}/ | +*InventoryOemsAPI* | [**InventoryOemsUpdate**](docs/InventoryOemsAPI.md#inventoryoemsupdate) | **Put** /v1/inventory/oems/{id}/ | +*InventoryProvidersAPI* | [**InventoryProvidersBulkPartialUpdate**](docs/InventoryProvidersAPI.md#inventoryprovidersbulkpartialupdate) | **Patch** /v1/inventory/providers/bulk/ | +*InventoryProvidersAPI* | [**InventoryProvidersCreate**](docs/InventoryProvidersAPI.md#inventoryproviderscreate) | **Post** /v1/inventory/providers/ | +*InventoryProvidersAPI* | [**InventoryProvidersDestroy**](docs/InventoryProvidersAPI.md#inventoryprovidersdestroy) | **Delete** /v1/inventory/providers/{id}/ | +*InventoryProvidersAPI* | [**InventoryProvidersHistoryList**](docs/InventoryProvidersAPI.md#inventoryprovidershistorylist) | **Get** /v1/inventory/providers/{id}/history/ | +*InventoryProvidersAPI* | [**InventoryProvidersList**](docs/InventoryProvidersAPI.md#inventoryproviderslist) | **Get** /v1/inventory/providers/ | +*InventoryProvidersAPI* | [**InventoryProvidersPartialUpdate**](docs/InventoryProvidersAPI.md#inventoryproviderspartialupdate) | **Patch** /v1/inventory/providers/{id}/ | +*InventoryProvidersAPI* | [**InventoryProvidersRetrieve**](docs/InventoryProvidersAPI.md#inventoryprovidersretrieve) | **Get** /v1/inventory/providers/{id}/ | +*InventoryProvidersAPI* | [**InventoryProvidersStatsRetrieve**](docs/InventoryProvidersAPI.md#inventoryprovidersstatsretrieve) | **Get** /v1/inventory/providers/stats/ | 🚧 [Beta Feature] +*InventoryProvidersAPI* | [**InventoryProvidersUpdate**](docs/InventoryProvidersAPI.md#inventoryprovidersupdate) | **Put** /v1/inventory/providers/{id}/ | + + +## Documentation For Models + + - [AuthLogin](docs/AuthLogin.md) + - [AuthRedirect](docs/AuthRedirect.md) + - [AuthToken](docs/AuthToken.md) + - [BlankEnum](docs/BlankEnum.md) + - [CategoryEnum](docs/CategoryEnum.md) + - [Cluster](docs/Cluster.md) + - [ClusterBulkUpdate](docs/ClusterBulkUpdate.md) + - [ClusterDeployment](docs/ClusterDeployment.md) + - [ClusterGpusInner](docs/ClusterGpusInner.md) + - [ClusterInstancesInner](docs/ClusterInstancesInner.md) + - [ClusterNodesInner](docs/ClusterNodesInner.md) + - [CpuManufacturerEnum](docs/CpuManufacturerEnum.md) + - [Deployment](docs/Deployment.md) + - [DeploymentBulkUpdate](docs/DeploymentBulkUpdate.md) + - [DeploymentCluster](docs/DeploymentCluster.md) + - [DeploymentExperience](docs/DeploymentExperience.md) + - [DeploymentInstance](docs/DeploymentInstance.md) + - [DeploymentKey](docs/DeploymentKey.md) + - [DeploymentNote](docs/DeploymentNote.md) + - [DeploymentPipeline](docs/DeploymentPipeline.md) + - [DeploymentPipelineActionEnum](docs/DeploymentPipelineActionEnum.md) + - [DeploymentService](docs/DeploymentService.md) + - [DeploymentState](docs/DeploymentState.md) + - [DeploymentTask](docs/DeploymentTask.md) + - [DeploymentTaskActionEnum](docs/DeploymentTaskActionEnum.md) + - [DeploymentUpdate](docs/DeploymentUpdate.md) + - [DocDeploymentDelete](docs/DocDeploymentDelete.md) + - [Experience](docs/Experience.md) + - [ExperienceBulk](docs/ExperienceBulk.md) + - [ExperienceBulkUpdate](docs/ExperienceBulkUpdate.md) + - [ExperienceNote](docs/ExperienceNote.md) + - [FcPlatformEnum](docs/FcPlatformEnum.md) + - [Gpu](docs/Gpu.md) + - [GpuBulkUpdate](docs/GpuBulkUpdate.md) + - [GpuOs](docs/GpuOs.md) + - [GpuOsChoice](docs/GpuOsChoice.md) + - [Instance](docs/Instance.md) + - [InstanceBulkUpdate](docs/InstanceBulkUpdate.md) + - [InstanceState](docs/InstanceState.md) + - [InstanceType](docs/InstanceType.md) + - [InstanceTypeGpu](docs/InstanceTypeGpu.md) + - [InstanceTypePrice](docs/InstanceTypePrice.md) + - [InstanceTypeStorage](docs/InstanceTypeStorage.md) + - [InterconnectionTypeEnum](docs/InterconnectionTypeEnum.md) + - [Location](docs/Location.md) + - [LocationProvider](docs/LocationProvider.md) + - [Logout](docs/Logout.md) + - [ModelChange](docs/ModelChange.md) + - [ModelChangeChangesInner](docs/ModelChangeChangesInner.md) + - [ModelChangeChangesInnerNewValue](docs/ModelChangeChangesInnerNewValue.md) + - [NetworkTypeEnum](docs/NetworkTypeEnum.md) + - [Node](docs/Node.md) + - [NodeBulk](docs/NodeBulk.md) + - [NodeBulkUpdate](docs/NodeBulkUpdate.md) + - [NodeLocation](docs/NodeLocation.md) + - [NodeStorage](docs/NodeStorage.md) + - [OEM](docs/OEM.md) + - [PaginatedClusterList](docs/PaginatedClusterList.md) + - [PaginatedDeploymentInstanceList](docs/PaginatedDeploymentInstanceList.md) + - [PaginatedDeploymentKeyList](docs/PaginatedDeploymentKeyList.md) + - [PaginatedDeploymentList](docs/PaginatedDeploymentList.md) + - [PaginatedDeploymentNoteList](docs/PaginatedDeploymentNoteList.md) + - [PaginatedDeploymentPipelineList](docs/PaginatedDeploymentPipelineList.md) + - [PaginatedDeploymentServiceList](docs/PaginatedDeploymentServiceList.md) + - [PaginatedDeploymentTaskList](docs/PaginatedDeploymentTaskList.md) + - [PaginatedExperienceList](docs/PaginatedExperienceList.md) + - [PaginatedExperienceNoteList](docs/PaginatedExperienceNoteList.md) + - [PaginatedGpuList](docs/PaginatedGpuList.md) + - [PaginatedGpuOsChoiceList](docs/PaginatedGpuOsChoiceList.md) + - [PaginatedInstanceList](docs/PaginatedInstanceList.md) + - [PaginatedInstanceTypeList](docs/PaginatedInstanceTypeList.md) + - [PaginatedLocationList](docs/PaginatedLocationList.md) + - [PaginatedModelChangeList](docs/PaginatedModelChangeList.md) + - [PaginatedNodeList](docs/PaginatedNodeList.md) + - [PaginatedOEMList](docs/PaginatedOEMList.md) + - [PaginatedPersonaChoiceList](docs/PaginatedPersonaChoiceList.md) + - [PaginatedProviderList](docs/PaginatedProviderList.md) + - [PasswordChange](docs/PasswordChange.md) + - [PersonaChoice](docs/PersonaChoice.md) + - [PlatformEnum](docs/PlatformEnum.md) + - [PreferredThemeEnum](docs/PreferredThemeEnum.md) + - [PriorityEnum](docs/PriorityEnum.md) + - [Profile](docs/Profile.md) + - [Provider](docs/Provider.md) + - [ProviderBulkUpdate](docs/ProviderBulkUpdate.md) + - [ProvisioningStateEnum](docs/ProvisioningStateEnum.md) + - [PublishedEnum](docs/PublishedEnum.md) + - [StatusEnum](docs/StatusEnum.md) + - [SystemArchEnum](docs/SystemArchEnum.md) + - [Tenant](docs/Tenant.md) + - [TypeEnum](docs/TypeEnum.md) + - [VgpuProfileEnum](docs/VgpuProfileEnum.md) + + +## Documentation For Authorization + + +Authentication schemes defined for the API: +### TokenAuthentication + +- **Type**: API key +- **API key parameter name**: Authorization +- **Location**: HTTP header + +Note, each API key must be added to a map of `map[string]APIKey` where the key is: Authorization and passed in as the auth context for each request. + +Example + +```go +auth := context.WithValue( + context.Background(), + openapi.ContextAPIKeys, + map[string]openapi.APIKey{ + "Authorization": {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 + + + diff --git a/v1/providers/launchpad/gen/launchpad/api/openapi.yaml b/v1/providers/launchpad/gen/launchpad/api/openapi.yaml new file mode 100644 index 0000000..6700a7c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api/openapi.yaml @@ -0,0 +1,14338 @@ +openapi: 3.1.0 +info: + description: RESTful API for interacting with the NVIDIA LaunchPad platform + title: NVIDIA LaunchPad API + version: 2.36.1 +servers: +- url: / +paths: + /v1/auth/login/: + post: + description: Login with either an authorization code or username and password + (deprecated) to generate an API token that can be used with all other API + endpoints. + operationId: auth_login_create + requestBody: + content: + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/AuthLogin' + multipart/form-data: + schema: + $ref: '#/components/schemas/AuthLogin' + application/json: + examples: + AuthCode: + summary: Auth Code + value: + auth_code: string + Username&Password(deprecated): + summary: Username & Password (deprecated) + value: + username: string + password: string + schema: + $ref: '#/components/schemas/AuthLogin' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuthToken' + description: "" + security: + - TokenAuthentication: [] + tags: + - auth + /v1/auth/logout/: + post: + description: Logout from the current session. Your API token will no longer + be usable and must be regenerated via the login API. + operationId: auth_logout_create + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Logout' + description: "" + security: + - TokenAuthentication: [] + tags: + - auth + /v1/auth/password-change/: + post: + deprecated: true + description: Change your current password + operationId: auth_password_change_create + requestBody: + content: + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/PasswordChange' + multipart/form-data: + schema: + $ref: '#/components/schemas/PasswordChange' + application/json: + schema: + $ref: '#/components/schemas/PasswordChange' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PasswordChange' + description: "" + security: + - TokenAuthentication: [] + tags: + - auth + /v1/auth/redirect/: + get: + description: Get an HTTP redirect to begin an OAuth login flow. + operationId: auth_redirect_retrieve + parameters: + - description: "If \"false\" or unset, receive an HTTP 302 with the OAuth URL\ + \ returned in the Location header. If \"true\", receive an HTTP 200 with\ + \ the OAuth URL returned in the JSON payload." + explode: true + in: query + name: as_json + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuthRedirect' + description: "" + "302": + description: No response body + security: + - TokenAuthentication: [] + tags: + - auth + /v1/catalog/deployments/: + get: + operationId: catalog_deployments_list + parameters: + - explode: true + in: query + name: bastion_operating_system + required: false + schema: + type: string + style: form + - explode: true + in: query + name: cluster + required: false + schema: + format: uuid + type: string + style: form + - description: Multiple values may be separated by commas. + explode: false + in: query + name: cluster_gpus_model + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: collection_branch + required: false + schema: + type: string + style: form + - description: "Expand related field(s) instead of only showing a UUID (ex:\ + \ \"cluster\")." + explode: true + in: query + name: expand + required: false + schema: + type: string + style: form + - explode: true + in: query + name: experience + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: experience_branch + required: false + schema: + type: string + style: form + - explode: true + in: query + name: expired + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: expires_at + required: false + schema: + format: date + type: string + style: form + - description: "Include deployments whose expires_at value is within the given\ + \ range (inclusive), specified as \"today\", \"tomorrow\", or \"{start}[,end]\"\ + . Start and end times must be in ISO format." + explode: true + in: query + name: expiring + required: false + schema: + type: string + style: form + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: true + in: query + name: flightcontrol_release + required: false + schema: + type: string + style: form + - explode: true + in: query + name: garage_id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: gc_branch + required: false + schema: + type: string + style: form + - explode: true + in: query + name: gpu_alias + required: false + schema: + type: string + style: form + - explode: true + in: query + name: gpu_count + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: gpu_model + required: false + schema: + type: string + style: form + - explode: true + in: query + name: gpu_os_name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: gpu_os_release + required: false + schema: + type: string + style: form + - explode: true + in: query + name: gpu_os_version + required: false + schema: + type: string + style: form + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: node_count + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: oem_name + required: false + schema: + type: string + style: form + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - explode: true + in: query + name: org_name + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: persist_on_failure + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: persona + required: false + schema: + type: string + style: form + - explode: true + in: query + name: pipeline + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: pipeline_branch + required: false + schema: + type: string + style: form + - description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + explode: true + in: query + name: platform + required: false + schema: + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere7 + - vsphere8 + - vsphere_horizon + nullable: true + type: string + style: form + - description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + explode: true + in: query + name: priority + required: false + schema: + enum: + - p0 + - p1 + - p2 + - p3 + type: string + style: form + - explode: true + in: query + name: provider_name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: region + required: false + schema: + type: string + style: form + - explode: true + in: query + name: request_id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: requester_email + required: false + schema: + type: string + style: form + - explode: true + in: query + name: requester_name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: sales_id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: sales_owner_email + required: false + schema: + type: string + style: form + - explode: true + in: query + name: sales_owner_name + required: false + schema: + type: string + style: form + - description: "Search for deployments by bastion_operating_system, collection_branch,\ + \ experience_branch, experience catalog_id, experience catalog_id_alias,\ + \ experience id, experience title, expires_at, flightcontrol_release, garage_id,\ + \ gc_branch, gpu_alias, gpu_model, gpu_os_name, gpu_os_release, gpu_os_version,\ + \ id, oem_name, org_name, persona, pipeline_branch, platform, provider_name,\ + \ region, request_id, requester_email, requester_name, sales_id, sales_owner_email,\ + \ sales_owner_name, services url, state, tags, workshop_id" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Multiple values may be separated by commas. + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + explode: false + in: query + name: state + required: false + schema: + items: + enum: + - destroyed + - destroying + - error + - failed + - paused + - ready + - retrying + - starting + - stopped + - stopping + - waiting + type: string + type: array + style: form + - explode: true + in: query + name: workshop + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: workshop_id + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + SuccessfulResponse: + summary: Successful Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: 2024-04-01T06:14:32.602Z + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: 2024-05-03T17:03:45.380Z + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: 2025-04-10T15:08:47.381700Z + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + schema: + $ref: '#/components/schemas/PaginatedDeploymentList' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + post: + operationId: catalog_deployments_create + parameters: + - description: "Expand related field(s) instead of only showing a UUID (ex:\ + \ \"cluster\")." + explode: true + in: query + name: expand + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + examples: + DeploymentRequest(CatalogIDAlias): + summary: Deployment Request (Catalog ID Alias) + value: + bastion_operating_system: ubuntu_22_04 + catalog_id_alias: LP-15 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: 2025-04-10T15:08:47.381700Z + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + DeploymentRequest(ExperienceID): + summary: Deployment Request (Experience ID) + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + experience_id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: 2025-04-10T15:08:47.381700Z + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + DeploymentRequest(CatalogID): + summary: Deployment Request (Catalog ID) + value: + bastion_operating_system: ubuntu_22_04 + catalog_id: aBY3Z000000xBL4NCO + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: 2025-04-10T15:08:47.381700Z + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + DeploymentRequest(MinimumRequiredFields): + summary: Deployment Request (Minimum Required Fields) + value: + experience_id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + org_name: NVIDIA + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + schema: + $ref: '#/components/schemas/Deployment' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Deployment' + multipart/form-data: + schema: + $ref: '#/components/schemas/Deployment' + required: true + responses: + "201": + content: + application/json: + examples: + SuccessfulResponse: + summary: Successful Response + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: 2024-04-01T06:14:32.602Z + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: 2024-05-03T17:03:45.380Z + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: 2025-04-10T15:08:47.381700Z + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + schema: + $ref: '#/components/schemas/Deployment' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + /v1/catalog/deployments/{deployment_id}/instances/: + get: + operationId: catalog_deployments_instances_list + parameters: + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: instance_id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: "Search for deployment-instances by id, instance_id, name, state,\ + \ tags" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + explode: true + in: query + name: state + required: false + schema: + enum: + - running + - starting + - stopped + - stopping + - unknown + type: string + style: form + responses: + "200": + content: + application/json: + examples: + DeploymentInstanceResponse: + summary: DeploymentInstance Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: 2024-04-01T06:14:32.602Z + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: 2024-05-03T17:03:45.380Z + name: My GPU Cluster + state: running + state_modified: 2024-05-03T17:03:45.380Z + tags: + - gpu + schema: + $ref: '#/components/schemas/PaginatedDeploymentInstanceList' + description: "" + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - catalog/deployments + /v1/catalog/deployments/{deployment_id}/notes/: + get: + operationId: catalog_deployments_notes_list + parameters: + - explode: true + in: query + name: created_by + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: deployment + required: false + schema: + format: uuid + type: string + style: form + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: modified_by + required: false + schema: + type: integer + style: form + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: Search for deployment-notes by content + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + DeploymentNoteResponse: + summary: DeploymentNote Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - content: Hello world + created: 2024-04-01T06:14:32.602Z + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: 2024-05-03T17:03:45.380Z + modified_by: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/PaginatedDeploymentNoteList' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + post: + operationId: catalog_deployments_notes_create + parameters: + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + DeploymentNoteRequest: + summary: DeploymentNote Request + value: + content: Hello world + schema: + $ref: '#/components/schemas/DeploymentNote' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentNote' + required: true + responses: + "201": + content: + application/json: + examples: + DeploymentNoteResponse: + summary: DeploymentNote Response + value: + content: Hello world + created: 2024-04-01T06:14:32.602Z + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: 2024-05-03T17:03:45.380Z + modified_by: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/DeploymentNote' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + /v1/catalog/deployments/{deployment_id}/notes/{id}/: + delete: + operationId: catalog_deployments_notes_destroy + parameters: + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: No response body + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + get: + operationId: catalog_deployments_notes_retrieve + parameters: + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + DeploymentNoteResponse: + summary: DeploymentNote Response + value: + content: Hello world + created: 2024-04-01T06:14:32.602Z + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: 2024-05-03T17:03:45.380Z + modified_by: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/DeploymentNote' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + patch: + operationId: catalog_deployments_notes_partial_update + parameters: + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + DeploymentNoteRequest: + summary: DeploymentNote Request + value: + content: Hello world + schema: + $ref: '#/components/schemas/DeploymentNote' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentNote' + required: true + responses: + "200": + content: + application/json: + examples: + DeploymentNoteResponse: + summary: DeploymentNote Response + value: + content: Hello world + created: 2024-04-01T06:14:32.602Z + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: 2024-05-03T17:03:45.380Z + modified_by: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/DeploymentNote' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + put: + operationId: catalog_deployments_notes_update + parameters: + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + DeploymentNoteRequest: + summary: DeploymentNote Request + value: + content: Hello world + schema: + $ref: '#/components/schemas/DeploymentNote' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentNote' + required: true + responses: + "200": + content: + application/json: + examples: + DeploymentNoteResponse: + summary: DeploymentNote Response + value: + content: Hello world + created: 2024-04-01T06:14:32.602Z + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: 2024-05-03T17:03:45.380Z + modified_by: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/DeploymentNote' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + /v1/catalog/deployments/{deployment_id}/pipelines/: + get: + operationId: catalog_deployments_pipelines_list + parameters: + - description: |- + Action for the pipeline to run + + * `apply` - apply + * `destroy` - destroy + explode: true + in: query + name: action + required: false + schema: + enum: + - apply + - destroy + type: string + style: form + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: pipeline_id + required: false + schema: + type: integer + style: form + - description: "Search for deployment-pipelines by action, id, pipeline_id,\ + \ url" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + DeploymentPipelineResponse: + summary: DeploymentPipeline Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - action: apply + created: 2024-04-01T06:14:32.602Z + deployment: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + id: 4b9fab90-b441-4896-bb1f-c765fd846307 + modified: 2024-05-03T17:03:45.380Z + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + schema: + $ref: '#/components/schemas/PaginatedDeploymentPipelineList' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + post: + operationId: catalog_deployments_pipelines_create + parameters: + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + DeploymentPipelineRequest: + summary: DeploymentPipeline Request + value: + action: apply + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + schema: + $ref: '#/components/schemas/DeploymentPipeline' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentPipeline' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentPipeline' + required: true + responses: + "201": + content: + application/json: + examples: + DeploymentPipelineResponse: + summary: DeploymentPipeline Response + value: + action: apply + created: 2024-04-01T06:14:32.602Z + deployment: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + id: 4b9fab90-b441-4896-bb1f-c765fd846307 + modified: 2024-05-03T17:03:45.380Z + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + schema: + $ref: '#/components/schemas/DeploymentPipeline' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + /v1/catalog/deployments/{deployment_id}/services/: + get: + operationId: catalog_deployments_services_list + parameters: + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: "Search for deployment-services by id, name, url" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + DeploymentServiceResponse: + summary: DeploymentService Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: 2024-04-01T06:14:32.602Z + id: deb28859-d04e-4976-88d2-9488d9616bcf + modified: 2024-05-03T17:03:45.380Z + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + schema: + $ref: '#/components/schemas/PaginatedDeploymentServiceList' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + post: + operationId: catalog_deployments_services_create + parameters: + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + DeploymentServiceRequest: + summary: DeploymentService Request + value: + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + schema: + $ref: '#/components/schemas/DeploymentService' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentService' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentService' + required: true + responses: + "201": + content: + application/json: + examples: + DeploymentServiceResponse: + summary: DeploymentService Response + value: + created: 2024-04-01T06:14:32.602Z + id: deb28859-d04e-4976-88d2-9488d9616bcf + modified: 2024-05-03T17:03:45.380Z + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + schema: + $ref: '#/components/schemas/DeploymentService' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + /v1/catalog/deployments/{deployment_id}/ssh-keys/: + get: + operationId: catalog_deployments_ssh_keys_list + parameters: + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: Search for deployment-keys by name + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + DeploymentKeyResponse: + summary: DeploymentKey Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: 2024-04-01T06:14:32.602Z + id: 597f6c78-6195-4bc7-9db2-f344f71e8b47 + modified: 2024-05-03T17:03:45.380Z + name: My Key + schema: + $ref: '#/components/schemas/PaginatedDeploymentKeyList' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + post: + operationId: catalog_deployments_ssh_keys_create + parameters: + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + DeploymentKeyRequest: + summary: DeploymentKey Request + value: + name: My Key + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + schema: + $ref: '#/components/schemas/DeploymentKey' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentKey' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentKey' + required: true + responses: + "201": + content: + application/json: + examples: + DeploymentKeyResponse: + summary: DeploymentKey Response + value: + created: 2024-04-01T06:14:32.602Z + id: 597f6c78-6195-4bc7-9db2-f344f71e8b47 + modified: 2024-05-03T17:03:45.380Z + name: My Key + schema: + $ref: '#/components/schemas/DeploymentKey' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + /v1/catalog/deployments/{deployment_id}/ssh-keys/{id}/: + delete: + operationId: catalog_deployments_ssh_keys_destroy + parameters: + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: No response body + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + /v1/catalog/deployments/{deployment_id}/tasks/: + get: + operationId: catalog_deployments_tasks_list + parameters: + - description: |- + The action the task will perform + + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + explode: true + in: query + name: action + required: false + schema: + enum: + - start_instances + - stop_instances + type: string + style: form + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: "Search for deployment-tasks by action, id, status, status_text" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Current status of the task + + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + explode: true + in: query + name: status + required: false + schema: + enum: + - completed + - failed + - pending + - processing + - retrying + type: string + style: form + responses: + "200": + content: + application/json: + examples: + DeploymentTaskResponse: + summary: DeploymentTask Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - action: start_instances + created: 2024-04-01T06:14:32.602Z + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: 2024-05-03T17:03:45.380Z + retries: 0 + status: pending + status_text: "" + schema: + $ref: '#/components/schemas/PaginatedDeploymentTaskList' + description: "" + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - catalog/deployments + post: + operationId: catalog_deployments_tasks_create + parameters: + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + DeploymentTaskRequest: + summary: DeploymentTask Request + value: + action: start_instances + schema: + $ref: '#/components/schemas/DeploymentTask' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentTask' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentTask' + required: true + responses: + "201": + content: + application/json: + examples: + DeploymentTaskResponse: + summary: DeploymentTask Response + value: + action: start_instances + created: 2024-04-01T06:14:32.602Z + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: 2024-05-03T17:03:45.380Z + retries: 0 + status: pending + status_text: "" + schema: + $ref: '#/components/schemas/DeploymentTask' + description: "" + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - catalog/deployments + /v1/catalog/deployments/{deployment_id}/tasks/{id}/: + get: + operationId: catalog_deployments_tasks_retrieve + parameters: + - explode: false + in: path + name: deployment_id + required: true + schema: + format: uuid + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + examples: + DeploymentTaskResponse: + summary: DeploymentTask Response + value: + action: start_instances + created: 2024-04-01T06:14:32.602Z + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: 2024-05-03T17:03:45.380Z + retries: 0 + status: pending + status_text: "" + schema: + $ref: '#/components/schemas/DeploymentTask' + description: "" + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - catalog/deployments + /v1/catalog/deployments/{id}/: + delete: + operationId: catalog_deployments_destroy + parameters: + - description: A UUID string identifying this deployment. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + examples: + SuccessfulDestroyingResponse: + summary: Successful Destroying Response + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: 2024-04-01T06:14:32.602Z + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: 2024-05-03T17:03:45.380Z + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: 2025-04-10T15:08:47.381700Z + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: destroying + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + schema: + $ref: '#/components/schemas/DocDeploymentDelete' + description: "" + "204": + description: No response body + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + get: + operationId: catalog_deployments_retrieve + parameters: + - description: "Expand related field(s) instead of only showing a UUID (ex:\ + \ \"cluster\")." + explode: true + in: query + name: expand + required: false + schema: + type: string + style: form + - description: "Include deployments whose expires_at value is within the given\ + \ range (inclusive), specified as \"today\", \"tomorrow\", or \"{start}[,end]\"\ + . Start and end times must be in ISO format." + explode: true + in: query + name: expiring + required: false + schema: + type: string + style: form + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: A UUID string identifying this deployment. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + SuccessfulResponse: + summary: Successful Response + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: 2024-04-01T06:14:32.602Z + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: 2024-05-03T17:03:45.380Z + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: 2025-04-10T15:08:47.381700Z + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + schema: + $ref: '#/components/schemas/Deployment' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + patch: + operationId: catalog_deployments_partial_update + parameters: + - description: A UUID string identifying this deployment. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + DeploymentRequest: + summary: Deployment Request + value: + collection_branch: my-branch + experience_branch: main + expires_at: 2025-10-18 21:04:45.203550+00:00 + flightcontrol_release: latest + gc_branch: main + ip_allowlist: + - 192.0.2.1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + state: retrying + tags: + sample: test + schema: + $ref: '#/components/schemas/DeploymentUpdate' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + responses: + "200": + content: + application/json: + examples: + DeploymentResponse: + summary: Deployment Response + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: 2024-04-01T06:14:32.602Z + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: 2024-05-03T17:03:45.380Z + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: 2025-04-10T15:08:47.381700Z + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + schema: + $ref: '#/components/schemas/DeploymentUpdate' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + put: + operationId: catalog_deployments_update + parameters: + - description: A UUID string identifying this deployment. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + DeploymentRequest: + summary: Deployment Request + value: + collection_branch: my-branch + experience_branch: main + expires_at: 2025-10-18 21:04:45.203550+00:00 + flightcontrol_release: latest + gc_branch: main + ip_allowlist: + - 192.0.2.1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + state: retrying + tags: + sample: test + schema: + $ref: '#/components/schemas/DeploymentUpdate' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + responses: + "200": + content: + application/json: + examples: + DeploymentResponse: + summary: Deployment Response + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: 2024-04-01T06:14:32.602Z + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: 2024-05-03T17:03:45.380Z + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: 2025-04-10T15:08:47.381700Z + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + schema: + $ref: '#/components/schemas/DeploymentUpdate' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + /v1/catalog/deployments/{id}/history/: + get: + operationId: catalog_deployments_history_list + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + responses: + "200": + content: + application/json: + examples: + SuccessfulResponse: + summary: Successful Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: 2025-01-29T13:20:39.821Z + id: 123 + username: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + /v1/catalog/deployments/bulk/: + patch: + operationId: catalog_deployments_bulk_partial_update + requestBody: + content: + application/json: + examples: + DeploymentBulkUpdateRequest: + summary: Deployment Bulk Update Request + value: + collection_branch: my-branch + experience_branch: main + expires_at: 2025-10-18 21:04:45.203550+00:00 + flightcontrol_release: latest + gc_branch: main + ids: + - 5330c898-f3e7-4972-bfd0-1d438e3774d7 + - b29d13e5-5894-4614-af2a-ea3f9be93fc5 + ip_allowlist: + - 192.0.2.1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + state: retrying + tags: + sample: test + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + required: true + responses: + "200": + content: + application/json: + examples: + DeploymentBulkUpdateResponse: + summary: Deployment Bulk Update Response + value: + count: 2 + result: Records updated successfully + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + /v1/catalog/deployments/stats/: + get: + operationId: catalog_deployments_stats_retrieve + responses: + "200": + description: No response body + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - catalog/deployments + /v1/catalog/experiences/: + get: + operationId: catalog_experiences_list + parameters: + - explode: true + in: query + name: assignee + required: false + schema: + type: string + style: form + - explode: true + in: query + name: autoapprove + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: autoprovision + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: bootstrap + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: catalog_id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: catalog_id_alias + required: false + schema: + type: string + style: form + - description: |- + Multiple values may be separated by commas. + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + explode: false + in: query + name: category + required: false + schema: + items: + enum: + - 3D Design Collaboration and Simulation + - AI + - Clara + - Data Science + - Developer + - Infrastructure Optimization + type: string + type: array + style: form + - explode: true + in: query + name: collection_branch + required: false + schema: + type: string + style: form + - description: "Expand related field(s) instead of only showing a UUID (ex:\ + \ \"required_gpus\")." + explode: true + in: query + name: expand + required: false + schema: + type: string + style: form + - explode: true + in: query + name: experience + required: false + schema: + type: string + style: form + - explode: true + in: query + name: experience_branch + required: false + schema: + type: string + style: form + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: true + in: query + name: garage_id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: gc_branch + required: false + schema: + type: string + style: form + - explode: true + in: query + name: gpu_count + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: gpu_os_name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: gpu_os_release + required: false + schema: + type: string + style: form + - explode: true + in: query + name: gpu_os_version + required: false + schema: + type: string + style: form + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: node_count + required: false + schema: + type: integer + style: form + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: persona + required: false + schema: + type: string + style: form + - explode: true + in: query + name: pipeline + required: false + schema: + type: integer + style: form + - description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + explode: true + in: query + name: platform + required: false + schema: + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere7 + - vsphere8 + - vsphere_horizon + type: string + style: form + - explode: true + in: query + name: provider + required: false + schema: + format: uuid + type: string + style: form + - description: |- + Multiple values may be separated by commas. + + * `draft` - draft + * `no` - no + * `yes` - yes + explode: false + in: query + name: published + required: false + schema: + items: + enum: + - draft + - "no" + - "yes" + type: string + type: array + style: form + - description: Only include experiences that require a given GPU ID or model + explode: true + in: query + name: requires_gpu + required: false + schema: + type: string + style: form + - explode: true + in: query + name: sa_lab + required: false + schema: + type: boolean + style: form + - description: "Search for experiences by assignee, catalog_id, catalog_id_alias,\ + \ category, collection_branch, description, experience, experience_branch,\ + \ gc_branch, gpu_os_name, gpu_os_release, gpu_os_version, id, persona, pipeline,\ + \ platform, provider name, required_gpus model, system_arch, title, vgpu_profile" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + explode: true + in: query + name: system_arch + required: false + schema: + enum: + - amd64 + - arm64 + type: string + style: form + - description: |- + vGPU profile name used by the experience + + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q + * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + explode: true + in: query + name: vgpu_profile + required: false + schema: + enum: + - air + - bright-cluster + - bright_cluster + - flight-deck + - flight_deck + - nvidia-ai-enterprise + - nvidia_a40-48q + - nvidia_l40s-48q + - nvidia_rtx_pro_6000_blackwell_dc-4-96q + - nvidia_rtx_pro_6000_blackwell_dc-96q + - openshift + - platform_only + - vmware_itadmin + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + examples: + ExperienceResponse: + summary: Experience Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: 2024-04-01T06:14:32.602Z + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: 2024-05-03T17:03:45.380Z + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + schema: + $ref: '#/components/schemas/PaginatedExperienceList' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/experiences + post: + operationId: catalog_experiences_create + requestBody: + content: + application/json: + examples: + ExperienceRequest: + summary: Experience Request + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + schema: + $ref: '#/components/schemas/Experience' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Experience' + multipart/form-data: + schema: + $ref: '#/components/schemas/Experience' + required: true + responses: + "201": + content: + application/json: + examples: + ExperienceResponse: + summary: Experience Response + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: 2024-04-01T06:14:32.602Z + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: 2024-05-03T17:03:45.380Z + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + schema: + $ref: '#/components/schemas/Experience' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/experiences + /v1/catalog/experiences/{experience_id}/notes/: + get: + operationId: catalog_experiences_notes_list + parameters: + - explode: true + in: query + name: created_by + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: experience + required: false + schema: + format: uuid + type: string + style: form + - explode: false + in: path + name: experience_id + required: true + schema: + format: uuid + type: string + style: simple + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: modified_by + required: false + schema: + type: integer + style: form + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: Search for experience-notes by content + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + ExperiencetNoteResponse: + summary: ExperiencetNote Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - content: Hello world + created: 2024-04-01T06:14:32.602Z + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: 2024-05-03T17:03:45.380Z + modified_by: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/PaginatedExperienceNoteList' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + post: + operationId: catalog_experiences_notes_create + parameters: + - explode: false + in: path + name: experience_id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + ExperiencetNoteRequest: + summary: ExperiencetNote Request + value: + content: Hello world + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + schema: + $ref: '#/components/schemas/ExperienceNote' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ExperienceNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExperienceNote' + required: true + responses: + "201": + content: + application/json: + examples: + ExperiencetNoteResponse: + summary: ExperiencetNote Response + value: + content: Hello world + created: 2024-04-01T06:14:32.602Z + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: 2024-05-03T17:03:45.380Z + modified_by: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/ExperienceNote' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + /v1/catalog/experiences/{experience_id}/notes/{id}/: + delete: + operationId: catalog_experiences_notes_destroy + parameters: + - explode: false + in: path + name: experience_id + required: true + schema: + format: uuid + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: No response body + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + get: + operationId: catalog_experiences_notes_retrieve + parameters: + - explode: false + in: path + name: experience_id + required: true + schema: + format: uuid + type: string + style: simple + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + ExperiencetNoteResponse: + summary: ExperiencetNote Response + value: + content: Hello world + created: 2024-04-01T06:14:32.602Z + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: 2024-05-03T17:03:45.380Z + modified_by: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/ExperienceNote' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + patch: + operationId: catalog_experiences_notes_partial_update + parameters: + - explode: false + in: path + name: experience_id + required: true + schema: + format: uuid + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + ExperiencetNoteRequest: + summary: ExperiencetNote Request + value: + content: Hello world + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + schema: + $ref: '#/components/schemas/ExperienceNote' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ExperienceNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExperienceNote' + required: true + responses: + "200": + content: + application/json: + examples: + ExperiencetNoteResponse: + summary: ExperiencetNote Response + value: + content: Hello world + created: 2024-04-01T06:14:32.602Z + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: 2024-05-03T17:03:45.380Z + modified_by: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/ExperienceNote' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + put: + operationId: catalog_experiences_notes_update + parameters: + - explode: false + in: path + name: experience_id + required: true + schema: + format: uuid + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + ExperiencetNoteRequest: + summary: ExperiencetNote Request + value: + content: Hello world + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + schema: + $ref: '#/components/schemas/ExperienceNote' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ExperienceNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExperienceNote' + required: true + responses: + "200": + content: + application/json: + examples: + ExperiencetNoteResponse: + summary: ExperiencetNote Response + value: + content: Hello world + created: 2024-04-01T06:14:32.602Z + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: 2024-05-03T17:03:45.380Z + modified_by: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/ExperienceNote' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/deployments + /v1/catalog/experiences/{id}/: + delete: + operationId: catalog_experiences_destroy + parameters: + - description: A UUID string identifying this experience. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: No response body + security: + - TokenAuthentication: [] + tags: + - catalog/experiences + get: + operationId: catalog_experiences_retrieve + parameters: + - description: "Expand related field(s) instead of only showing a UUID (ex:\ + \ \"required_gpus\")." + explode: true + in: query + name: expand + required: false + schema: + type: string + style: form + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: A UUID string identifying this experience. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + ExperienceResponse: + summary: Experience Response + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: 2024-04-01T06:14:32.602Z + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: 2024-05-03T17:03:45.380Z + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + schema: + $ref: '#/components/schemas/Experience' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/experiences + patch: + operationId: catalog_experiences_partial_update + parameters: + - description: A UUID string identifying this experience. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + ExperienceRequest: + summary: Experience Request + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + schema: + $ref: '#/components/schemas/Experience' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Experience' + multipart/form-data: + schema: + $ref: '#/components/schemas/Experience' + required: true + responses: + "200": + content: + application/json: + examples: + ExperienceResponse: + summary: Experience Response + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: 2024-04-01T06:14:32.602Z + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: 2024-05-03T17:03:45.380Z + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + schema: + $ref: '#/components/schemas/Experience' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/experiences + put: + operationId: catalog_experiences_update + parameters: + - description: A UUID string identifying this experience. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + ExperienceRequest: + summary: Experience Request + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + schema: + $ref: '#/components/schemas/Experience' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Experience' + multipart/form-data: + schema: + $ref: '#/components/schemas/Experience' + required: true + responses: + "200": + content: + application/json: + examples: + ExperienceResponse: + summary: Experience Response + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: 2024-04-01T06:14:32.602Z + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: 2024-05-03T17:03:45.380Z + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + schema: + $ref: '#/components/schemas/Experience' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/experiences + /v1/catalog/experiences/{id}/history/: + get: + operationId: catalog_experiences_history_list + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + responses: + "200": + content: + application/json: + examples: + SuccessfulResponse: + summary: Successful Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: 2025-01-29T13:20:39.821Z + id: 123 + username: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/experiences + /v1/catalog/experiences/bulk/: + patch: + operationId: catalog_experiences_bulk_partial_update + requestBody: + content: + application/json: + examples: + ExperienceBulkUpdateRequest: + summary: Experience Bulk Update Request + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + ids: + - c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + - 3587f151-b02a-46c7-80a4-ac61db6633ed + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + schema: + $ref: '#/components/schemas/ExperienceBulkUpdate' + required: true + responses: + "200": + content: + application/json: + examples: + ExperienceBulkUpdateResponse: + summary: Experience Bulk Update Response + value: + count: 2 + result: Records updated successfully + schema: + $ref: '#/components/schemas/ExperienceBulkUpdate' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/experiences + post: + description: Create experiences in bulk via CSV file upload + operationId: catalog_experiences_bulk_create + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/catalog_experiences_bulk_create_request' + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceBulk' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/experiences + /v1/catalog/experiences/stats/: + get: + operationId: catalog_experiences_stats_retrieve + responses: + "200": + description: No response body + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - catalog/experiences + /v1/catalog/gpu-os-choices/: + get: + operationId: catalog_gpu_os_choices_list + parameters: + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: "Search for gpuoschoices by id, name, release, version" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + GPUOSChoiceResponse: + summary: GPU OS Choice Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: 2024-04-01T06:14:32.602Z + id: 22 + modified: 2024-05-03T17:03:45.380Z + name: ubuntu + release: jammy + version: "22.04" + schema: + $ref: '#/components/schemas/PaginatedGpuOsChoiceList' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/gpu-os-choices + post: + operationId: catalog_gpu_os_choices_create + requestBody: + content: + application/json: + examples: + GPUOSChoiceRequest: + summary: GPU OS Choice Request + value: + name: ubuntu + release: jammy + version: "22.04" + schema: + $ref: '#/components/schemas/GpuOsChoice' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/GpuOsChoice' + multipart/form-data: + schema: + $ref: '#/components/schemas/GpuOsChoice' + required: true + responses: + "201": + content: + application/json: + examples: + GPUOSChoiceResponse: + summary: GPU OS Choice Response + value: + created: 2024-04-01T06:14:32.602Z + id: 22 + modified: 2024-05-03T17:03:45.380Z + name: ubuntu + release: jammy + version: "22.04" + schema: + $ref: '#/components/schemas/GpuOsChoice' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/gpu-os-choices + /v1/catalog/instance-types/: + get: + operationId: catalog_instance_types_list + parameters: + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + responses: + "200": + content: + application/json: + examples: + InstanceTypeResponse: + summary: Instance Type Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - capacity: + us-tx-1: 10 + cloud: oci + cpu: 16 + gpu: + count: 1 + family: A100 + interconnection_type: SXM + manufacturer: NVIDIA + memory_gb: 80 + model: A100-80GB + memory_gb: 120 + price: + currency: USD + on_demand_per_hour: 2.5 + regions: + - us-tx-1 + storage: + - size_gb: 1024 + type: ssd + - size_gb: 2048 + type: ssd + system_arch: amd64 + workshop_id: January training + schema: + $ref: '#/components/schemas/PaginatedInstanceTypeList' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/instance-types + /v1/catalog/persona-choices/: + get: + operationId: catalog_persona_choices_list + parameters: + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: "Search for personachoices by id, name" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + PersonaChoiceResponse: + summary: Persona Choice Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: 2024-04-01T06:14:32.602Z + id: 15 + modified: 2024-05-03T17:03:45.380Z + name: developer + schema: + $ref: '#/components/schemas/PaginatedPersonaChoiceList' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/persona-choices + post: + operationId: catalog_persona_choices_create + requestBody: + content: + application/json: + examples: + PersonaChoiceRequest: + summary: Persona Choice Request + value: + name: developer + schema: + $ref: '#/components/schemas/PersonaChoice' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/PersonaChoice' + multipart/form-data: + schema: + $ref: '#/components/schemas/PersonaChoice' + required: true + responses: + "201": + content: + application/json: + examples: + PersonaChoiceResponse: + summary: Persona Choice Response + value: + created: 2024-04-01T06:14:32.602Z + id: 15 + modified: 2024-05-03T17:03:45.380Z + name: developer + schema: + $ref: '#/components/schemas/PersonaChoice' + description: "" + security: + - TokenAuthentication: [] + tags: + - catalog/persona-choices + /v1/identity/profile/: + get: + operationId: identity_profile_retrieve + responses: + "200": + content: + application/json: + examples: + ProfileResponse: + summary: Profile Response + value: + created: 2024-10-01T07:24:42.702Z + groups: + - Reporters + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + modified: 2024-11-03T18:04:55.480Z + preferred_theme: dark + preferred_view_settings: + view_name: + ordering: -column_name + page_size: 50 + username: jdoe@nvidia.com + schema: + $ref: '#/components/schemas/Profile' + description: "" + security: + - TokenAuthentication: [] + tags: + - identity/profile + patch: + operationId: identity_profile_partial_update + requestBody: + content: + application/json: + examples: + ProfileRequest: + summary: Profile Request + value: + preferred_theme: dark + preferred_view_settings: + view_name: + ordering: -column_name + page_size: 50 + schema: + $ref: '#/components/schemas/Profile' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Profile' + multipart/form-data: + schema: + $ref: '#/components/schemas/Profile' + required: true + responses: + "200": + content: + application/json: + examples: + ProfileResponse: + summary: Profile Response + value: + created: 2024-10-01T07:24:42.702Z + groups: + - Reporters + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + modified: 2024-11-03T18:04:55.480Z + preferred_theme: dark + preferred_view_settings: + view_name: + ordering: -column_name + page_size: 50 + username: jdoe@nvidia.com + schema: + $ref: '#/components/schemas/Profile' + description: "" + security: + - TokenAuthentication: [] + tags: + - identity/profile + /v1/inventory/clusters/: + get: + operationId: inventory_clusters_list + parameters: + - description: Is the cluster currently available for provisioning? + explode: true + in: query + name: available + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: bastion_name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: deployment + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: enabled + required: false + schema: + type: boolean + style: form + - description: "Expand related field(s) instead of only showing a UUID. Separate\ + \ nested relationships with a period (ex: \"nodes.location\"). Separate\ + \ multiple fields with a comma (ex: \"gpus,nodes\")" + explode: true + in: query + name: expand + required: false + schema: + type: string + style: form + - explode: true + in: query + name: experience + required: false + schema: + format: uuid + type: string + style: form + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: Only include clusters whose nodes have the given garage ID + explode: true + in: query + name: garage_id + required: false + schema: + type: string + style: form + - description: Multiple values may be separated by commas. + explode: false + in: query + name: gpu + required: false + schema: + items: + format: uuid + type: string + type: array + style: form + - description: Alias for GPU plan (i.e. installed GPU type and count) + explode: true + in: query + name: gpu_alias + required: false + schema: + type: string + style: form + - description: Only include clusters with a physical GPU count equal to this + value + explode: true + in: query + name: gpu_count + required: false + schema: + type: number + style: form + - description: Only include clusters with the given GPU model name + explode: true + in: query + name: gpu_model + required: false + schema: + type: string + style: form + - explode: true + in: query + name: has_deployment + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: has_request_id + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: has_workshop_id + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: location + required: false + schema: + format: uuid + type: string + style: form + - description: Only include clusters whose nodes are in the location with the + given name + explode: true + in: query + name: location_name + required: false + schema: + type: string + style: form + - description: Only include clusters whose nodes are in the location in the + given region + explode: true + in: query + name: location_region + required: false + schema: + type: string + style: form + - explode: true + in: query + name: maintenance + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: mgmt_ip + required: false + schema: + type: string + style: form + - explode: true + in: query + name: mgmt_mac + required: false + schema: + type: string + style: form + - description: Only include clusters that have a gpu_count greater than or equal + to this value + explode: true + in: query + name: min_gpu_count + required: false + schema: + type: number + style: form + - description: Only include clusters that have a node_count greater than or + equal to this value + explode: true + in: query + name: min_node_count + required: false + schema: + type: number + style: form + - description: Only include clusters that have a provisioning_attempts value + greater than or equal to this value + explode: true + in: query + name: min_provisioning_attempts + required: false + schema: + type: integer + style: form + - description: Only include clusters whose number of tenant_ids is greater than + or equal to this value + explode: true + in: query + name: min_tenant_count + required: false + schema: + type: number + style: form + - explode: true + in: query + name: netmask + required: false + schema: + type: integer + style: form + - description: Only include clusters with a node count equal to this value + explode: true + in: query + name: node_count + required: false + schema: + type: number + style: form + - description: Only include clusters with nodes that have the given OEM ID + explode: true + in: query + name: oem + required: false + schema: + format: uuid + type: string + style: form + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: persist + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: provider + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: provider_capacity + required: false + schema: + type: boolean + style: form + - description: Only include clusters whose nodes are from the provider with + the given name + explode: true + in: query + name: provider_name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: provider_node_id + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: provision_user + required: false + schema: + type: string + style: form + - explode: true + in: query + name: provisioning_attempts + required: false + schema: + type: integer + style: form + - description: |- + Multiple values may be separated by commas. + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + explode: false + in: query + name: provisioning_state + required: false + schema: + items: + enum: + - deployed + - deploying + - destroying + - pending + - ready + - reserved + - unprovisioned + type: string + type: array + style: form + - explode: true + in: query + name: public_address + required: false + schema: + type: string + style: form + - description: Only include clusters whose nodes are in the given rack + explode: true + in: query + name: rack + required: false + schema: + type: string + style: form + - explode: true + in: query + name: request_id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: reservation + required: false + schema: + type: boolean + style: form + - description: "Search for clusters by bastion_name, experience id, gpu_alias,\ + \ gpus model, id, mgmt_ip, mgmt_mac, netmask, nodes garage_id, nodes location\ + \ name, nodes location provider name, nodes oem name, nodes provider_node_id,\ + \ nodes rack, notes, provision_user, provisioning_state, public_address,\ + \ request_id, tenant_ids, workshop_id" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: Only include clusters whose nodes have the given CPU architecture + explode: true + in: query + name: system_arch + required: false + schema: + type: string + style: form + - explode: true + in: query + name: vlan_id + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: workshop + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: workshop_id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: workshop_id_not + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + ClusterResponse: + summary: Cluster Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - available: true + bastion_name: jovial_bastion + created: 2024-04-01T06:14:32.602Z + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: 2024-06-13T02:22:06.611Z + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: 2024-05-03T15:04:44.410Z + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: 2024-05-03T17:03:45.380Z + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + schema: + $ref: '#/components/schemas/PaginatedClusterList' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/clusters + post: + operationId: inventory_clusters_create + requestBody: + content: + application/json: + examples: + ClusterRequest: + summary: Cluster Request + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + schema: + $ref: '#/components/schemas/Cluster' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Cluster' + multipart/form-data: + schema: + $ref: '#/components/schemas/Cluster' + responses: + "201": + content: + application/json: + examples: + ClusterResponse: + summary: Cluster Response + value: + available: true + bastion_name: jovial_bastion + created: 2024-04-01T06:14:32.602Z + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: 2024-06-13T02:22:06.611Z + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: 2024-05-03T15:04:44.410Z + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: 2024-05-03T17:03:45.380Z + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + schema: + $ref: '#/components/schemas/Cluster' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/clusters + /v1/inventory/clusters/{cluster_id}/tenants/: + post: + operationId: inventory_clusters_tenants_create + parameters: + - explode: false + in: path + name: cluster_id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Tenant' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Tenant' + multipart/form-data: + schema: + $ref: '#/components/schemas/Tenant' + required: true + responses: + "201": + content: + application/json: + examples: + ClusterResponse: + summary: Cluster Response + value: + available: true + bastion_name: jovial_bastion + created: 2024-04-01T06:14:32.602Z + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: 2024-06-13T02:22:06.611Z + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: 2024-05-03T15:04:44.410Z + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: 2024-05-03T17:03:45.380Z + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + schema: + $ref: '#/components/schemas/Cluster' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/clusters + /v1/inventory/clusters/{cluster_id}/tenants/{id}/: + delete: + operationId: inventory_clusters_tenants_destroy + parameters: + - explode: false + in: path + name: cluster_id + required: true + schema: + format: uuid + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: No response body + security: + - TokenAuthentication: [] + tags: + - inventory/clusters + /v1/inventory/clusters/{id}/: + delete: + operationId: inventory_clusters_destroy + parameters: + - description: A UUID string identifying this cluster. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: No response body + security: + - TokenAuthentication: [] + tags: + - inventory/clusters + get: + operationId: inventory_clusters_retrieve + parameters: + - description: "Expand related field(s) instead of only showing a UUID. Separate\ + \ nested relationships with a period (ex: \"nodes.location\"). Separate\ + \ multiple fields with a comma (ex: \"gpus,nodes\")" + explode: true + in: query + name: expand + required: false + schema: + type: string + style: form + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: A UUID string identifying this cluster. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + ClusterResponse: + summary: Cluster Response + value: + available: true + bastion_name: jovial_bastion + created: 2024-04-01T06:14:32.602Z + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: 2024-06-13T02:22:06.611Z + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: 2024-05-03T15:04:44.410Z + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: 2024-05-03T17:03:45.380Z + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + schema: + $ref: '#/components/schemas/Cluster' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/clusters + patch: + operationId: inventory_clusters_partial_update + parameters: + - description: A UUID string identifying this cluster. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + ClusterRequest: + summary: Cluster Request + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + schema: + $ref: '#/components/schemas/Cluster' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Cluster' + multipart/form-data: + schema: + $ref: '#/components/schemas/Cluster' + responses: + "200": + content: + application/json: + examples: + ClusterResponse: + summary: Cluster Response + value: + available: true + bastion_name: jovial_bastion + created: 2024-04-01T06:14:32.602Z + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: 2024-06-13T02:22:06.611Z + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: 2024-05-03T15:04:44.410Z + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: 2024-05-03T17:03:45.380Z + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + schema: + $ref: '#/components/schemas/Cluster' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/clusters + put: + operationId: inventory_clusters_update + parameters: + - description: A UUID string identifying this cluster. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + ClusterRequest: + summary: Cluster Request + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + schema: + $ref: '#/components/schemas/Cluster' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Cluster' + multipart/form-data: + schema: + $ref: '#/components/schemas/Cluster' + responses: + "200": + content: + application/json: + examples: + ClusterResponse: + summary: Cluster Response + value: + available: true + bastion_name: jovial_bastion + created: 2024-04-01T06:14:32.602Z + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: 2024-06-13T02:22:06.611Z + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: 2024-05-03T15:04:44.410Z + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: 2024-05-03T17:03:45.380Z + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + schema: + $ref: '#/components/schemas/Cluster' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/clusters + /v1/inventory/clusters/{id}/history/: + get: + operationId: inventory_clusters_history_list + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + responses: + "200": + content: + application/json: + examples: + SuccessfulResponse: + summary: Successful Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: 2025-01-29T13:20:39.821Z + id: 123 + username: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/clusters + /v1/inventory/clusters/bulk/: + patch: + operationId: inventory_clusters_bulk_partial_update + requestBody: + content: + application/json: + examples: + ClusterBulkUpdateRequest: + summary: Cluster Bulk Update Request + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + ids: + - 089324a5-708c-4386-9fdc-92dd9aa63d2b + - 3587f151-b02a-46c7-80a4-ac61db6633ed + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + required: true + responses: + "200": + content: + application/json: + examples: + ClusterBulkUpdateResponse: + summary: Cluster Bulk Update Response + value: + count: 2 + result: Records updated successfully + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/clusters + /v1/inventory/clusters/stats/: + get: + operationId: inventory_clusters_stats_retrieve + responses: + "200": + description: No response body + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - inventory/clusters + /v1/inventory/gpus/: + get: + operationId: inventory_gpus_list + parameters: + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + explode: true + in: query + name: form_factor + required: false + schema: + enum: + - pcie + - sxm + type: string + style: form + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - description: Multiple values may be separated by commas. + explode: false + in: query + name: model + required: false + schema: + items: + type: string + type: array + style: form + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: priority + required: false + schema: + type: integer + style: form + - description: "Search for gpus by form_factor, id, memory, model" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + GPUResponse: + summary: GPU Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: 2024-04-01T06:14:32.602Z + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: 2024-05-03T17:03:45.380Z + node_count: 22 + priority: 60 + schema: + $ref: '#/components/schemas/PaginatedGpuList' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/gpus + post: + operationId: inventory_gpus_create + requestBody: + content: + application/json: + examples: + GPURequest: + summary: GPU Request + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + schema: + $ref: '#/components/schemas/Gpu' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Gpu' + multipart/form-data: + schema: + $ref: '#/components/schemas/Gpu' + required: true + responses: + "201": + content: + application/json: + examples: + GPUResponse: + summary: GPU Response + value: + created: 2024-04-01T06:14:32.602Z + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: 2024-05-03T17:03:45.380Z + node_count: 22 + priority: 60 + schema: + $ref: '#/components/schemas/Gpu' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/gpus + /v1/inventory/gpus/{id}/: + delete: + operationId: inventory_gpus_destroy + parameters: + - description: A UUID string identifying this gpu. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: No response body + security: + - TokenAuthentication: [] + tags: + - inventory/gpus + get: + operationId: inventory_gpus_retrieve + parameters: + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: A UUID string identifying this gpu. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + GPUResponse: + summary: GPU Response + value: + created: 2024-04-01T06:14:32.602Z + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: 2024-05-03T17:03:45.380Z + node_count: 22 + priority: 60 + schema: + $ref: '#/components/schemas/Gpu' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/gpus + patch: + operationId: inventory_gpus_partial_update + parameters: + - description: A UUID string identifying this gpu. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + GPURequest: + summary: GPU Request + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + schema: + $ref: '#/components/schemas/Gpu' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Gpu' + multipart/form-data: + schema: + $ref: '#/components/schemas/Gpu' + required: true + responses: + "200": + content: + application/json: + examples: + GPUResponse: + summary: GPU Response + value: + created: 2024-04-01T06:14:32.602Z + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: 2024-05-03T17:03:45.380Z + node_count: 22 + priority: 60 + schema: + $ref: '#/components/schemas/Gpu' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/gpus + put: + operationId: inventory_gpus_update + parameters: + - description: A UUID string identifying this gpu. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + GPURequest: + summary: GPU Request + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + schema: + $ref: '#/components/schemas/Gpu' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Gpu' + multipart/form-data: + schema: + $ref: '#/components/schemas/Gpu' + required: true + responses: + "200": + content: + application/json: + examples: + GPUResponse: + summary: GPU Response + value: + created: 2024-04-01T06:14:32.602Z + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: 2024-05-03T17:03:45.380Z + node_count: 22 + priority: 60 + schema: + $ref: '#/components/schemas/Gpu' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/gpus + /v1/inventory/gpus/{id}/history/: + get: + operationId: inventory_gpus_history_list + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + responses: + "200": + content: + application/json: + examples: + SuccessfulResponse: + summary: Successful Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: 2025-01-29T13:20:39.821Z + id: 123 + username: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/gpus + /v1/inventory/gpus/bulk/: + patch: + operationId: inventory_gpus_bulk_partial_update + requestBody: + content: + application/json: + examples: + GPUBulkUpdateRequest: + summary: GPU Bulk Update Request + value: + form_factor: pcie + ids: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + - d63c8b0d-acb9-4c87-b4f7-656ecea5b02a + memory: 48 + priority: 60 + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + required: true + responses: + "200": + content: + application/json: + examples: + GPUBulkUpdateResponse: + summary: GPU Bulk Update Response + value: + count: 2 + result: Records updated successfully + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/gpus + /v1/inventory/gpus/stats/: + get: + operationId: inventory_gpus_stats_retrieve + responses: + "200": + description: No response body + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - inventory/gpus + /v1/inventory/instances/: + get: + operationId: inventory_instances_list + parameters: + - explode: true + in: query + name: cluster + required: false + schema: + format: uuid + type: string + style: form + - description: "Expand related field(s) instead of only showing a UUID (ex:\ + \ \"cluster\")." + explode: true + in: query + name: expand + required: false + schema: + type: string + style: form + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: instance_id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: "Search for instances by cluster, id, instance_id, name, state,\ + \ tags" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + explode: true + in: query + name: state + required: false + schema: + enum: + - running + - starting + - stopped + - stopping + - unknown + type: string + style: form + responses: + "200": + content: + application/json: + examples: + InstanceResponse: + summary: Instance Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: 2024-04-01T06:14:32.602Z + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: 2024-05-03T17:03:45.380Z + name: My GPU Cluster + state: running + state_modified: 2024-05-03T17:03:45.380Z + tags: + - gpu + schema: + $ref: '#/components/schemas/PaginatedInstanceList' + description: "" + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - inventory/instances + post: + operationId: inventory_instances_create + requestBody: + content: + application/json: + examples: + InstanceRequest: + summary: Instance Request + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + schema: + $ref: '#/components/schemas/Instance' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Instance' + multipart/form-data: + schema: + $ref: '#/components/schemas/Instance' + required: true + responses: + "201": + content: + application/json: + examples: + InstanceResponse: + summary: Instance Response + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: 2024-04-01T06:14:32.602Z + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: 2024-05-03T17:03:45.380Z + name: My GPU Cluster + state: running + state_modified: 2024-05-03T17:03:45.380Z + tags: + - gpu + schema: + $ref: '#/components/schemas/Instance' + description: "" + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - inventory/instances + /v1/inventory/instances/{id}/: + delete: + operationId: inventory_instances_destroy + parameters: + - description: A UUID string identifying this instance. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: No response body + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - inventory/instances + get: + operationId: inventory_instances_retrieve + parameters: + - description: "Expand related field(s) instead of only showing a UUID (ex:\ + \ \"cluster\")." + explode: true + in: query + name: expand + required: false + schema: + type: string + style: form + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: A UUID string identifying this instance. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + InstanceResponse: + summary: Instance Response + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: 2024-04-01T06:14:32.602Z + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: 2024-05-03T17:03:45.380Z + name: My GPU Cluster + state: running + state_modified: 2024-05-03T17:03:45.380Z + tags: + - gpu + schema: + $ref: '#/components/schemas/Instance' + description: "" + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - inventory/instances + patch: + operationId: inventory_instances_partial_update + parameters: + - description: A UUID string identifying this instance. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + InstanceRequest: + summary: Instance Request + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + schema: + $ref: '#/components/schemas/Instance' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Instance' + multipart/form-data: + schema: + $ref: '#/components/schemas/Instance' + required: true + responses: + "200": + content: + application/json: + examples: + InstanceResponse: + summary: Instance Response + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: 2024-04-01T06:14:32.602Z + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: 2024-05-03T17:03:45.380Z + name: My GPU Cluster + state: running + state_modified: 2024-05-03T17:03:45.380Z + tags: + - gpu + schema: + $ref: '#/components/schemas/Instance' + description: "" + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - inventory/instances + put: + operationId: inventory_instances_update + parameters: + - description: A UUID string identifying this instance. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + InstanceRequest: + summary: Instance Request + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + schema: + $ref: '#/components/schemas/Instance' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Instance' + multipart/form-data: + schema: + $ref: '#/components/schemas/Instance' + required: true + responses: + "200": + content: + application/json: + examples: + InstanceResponse: + summary: Instance Response + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: 2024-04-01T06:14:32.602Z + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: 2024-05-03T17:03:45.380Z + name: My GPU Cluster + state: running + state_modified: 2024-05-03T17:03:45.380Z + tags: + - gpu + schema: + $ref: '#/components/schemas/Instance' + description: "" + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - inventory/instances + /v1/inventory/instances/{id}/history/: + get: + operationId: inventory_instances_history_list + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + responses: + "200": + content: + application/json: + examples: + SuccessfulResponse: + summary: Successful Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: 2025-01-29T13:20:39.821Z + id: 123 + username: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + description: "" + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - inventory/instances + /v1/inventory/instances/bulk/: + patch: + operationId: inventory_instances_bulk_partial_update + requestBody: + content: + application/json: + examples: + InstanceBulkUpdateRequest: + summary: Instance Bulk Update Request + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + ids: + - 899d8680-454a-41f3-af99-9e0497ac955d + - 3280c16f-0e3e-4897-b8ba-7f66d40281bf + name: My GPU Cluster + state: running + tags: + - gpu + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + required: true + responses: + "200": + content: + application/json: + examples: + InstanceBulkUpdateResponse: + summary: Instance Bulk Update Response + value: + count: 2 + result: Records updated successfully + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + description: "" + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - inventory/instances + /v1/inventory/locations/: + get: + operationId: inventory_locations_list + parameters: + - description: "Expand related field(s) instead of only showing a UUID (ex:\ + \ \"provider\")." + explode: true + in: query + name: expand + required: false + schema: + type: string + style: form + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: provider + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: region + required: false + schema: + type: string + style: form + - description: "Search for locations by id, name, provider name, region" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + LocationResponse: + summary: Location Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: 2024-04-01T06:14:32.602Z + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: 2024-05-03T17:03:45.380Z + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + schema: + $ref: '#/components/schemas/PaginatedLocationList' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/locations + post: + operationId: inventory_locations_create + requestBody: + content: + application/json: + examples: + LocationRequest: + summary: Location Request + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + schema: + $ref: '#/components/schemas/Location' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Location' + multipart/form-data: + schema: + $ref: '#/components/schemas/Location' + required: true + responses: + "201": + content: + application/json: + examples: + LocationResponse: + summary: Location Response + value: + created: 2024-04-01T06:14:32.602Z + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: 2024-05-03T17:03:45.380Z + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + schema: + $ref: '#/components/schemas/Location' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/locations + /v1/inventory/locations/{id}/: + delete: + operationId: inventory_locations_destroy + parameters: + - description: A UUID string identifying this location. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: No response body + security: + - TokenAuthentication: [] + tags: + - inventory/locations + get: + operationId: inventory_locations_retrieve + parameters: + - description: "Expand related field(s) instead of only showing a UUID (ex:\ + \ \"provider\")." + explode: true + in: query + name: expand + required: false + schema: + type: string + style: form + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: A UUID string identifying this location. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + LocationResponse: + summary: Location Response + value: + created: 2024-04-01T06:14:32.602Z + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: 2024-05-03T17:03:45.380Z + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + schema: + $ref: '#/components/schemas/Location' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/locations + patch: + operationId: inventory_locations_partial_update + parameters: + - description: A UUID string identifying this location. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + LocationRequest: + summary: Location Request + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + schema: + $ref: '#/components/schemas/Location' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Location' + multipart/form-data: + schema: + $ref: '#/components/schemas/Location' + required: true + responses: + "200": + content: + application/json: + examples: + LocationResponse: + summary: Location Response + value: + created: 2024-04-01T06:14:32.602Z + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: 2024-05-03T17:03:45.380Z + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + schema: + $ref: '#/components/schemas/Location' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/locations + put: + operationId: inventory_locations_update + parameters: + - description: A UUID string identifying this location. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + LocationRequest: + summary: Location Request + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + schema: + $ref: '#/components/schemas/Location' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Location' + multipart/form-data: + schema: + $ref: '#/components/schemas/Location' + required: true + responses: + "200": + content: + application/json: + examples: + LocationResponse: + summary: Location Response + value: + created: 2024-04-01T06:14:32.602Z + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: 2024-05-03T17:03:45.380Z + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + schema: + $ref: '#/components/schemas/Location' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/locations + /v1/inventory/locations/{id}/history/: + get: + operationId: inventory_locations_history_list + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + responses: + "200": + content: + application/json: + examples: + SuccessfulResponse: + summary: Successful Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: 2025-01-29T13:20:39.821Z + id: 123 + username: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/locations + /v1/inventory/nodes/: + get: + operationId: inventory_nodes_list + parameters: + - explode: true + in: query + name: bmc_ip + required: false + schema: + type: string + style: form + - explode: true + in: query + name: bmc_mac + required: false + schema: + type: string + style: form + - explode: true + in: query + name: bmc_password + required: false + schema: + type: string + style: form + - explode: true + in: query + name: bmc_user + required: false + schema: + type: string + style: form + - explode: true + in: query + name: cluster + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: cpu + required: false + schema: + type: integer + style: form + - description: |- + Manufacturer of the node's CPU + + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + explode: true + in: query + name: cpu_manufacturer + required: false + schema: + enum: + - amd + - arm + - intel + nullable: true + type: string + style: form + - explode: true + in: query + name: cpu_model + required: false + schema: + type: string + style: form + - description: "Expand related field(s) instead of only showing a UUID. Separate\ + \ nested relationships with a period (ex: \"location.provider\"). Separate\ + \ multiple fields with a comma (ex: \"location,oem\")" + explode: true + in: query + name: expand + required: false + schema: + type: string + style: form + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: true + in: query + name: garage_id + required: false + schema: + type: string + style: form + - description: Multiple values may be separated by commas. + explode: false + in: query + name: gpu + required: false + schema: + items: + format: uuid + type: string + type: array + style: form + - description: Alias for GPU plan (i.e. installed GPU type and count) + explode: true + in: query + name: gpu_alias + required: false + schema: + type: string + style: form + - explode: true + in: query + name: gpu_count + required: false + schema: + type: integer + style: form + - description: Model of GPU(s) installed + explode: true + in: query + name: gpu_model + required: false + schema: + type: string + style: form + - explode: true + in: query + name: gpu_vbios + required: false + schema: + type: string + style: form + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: location + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: memory + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: mgmt_ip + required: false + schema: + type: string + style: form + - explode: true + in: query + name: mgmt_mac + required: false + schema: + type: string + style: form + - description: Only include nodes that have a gpu_count greater than or equal + to this value + explode: true + in: query + name: min_gpu_count + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: model + required: false + schema: + type: string + style: form + - description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + explode: true + in: query + name: network_type + required: false + schema: + enum: + - ethernet + - infiniband + type: string + style: form + - explode: true + in: query + name: oem + required: false + schema: + format: uuid + type: string + style: form + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: provider + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: provider_node_id + required: false + schema: + type: string + style: form + - explode: true + in: query + name: rack + required: false + schema: + type: string + style: form + - explode: true + in: query + name: rack_unit + required: false + schema: + type: integer + style: form + - description: "Search for nodes by bmc_ip, bmc_mac, bmc_password, bmc_user,\ + \ cpu_manufacturer, cpu_model, garage_id, gpu_alias, gpu model, gpu_vbios,\ + \ id, location name, location provider name, memory, mgmt_ip, mgmt_mac,\ + \ model, network_type, nic_prefixes, notes, oem name, provider_node_id,\ + \ rack, rack_unit, serial_number, storage, system_arch" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - explode: true + in: query + name: serial_number + required: false + schema: + type: string + style: form + - description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + explode: true + in: query + name: system_arch + required: false + schema: + enum: + - amd64 + - arm64 + type: string + style: form + - explode: true + in: query + name: tee + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + examples: + NodeResponse: + summary: Node Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: 2024-04-01T06:14:32.602Z + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: 2024-05-03T17:03:45.380Z + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + schema: + $ref: '#/components/schemas/PaginatedNodeList' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/nodes + post: + operationId: inventory_nodes_create + requestBody: + content: + application/json: + examples: + NodeRequest: + summary: Node Request + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + schema: + $ref: '#/components/schemas/Node' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Node' + multipart/form-data: + schema: + $ref: '#/components/schemas/Node' + required: true + responses: + "201": + content: + application/json: + examples: + NodeResponse: + summary: Node Response + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: 2024-04-01T06:14:32.602Z + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: 2024-05-03T17:03:45.380Z + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + schema: + $ref: '#/components/schemas/Node' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/nodes + /v1/inventory/nodes/{id}/: + delete: + operationId: inventory_nodes_destroy + parameters: + - description: A UUID string identifying this node. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: No response body + security: + - TokenAuthentication: [] + tags: + - inventory/nodes + get: + operationId: inventory_nodes_retrieve + parameters: + - description: "Expand related field(s) instead of only showing a UUID. Separate\ + \ nested relationships with a period (ex: \"location.provider\"). Separate\ + \ multiple fields with a comma (ex: \"location,oem\")" + explode: true + in: query + name: expand + required: false + schema: + type: string + style: form + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: A UUID string identifying this node. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + NodeResponse: + summary: Node Response + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: 2024-04-01T06:14:32.602Z + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: 2024-05-03T17:03:45.380Z + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + schema: + $ref: '#/components/schemas/Node' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/nodes + patch: + operationId: inventory_nodes_partial_update + parameters: + - description: A UUID string identifying this node. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + NodeRequest: + summary: Node Request + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + schema: + $ref: '#/components/schemas/Node' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Node' + multipart/form-data: + schema: + $ref: '#/components/schemas/Node' + required: true + responses: + "200": + content: + application/json: + examples: + NodeResponse: + summary: Node Response + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: 2024-04-01T06:14:32.602Z + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: 2024-05-03T17:03:45.380Z + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + schema: + $ref: '#/components/schemas/Node' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/nodes + put: + operationId: inventory_nodes_update + parameters: + - description: A UUID string identifying this node. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + NodeRequest: + summary: Node Request + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + schema: + $ref: '#/components/schemas/Node' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Node' + multipart/form-data: + schema: + $ref: '#/components/schemas/Node' + required: true + responses: + "200": + content: + application/json: + examples: + NodeResponse: + summary: Node Response + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: 2024-04-01T06:14:32.602Z + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: 2024-05-03T17:03:45.380Z + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + schema: + $ref: '#/components/schemas/Node' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/nodes + /v1/inventory/nodes/{id}/history/: + get: + operationId: inventory_nodes_history_list + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + responses: + "200": + content: + application/json: + examples: + SuccessfulResponse: + summary: Successful Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: 2025-01-29T13:20:39.821Z + id: 123 + username: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/nodes + /v1/inventory/nodes/bulk/: + patch: + operationId: inventory_nodes_bulk_partial_update + requestBody: + content: + application/json: + examples: + NodeBulkUpdateRequest: + summary: Node Bulk Update Request + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + ids: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + - 6fcf07f8-d821-48cf-b20e-b6eb65db9387 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + schema: + $ref: '#/components/schemas/NodeBulkUpdate' + required: true + responses: + "200": + content: + application/json: + examples: + NodeBulkUpdateResponse: + summary: Node Bulk Update Response + value: + count: 2 + result: Records updated successfully + schema: + $ref: '#/components/schemas/NodeBulkUpdate' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/nodes + post: + description: Create nodes in bulk via CSV file upload + operationId: inventory_nodes_bulk_create + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/catalog_experiences_bulk_create_request' + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/NodeBulk' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/nodes + /v1/inventory/oems/: + get: + operationId: inventory_oems_list + parameters: + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: "Search for oems by id, name" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + OEMResponse: + summary: OEM Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: 2024-04-01T06:14:32.602Z + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: 2024-05-03T17:03:45.380Z + name: My OEM + schema: + $ref: '#/components/schemas/PaginatedOEMList' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/oems + post: + operationId: inventory_oems_create + requestBody: + content: + application/json: + examples: + OEMRequest: + summary: OEM Request + value: + name: My OEM + schema: + $ref: '#/components/schemas/OEM' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/OEM' + multipart/form-data: + schema: + $ref: '#/components/schemas/OEM' + required: true + responses: + "201": + content: + application/json: + examples: + OEMResponse: + summary: OEM Response + value: + created: 2024-04-01T06:14:32.602Z + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: 2024-05-03T17:03:45.380Z + name: My OEM + schema: + $ref: '#/components/schemas/OEM' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/oems + /v1/inventory/oems/{id}/: + delete: + operationId: inventory_oems_destroy + parameters: + - description: A UUID string identifying this oem. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: No response body + security: + - TokenAuthentication: [] + tags: + - inventory/oems + get: + operationId: inventory_oems_retrieve + parameters: + - description: A UUID string identifying this oem. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + examples: + OEMResponse: + summary: OEM Response + value: + created: 2024-04-01T06:14:32.602Z + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: 2024-05-03T17:03:45.380Z + name: My OEM + schema: + $ref: '#/components/schemas/OEM' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/oems + patch: + operationId: inventory_oems_partial_update + parameters: + - description: A UUID string identifying this oem. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + OEMRequest: + summary: OEM Request + value: + name: My OEM + schema: + $ref: '#/components/schemas/OEM' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/OEM' + multipart/form-data: + schema: + $ref: '#/components/schemas/OEM' + required: true + responses: + "200": + content: + application/json: + examples: + OEMResponse: + summary: OEM Response + value: + created: 2024-04-01T06:14:32.602Z + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: 2024-05-03T17:03:45.380Z + name: My OEM + schema: + $ref: '#/components/schemas/OEM' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/oems + put: + operationId: inventory_oems_update + parameters: + - description: A UUID string identifying this oem. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + OEMRequest: + summary: OEM Request + value: + name: My OEM + schema: + $ref: '#/components/schemas/OEM' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/OEM' + multipart/form-data: + schema: + $ref: '#/components/schemas/OEM' + required: true + responses: + "200": + content: + application/json: + examples: + OEMResponse: + summary: OEM Response + value: + created: 2024-04-01T06:14:32.602Z + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: 2024-05-03T17:03:45.380Z + name: My OEM + schema: + $ref: '#/components/schemas/OEM' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/oems + /v1/inventory/oems/{id}/history/: + get: + operationId: inventory_oems_history_list + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + responses: + "200": + content: + application/json: + examples: + SuccessfulResponse: + summary: Successful Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: 2025-01-29T13:20:39.821Z + id: 123 + username: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/oems + /v1/inventory/providers/: + get: + operationId: inventory_providers_list + parameters: + - explode: true + in: query + name: display_name + required: false + schema: + type: string + style: form + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - explode: true + in: query + name: id + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: instance_limit + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: priority + required: false + schema: + type: integer + style: form + - description: "Search for providers by display_name, id, name" + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + ProviderResponse: + summary: Provider Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: 2024-04-01T06:14:32.602Z + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: 2024-05-03T17:03:45.380Z + name: my_provider + priority: 50 + schema: + $ref: '#/components/schemas/PaginatedProviderList' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/providers + post: + operationId: inventory_providers_create + requestBody: + content: + application/json: + examples: + ProviderRequest: + summary: Provider Request + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + schema: + $ref: '#/components/schemas/Provider' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Provider' + multipart/form-data: + schema: + $ref: '#/components/schemas/Provider' + required: true + responses: + "201": + content: + application/json: + examples: + ProviderResponse: + summary: Provider Response + value: + created: 2024-04-01T06:14:32.602Z + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: 2024-05-03T17:03:45.380Z + name: my_provider + priority: 50 + schema: + $ref: '#/components/schemas/Provider' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/providers + /v1/inventory/providers/{id}/: + delete: + operationId: inventory_providers_destroy + parameters: + - description: A UUID string identifying this provider. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: No response body + security: + - TokenAuthentication: [] + tags: + - inventory/providers + get: + operationId: inventory_providers_retrieve + parameters: + - description: Include only the specified fields in the response + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: A UUID string identifying this provider. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: Exclude the specified fields in the response + explode: true + in: query + name: omit + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + ProviderResponse: + summary: Provider Response + value: + created: 2024-04-01T06:14:32.602Z + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: 2024-05-03T17:03:45.380Z + name: my_provider + priority: 50 + schema: + $ref: '#/components/schemas/Provider' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/providers + patch: + operationId: inventory_providers_partial_update + parameters: + - description: A UUID string identifying this provider. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + ProviderRequest: + summary: Provider Request + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + schema: + $ref: '#/components/schemas/Provider' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Provider' + multipart/form-data: + schema: + $ref: '#/components/schemas/Provider' + required: true + responses: + "200": + content: + application/json: + examples: + ProviderResponse: + summary: Provider Response + value: + created: 2024-04-01T06:14:32.602Z + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: 2024-05-03T17:03:45.380Z + name: my_provider + priority: 50 + schema: + $ref: '#/components/schemas/Provider' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/providers + put: + operationId: inventory_providers_update + parameters: + - description: A UUID string identifying this provider. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + examples: + ProviderRequest: + summary: Provider Request + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + schema: + $ref: '#/components/schemas/Provider' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Provider' + multipart/form-data: + schema: + $ref: '#/components/schemas/Provider' + required: true + responses: + "200": + content: + application/json: + examples: + ProviderResponse: + summary: Provider Response + value: + created: 2024-04-01T06:14:32.602Z + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: 2024-05-03T17:03:45.380Z + name: my_provider + priority: 50 + schema: + $ref: '#/components/schemas/Provider' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/providers + /v1/inventory/providers/{id}/history/: + get: + operationId: inventory_providers_history_list + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + responses: + "200": + content: + application/json: + examples: + SuccessfulResponse: + summary: Successful Response + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: 2025-01-29T13:20:39.821Z + id: 123 + username: jane.doe@nvidia.com + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/providers + /v1/inventory/providers/bulk/: + patch: + operationId: inventory_providers_bulk_partial_update + requestBody: + content: + application/json: + examples: + ProviderBulkUpdateRequest: + summary: Provider Bulk Update Request + value: + display_name: My Provider + ids: + - f8bd1b72-c213-43ec-82ad-a56a44757a11 + - 5b528083-ab61-42dd-a6a1-90aa9babb014 + instance_limit: 250 + priority: 50 + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + required: true + responses: + "200": + content: + application/json: + examples: + ProviderBulkUpdateResponse: + summary: Provider Bulk Update Response + value: + count: 2 + result: Records updated successfully + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + description: "" + security: + - TokenAuthentication: [] + tags: + - inventory/providers + /v1/inventory/providers/stats/: + get: + operationId: inventory_providers_stats_retrieve + responses: + "200": + description: No response body + security: + - TokenAuthentication: [] + summary: "🚧 [Beta Feature]" + tags: + - inventory/providers +components: + schemas: + AuthLogin: + properties: + auth_code: + type: string + password: + type: string + username: + type: string + AuthRedirect: + example: + redirect: https://openapi-generator.tech + properties: + redirect: + format: uri + type: string + required: + - redirect + AuthToken: + example: + token: token + username: username + properties: + token: + readOnly: true + type: string + username: + readOnly: true + type: string + required: + - token + - username + BlankEnum: + enum: + - "" + type: string + x-enum-varnames: + - Blank + CategoryEnum: + description: |- + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + enum: + - AI + - Clara + - Data Science + - 3D Design Collaboration and Simulation + - Developer + - Infrastructure Optimization + type: string + x-enum-varnames: + - CategoryAI + - CategoryClara + - CategoryDataScience + - Category3DDesignCollaborationAndSimulation + - CategoryDeveloper + - CategoryInfrastructureOptimization + Cluster: + example: + mgmt_mac: mgmt_mac + vlan_id: 2308 + notes: notes + instances: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + last_used: 2000-01-23T04:56:07.000+00:00 + provider_capacity: true + available: true + free_by: 2000-01-23T04:56:07.000+00:00 + experience: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + enabled: true + netmask: 19 + gpu_alias: gpu_alias + modified: 2000-01-23T04:56:07.000+00:00 + reservation: true + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + node_count: 1 + persist: true + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workshop_id: workshop_id + provisioning_state: "" + mgmt_ip: mgmt_ip + created: 2000-01-23T04:56:07.000+00:00 + workshop: true + provisioning_attempts: 1280358508 + tenant_ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + provision_user: provision_user + nodes: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + gpu_count: 0 + gpus: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + bastion_name: bastion_name + public_address: public_address + maintenance: true + request_id: request_id + properties: + available: + description: Is the cluster currently available for provisioning? + readOnly: true + type: boolean + bastion_name: + description: Name of the bastion assigned to the cluster + maxLength: 32 + nullable: true + type: string + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + deployment: + $ref: '#/components/schemas/Cluster_deployment' + enabled: + description: Is the cluster administratively enabled? + type: boolean + experience: + description: Experience provisioned onto this cluster + format: uuid + nullable: true + type: string + free_by: + format: date-time + nullable: true + type: string + gpus: + items: + $ref: '#/components/schemas/Cluster_gpus_inner' + type: array + x-go-json-tag: "gpus,omitempty" + gpu_alias: + description: Alias for GPU plan (i.e. installed GPU type and count) + readOnly: true + type: string + gpu_count: + readOnly: true + type: integer + id: + format: uuid + readOnly: true + type: string + instances: + items: + $ref: '#/components/schemas/Cluster_instances_inner' + type: array + x-go-json-tag: "instances,omitempty" + last_used: + description: Timestamp of when the cluster was last in use + format: date-time + nullable: true + readOnly: true + type: string + maintenance: + description: Is the cluster in maintenance mode? + type: boolean + mgmt_ip: + description: Management IP address + type: string + mgmt_mac: + description: Management MAC address + maxLength: 17 + minLength: 17 + nullable: true + type: string + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + netmask: + description: The subnet mask of the cluster's public IP address in CIDR + notation + maximum: 32 + minimum: 0 + nullable: true + type: integer + node_count: + readOnly: true + type: integer + nodes: + items: + $ref: '#/components/schemas/Cluster_nodes_inner' + type: array + x-go-json-tag: "nodes,omitempty" + notes: + description: Administrative comments about the cluster + nullable: true + type: string + persist: + description: Is the cluster exempt from provisioning_state timeouts? Can + be used to ensure the cluster persists after a provisioning failure. + type: boolean + provider_capacity: + description: Does the provider have capacity to provision this cluster? + readOnly: true + type: boolean + provision_user: + description: Username used for provisioning this cluster + maxLength: 64 + nullable: true + type: string + provisioning_attempts: + description: The number of attempts that have been made to provision this + cluster. Automatically resets to 0 after successful provisioning. + maximum: 2147483647 + minimum: 0 + type: integer + provisioning_state: + allOf: + - $ref: '#/components/schemas/ProvisioningStateEnum' + description: |- + Is the cluster currently provisioned? + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + public_address: + description: Public IP address or fully-qualified domain name of this cluster + maxLength: 255 + nullable: true + type: string + request_id: + description: "The request ID for the lab that is currently provisioned on\ + \ this cluster (ex: TRY-1234)" + maxLength: 32 + nullable: true + type: string + reservation: + description: Is the cluster a static reservation from its provider? + type: boolean + tenant_ids: + description: Tenant UUID(s) that have been generated for this cluster during + provisioning + items: + format: uuid + type: string + type: array + vlan_id: + description: VLAN number + maximum: 4094 + minimum: 1 + type: integer + workshop: + description: Is the cluster set aside for use in a workshop? + type: boolean + workshop_id: + description: Identifier of the workshop this cluster is set aside for + maxLength: 64 + nullable: true + type: string + required: + - available + - created + - deployment + - gpus + - id + - instances + - last_used + - modified + - provider_capacity + - tenant_ids + ClusterBulkUpdate: + example: + mgmt_mac: mgmt_mac + vlan_id: 2308 + notes: notes + instances: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + last_used: 2000-01-23T04:56:07.000+00:00 + provider_capacity: true + available: true + free_by: 2000-01-23T04:56:07.000+00:00 + experience: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + enabled: true + result: result + netmask: 19 + gpu_alias: gpu_alias + modified: 2000-01-23T04:56:07.000+00:00 + reservation: true + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + node_count: 1 + persist: true + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workshop_id: workshop_id + provisioning_state: "" + mgmt_ip: mgmt_ip + created: 2000-01-23T04:56:07.000+00:00 + workshop: true + provisioning_attempts: 1280358508 + count: 2 + tenant_ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + provision_user: provision_user + nodes: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + gpu_count: 0 + gpus: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + bastion_name: bastion_name + ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + public_address: public_address + maintenance: true + request_id: request_id + properties: + available: + description: Is the cluster currently available for provisioning? + readOnly: true + type: boolean + writeOnly: true + bastion_name: + description: Name of the bastion assigned to the cluster + maxLength: 32 + nullable: true + type: string + writeOnly: true + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + writeOnly: true + deployment: + $ref: '#/components/schemas/Cluster_deployment' + enabled: + description: Is the cluster administratively enabled? + type: boolean + writeOnly: true + experience: + description: Experience provisioned onto this cluster + format: uuid + nullable: true + type: string + writeOnly: true + free_by: + format: date-time + nullable: true + type: string + writeOnly: true + gpus: + items: + $ref: '#/components/schemas/Cluster_gpus_inner' + type: array + x-go-json-tag: "gpus,omitempty" + gpu_alias: + description: Alias for GPU plan (i.e. installed GPU type and count) + readOnly: true + type: string + writeOnly: true + gpu_count: + readOnly: true + type: integer + writeOnly: true + id: + format: uuid + readOnly: true + type: string + writeOnly: true + instances: + items: + $ref: '#/components/schemas/Cluster_instances_inner' + type: array + x-go-json-tag: "instances,omitempty" + last_used: + description: Timestamp of when the cluster was last in use + format: date-time + nullable: true + readOnly: true + type: string + writeOnly: true + maintenance: + description: Is the cluster in maintenance mode? + type: boolean + writeOnly: true + mgmt_ip: + description: Management IP address + type: string + writeOnly: true + mgmt_mac: + description: Management MAC address + maxLength: 17 + minLength: 17 + nullable: true + type: string + writeOnly: true + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + writeOnly: true + netmask: + description: The subnet mask of the cluster's public IP address in CIDR + notation + maximum: 32 + minimum: 0 + nullable: true + type: integer + writeOnly: true + node_count: + readOnly: true + type: integer + writeOnly: true + nodes: + items: + $ref: '#/components/schemas/Cluster_nodes_inner' + type: array + x-go-json-tag: "nodes,omitempty" + notes: + description: Administrative comments about the cluster + nullable: true + type: string + writeOnly: true + persist: + description: Is the cluster exempt from provisioning_state timeouts? Can + be used to ensure the cluster persists after a provisioning failure. + type: boolean + writeOnly: true + provider_capacity: + description: Does the provider have capacity to provision this cluster? + readOnly: true + type: boolean + writeOnly: true + provision_user: + description: Username used for provisioning this cluster + maxLength: 64 + nullable: true + type: string + writeOnly: true + provisioning_attempts: + description: The number of attempts that have been made to provision this + cluster. Automatically resets to 0 after successful provisioning. + maximum: 2147483647 + minimum: 0 + type: integer + writeOnly: true + provisioning_state: + allOf: + - $ref: '#/components/schemas/ProvisioningStateEnum' + description: |- + Is the cluster currently provisioned? + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + writeOnly: true + public_address: + description: Public IP address or fully-qualified domain name of this cluster + maxLength: 255 + nullable: true + readOnly: true + type: string + writeOnly: true + request_id: + description: "The request ID for the lab that is currently provisioned on\ + \ this cluster (ex: TRY-1234)" + maxLength: 32 + nullable: true + readOnly: true + type: string + writeOnly: true + reservation: + description: Is the cluster a static reservation from its provider? + type: boolean + writeOnly: true + tenant_ids: + description: Tenant UUID(s) that have been generated for this cluster during + provisioning + items: + format: uuid + type: string + type: array + vlan_id: + description: VLAN number + maximum: 4094 + minimum: 1 + type: integer + writeOnly: true + workshop: + description: Is the cluster set aside for use in a workshop? + type: boolean + writeOnly: true + workshop_id: + description: Identifier of the workshop this cluster is set aside for + maxLength: 64 + nullable: true + type: string + writeOnly: true + count: + readOnly: true + type: integer + ids: + items: + format: uuid + type: string + type: array + result: + readOnly: true + type: string + required: + - available + - count + - created + - deployment + - gpu_alias + - gpu_count + - gpus + - id + - ids + - instances + - last_used + - modified + - node_count + - provider_capacity + - public_address + - request_id + - result + - tenant_ids + CpuManufacturerEnum: + description: |- + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + enum: + - amd + - arm + - intel + type: string + x-enum-varnames: + - CpuManufacturerAMD + - CpuManufacturerARM + - CpuManufacturerIntel + Deployment: + example: + public_key: public_key + cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + sales_owner_email: sales_owner_email + lifetime: 1294386358 + pipeline_branch: pipeline_branch + gpu_os_name: gpu_os_name + experience: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + experience_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + pipelines: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + oem_name: oem_name + gpu_alias: gpu_alias + retry_count: 2 + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + state: "" + requester_name: requester_name + collection_branch: collection_branch + workshop_id: workshop_id + persona: persona + ssh_port: 7 + created: 2000-01-23T04:56:07.000+00:00 + workshop: true + requester_email: requester_email + ip_allowlist: + - ip_allowlist + - ip_allowlist + priority: "" + tags: "" + catalog_id: catalog_id + gpu_count: 1 + min_gpu_count: 2 + catalog_id_alias: catalog_id_alias + region: region + gpu_model: gpu_model + gpu_os_version: gpu_os_version + platform: air + bastion_operating_system: bastion_operating_system + expires_at: 2000-01-23T04:56:07.000+00:00 + workshop_override_password: workshop_override_password + experience_branch: experience_branch + gc_branch: gc_branch + gpu_os_release: gpu_os_release + node_count: 1280358508 + org_name: org_name + provider_name: provider_name + sales_id: sales_id + ssh_user: ssh_user + flightcontrol_release: flightcontrol_release + sales_created_date: 2000-01-23T04:56:07.000+00:00 + sales_owner_name: sales_owner_name + overrides: "" + services: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + persist_on_failure: true + pipeline: 5199562221600970752 + garage_id: garage_id + request_id: request_id + properties: + bastion_operating_system: + description: Override bastion operating system provisioned and/or configured + by Liftoff + maxLength: 32 + nullable: true + type: string + catalog_id: + description: Unique ID for this experience in the sales catalog. Must be + unique. + type: string + writeOnly: true + catalog_id_alias: + description: "Human-readable identifier for the experience in the sales\ + \ catalog (ex: LP-15). Must be unique." + nullable: true + type: string + writeOnly: true + cluster: + $ref: '#/components/schemas/Deployment_cluster' + collection_branch: + description: Override the Ansible collection branch initialized within the + pipeline + maxLength: 255 + nullable: true + type: string + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + experience: + $ref: '#/components/schemas/Deployment_experience' + experience_branch: + description: Override the experience branch + maxLength: 255 + nullable: true + type: string + experience_id: + format: uuid + type: string + writeOnly: true + expires_at: + format: date-time + nullable: true + type: string + flightcontrol_release: + description: Override the image tag used for Flight Control + maxLength: 64 + nullable: true + type: string + garage_id: + description: Require a cluster with nodes in the given garage + maxLength: 128 + nullable: true + type: string + gc_branch: + description: Override the default Ground Control branch + maxLength: 255 + nullable: true + type: string + gpu_alias: + description: Require a cluster with the given GPU alias + maxLength: 64 + nullable: true + type: string + gpu_count: + description: Require a cluster with the given number of GPUs + maximum: 16 + minimum: 0 + nullable: true + type: integer + gpu_model: + description: Require a cluster with the given GPU model + maxLength: 32 + nullable: true + type: string + gpu_os_name: + type: string + gpu_os_release: + type: string + gpu_os_version: + type: string + id: + format: uuid + readOnly: true + type: string + ip_allowlist: + description: Host IP addresses that should be allowed to access the deployment + items: + type: string + type: array + lifetime: + description: Set expires_at value to be a given number of days from the + current time. A value of 0 will cause a deployment to remain active indefinitely. + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + min_gpu_count: + description: Require a cluster whose GPU count is greater than or equal + to the given number + maximum: 16 + minimum: 0 + nullable: true + type: integer + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + node_count: + description: Require a cluster with the given number of nodes + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + oem_name: + description: Require a cluster manufactured by the given OEM name + maxLength: 64 + nullable: true + type: string + org_name: + description: Requester's organization name + type: string + overrides: {} + persist_on_failure: + description: Override the default cleanup/destroy behavior when a provisioning + failure occurs + nullable: true + type: boolean + persona: + type: string + pipeline: + description: Override the pipeline ID that will be triggered for request + fulfillment + format: int64 + maximum: 9223372036854775807 + minimum: 0 + nullable: true + type: integer + pipeline_branch: + description: Override the default pipeline branch ref used when triggering + a Fuselage pipeline + maxLength: 255 + nullable: true + type: string + pipelines: + items: + format: uuid + type: string + type: array + platform: + $ref: '#/components/schemas/PlatformEnum' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + description: Require a cluster from the given provider name + maxLength: 64 + nullable: true + type: string + public_key: + description: The initial or administrative public key used during deployment + creation. Additional keys can be authorized for access using the `ssh-keys` + endpoint. + nullable: true + type: string + writeOnly: true + region: + description: Require a cluster located in the given region + maxLength: 64 + nullable: true + type: string + request_id: + description: "Trial request ID (ex: TRY-1234)" + type: string + requester_email: + description: Email address of the user requesting the experience + format: email + maxLength: 254 + type: string + requester_name: + description: Name of the user requesting the experience + maxLength: 255 + type: string + retry_count: + description: Number of times the deployment has been retried + readOnly: true + type: integer + sales_created_date: + format: date-time + nullable: true + type: string + sales_id: + description: Unique identifier for the requester's sales relationship + maxLength: 32 + nullable: true + type: string + sales_owner_email: + description: Email address of the sales contact associated with the requester + format: email + maxLength: 254 + nullable: true + type: string + sales_owner_name: + description: Name of the sales contact associated with the requester + maxLength: 255 + nullable: true + type: string + services: + items: + format: uuid + type: string + type: array + ssh_port: + readOnly: true + type: integer + ssh_user: + readOnly: true + type: string + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + readOnly: true + tags: {} + workshop: + description: Require a cluster whose workshop flag is set + nullable: true + type: boolean + workshop_id: + description: Require a cluster with the given workshop ID + maxLength: 64 + nullable: true + type: string + workshop_override_password: + description: Override the deployment's default authentication to use a static + password. This is useful for workshops when you'd like an identical password + associated with a collection of environments. (LaunchPad Team only) + maxLength: 64 + nullable: true + type: string + required: + - created + - id + - modified + - org_name + - overrides + - pipelines + - requester_email + - requester_name + - retry_count + - services + - ssh_port + - ssh_user + - state + DeploymentBulkUpdate: + example: + public_key: public_key + cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + sales_owner_email: sales_owner_email + lifetime: 6 + pipeline_branch: pipeline_branch + gpu_os_name: gpu_os_name + experience: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + pipelines: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + oem_name: oem_name + gpu_alias: gpu_alias + retry_count: 494379917 + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + state: "" + requester_name: requester_name + collection_branch: collection_branch + workshop_id: workshop_id + persona: persona + created: 2000-01-23T04:56:07.000+00:00 + workshop: true + count: 7 + requester_email: requester_email + ip_allowlist: + - ip_allowlist + - ip_allowlist + priority: "" + tags: "" + gpu_count: 0 + ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + min_gpu_count: 1 + region: region + gpu_model: gpu_model + gpu_os_version: gpu_os_version + platform: air + bastion_operating_system: bastion_operating_system + result: result + expires_at: 2000-01-23T04:56:07.000+00:00 + workshop_override_password: workshop_override_password + experience_branch: experience_branch + gc_branch: gc_branch + gpu_os_release: gpu_os_release + node_count: 5 + org_name: org_name + provider_name: provider_name + sales_id: sales_id + flightcontrol_release: flightcontrol_release + sales_created_date: 2000-01-23T04:56:07.000+00:00 + sales_owner_name: sales_owner_name + overrides: "" + services: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + persist_on_failure: true + pipeline: 5199562221600970752 + garage_id: garage_id + request_id: request_id + properties: + bastion_operating_system: + description: Override bastion operating system provisioned and/or configured + by Liftoff + nullable: true + readOnly: true + type: string + writeOnly: true + cluster: + description: The cluster where the experience has been deployed + format: uuid + nullable: true + readOnly: true + type: string + writeOnly: true + collection_branch: + description: Override the Ansible collection branch initialized within the + pipeline + maxLength: 255 + nullable: true + type: string + writeOnly: true + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + writeOnly: true + experience: + $ref: '#/components/schemas/Deployment_experience' + experience_branch: + description: Override the experience branch + maxLength: 255 + nullable: true + type: string + writeOnly: true + expires_at: + format: date-time + nullable: true + type: string + writeOnly: true + flightcontrol_release: + description: Override the image tag used for Flight Control + maxLength: 64 + nullable: true + type: string + writeOnly: true + garage_id: + description: Require a cluster with nodes in the given garage + nullable: true + readOnly: true + type: string + writeOnly: true + gc_branch: + description: Override the default Ground Control branch + maxLength: 255 + nullable: true + type: string + writeOnly: true + gpu_alias: + description: Require a cluster with the given GPU alias + nullable: true + readOnly: true + type: string + writeOnly: true + gpu_count: + description: Require a cluster with the given number of GPUs + nullable: true + readOnly: true + type: integer + writeOnly: true + gpu_model: + description: Require a cluster with the given GPU model + nullable: true + readOnly: true + type: string + writeOnly: true + gpu_os_name: + description: Override the GPU node operating system name + nullable: true + readOnly: true + type: string + writeOnly: true + gpu_os_release: + description: Override the GPU node operating system release + nullable: true + readOnly: true + type: string + writeOnly: true + gpu_os_version: + description: Override the GPU node operating system version + nullable: true + readOnly: true + type: string + writeOnly: true + id: + format: uuid + readOnly: true + type: string + writeOnly: true + ip_allowlist: + description: Host IP addresses that should be allowed to access the deployment + items: + type: string + type: array + lifetime: + description: Set expires_at value to be a given number of days from the + current time. A value of 0 will cause a deployment to remain active indefinitely. + nullable: true + readOnly: true + type: integer + writeOnly: true + min_gpu_count: + description: Require a cluster whose GPU count is greater than or equal + to the given number + nullable: true + readOnly: true + type: integer + writeOnly: true + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + writeOnly: true + node_count: + description: Require a cluster with the given number of nodes + nullable: true + readOnly: true + type: integer + writeOnly: true + oem_name: + description: Require a cluster manufactured by the given OEM name + nullable: true + readOnly: true + type: string + writeOnly: true + org_name: + description: Requester's organization name + type: string + writeOnly: true + overrides: {} + persist_on_failure: + description: Override the default cleanup/destroy behavior when a provisioning + failure occurs + nullable: true + type: boolean + writeOnly: true + persona: + description: Override the defined persona in the experience + maxLength: 32 + nullable: true + type: string + writeOnly: true + pipeline: + description: Override the pipeline ID that will be triggered for request + fulfillment + format: int64 + maximum: 9223372036854775807 + minimum: 0 + nullable: true + type: integer + writeOnly: true + pipeline_branch: + description: Override the default pipeline branch ref used when triggering + a Fuselage pipeline + maxLength: 255 + nullable: true + type: string + writeOnly: true + pipelines: + items: + format: uuid + type: string + type: array + platform: + $ref: '#/components/schemas/PlatformEnum' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + readOnly: true + writeOnly: true + provider_name: + description: Require a cluster from the given provider name + nullable: true + readOnly: true + type: string + writeOnly: true + public_key: + description: The initial or administrative public key used during deployment + creation. Additional keys can be authorized for access using the `ssh-keys` + endpoint. + nullable: true + readOnly: true + type: string + writeOnly: true + region: + description: Require a cluster located in the given region + nullable: true + readOnly: true + type: string + writeOnly: true + request_id: + description: "Trial request ID (ex: TRY-1234)" + readOnly: true + type: string + writeOnly: true + requester_email: + description: Email address of the user requesting the experience + type: string + writeOnly: true + requester_name: + description: Name of the user requesting the experience + type: string + writeOnly: true + retry_count: + description: Number of times the deployment has been retried + maximum: 2147483647 + minimum: 0 + type: integer + writeOnly: true + sales_created_date: + description: Timestamp when the requester's sales relationship was created + format: date-time + nullable: true + readOnly: true + type: string + writeOnly: true + sales_id: + description: Unique identifier for the requester's sales relationship + nullable: true + readOnly: true + type: string + writeOnly: true + sales_owner_email: + description: Email address of the sales contact associated with the requester + format: email + maxLength: 254 + nullable: true + type: string + writeOnly: true + sales_owner_name: + description: Name of the sales contact associated with the requester + maxLength: 255 + nullable: true + type: string + writeOnly: true + services: + items: + format: uuid + type: string + type: array + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + writeOnly: true + tags: {} + workshop: + description: Require a cluster whose workshop flag is set + nullable: true + readOnly: true + type: boolean + writeOnly: true + workshop_id: + description: Require a cluster with the given workshop ID + nullable: true + readOnly: true + type: string + writeOnly: true + workshop_override_password: + description: Override the deployment's default authentication to use a static + password. This is useful for workshops when you'd like an identical password + associated with a collection of environments. (LaunchPad Team only) + nullable: true + readOnly: true + type: string + writeOnly: true + count: + readOnly: true + type: integer + ids: + items: + format: uuid + type: string + type: array + result: + readOnly: true + type: string + required: + - bastion_operating_system + - cluster + - count + - created + - experience + - garage_id + - gpu_alias + - gpu_count + - gpu_model + - gpu_os_name + - gpu_os_release + - gpu_os_version + - id + - ids + - lifetime + - min_gpu_count + - modified + - node_count + - oem_name + - overrides + - pipelines + - priority + - provider_name + - public_key + - region + - request_id + - result + - sales_created_date + - sales_id + - services + - workshop + - workshop_id + - workshop_override_password + DeploymentInstance: + example: + instance_id: instance_id + created: 2000-01-23T04:56:07.000+00:00 + state_modified: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + state: "" + tags: + - tags + - tags + properties: + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + id: + format: uuid + readOnly: true + type: string + instance_id: + description: Unique ID for this instance assigned by its provider + readOnly: true + type: string + name: + description: User-friendly name of this instance + nullable: true + readOnly: true + type: string + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + state: + allOf: + - $ref: '#/components/schemas/InstanceState' + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + readOnly: true + state_modified: + format: date-time + readOnly: true + type: string + tags: + description: Tags associated with this instance + items: + maxLength: 64 + type: string + type: array + required: + - created + - id + - instance_id + - modified + - name + - state + - state_modified + - tags + DeploymentKey: + example: + public_key: public_key + created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + deployment: + $ref: '#/components/schemas/Cluster_deployment' + id: + format: uuid + readOnly: true + type: string + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + name: + description: Descriptive name for the SSH public key + maxLength: 64 + type: string + public_key: + description: An SSH public key that should be authorized to access the deployment + type: string + writeOnly: true + required: + - created + - deployment + - id + - modified + - name + - public_key + DeploymentNote: + example: + created: 2000-01-23T04:56:07.000+00:00 + modified_by: modified_by + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + created_by: created_by + content: content + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + content: + description: Text content of the note + type: string + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + created_by: + readOnly: true + type: string + deployment: + $ref: '#/components/schemas/Cluster_deployment' + id: + format: uuid + readOnly: true + type: string + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + modified_by: + readOnly: true + type: string + required: + - created + - created_by + - deployment + - id + - modified + - modified_by + DeploymentPipeline: + example: + created: 2000-01-23T04:56:07.000+00:00 + pipeline_id: 738633633822310400 + action: "" + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + url: https://openapi-generator.tech + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + action: + allOf: + - $ref: '#/components/schemas/DeploymentPipelineActionEnum' + description: |- + Action for the pipeline to run + + * `apply` - apply + * `destroy` - destroy + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + deployment: + $ref: '#/components/schemas/Cluster_deployment' + id: + format: uuid + readOnly: true + type: string + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + pipeline_id: + description: GitLab pipeline ID + format: int64 + maximum: 9223372036854775807 + minimum: 0 + type: integer + url: + description: URL for the pipeline details + format: uri + maxLength: 200 + type: string + required: + - action + - created + - deployment + - id + - modified + - pipeline_id + - url + DeploymentPipelineActionEnum: + description: |- + * `apply` - apply + * `destroy` - destroy + enum: + - apply + - destroy + type: string + x-enum-varnames: + - DeploymentPipelineActionApply + - DeploymentPipelineActionDestroy + DeploymentService: + example: + created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + url: https://openapi-generator.tech + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + deployment: + $ref: '#/components/schemas/Cluster_deployment' + id: + format: uuid + readOnly: true + type: string + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + name: + description: Name of the service + maxLength: 32 + type: string + url: + description: URL used to reach the service + format: uri + maxLength: 200 + type: string + required: + - created + - deployment + - id + - modified + - name + - url + DeploymentState: + description: |- + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + enum: + - destroyed + - destroying + - error + - failed + - paused + - ready + - retrying + - starting + - stopped + - stopping + - waiting + type: string + x-enum-varnames: + - DeploymentStateDestroyed + - DeploymentStateDestroying + - DeploymentStateError + - DeploymentStateFailed + - DeploymentStatePaused + - DeploymentStateReady + - DeploymentStateRetrying + - DeploymentStateStarting + - DeploymentStateStopped + - DeploymentStateStopping + - DeploymentStateWaiting + DeploymentTask: + example: + retries: 0 + created: 2000-01-23T04:56:07.000+00:00 + action: "" + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status_text: status_text + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status: "" + properties: + action: + allOf: + - $ref: '#/components/schemas/DeploymentTaskActionEnum' + description: |- + The action the task will perform + + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + deployment: + $ref: '#/components/schemas/Cluster_deployment' + id: + format: uuid + readOnly: true + type: string + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + retries: + description: Number of times the task has been retried + readOnly: true + type: integer + status: + allOf: + - $ref: '#/components/schemas/StatusEnum' + description: |- + Current status of the task + + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + readOnly: true + status_text: + description: Messages related to the current task status + readOnly: true + type: string + required: + - action + - created + - deployment + - id + - modified + - retries + - status + - status_text + DeploymentTaskActionEnum: + description: |- + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + enum: + - start_instances + - stop_instances + type: string + x-enum-varnames: + - DeploymentTaskActionStartInstances + - DeploymentTaskActionStopInstances + DeploymentUpdate: + example: + public_key: public_key + cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + sales_owner_email: sales_owner_email + lifetime: 6 + pipeline_branch: pipeline_branch + gpu_os_name: gpu_os_name + experience: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + pipelines: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + oem_name: oem_name + gpu_alias: gpu_alias + retry_count: 494379917 + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + state: "" + requester_name: requester_name + collection_branch: collection_branch + workshop_id: workshop_id + persona: persona + created: 2000-01-23T04:56:07.000+00:00 + workshop: true + requester_email: requester_email + ip_allowlist: + - ip_allowlist + - ip_allowlist + priority: "" + tags: "" + gpu_count: 0 + min_gpu_count: 1 + region: region + gpu_model: gpu_model + gpu_os_version: gpu_os_version + platform: air + bastion_operating_system: bastion_operating_system + expires_at: 2000-01-23T04:56:07.000+00:00 + workshop_override_password: workshop_override_password + experience_branch: experience_branch + gc_branch: gc_branch + gpu_os_release: gpu_os_release + node_count: 5 + org_name: org_name + provider_name: provider_name + sales_id: sales_id + flightcontrol_release: flightcontrol_release + sales_created_date: 2000-01-23T04:56:07.000+00:00 + sales_owner_name: sales_owner_name + overrides: "" + services: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + persist_on_failure: true + pipeline: 5199562221600970752 + garage_id: garage_id + request_id: request_id + properties: + bastion_operating_system: + description: Override bastion operating system provisioned and/or configured + by Liftoff + nullable: true + readOnly: true + type: string + cluster: + description: The cluster where the experience has been deployed + format: uuid + nullable: true + readOnly: true + type: string + collection_branch: + description: Override the Ansible collection branch initialized within the + pipeline + maxLength: 255 + nullable: true + type: string + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + experience: + $ref: '#/components/schemas/Deployment_experience' + experience_branch: + description: Override the experience branch + maxLength: 255 + nullable: true + type: string + expires_at: + format: date-time + nullable: true + type: string + flightcontrol_release: + description: Override the image tag used for Flight Control + maxLength: 64 + nullable: true + type: string + garage_id: + description: Require a cluster with nodes in the given garage + nullable: true + readOnly: true + type: string + gc_branch: + description: Override the default Ground Control branch + maxLength: 255 + nullable: true + type: string + gpu_alias: + description: Require a cluster with the given GPU alias + nullable: true + readOnly: true + type: string + gpu_count: + description: Require a cluster with the given number of GPUs + nullable: true + readOnly: true + type: integer + gpu_model: + description: Require a cluster with the given GPU model + nullable: true + readOnly: true + type: string + gpu_os_name: + description: Override the GPU node operating system name + nullable: true + readOnly: true + type: string + gpu_os_release: + description: Override the GPU node operating system release + nullable: true + readOnly: true + type: string + gpu_os_version: + description: Override the GPU node operating system version + nullable: true + readOnly: true + type: string + id: + format: uuid + readOnly: true + type: string + ip_allowlist: + description: Host IP addresses that should be allowed to access the deployment + items: + type: string + type: array + lifetime: + description: Set expires_at value to be a given number of days from the + current time. A value of 0 will cause a deployment to remain active indefinitely. + nullable: true + readOnly: true + type: integer + min_gpu_count: + description: Require a cluster whose GPU count is greater than or equal + to the given number + nullable: true + readOnly: true + type: integer + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + node_count: + description: Require a cluster with the given number of nodes + nullable: true + readOnly: true + type: integer + oem_name: + description: Require a cluster manufactured by the given OEM name + nullable: true + readOnly: true + type: string + org_name: + description: Requester's organization name + type: string + overrides: {} + persist_on_failure: + description: Override the default cleanup/destroy behavior when a provisioning + failure occurs + nullable: true + type: boolean + persona: + description: Override the defined persona in the experience + maxLength: 32 + nullable: true + type: string + pipeline: + description: Override the pipeline ID that will be triggered for request + fulfillment + format: int64 + maximum: 9223372036854775807 + minimum: 0 + nullable: true + type: integer + pipeline_branch: + description: Override the default pipeline branch ref used when triggering + a Fuselage pipeline + maxLength: 255 + nullable: true + type: string + pipelines: + items: + format: uuid + type: string + type: array + platform: + $ref: '#/components/schemas/PlatformEnum' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + readOnly: true + provider_name: + description: Require a cluster from the given provider name + nullable: true + readOnly: true + type: string + public_key: + description: The initial or administrative public key used during deployment + creation. Additional keys can be authorized for access using the `ssh-keys` + endpoint. + nullable: true + readOnly: true + type: string + region: + description: Require a cluster located in the given region + nullable: true + readOnly: true + type: string + request_id: + description: "Trial request ID (ex: TRY-1234)" + readOnly: true + type: string + requester_email: + description: Email address of the user requesting the experience + type: string + requester_name: + description: Name of the user requesting the experience + type: string + retry_count: + description: Number of times the deployment has been retried + maximum: 2147483647 + minimum: 0 + type: integer + sales_created_date: + description: Timestamp when the requester's sales relationship was created + format: date-time + nullable: true + readOnly: true + type: string + sales_id: + description: Unique identifier for the requester's sales relationship + nullable: true + readOnly: true + type: string + sales_owner_email: + description: Email address of the sales contact associated with the requester + format: email + maxLength: 254 + nullable: true + type: string + sales_owner_name: + description: Name of the sales contact associated with the requester + maxLength: 255 + nullable: true + type: string + services: + items: + format: uuid + type: string + type: array + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: {} + workshop: + description: Require a cluster whose workshop flag is set + nullable: true + readOnly: true + type: boolean + workshop_id: + description: Require a cluster with the given workshop ID + nullable: true + readOnly: true + type: string + workshop_override_password: + description: Override the deployment's default authentication to use a static + password. This is useful for workshops when you'd like an identical password + associated with a collection of environments. (LaunchPad Team only) + nullable: true + readOnly: true + type: string + required: + - bastion_operating_system + - cluster + - created + - experience + - garage_id + - gpu_alias + - gpu_count + - gpu_model + - gpu_os_name + - gpu_os_release + - gpu_os_version + - id + - lifetime + - min_gpu_count + - modified + - node_count + - oem_name + - overrides + - pipelines + - priority + - provider_name + - public_key + - region + - request_id + - sales_created_date + - sales_id + - services + - workshop + - workshop_id + - workshop_override_password + DocDeploymentDelete: + example: + public_key: public_key + cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + sales_owner_email: sales_owner_email + lifetime: 1294386358 + pipeline_branch: pipeline_branch + gpu_os_name: gpu_os_name + experience: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + experience_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + pipelines: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + oem_name: oem_name + gpu_alias: gpu_alias + retry_count: 2 + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + state: "" + requester_name: requester_name + collection_branch: collection_branch + workshop_id: workshop_id + persona: persona + ssh_port: 7 + created: 2000-01-23T04:56:07.000+00:00 + workshop: true + requester_email: requester_email + ip_allowlist: + - ip_allowlist + - ip_allowlist + priority: "" + tags: "" + catalog_id: catalog_id + gpu_count: 1 + min_gpu_count: 2 + catalog_id_alias: catalog_id_alias + region: region + gpu_model: gpu_model + gpu_os_version: gpu_os_version + platform: air + bastion_operating_system: bastion_operating_system + expires_at: 2000-01-23T04:56:07.000+00:00 + workshop_override_password: workshop_override_password + experience_branch: experience_branch + gc_branch: gc_branch + gpu_os_release: gpu_os_release + node_count: 1280358508 + org_name: org_name + provider_name: provider_name + sales_id: sales_id + ssh_user: ssh_user + flightcontrol_release: flightcontrol_release + sales_created_date: 2000-01-23T04:56:07.000+00:00 + sales_owner_name: sales_owner_name + overrides: "" + services: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + persist_on_failure: true + pipeline: 5199562221600970752 + garage_id: garage_id + request_id: request_id + properties: + bastion_operating_system: + description: Override bastion operating system provisioned and/or configured + by Liftoff + maxLength: 32 + nullable: true + type: string + catalog_id: + description: Unique ID for this experience in the sales catalog. Must be + unique. + type: string + writeOnly: true + catalog_id_alias: + description: "Human-readable identifier for the experience in the sales\ + \ catalog (ex: LP-15). Must be unique." + nullable: true + type: string + writeOnly: true + cluster: + $ref: '#/components/schemas/Deployment_cluster' + collection_branch: + description: Override the Ansible collection branch initialized within the + pipeline + maxLength: 255 + nullable: true + type: string + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + experience: + $ref: '#/components/schemas/Deployment_experience' + experience_branch: + description: Override the experience branch + maxLength: 255 + nullable: true + type: string + experience_id: + format: uuid + type: string + writeOnly: true + expires_at: + format: date-time + nullable: true + type: string + flightcontrol_release: + description: Override the image tag used for Flight Control + maxLength: 64 + nullable: true + type: string + garage_id: + description: Require a cluster with nodes in the given garage + maxLength: 128 + nullable: true + type: string + gc_branch: + description: Override the default Ground Control branch + maxLength: 255 + nullable: true + type: string + gpu_alias: + description: Require a cluster with the given GPU alias + maxLength: 64 + nullable: true + type: string + gpu_count: + description: Require a cluster with the given number of GPUs + maximum: 16 + minimum: 0 + nullable: true + type: integer + gpu_model: + description: Require a cluster with the given GPU model + maxLength: 32 + nullable: true + type: string + gpu_os_name: + type: string + gpu_os_release: + type: string + gpu_os_version: + type: string + id: + format: uuid + readOnly: true + type: string + ip_allowlist: + description: Host IP addresses that should be allowed to access the deployment + items: + type: string + type: array + lifetime: + description: Set expires_at value to be a given number of days from the + current time. A value of 0 will cause a deployment to remain active indefinitely. + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + min_gpu_count: + description: Require a cluster whose GPU count is greater than or equal + to the given number + maximum: 16 + minimum: 0 + nullable: true + type: integer + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + node_count: + description: Require a cluster with the given number of nodes + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + oem_name: + description: Require a cluster manufactured by the given OEM name + maxLength: 64 + nullable: true + type: string + org_name: + description: Requester's organization name + type: string + overrides: {} + persist_on_failure: + description: Override the default cleanup/destroy behavior when a provisioning + failure occurs + nullable: true + type: boolean + persona: + type: string + pipeline: + description: Override the pipeline ID that will be triggered for request + fulfillment + format: int64 + maximum: 9223372036854775807 + minimum: 0 + nullable: true + type: integer + pipeline_branch: + description: Override the default pipeline branch ref used when triggering + a Fuselage pipeline + maxLength: 255 + nullable: true + type: string + pipelines: + items: + format: uuid + type: string + type: array + platform: + $ref: '#/components/schemas/PlatformEnum' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + description: Require a cluster from the given provider name + maxLength: 64 + nullable: true + type: string + public_key: + description: The initial or administrative public key used during deployment + creation. Additional keys can be authorized for access using the `ssh-keys` + endpoint. + nullable: true + type: string + writeOnly: true + region: + description: Require a cluster located in the given region + maxLength: 64 + nullable: true + type: string + request_id: + description: "Trial request ID (ex: TRY-1234)" + type: string + requester_email: + description: Email address of the user requesting the experience + format: email + maxLength: 254 + type: string + requester_name: + description: Name of the user requesting the experience + maxLength: 255 + type: string + retry_count: + description: Number of times the deployment has been retried + readOnly: true + type: integer + sales_created_date: + format: date-time + nullable: true + type: string + sales_id: + description: Unique identifier for the requester's sales relationship + maxLength: 32 + nullable: true + type: string + sales_owner_email: + description: Email address of the sales contact associated with the requester + format: email + maxLength: 254 + nullable: true + type: string + sales_owner_name: + description: Name of the sales contact associated with the requester + maxLength: 255 + nullable: true + type: string + services: + items: + format: uuid + type: string + type: array + ssh_port: + readOnly: true + type: integer + ssh_user: + readOnly: true + type: string + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + readOnly: true + tags: {} + workshop: + description: Require a cluster whose workshop flag is set + nullable: true + type: boolean + workshop_id: + description: Require a cluster with the given workshop ID + maxLength: 64 + nullable: true + type: string + workshop_override_password: + description: Override the deployment's default authentication to use a static + password. This is useful for workshops when you'd like an identical password + associated with a collection of environments. (LaunchPad Team only) + maxLength: 64 + nullable: true + type: string + required: + - created + - experience + - id + - modified + - org_name + - overrides + - pipelines + - requester_email + - requester_name + - retry_count + - services + - ssh_port + - ssh_user + - state + Experience: + example: + inactivity_max: 1294386358 + repo: https://openapi-generator.tech + lifetime: 314780940 + required_gpus: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + description: description + bootstrap: true + experience: experience + title: title + vgpu_profile: air + platform: "" + system_arch: "" + provider: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + experience_branch: experience_branch + gc_branch: gc_branch + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + node_count: 1280358508 + fc_platform: docker + sa_lab: true + collection_branch: collection_branch + persona: persona + autoapprove: true + created: 2000-01-23T04:56:07.000+00:00 + published: "" + catalog_id: catalog_id + pipeline: 5199562221600970752 + fc_support: true + garage_id: garage_id + gpu_os: + release: release + name: name + version: version + autoprovision: true + gpu_count: 1 + assignee: assignee + catalog_id_alias: catalog_id_alias + category: "" + properties: + assignee: + description: User ID who is responsible for manual provisioning + maxLength: 32 + nullable: true + type: string + autoapprove: + description: Can the experience be provisioned without human approval? + type: boolean + autoprovision: + description: Can the experience be provisioned without human intervention? + type: boolean + bootstrap: + description: Can this experience be used to bootstrap another compatible + experience? + type: boolean + catalog_id: + description: Unique ID for this experience in the sales catalog. Must be + unique. + maxLength: 32 + type: string + catalog_id_alias: + description: "Human-readable identifier for the experience in the sales\ + \ catalog (ex: LP-15). Must be unique." + maxLength: 8 + nullable: true + type: string + category: + allOf: + - $ref: '#/components/schemas/CategoryEnum' + description: |- + Functional group that this experience is targetting + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + collection_branch: + description: Ansible collection branch initialized within the pipeline + maxLength: 255 + type: string + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + description: + nullable: true + type: string + experience: + description: Experience name slug + maxLength: 64 + type: string + experience_branch: + description: "Experience branch name used during deployment (default: origin/main)" + maxLength: 255 + type: string + fc_platform: + $ref: '#/components/schemas/FcPlatformEnum' + fc_support: + description: Does the experience support Flight Control? + type: boolean + writeOnly: true + garage_id: + description: ID of the garage where nodes for this experience should be + selected from + maxLength: 64 + nullable: true + type: string + gc_branch: + description: "Ground Control branch name (default: main)" + maxLength: 255 + type: string + gpu_count: + description: Number of GPUs used + maximum: 16 + minimum: 0 + type: integer + gpu_os: + $ref: '#/components/schemas/GpuOs' + id: + format: uuid + readOnly: true + type: string + inactivity_max: + description: "Number of days without user interaction before the experience\ + \ is torn down (default: 3)" + maximum: 2147483647 + minimum: 0 + type: integer + lifetime: + description: "Default number of days a provisioned experience should remain\ + \ active (default: 3). A null lifetime will cause a deployment to remain\ + \ active indefinitely." + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + node_count: + description: Number of Nodes used + maximum: 2147483647 + minimum: 0 + type: integer + persona: + type: string + pipeline: + description: Pipeline ID used for provisioning + format: int64 + maximum: 9223372036854775807 + minimum: 0 + type: integer + platform: + allOf: + - $ref: '#/components/schemas/PlatformEnum' + description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + provider: + description: "If set, the experience must be provisioned to the given provider" + format: uuid + nullable: true + type: string + published: + allOf: + - $ref: '#/components/schemas/PublishedEnum' + description: |- + Is the experience published for use? + + * `draft` - draft + * `no` - no + * `yes` - yes + repo: + description: URL of the repository for provisioning automation + format: uri + maxLength: 200 + nullable: true + type: string + writeOnly: true + required_gpus: + description: "If set, the experience must be provisioned using one of the\ + \ given GPU types. GPU requirements are evaluated in the order they are\ + \ set (ex: [\"{l40s_gpu_uuid}\", \"{a100_gpu_uuid}\"] will prefer an l40s)." + items: + format: uuid + type: string + type: array + sa_lab: + description: Is this a persistent experience for SAs? + type: boolean + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + title: + type: string + vgpu_profile: + $ref: '#/components/schemas/VgpuProfileEnum' + required: + - catalog_id + - category + - created + - experience + - gpu_os + - id + - modified + - persona + - pipeline + - platform + - system_arch + - title + ExperienceBulk: + example: + csv_file: https://openapi-generator.tech + experiences: + - inactivity_max: 1294386358 + repo: https://openapi-generator.tech + lifetime: 314780940 + required_gpus: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + description: description + bootstrap: true + experience: experience + title: title + vgpu_profile: air + platform: "" + system_arch: "" + provider: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + experience_branch: experience_branch + gc_branch: gc_branch + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + node_count: 1280358508 + fc_platform: docker + sa_lab: true + collection_branch: collection_branch + persona: persona + autoapprove: true + created: 2000-01-23T04:56:07.000+00:00 + published: "" + catalog_id: catalog_id + pipeline: 5199562221600970752 + fc_support: true + garage_id: garage_id + gpu_os: + release: release + name: name + version: version + autoprovision: true + gpu_count: 1 + assignee: assignee + catalog_id_alias: catalog_id_alias + category: "" + - inactivity_max: 1294386358 + repo: https://openapi-generator.tech + lifetime: 314780940 + required_gpus: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + description: description + bootstrap: true + experience: experience + title: title + vgpu_profile: air + platform: "" + system_arch: "" + provider: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + experience_branch: experience_branch + gc_branch: gc_branch + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + node_count: 1280358508 + fc_platform: docker + sa_lab: true + collection_branch: collection_branch + persona: persona + autoapprove: true + created: 2000-01-23T04:56:07.000+00:00 + published: "" + catalog_id: catalog_id + pipeline: 5199562221600970752 + fc_support: true + garage_id: garage_id + gpu_os: + release: release + name: name + version: version + autoprovision: true + gpu_count: 1 + assignee: assignee + catalog_id_alias: catalog_id_alias + category: "" + properties: + csv_file: + format: uri + type: string + writeOnly: true + experiences: + items: + $ref: '#/components/schemas/Experience' + type: array + required: + - csv_file + - experiences + ExperienceBulkUpdate: + example: + inactivity_max: 1294386358 + repo: https://openapi-generator.tech + lifetime: 314780940 + required_gpus: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + description: description + bootstrap: true + experience: experience + title: title + vgpu_profile: air + platform: "" + result: result + system_arch: "" + provider: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + experience_branch: experience_branch + gc_branch: gc_branch + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + node_count: 1280358508 + fc_platform: docker + sa_lab: true + collection_branch: collection_branch + persona: persona + autoapprove: true + created: 2000-01-23T04:56:07.000+00:00 + count: 2 + published: "" + catalog_id: catalog_id + pipeline: 5199562221600970752 + fc_support: true + garage_id: garage_id + gpu_os: "" + autoprovision: true + gpu_count: 1 + ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + assignee: assignee + catalog_id_alias: catalog_id_alias + category: "" + properties: + assignee: + description: User ID who is responsible for manual provisioning + maxLength: 32 + nullable: true + type: string + writeOnly: true + autoapprove: + description: Can the experience be provisioned without human approval? + type: boolean + writeOnly: true + autoprovision: + description: Can the experience be provisioned without human intervention? + type: boolean + writeOnly: true + bootstrap: + description: Can this experience be used to bootstrap another compatible + experience? + type: boolean + writeOnly: true + catalog_id: + description: Unique ID for this experience in the sales catalog. Must be + unique. + maxLength: 32 + readOnly: true + type: string + writeOnly: true + catalog_id_alias: + description: "Human-readable identifier for the experience in the sales\ + \ catalog (ex: LP-15). Must be unique." + maxLength: 8 + nullable: true + readOnly: true + type: string + writeOnly: true + category: + allOf: + - $ref: '#/components/schemas/CategoryEnum' + description: |- + Functional group that this experience is targetting + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + writeOnly: true + collection_branch: + description: Ansible collection branch initialized within the pipeline + maxLength: 255 + type: string + writeOnly: true + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + writeOnly: true + description: + nullable: true + type: string + writeOnly: true + experience: + description: Experience name slug + maxLength: 64 + type: string + writeOnly: true + experience_branch: + description: "Experience branch name used during deployment (default: origin/main)" + maxLength: 255 + type: string + writeOnly: true + fc_platform: + $ref: '#/components/schemas/FcPlatformEnum' + fc_support: + description: Does the experience support Flight Control? + type: boolean + writeOnly: true + garage_id: + description: ID of the garage where nodes for this experience should be + selected from + maxLength: 64 + nullable: true + type: string + writeOnly: true + gc_branch: + description: "Ground Control branch name (default: main)" + maxLength: 255 + type: string + writeOnly: true + gpu_count: + description: Number of GPUs used + maximum: 16 + minimum: 0 + type: integer + writeOnly: true + gpu_os: + allOf: + - $ref: '#/components/schemas/GpuOs' + writeOnly: true + id: + format: uuid + readOnly: true + type: string + writeOnly: true + inactivity_max: + description: "Number of days without user interaction before the experience\ + \ is torn down (default: 3)" + maximum: 2147483647 + minimum: 0 + type: integer + writeOnly: true + lifetime: + description: "Default number of days a provisioned experience should remain\ + \ active (default: 3). A null lifetime will cause a deployment to remain\ + \ active indefinitely." + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + writeOnly: true + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + writeOnly: true + node_count: + description: Number of Nodes used + maximum: 2147483647 + minimum: 0 + type: integer + writeOnly: true + persona: + type: string + writeOnly: true + pipeline: + description: Pipeline ID used for provisioning + format: int64 + maximum: 9223372036854775807 + minimum: 0 + type: integer + writeOnly: true + platform: + allOf: + - $ref: '#/components/schemas/PlatformEnum' + description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + writeOnly: true + provider: + description: "If set, the experience must be provisioned to the given provider" + format: uuid + nullable: true + type: string + writeOnly: true + published: + allOf: + - $ref: '#/components/schemas/PublishedEnum' + description: |- + Is the experience published for use? + + * `draft` - draft + * `no` - no + * `yes` - yes + writeOnly: true + repo: + description: URL of the repository for provisioning automation + format: uri + maxLength: 200 + nullable: true + type: string + writeOnly: true + required_gpus: + description: "If set, the experience must be provisioned using one of the\ + \ given GPU types. GPU requirements are evaluated in the order they are\ + \ set (ex: [\"{l40s_gpu_uuid}\", \"{a100_gpu_uuid}\"] will prefer an l40s)." + items: + format: uuid + type: string + type: array + sa_lab: + description: Is this a persistent experience for SAs? + type: boolean + writeOnly: true + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + writeOnly: true + title: + type: string + writeOnly: true + vgpu_profile: + $ref: '#/components/schemas/VgpuProfileEnum' + count: + readOnly: true + type: integer + ids: + items: + format: uuid + type: string + type: array + result: + readOnly: true + type: string + required: + - catalog_id + - catalog_id_alias + - category + - count + - created + - experience + - gpu_os + - id + - ids + - modified + - persona + - pipeline + - platform + - result + - system_arch + - title + ExperienceNote: + example: + created: 2000-01-23T04:56:07.000+00:00 + modified_by: modified_by + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + experience: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + created_by: created_by + content: content + properties: + content: + description: Text content of the note + type: string + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + created_by: + readOnly: true + type: string + experience: + $ref: '#/components/schemas/Deployment_experience' + id: + format: uuid + readOnly: true + type: string + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + modified_by: + readOnly: true + type: string + required: + - created + - created_by + - experience + - id + - modified + - modified_by + FcPlatformEnum: + description: |- + * `docker` - docker + * `k8s` - k8s + enum: + - docker + - k8s + type: string + x-enum-varnames: + - FcPlatformDocker + - FcPlatformK8s + Gpu: + example: + memory: 2624 + created: 2000-01-23T04:56:07.000+00:00 + modified: 2000-01-23T04:56:07.000+00:00 + model: model + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + node_count: 6 + priority: 14 + form_factor: "" + properties: + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + form_factor: + allOf: + - $ref: '#/components/schemas/InterconnectionTypeEnum' + default: pcie + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + id: + format: uuid + readOnly: true + type: string + memory: + default: 0 + description: Total GPU memory (in GB) + maximum: 32768 + minimum: 0 + type: integer + model: + description: GPU model name + maxLength: 32 + type: string + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + node_count: + readOnly: true + type: integer + priority: + description: Weighted preference to use in selecting a GPU for a deployment. + A higher priority means the GPU is in higher demand. Lower priority values + will be preferred over higher ones during cluster selection. + maximum: 100 + minimum: 0 + type: integer + required: + - created + - id + - model + - modified + GpuBulkUpdate: + example: + result: result + memory: 2624 + created: 2000-01-23T04:56:07.000+00:00 + count: 5 + modified: 2000-01-23T04:56:07.000+00:00 + ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + model: model + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + node_count: 6 + priority: 14 + form_factor: "" + properties: + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + writeOnly: true + form_factor: + allOf: + - $ref: '#/components/schemas/InterconnectionTypeEnum' + default: pcie + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + writeOnly: true + id: + format: uuid + readOnly: true + type: string + writeOnly: true + memory: + default: 0 + description: Total GPU memory (in GB) + maximum: 32768 + minimum: 0 + type: integer + writeOnly: true + model: + description: GPU model name + maxLength: 32 + type: string + writeOnly: true + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + writeOnly: true + node_count: + readOnly: true + type: integer + writeOnly: true + priority: + description: Weighted preference to use in selecting a GPU for a deployment. + A higher priority means the GPU is in higher demand. Lower priority values + will be preferred over higher ones during cluster selection. + maximum: 100 + minimum: 0 + type: integer + writeOnly: true + count: + readOnly: true + type: integer + ids: + items: + format: uuid + type: string + type: array + result: + readOnly: true + type: string + required: + - count + - created + - id + - ids + - model + - modified + - node_count + - result + GpuOs: + example: + release: release + name: name + version: version + properties: + name: + type: string + release: + type: string + version: + type: string + required: + - name + - release + - version + GpuOsChoice: + example: + created: 2000-01-23T04:56:07.000+00:00 + release: release + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 0 + version: version + properties: + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + id: + readOnly: true + type: integer + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + name: + description: "Name of the OS to be provisioned onto GPU Node(s) (ex: ubuntu)" + maxLength: 16 + type: string + release: + description: "Release name of the OS to be provisioned onto GPU Node(s)\ + \ (ex: jammy)" + maxLength: 16 + type: string + version: + description: "Version number of the OS to be provisioned onto GPU Node(s)\ + \ (ex: 22.04)" + maxLength: 8 + type: string + required: + - created + - id + - modified + - name + - release + - version + Instance: + example: + cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + instance_id: instance_id + created: 2000-01-23T04:56:07.000+00:00 + state_modified: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + state: "" + tags: + - tags + - tags + properties: + cluster: + $ref: '#/components/schemas/Deployment_cluster' + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + id: + format: uuid + readOnly: true + type: string + instance_id: + description: Unique ID for this instance assigned by its provider + maxLength: 128 + type: string + name: + description: User-friendly name of this instance + maxLength: 64 + nullable: true + type: string + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + state: + allOf: + - $ref: '#/components/schemas/InstanceState' + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + state_modified: + format: date-time + readOnly: true + type: string + tags: + description: Tags associated with this instance + items: + maxLength: 64 + type: string + type: array + required: + - cluster + - created + - id + - instance_id + - modified + - state_modified + InstanceBulkUpdate: + example: + result: result + cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + instance_id: instance_id + created: 2000-01-23T04:56:07.000+00:00 + state_modified: 2000-01-23T04:56:07.000+00:00 + name: name + count: 0 + modified: 2000-01-23T04:56:07.000+00:00 + ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + state: "" + tags: + - tags + - tags + properties: + cluster: + $ref: '#/components/schemas/Deployment_cluster' + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + writeOnly: true + id: + format: uuid + readOnly: true + type: string + writeOnly: true + instance_id: + description: Unique ID for this instance assigned by its provider + maxLength: 128 + readOnly: true + type: string + writeOnly: true + name: + description: User-friendly name of this instance + maxLength: 64 + nullable: true + type: string + writeOnly: true + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + writeOnly: true + state: + allOf: + - $ref: '#/components/schemas/InstanceState' + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + writeOnly: true + state_modified: + format: date-time + readOnly: true + type: string + writeOnly: true + tags: + description: Tags associated with this instance + items: + maxLength: 64 + type: string + type: array + count: + readOnly: true + type: integer + ids: + items: + format: uuid + type: string + type: array + result: + readOnly: true + type: string + required: + - cluster + - count + - created + - id + - ids + - instance_id + - modified + - result + - state_modified + InstanceState: + description: |- + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + enum: + - running + - starting + - stopped + - stopping + - unknown + type: string + x-enum-varnames: + - InstanceStateRunning + - InstanceStateStarting + - InstanceStateStopped + - InstanceStateStopping + - InstanceStateUnknown + InstanceType: + example: + cloud: cloud + workshop_id: workshop_id + system_arch: "" + memory_gb: 5 + regions: + - regions + - regions + price: + currency: currency + on_demand_per_hour: 2.3021358869347655 + cpu: 6 + storage: + - size_gb: 7 + type: "" + - size_gb: 7 + type: "" + gpu: + memory_gb: 5 + interconnection_type: "" + count: 1 + model: model + family: family + manufacturer: manufacturer + capacity: + key: 0 + properties: + capacity: + additionalProperties: + type: integer + description: Key/value pairs of region name and total available capacity + for the instance type + cloud: + description: Cloud provider name + type: string + cpu: + description: Total number of CPUs/vCPUs available + type: integer + gpu: + $ref: '#/components/schemas/InstanceTypeGpu' + memory_gb: + description: Total system memory (in GB) + type: integer + price: + $ref: '#/components/schemas/InstanceTypePrice' + regions: + description: List of regions names that have available capacity for the + instance type + items: + type: string + type: array + storage: + items: + $ref: '#/components/schemas/InstanceTypeStorage' + type: array + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + workshop_id: + description: ID of the workshop this instance type is reserved for + type: string + required: + - capacity + - cloud + - cpu + - gpu + - memory_gb + - price + - regions + - storage + - system_arch + - workshop_id + InstanceTypeGpu: + example: + memory_gb: 5 + interconnection_type: "" + count: 1 + model: model + family: family + manufacturer: manufacturer + properties: + count: + description: Total number of GPUs + type: integer + family: + description: GPU family name + type: string + interconnection_type: + allOf: + - $ref: '#/components/schemas/InterconnectionTypeEnum' + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + manufacturer: + description: GPU manufacturer name + type: string + memory_gb: + description: Total GPU memory (in GB) + type: integer + model: + description: GPU model name + type: string + required: + - count + - family + - interconnection_type + - manufacturer + - memory_gb + - model + InstanceTypePrice: + example: + currency: currency + on_demand_per_hour: 2.3021358869347655 + properties: + currency: + description: Currency code + type: string + on_demand_per_hour: + description: Price per hour + format: double + type: number + required: + - currency + - on_demand_per_hour + InstanceTypeStorage: + example: + size_gb: 7 + type: "" + properties: + size_gb: + description: System storage size (in GB) + type: integer + type: + allOf: + - $ref: '#/components/schemas/TypeEnum' + description: |- + Disk type + + * `nvme` - NVMe + * `ssd` - ssd + required: + - size_gb + - type + InterconnectionTypeEnum: + description: |- + * `pcie` - PCIe + * `sxm` - SXM + enum: + - pcie + - sxm + type: string + x-enum-varnames: + - InterconnectionTypePCIe + - InterconnectionTypeSXM + Location: + example: + provider: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: region + properties: + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + id: + format: uuid + readOnly: true + type: string + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + name: + maxLength: 64 + type: string + provider: + $ref: '#/components/schemas/Location_provider' + region: + description: Name of the region the location is in + maxLength: 64 + nullable: true + type: string + required: + - created + - id + - modified + - name + - provider + Logout: + example: + result: Successfully logged out. + properties: + result: + default: Successfully logged out. + readOnly: true + type: string + required: + - result + ModelChange: + example: + created: 2000-01-23T04:56:07.000+00:00 + changes: + - field: field + old_value: null + new_value: ModelChange_changes_inner_new_value + - field: field + old_value: null + new_value: ModelChange_changes_inner_new_value + change_type: change_type + id: 0 + username: username + properties: + change_type: + readOnly: true + type: string + changes: + items: + $ref: '#/components/schemas/ModelChange_changes_inner' + type: array + created: + format: date-time + type: string + id: + type: integer + username: + type: string + required: + - change_type + - changes + - created + - id + - username + NetworkTypeEnum: + description: |- + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + enum: + - ethernet + - infiniband + type: string + x-enum-varnames: + - NetworkTypeEthernet + - NetworkTypeInfiniband + Node: + example: + gpu_vbios: gpu_vbios + mgmt_mac: mgmt_mac + cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + gpu_model: gpu_model + memory: 4803 + notes: notes + cpu_manufacturer: amd + bmc_mac: bmc_mac + storage: + - size: 563737 + type: "" + - size: 563737 + type: "" + system_arch: "" + tee: true + cpu_model: cpu_model + gpu_alias: gpu_alias + oem: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + modified: 2000-01-23T04:56:07.000+00:00 + model: model + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + rack: rack + mgmt_ip: mgmt_ip + created: 2000-01-23T04:56:07.000+00:00 + bmc_ip: bmc_ip + bmc_user: bmc_user + cpu: 82 + serial_number: serial_number + gpu: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + rack_unit: 31 + garage_id: garage_id + bmc_password: bmc_password + gpu_count: 9 + nic_prefixes: + - nic_prefixes + - nic_prefixes + provider_node_id: provider_node_id + location: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + network_type: "" + properties: + bmc_ip: + description: IP address of the BMC + nullable: true + type: string + bmc_mac: + description: MAC address of the BMC + maxLength: 17 + minLength: 17 + nullable: true + type: string + bmc_password: + description: Password for the BMC + maxLength: 32 + nullable: true + type: string + bmc_user: + description: Username for the BMC + maxLength: 64 + nullable: true + type: string + cluster: + description: UUID of the node's parent cluster + format: uuid + nullable: true + type: string + cpu: + description: Number of CPU cores installed + maximum: 1024 + minimum: 0 + type: integer + cpu_manufacturer: + $ref: '#/components/schemas/CpuManufacturerEnum' + cpu_model: + description: Model information for the node's CPU + maxLength: 64 + nullable: true + type: string + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + garage_id: + description: ID for the garage where a node is parked when unprovisioned + maxLength: 128 + nullable: true + type: string + gpu: + $ref: '#/components/schemas/Cluster_gpus_inner' + gpu_alias: + description: Alias for GPU plan (i.e. installed GPU type and count) + readOnly: true + type: string + gpu_count: + description: Number of GPUs installed + maximum: 16 + minimum: 0 + type: integer + gpu_model: + description: Model of GPU(s) installed + readOnly: true + type: string + gpu_vbios: + description: VBIOS version used by installed GPU(s) + maxLength: 64 + nullable: true + type: string + id: + format: uuid + readOnly: true + type: string + location: + $ref: '#/components/schemas/Node_location' + memory: + description: Amount of RAM installed (in GB) + maximum: 32768 + minimum: 0 + type: integer + mgmt_ip: + description: Management IP address + type: string + mgmt_mac: + description: Management MAC address + maxLength: 17 + minLength: 17 + nullable: true + type: string + model: + description: Hardware model of the node + maxLength: 64 + nullable: true + type: string + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + network_type: + allOf: + - $ref: '#/components/schemas/NetworkTypeEnum' + description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + nic_prefixes: + description: Prefixes for the node's network interface(s) + items: + maxLength: 15 + type: string + type: array + notes: + description: Administrative comments about the node + nullable: true + type: string + oem: + description: UUID of the node's OEM + format: uuid + nullable: true + type: string + provider_node_id: + description: Unique ID for this node assigned by its provider + maxLength: 128 + nullable: true + type: string + rack: + description: Physical rack identifier + maxLength: 32 + nullable: true + type: string + rack_unit: + description: The rack unit (RU) within the rack where the node is installed + maximum: 52 + minimum: 0 + nullable: true + type: integer + serial_number: + description: Serial number of the node + maxLength: 32 + nullable: true + type: string + storage: + items: + $ref: '#/components/schemas/NodeStorage' + minItems: 1 + type: array + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + tee: + description: Does the node support Trusted Execution Environment (TEE)? + type: boolean + required: + - created + - gpu + - gpu_alias + - gpu_model + - id + - location + - modified + - storage + - system_arch + NodeBulk: + example: + csv_file: https://openapi-generator.tech + nodes: + - gpu_vbios: gpu_vbios + mgmt_mac: mgmt_mac + cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + gpu_model: gpu_model + memory: 4803 + notes: notes + cpu_manufacturer: amd + bmc_mac: bmc_mac + storage: + - size: 563737 + type: "" + - size: 563737 + type: "" + system_arch: "" + tee: true + cpu_model: cpu_model + gpu_alias: gpu_alias + oem: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + modified: 2000-01-23T04:56:07.000+00:00 + model: model + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + rack: rack + mgmt_ip: mgmt_ip + created: 2000-01-23T04:56:07.000+00:00 + bmc_ip: bmc_ip + bmc_user: bmc_user + cpu: 82 + serial_number: serial_number + gpu: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + rack_unit: 31 + garage_id: garage_id + bmc_password: bmc_password + gpu_count: 9 + nic_prefixes: + - nic_prefixes + - nic_prefixes + provider_node_id: provider_node_id + location: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + network_type: "" + - gpu_vbios: gpu_vbios + mgmt_mac: mgmt_mac + cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + gpu_model: gpu_model + memory: 4803 + notes: notes + cpu_manufacturer: amd + bmc_mac: bmc_mac + storage: + - size: 563737 + type: "" + - size: 563737 + type: "" + system_arch: "" + tee: true + cpu_model: cpu_model + gpu_alias: gpu_alias + oem: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + modified: 2000-01-23T04:56:07.000+00:00 + model: model + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + rack: rack + mgmt_ip: mgmt_ip + created: 2000-01-23T04:56:07.000+00:00 + bmc_ip: bmc_ip + bmc_user: bmc_user + cpu: 82 + serial_number: serial_number + gpu: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + rack_unit: 31 + garage_id: garage_id + bmc_password: bmc_password + gpu_count: 9 + nic_prefixes: + - nic_prefixes + - nic_prefixes + provider_node_id: provider_node_id + location: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + network_type: "" + properties: + csv_file: + format: uri + type: string + writeOnly: true + nodes: + items: + $ref: '#/components/schemas/Node' + type: array + required: + - csv_file + - nodes + NodeBulkUpdate: + example: + gpu_vbios: gpu_vbios + mgmt_mac: mgmt_mac + cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + gpu_model: gpu_model + memory: 4803 + notes: notes + cpu_manufacturer: amd + bmc_mac: bmc_mac + storage: + - size: 563737 + type: "" + - size: 563737 + type: "" + result: result + system_arch: "" + tee: true + cpu_model: cpu_model + gpu_alias: gpu_alias + oem: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + modified: 2000-01-23T04:56:07.000+00:00 + model: model + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + rack: rack + mgmt_ip: mgmt_ip + created: 2000-01-23T04:56:07.000+00:00 + bmc_ip: bmc_ip + count: 5 + bmc_user: bmc_user + cpu: 82 + serial_number: serial_number + gpu: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + rack_unit: 31 + garage_id: garage_id + bmc_password: bmc_password + gpu_count: 9 + nic_prefixes: + - nic_prefixes + - nic_prefixes + provider_node_id: provider_node_id + ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + location: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + network_type: "" + properties: + bmc_ip: + description: IP address of the BMC + nullable: true + type: string + writeOnly: true + bmc_mac: + description: MAC address of the BMC + maxLength: 17 + minLength: 17 + nullable: true + type: string + writeOnly: true + bmc_password: + description: Password for the BMC + maxLength: 32 + nullable: true + type: string + writeOnly: true + bmc_user: + description: Username for the BMC + maxLength: 64 + nullable: true + type: string + writeOnly: true + cluster: + description: UUID of the node's parent cluster + format: uuid + nullable: true + type: string + writeOnly: true + cpu: + description: Number of CPU cores installed + maximum: 1024 + minimum: 0 + type: integer + writeOnly: true + cpu_manufacturer: + $ref: '#/components/schemas/CpuManufacturerEnum' + cpu_model: + description: Model information for the node's CPU + maxLength: 64 + nullable: true + type: string + writeOnly: true + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + writeOnly: true + garage_id: + description: ID for the garage where a node is parked when unprovisioned + maxLength: 128 + nullable: true + type: string + writeOnly: true + gpu: + $ref: '#/components/schemas/Cluster_gpus_inner' + gpu_alias: + description: Alias for GPU plan (i.e. installed GPU type and count) + readOnly: true + type: string + writeOnly: true + gpu_count: + description: Number of GPUs installed + maximum: 16 + minimum: 0 + type: integer + writeOnly: true + gpu_model: + description: Model of GPU(s) installed + readOnly: true + type: string + writeOnly: true + gpu_vbios: + description: VBIOS version used by installed GPU(s) + maxLength: 64 + nullable: true + type: string + writeOnly: true + id: + format: uuid + readOnly: true + type: string + writeOnly: true + location: + $ref: '#/components/schemas/Node_location' + memory: + description: Amount of RAM installed (in GB) + maximum: 32768 + minimum: 0 + type: integer + writeOnly: true + mgmt_ip: + description: Management IP address + type: string + writeOnly: true + mgmt_mac: + description: Management MAC address + maxLength: 17 + minLength: 17 + nullable: true + type: string + writeOnly: true + model: + description: Hardware model of the node + maxLength: 64 + nullable: true + type: string + writeOnly: true + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + writeOnly: true + network_type: + allOf: + - $ref: '#/components/schemas/NetworkTypeEnum' + description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + writeOnly: true + nic_prefixes: + description: Prefixes for the node's network interface(s) + items: + maxLength: 15 + type: string + type: array + notes: + description: Administrative comments about the node + nullable: true + type: string + writeOnly: true + oem: + description: UUID of the node's OEM + format: uuid + nullable: true + type: string + writeOnly: true + provider_node_id: + description: Unique ID for this node assigned by its provider + maxLength: 128 + nullable: true + type: string + writeOnly: true + rack: + description: Physical rack identifier + maxLength: 32 + nullable: true + type: string + writeOnly: true + rack_unit: + description: The rack unit (RU) within the rack where the node is installed + maximum: 52 + minimum: 0 + nullable: true + type: integer + writeOnly: true + serial_number: + description: Serial number of the node + maxLength: 32 + nullable: true + readOnly: true + type: string + writeOnly: true + storage: + items: + $ref: '#/components/schemas/NodeStorage' + minItems: 1 + type: array + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + writeOnly: true + tee: + description: Does the node support Trusted Execution Environment (TEE)? + type: boolean + writeOnly: true + count: + readOnly: true + type: integer + ids: + items: + format: uuid + type: string + type: array + result: + readOnly: true + type: string + required: + - count + - created + - gpu + - gpu_alias + - gpu_model + - id + - ids + - location + - modified + - result + - serial_number + - storage + - system_arch + NodeStorage: + example: + size: 563737 + type: "" + properties: + size: + default: 0 + description: Disk size (in GB) + maximum: 1000000 + minimum: 0 + type: integer + type: + allOf: + - $ref: '#/components/schemas/TypeEnum' + description: |- + Disk type + + * `nvme` - NVMe + * `ssd` - ssd + required: + - type + NullEnum: + nullable: true + OEM: + example: + created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + id: + format: uuid + readOnly: true + type: string + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + name: + maxLength: 64 + type: string + required: + - created + - id + - modified + - name + PaginatedClusterList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - mgmt_mac: mgmt_mac + vlan_id: 2308 + notes: notes + instances: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + last_used: 2000-01-23T04:56:07.000+00:00 + provider_capacity: true + available: true + free_by: 2000-01-23T04:56:07.000+00:00 + experience: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + enabled: true + netmask: 19 + gpu_alias: gpu_alias + modified: 2000-01-23T04:56:07.000+00:00 + reservation: true + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + node_count: 1 + persist: true + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workshop_id: workshop_id + provisioning_state: "" + mgmt_ip: mgmt_ip + created: 2000-01-23T04:56:07.000+00:00 + workshop: true + provisioning_attempts: 1280358508 + tenant_ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + provision_user: provision_user + nodes: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + gpu_count: 0 + gpus: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + bastion_name: bastion_name + public_address: public_address + maintenance: true + request_id: request_id + - mgmt_mac: mgmt_mac + vlan_id: 2308 + notes: notes + instances: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + last_used: 2000-01-23T04:56:07.000+00:00 + provider_capacity: true + available: true + free_by: 2000-01-23T04:56:07.000+00:00 + experience: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + enabled: true + netmask: 19 + gpu_alias: gpu_alias + modified: 2000-01-23T04:56:07.000+00:00 + reservation: true + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + node_count: 1 + persist: true + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workshop_id: workshop_id + provisioning_state: "" + mgmt_ip: mgmt_ip + created: 2000-01-23T04:56:07.000+00:00 + workshop: true + provisioning_attempts: 1280358508 + tenant_ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + provision_user: provision_user + nodes: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + gpu_count: 0 + gpus: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + bastion_name: bastion_name + public_address: public_address + maintenance: true + request_id: request_id + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/Cluster' + type: array + required: + - count + - results + PaginatedDeploymentInstanceList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - instance_id: instance_id + created: 2000-01-23T04:56:07.000+00:00 + state_modified: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + state: "" + tags: + - tags + - tags + - instance_id: instance_id + created: 2000-01-23T04:56:07.000+00:00 + state_modified: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + state: "" + tags: + - tags + - tags + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/DeploymentInstance' + type: array + required: + - count + - results + PaginatedDeploymentKeyList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - public_key: public_key + created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - public_key: public_key + created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/DeploymentKey' + type: array + required: + - count + - results + PaginatedDeploymentList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - public_key: public_key + cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + sales_owner_email: sales_owner_email + lifetime: 1294386358 + pipeline_branch: pipeline_branch + gpu_os_name: gpu_os_name + experience: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + experience_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + pipelines: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + oem_name: oem_name + gpu_alias: gpu_alias + retry_count: 2 + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + state: "" + requester_name: requester_name + collection_branch: collection_branch + workshop_id: workshop_id + persona: persona + ssh_port: 7 + created: 2000-01-23T04:56:07.000+00:00 + workshop: true + requester_email: requester_email + ip_allowlist: + - ip_allowlist + - ip_allowlist + priority: "" + tags: "" + catalog_id: catalog_id + gpu_count: 1 + min_gpu_count: 2 + catalog_id_alias: catalog_id_alias + region: region + gpu_model: gpu_model + gpu_os_version: gpu_os_version + platform: air + bastion_operating_system: bastion_operating_system + expires_at: 2000-01-23T04:56:07.000+00:00 + workshop_override_password: workshop_override_password + experience_branch: experience_branch + gc_branch: gc_branch + gpu_os_release: gpu_os_release + node_count: 1280358508 + org_name: org_name + provider_name: provider_name + sales_id: sales_id + ssh_user: ssh_user + flightcontrol_release: flightcontrol_release + sales_created_date: 2000-01-23T04:56:07.000+00:00 + sales_owner_name: sales_owner_name + overrides: "" + services: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + persist_on_failure: true + pipeline: 5199562221600970752 + garage_id: garage_id + request_id: request_id + - public_key: public_key + cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + sales_owner_email: sales_owner_email + lifetime: 1294386358 + pipeline_branch: pipeline_branch + gpu_os_name: gpu_os_name + experience: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + experience_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + pipelines: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + oem_name: oem_name + gpu_alias: gpu_alias + retry_count: 2 + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + state: "" + requester_name: requester_name + collection_branch: collection_branch + workshop_id: workshop_id + persona: persona + ssh_port: 7 + created: 2000-01-23T04:56:07.000+00:00 + workshop: true + requester_email: requester_email + ip_allowlist: + - ip_allowlist + - ip_allowlist + priority: "" + tags: "" + catalog_id: catalog_id + gpu_count: 1 + min_gpu_count: 2 + catalog_id_alias: catalog_id_alias + region: region + gpu_model: gpu_model + gpu_os_version: gpu_os_version + platform: air + bastion_operating_system: bastion_operating_system + expires_at: 2000-01-23T04:56:07.000+00:00 + workshop_override_password: workshop_override_password + experience_branch: experience_branch + gc_branch: gc_branch + gpu_os_release: gpu_os_release + node_count: 1280358508 + org_name: org_name + provider_name: provider_name + sales_id: sales_id + ssh_user: ssh_user + flightcontrol_release: flightcontrol_release + sales_created_date: 2000-01-23T04:56:07.000+00:00 + sales_owner_name: sales_owner_name + overrides: "" + services: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + persist_on_failure: true + pipeline: 5199562221600970752 + garage_id: garage_id + request_id: request_id + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/Deployment' + type: array + required: + - count + - results + PaginatedDeploymentNoteList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - created: 2000-01-23T04:56:07.000+00:00 + modified_by: modified_by + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + created_by: created_by + content: content + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - created: 2000-01-23T04:56:07.000+00:00 + modified_by: modified_by + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + created_by: created_by + content: content + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/DeploymentNote' + type: array + required: + - count + - results + PaginatedDeploymentPipelineList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - created: 2000-01-23T04:56:07.000+00:00 + pipeline_id: 738633633822310400 + action: "" + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + url: https://openapi-generator.tech + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - created: 2000-01-23T04:56:07.000+00:00 + pipeline_id: 738633633822310400 + action: "" + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + url: https://openapi-generator.tech + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/DeploymentPipeline' + type: array + required: + - count + - results + PaginatedDeploymentServiceList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + url: https://openapi-generator.tech + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + url: https://openapi-generator.tech + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/DeploymentService' + type: array + required: + - count + - results + PaginatedDeploymentTaskList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - retries: 0 + created: 2000-01-23T04:56:07.000+00:00 + action: "" + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status_text: status_text + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status: "" + - retries: 0 + created: 2000-01-23T04:56:07.000+00:00 + action: "" + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status_text: status_text + deployment: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status: "" + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/DeploymentTask' + type: array + required: + - count + - results + PaginatedExperienceList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - inactivity_max: 1294386358 + repo: https://openapi-generator.tech + lifetime: 314780940 + required_gpus: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + description: description + bootstrap: true + experience: experience + title: title + vgpu_profile: air + platform: "" + system_arch: "" + provider: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + experience_branch: experience_branch + gc_branch: gc_branch + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + node_count: 1280358508 + fc_platform: docker + sa_lab: true + collection_branch: collection_branch + persona: persona + autoapprove: true + created: 2000-01-23T04:56:07.000+00:00 + published: "" + catalog_id: catalog_id + pipeline: 5199562221600970752 + fc_support: true + garage_id: garage_id + gpu_os: + release: release + name: name + version: version + autoprovision: true + gpu_count: 1 + assignee: assignee + catalog_id_alias: catalog_id_alias + category: "" + - inactivity_max: 1294386358 + repo: https://openapi-generator.tech + lifetime: 314780940 + required_gpus: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + description: description + bootstrap: true + experience: experience + title: title + vgpu_profile: air + platform: "" + system_arch: "" + provider: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + experience_branch: experience_branch + gc_branch: gc_branch + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + node_count: 1280358508 + fc_platform: docker + sa_lab: true + collection_branch: collection_branch + persona: persona + autoapprove: true + created: 2000-01-23T04:56:07.000+00:00 + published: "" + catalog_id: catalog_id + pipeline: 5199562221600970752 + fc_support: true + garage_id: garage_id + gpu_os: + release: release + name: name + version: version + autoprovision: true + gpu_count: 1 + assignee: assignee + catalog_id_alias: catalog_id_alias + category: "" + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/Experience' + type: array + required: + - count + - results + PaginatedExperienceNoteList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - created: 2000-01-23T04:56:07.000+00:00 + modified_by: modified_by + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + experience: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + created_by: created_by + content: content + - created: 2000-01-23T04:56:07.000+00:00 + modified_by: modified_by + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + experience: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + created_by: created_by + content: content + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/ExperienceNote' + type: array + required: + - count + - results + PaginatedGpuList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - memory: 2624 + created: 2000-01-23T04:56:07.000+00:00 + modified: 2000-01-23T04:56:07.000+00:00 + model: model + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + node_count: 6 + priority: 14 + form_factor: "" + - memory: 2624 + created: 2000-01-23T04:56:07.000+00:00 + modified: 2000-01-23T04:56:07.000+00:00 + model: model + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + node_count: 6 + priority: 14 + form_factor: "" + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/Gpu' + type: array + required: + - count + - results + PaginatedGpuOsChoiceList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - created: 2000-01-23T04:56:07.000+00:00 + release: release + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 0 + version: version + - created: 2000-01-23T04:56:07.000+00:00 + release: release + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 0 + version: version + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/GpuOsChoice' + type: array + required: + - count + - results + PaginatedInstanceList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + instance_id: instance_id + created: 2000-01-23T04:56:07.000+00:00 + state_modified: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + state: "" + tags: + - tags + - tags + - cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + instance_id: instance_id + created: 2000-01-23T04:56:07.000+00:00 + state_modified: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + state: "" + tags: + - tags + - tags + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/Instance' + type: array + required: + - count + - results + PaginatedInstanceTypeList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - cloud: cloud + workshop_id: workshop_id + system_arch: "" + memory_gb: 5 + regions: + - regions + - regions + price: + currency: currency + on_demand_per_hour: 2.3021358869347655 + cpu: 6 + storage: + - size_gb: 7 + type: "" + - size_gb: 7 + type: "" + gpu: + memory_gb: 5 + interconnection_type: "" + count: 1 + model: model + family: family + manufacturer: manufacturer + capacity: + key: 0 + - cloud: cloud + workshop_id: workshop_id + system_arch: "" + memory_gb: 5 + regions: + - regions + - regions + price: + currency: currency + on_demand_per_hour: 2.3021358869347655 + cpu: 6 + storage: + - size_gb: 7 + type: "" + - size_gb: 7 + type: "" + gpu: + memory_gb: 5 + interconnection_type: "" + count: 1 + model: model + family: family + manufacturer: manufacturer + capacity: + key: 0 + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/InstanceType' + type: array + required: + - count + - results + PaginatedLocationList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - provider: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: region + - provider: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: region + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/Location' + type: array + required: + - count + - results + PaginatedModelChangeList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - created: 2000-01-23T04:56:07.000+00:00 + changes: + - field: field + old_value: null + new_value: ModelChange_changes_inner_new_value + - field: field + old_value: null + new_value: ModelChange_changes_inner_new_value + change_type: change_type + id: 0 + username: username + - created: 2000-01-23T04:56:07.000+00:00 + changes: + - field: field + old_value: null + new_value: ModelChange_changes_inner_new_value + - field: field + old_value: null + new_value: ModelChange_changes_inner_new_value + change_type: change_type + id: 0 + username: username + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/ModelChange' + type: array + required: + - count + - results + PaginatedNodeList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - gpu_vbios: gpu_vbios + mgmt_mac: mgmt_mac + cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + gpu_model: gpu_model + memory: 4803 + notes: notes + cpu_manufacturer: amd + bmc_mac: bmc_mac + storage: + - size: 563737 + type: "" + - size: 563737 + type: "" + system_arch: "" + tee: true + cpu_model: cpu_model + gpu_alias: gpu_alias + oem: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + modified: 2000-01-23T04:56:07.000+00:00 + model: model + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + rack: rack + mgmt_ip: mgmt_ip + created: 2000-01-23T04:56:07.000+00:00 + bmc_ip: bmc_ip + bmc_user: bmc_user + cpu: 82 + serial_number: serial_number + gpu: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + rack_unit: 31 + garage_id: garage_id + bmc_password: bmc_password + gpu_count: 9 + nic_prefixes: + - nic_prefixes + - nic_prefixes + provider_node_id: provider_node_id + location: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + network_type: "" + - gpu_vbios: gpu_vbios + mgmt_mac: mgmt_mac + cluster: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + gpu_model: gpu_model + memory: 4803 + notes: notes + cpu_manufacturer: amd + bmc_mac: bmc_mac + storage: + - size: 563737 + type: "" + - size: 563737 + type: "" + system_arch: "" + tee: true + cpu_model: cpu_model + gpu_alias: gpu_alias + oem: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + modified: 2000-01-23T04:56:07.000+00:00 + model: model + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + rack: rack + mgmt_ip: mgmt_ip + created: 2000-01-23T04:56:07.000+00:00 + bmc_ip: bmc_ip + bmc_user: bmc_user + cpu: 82 + serial_number: serial_number + gpu: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + rack_unit: 31 + garage_id: garage_id + bmc_password: bmc_password + gpu_count: 9 + nic_prefixes: + - nic_prefixes + - nic_prefixes + provider_node_id: provider_node_id + location: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + network_type: "" + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/Node' + type: array + required: + - count + - results + PaginatedOEMList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/OEM' + type: array + required: + - count + - results + PaginatedPersonaChoiceList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 0 + - created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 0 + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/PersonaChoice' + type: array + required: + - count + - results + PaginatedProviderList: + example: + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + count: 123 + results: + - created: 2000-01-23T04:56:07.000+00:00 + instance_limit: 171976544 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + display_name: display_name + priority: 60 + - created: 2000-01-23T04:56:07.000+00:00 + instance_limit: 171976544 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + display_name: display_name + priority: 60 + properties: + count: + example: 123 + type: integer + next: + example: https://launchpad.api.nvidia.com/example/?page=4 + format: uri + type: string + nullable: true + previous: + example: https://launchpad.api.nvidia.com/example/?page=2 + format: uri + type: string + nullable: true + results: + items: + $ref: '#/components/schemas/Provider' + type: array + required: + - count + - results + PasswordChange: + example: + result: Password changed successfully. + password: password + new_password: new_password + username: username + properties: + username: + type: string + writeOnly: true + password: + type: string + writeOnly: true + new_password: + type: string + writeOnly: true + result: + default: Password changed successfully. + readOnly: true + type: string + required: + - new_password + - password + - result + - username + PersonaChoice: + example: + created: 2000-01-23T04:56:07.000+00:00 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 0 + properties: + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + id: + readOnly: true + type: integer + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + name: + maxLength: 32 + type: string + required: + - created + - id + - modified + - name + PlatformEnum: + description: |- + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere_horizon + - vsphere7 + - vsphere8 + type: string + x-enum-varnames: + - PlatformAir + - PlatformFlightDeck + - PlatformKvmBastion + - PlatformLpVmwarePlatformLegacy + - PlatformMinimal + - PlatformOpenshift + - PlatformVsphere + - PlatformVsphereHorizon + - PlatformVsphere7 + - PlatformVsphere8 + PreferredThemeEnum: + description: |- + * `light` - light + * `dark` - dark + enum: + - light + - dark + type: string + x-enum-varnames: + - PreferredThemeLight + - PreferredThemeDark + PriorityEnum: + description: |- + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + enum: + - p0 + - p1 + - p2 + - p3 + type: string + x-enum-varnames: + - PriorityP0 + - PriorityP1 + - PriorityP2 + - PriorityP3 + Profile: + example: + preferred_theme: light + created: 2000-01-23T04:56:07.000+00:00 + groups: + - groups + - groups + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + preferred_view_settings: "" + username: username + properties: + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + groups: + items: + type: string + type: array + id: + format: uuid + readOnly: true + type: string + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + preferred_theme: + $ref: '#/components/schemas/PreferredThemeEnum' + preferred_view_settings: {} + username: + type: string + required: + - created + - groups + - id + - modified + - username + Provider: + example: + created: 2000-01-23T04:56:07.000+00:00 + instance_limit: 171976544 + name: name + modified: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + display_name: display_name + priority: 60 + properties: + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + display_name: + description: Human-friendly version of name. Used for display purposes. + maxLength: 64 + nullable: true + type: string + id: + format: uuid + readOnly: true + type: string + instance_limit: + description: The maximum number of provisionined instances allowed globally + for the provider (0 = unlimited) + maximum: 2147483647 + minimum: 0 + type: integer + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + name: + maxLength: 64 + type: string + priority: + description: Weighted preference to use in selecting a provider for a deployment. + Higher priority values will be preferred over lower ones. + maximum: 100 + minimum: 0 + type: integer + required: + - created + - id + - modified + - name + ProviderBulkUpdate: + example: + result: result + created: 2000-01-23T04:56:07.000+00:00 + instance_limit: 171976544 + name: name + count: 1 + modified: 2000-01-23T04:56:07.000+00:00 + ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + display_name: display_name + priority: 60 + properties: + created: + description: Timestamp of when the object was created + format: date-time + readOnly: true + type: string + writeOnly: true + display_name: + description: Human-friendly version of name. Used for display purposes. + maxLength: 64 + nullable: true + type: string + writeOnly: true + id: + format: uuid + readOnly: true + type: string + writeOnly: true + instance_limit: + description: The maximum number of provisionined instances allowed globally + for the provider (0 = unlimited) + maximum: 2147483647 + minimum: 0 + type: integer + writeOnly: true + modified: + description: Timestamp of when the object was last modified + format: date-time + readOnly: true + type: string + writeOnly: true + name: + maxLength: 64 + readOnly: true + type: string + writeOnly: true + priority: + description: Weighted preference to use in selecting a provider for a deployment. + Higher priority values will be preferred over lower ones. + maximum: 100 + minimum: 0 + type: integer + writeOnly: true + count: + readOnly: true + type: integer + ids: + items: + format: uuid + type: string + type: array + result: + readOnly: true + type: string + required: + - count + - created + - id + - ids + - modified + - name + - result + ProvisioningStateEnum: + description: |- + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + enum: + - deployed + - deploying + - destroying + - pending + - ready + - reserved + - unprovisioned + type: string + x-enum-varnames: + - ProvisioningStateDeployed + - ProvisioningStateDeploying + - ProvisioningStateDestroying + - ProvisioningStatePending + - ProvisioningStateReady + - ProvisioningStateReserved + - ProvisioningStateUnprovisioned + PublishedEnum: + description: |- + * `draft` - draft + * `no` - no + * `yes` - yes + enum: + - draft + - "no" + - "yes" + type: string + x-enum-varnames: + - PublishedDraft + - PublishedNo + - PublishedYes + StatusEnum: + description: |- + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + enum: + - completed + - failed + - pending + - processing + - retrying + type: string + x-enum-varnames: + - StatusCompleted + - StatusFailed + - StatusPending + - StatusProcessing + - StatusRetrying + SystemArchEnum: + description: |- + * `amd64` - amd64 + * `arm64` - arm64 + enum: + - amd64 + - arm64 + type: string + x-enum-varnames: + - SystemArchAMD64 + - SystemArchARM64 + Tenant: + example: + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + id: + format: uuid + type: string + writeOnly: true + required: + - id + TypeEnum: + description: |- + * `nvme` - NVMe + * `ssd` - ssd + enum: + - nvme + - ssd + type: string + x-enum-varnames: + - TypeNVMe + - TypeSSD + VgpuProfileEnum: + description: |- + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q + * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + enum: + - air + - bright_cluster + - bright-cluster + - flight_deck + - flight-deck + - nvidia_a40-48q + - nvidia-ai-enterprise + - nvidia_l40s-48q + - nvidia_rtx_pro_6000_blackwell_dc-4-96q + - nvidia_rtx_pro_6000_blackwell_dc-96q + - openshift + - platform_only + - vmware_itadmin + type: string + x-enum-varnames: + - VgpuProfileAir + - VgpuProfileBrightCluster + - VgpuProfileBrightClusterLegacy + - VgpuProfileFlightDeck + - VgpuProfileFlightDeckLegacy + - VgpuProfileNvidiaA4048QLegacy + - VgpuProfileNvidiaAiEnterpriseLegacy + - VgpuProfileNvidiaL40s48QLegacy + - VgpuProfileNvidiaRtxPro6000BlackwellDc496QLegacy + - VgpuProfileNvidiaRtxPro6000BlackwellDc96QLegacy + - VgpuProfileOpenshift + - VgpuProfilePlatformOnly + - VgpuProfileVmwareItadmin + catalog_experiences_bulk_create_request: + properties: + csv_file: + format: binary + type: string + writeOnly: true + required: + - csv_file + Cluster_deployment: + oneOf: + - format: uuid + type: string + - $ref: '#/components/schemas/Deployment' + x-go-json-tag: "deployment,omitempty" + Cluster_gpus_inner: + oneOf: + - format: uuid + type: string + - $ref: '#/components/schemas/Gpu' + x-go-json-tag: "gpu,omitempty" + Cluster_instances_inner: + oneOf: + - format: uuid + type: string + - $ref: '#/components/schemas/Instance' + x-go-json-tag: "instance,omitempty" + Cluster_nodes_inner: + oneOf: + - format: uuid + type: string + - $ref: '#/components/schemas/Node' + x-go-json-tag: "node,omitempty" + Deployment_cluster: + oneOf: + - format: uuid + type: string + - $ref: '#/components/schemas/Cluster' + x-go-json-tag: "cluster,omitempty" + Deployment_experience: + oneOf: + - format: uuid + type: string + - $ref: '#/components/schemas/Experience' + x-go-json-tag: "experience,omitempty" + Location_provider: + oneOf: + - format: uuid + type: string + - $ref: '#/components/schemas/Provider' + x-go-json-tag: "provider,omitempty" + ModelChange_changes_inner_new_value: + oneOf: + - type: string + - type: boolean + - type: integer + nullable: true + ModelChange_changes_inner: + example: + field: field + old_value: null + new_value: ModelChange_changes_inner_new_value + properties: + field: + type: string + new_value: + $ref: '#/components/schemas/ModelChange_changes_inner_new_value' + old_value: + $ref: '#/components/schemas/ModelChange_changes_inner_new_value' + required: + - field + - new_value + - old_value + Node_location: + oneOf: + - format: uuid + type: string + - $ref: '#/components/schemas/Location' + x-go-json-tag: "location,omitempty" + securitySchemes: + TokenAuthentication: + description: "Authenticate with your user's API token. Be sure to include a\ + \ prefix of \"Token\" (ex: \"Token xxxxx\")." + in: header + name: Authorization + type: apiKey diff --git a/v1/providers/launchpad/gen/launchpad/api_auth.go b/v1/providers/launchpad/gen/launchpad/api_auth.go new file mode 100644 index 0000000..df4e1fe --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api_auth.go @@ -0,0 +1,559 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + +// AuthAPIService AuthAPI service +type AuthAPIService service + +type ApiAuthLoginCreateRequest struct { + ctx context.Context + ApiService *AuthAPIService + authCode *string + password *string + username *string +} + +func (r ApiAuthLoginCreateRequest) AuthCode(authCode string) ApiAuthLoginCreateRequest { + r.authCode = &authCode + return r +} + +func (r ApiAuthLoginCreateRequest) Password(password string) ApiAuthLoginCreateRequest { + r.password = &password + return r +} + +func (r ApiAuthLoginCreateRequest) Username(username string) ApiAuthLoginCreateRequest { + r.username = &username + return r +} + +func (r ApiAuthLoginCreateRequest) Execute() (*AuthToken, *http.Response, error) { + return r.ApiService.AuthLoginCreateExecute(r) +} + +/* +AuthLoginCreate Method for AuthLoginCreate + +Login with either an authorization code or username and password (deprecated) to generate an API token that can be used with all other API endpoints. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthLoginCreateRequest +*/ +func (a *AuthAPIService) AuthLoginCreate(ctx context.Context) ApiAuthLoginCreateRequest { + return ApiAuthLoginCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return AuthToken +func (a *AuthAPIService) AuthLoginCreateExecute(r ApiAuthLoginCreateRequest) (*AuthToken, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthToken + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.AuthLoginCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/auth/login/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/x-www-form-urlencoded", "multipart/form-data", "application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.authCode != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "auth_code", r.authCode, "", "") + } + if r.password != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "password", r.password, "", "") + } + if r.username != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "username", r.username, "", "") + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAuthLogoutCreateRequest struct { + ctx context.Context + ApiService *AuthAPIService +} + +func (r ApiAuthLogoutCreateRequest) Execute() (*Logout, *http.Response, error) { + return r.ApiService.AuthLogoutCreateExecute(r) +} + +/* +AuthLogoutCreate Method for AuthLogoutCreate + +Logout from the current session. Your API token will no longer be usable and must be regenerated via the login API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthLogoutCreateRequest +*/ +func (a *AuthAPIService) AuthLogoutCreate(ctx context.Context) ApiAuthLogoutCreateRequest { + return ApiAuthLogoutCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Logout +func (a *AuthAPIService) AuthLogoutCreateExecute(r ApiAuthLogoutCreateRequest) (*Logout, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Logout + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.AuthLogoutCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/auth/logout/" + + 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAuthPasswordChangeCreateRequest struct { + ctx context.Context + ApiService *AuthAPIService + username *string + password *string + newPassword *string + result *string +} + +func (r ApiAuthPasswordChangeCreateRequest) Username(username string) ApiAuthPasswordChangeCreateRequest { + r.username = &username + return r +} + +func (r ApiAuthPasswordChangeCreateRequest) Password(password string) ApiAuthPasswordChangeCreateRequest { + r.password = &password + return r +} + +func (r ApiAuthPasswordChangeCreateRequest) NewPassword(newPassword string) ApiAuthPasswordChangeCreateRequest { + r.newPassword = &newPassword + return r +} + +func (r ApiAuthPasswordChangeCreateRequest) Result(result string) ApiAuthPasswordChangeCreateRequest { + r.result = &result + return r +} + +func (r ApiAuthPasswordChangeCreateRequest) Execute() (*PasswordChange, *http.Response, error) { + return r.ApiService.AuthPasswordChangeCreateExecute(r) +} + +/* +AuthPasswordChangeCreate Method for AuthPasswordChangeCreate + +Change your current password + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthPasswordChangeCreateRequest + +Deprecated +*/ +func (a *AuthAPIService) AuthPasswordChangeCreate(ctx context.Context) ApiAuthPasswordChangeCreateRequest { + return ApiAuthPasswordChangeCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PasswordChange +// +// Deprecated +func (a *AuthAPIService) AuthPasswordChangeCreateExecute(r ApiAuthPasswordChangeCreateRequest) (*PasswordChange, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PasswordChange + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.AuthPasswordChangeCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/auth/password-change/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.username == nil { + return localVarReturnValue, nil, reportError("username is required and must be specified") + } + if r.password == nil { + return localVarReturnValue, nil, reportError("password is required and must be specified") + } + if r.newPassword == nil { + return localVarReturnValue, nil, reportError("newPassword is required and must be specified") + } + if r.result == nil { + return localVarReturnValue, nil, reportError("result is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/x-www-form-urlencoded", "multipart/form-data", "application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarFormParams, "username", r.username, "", "") + parameterAddToHeaderOrQuery(localVarFormParams, "password", r.password, "", "") + parameterAddToHeaderOrQuery(localVarFormParams, "new_password", r.newPassword, "", "") + parameterAddToHeaderOrQuery(localVarFormParams, "result", r.result, "", "") + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAuthRedirectRetrieveRequest struct { + ctx context.Context + ApiService *AuthAPIService + asJson *bool +} + +// If \"false\" or unset, receive an HTTP 302 with the OAuth URL returned in the Location header. If \"true\", receive an HTTP 200 with the OAuth URL returned in the JSON payload. +func (r ApiAuthRedirectRetrieveRequest) AsJson(asJson bool) ApiAuthRedirectRetrieveRequest { + r.asJson = &asJson + return r +} + +func (r ApiAuthRedirectRetrieveRequest) Execute() (*AuthRedirect, *http.Response, error) { + return r.ApiService.AuthRedirectRetrieveExecute(r) +} + +/* +AuthRedirectRetrieve Method for AuthRedirectRetrieve + +Get an HTTP redirect to begin an OAuth login flow. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthRedirectRetrieveRequest +*/ +func (a *AuthAPIService) AuthRedirectRetrieve(ctx context.Context) ApiAuthRedirectRetrieveRequest { + return ApiAuthRedirectRetrieveRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return AuthRedirect +func (a *AuthAPIService) AuthRedirectRetrieveExecute(r ApiAuthRedirectRetrieveRequest) (*AuthRedirect, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthRedirect + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.AuthRedirectRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/auth/redirect/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.asJson != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "as_json", r.asJson, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v1/providers/launchpad/gen/launchpad/api_catalog_deployments.go b/v1/providers/launchpad/gen/launchpad/api_catalog_deployments.go new file mode 100644 index 0000000..2ee854a --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api_catalog_deployments.go @@ -0,0 +1,4937 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// CatalogDeploymentsAPIService CatalogDeploymentsAPI service +type CatalogDeploymentsAPIService service + +type ApiCatalogDeploymentsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentBulkUpdate *DeploymentBulkUpdate +} + +func (r ApiCatalogDeploymentsBulkPartialUpdateRequest) DeploymentBulkUpdate(deploymentBulkUpdate DeploymentBulkUpdate) ApiCatalogDeploymentsBulkPartialUpdateRequest { + r.deploymentBulkUpdate = &deploymentBulkUpdate + return r +} + +func (r ApiCatalogDeploymentsBulkPartialUpdateRequest) Execute() (*DeploymentBulkUpdate, *http.Response, error) { + return r.ApiService.CatalogDeploymentsBulkPartialUpdateExecute(r) +} + +/* +CatalogDeploymentsBulkPartialUpdate Method for CatalogDeploymentsBulkPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCatalogDeploymentsBulkPartialUpdateRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsBulkPartialUpdate(ctx context.Context) ApiCatalogDeploymentsBulkPartialUpdateRequest { + return ApiCatalogDeploymentsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return DeploymentBulkUpdate +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsBulkPartialUpdateExecute(r ApiCatalogDeploymentsBulkPartialUpdateRequest) (*DeploymentBulkUpdate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeploymentBulkUpdate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/bulk/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deploymentBulkUpdate == nil { + return localVarReturnValue, nil, reportError("deploymentBulkUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deploymentBulkUpdate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsCreateRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deployment *Deployment + expand *string +} + +func (r ApiCatalogDeploymentsCreateRequest) Deployment(deployment Deployment) ApiCatalogDeploymentsCreateRequest { + r.deployment = &deployment + return r +} + +// Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). +func (r ApiCatalogDeploymentsCreateRequest) Expand(expand string) ApiCatalogDeploymentsCreateRequest { + r.expand = &expand + return r +} + +func (r ApiCatalogDeploymentsCreateRequest) Execute() (*Deployment, *http.Response, error) { + return r.ApiService.CatalogDeploymentsCreateExecute(r) +} + +/* +CatalogDeploymentsCreate Method for CatalogDeploymentsCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCatalogDeploymentsCreateRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsCreate(ctx context.Context) ApiCatalogDeploymentsCreateRequest { + return ApiCatalogDeploymentsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Deployment +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsCreateExecute(r ApiCatalogDeploymentsCreateRequest) (*Deployment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Deployment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deployment == nil { + return localVarReturnValue, nil, reportError("deployment is required and must be specified") + } + + if r.expand != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expand", r.expand, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deployment + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsDestroyRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + id string +} + +func (r ApiCatalogDeploymentsDestroyRequest) Execute() (*DocDeploymentDelete, *http.Response, error) { + return r.ApiService.CatalogDeploymentsDestroyExecute(r) +} + +/* +CatalogDeploymentsDestroy Method for CatalogDeploymentsDestroy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this deployment. + @return ApiCatalogDeploymentsDestroyRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsDestroy(ctx context.Context, id string) ApiCatalogDeploymentsDestroyRequest { + return ApiCatalogDeploymentsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return DocDeploymentDelete +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsDestroyExecute(r ApiCatalogDeploymentsDestroyRequest) (*DocDeploymentDelete, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DocDeploymentDelete + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsDestroy") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsHistoryListRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + id string + page *int32 + pageSize *int32 +} + +// A page number within the paginated result set. +func (r ApiCatalogDeploymentsHistoryListRequest) Page(page int32) ApiCatalogDeploymentsHistoryListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiCatalogDeploymentsHistoryListRequest) PageSize(pageSize int32) ApiCatalogDeploymentsHistoryListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiCatalogDeploymentsHistoryListRequest) Execute() (*PaginatedModelChangeList, *http.Response, error) { + return r.ApiService.CatalogDeploymentsHistoryListExecute(r) +} + +/* +CatalogDeploymentsHistoryList Method for CatalogDeploymentsHistoryList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiCatalogDeploymentsHistoryListRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsHistoryList(ctx context.Context, id string) ApiCatalogDeploymentsHistoryListRequest { + return ApiCatalogDeploymentsHistoryListRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return PaginatedModelChangeList +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsHistoryListExecute(r ApiCatalogDeploymentsHistoryListRequest) (*PaginatedModelChangeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModelChangeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsHistoryList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{id}/history/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsInstancesListRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + fields *string + id *string + instanceId *string + name *string + omit *string + ordering *string + page *int32 + pageSize *int32 + search *string + state *string +} + +// Include only the specified fields in the response +func (r ApiCatalogDeploymentsInstancesListRequest) Fields(fields string) ApiCatalogDeploymentsInstancesListRequest { + r.fields = &fields + return r +} + +func (r ApiCatalogDeploymentsInstancesListRequest) Id(id string) ApiCatalogDeploymentsInstancesListRequest { + r.id = &id + return r +} + +func (r ApiCatalogDeploymentsInstancesListRequest) InstanceId(instanceId string) ApiCatalogDeploymentsInstancesListRequest { + r.instanceId = &instanceId + return r +} + +func (r ApiCatalogDeploymentsInstancesListRequest) Name(name string) ApiCatalogDeploymentsInstancesListRequest { + r.name = &name + return r +} + +// Exclude the specified fields in the response +func (r ApiCatalogDeploymentsInstancesListRequest) Omit(omit string) ApiCatalogDeploymentsInstancesListRequest { + r.omit = &omit + return r +} + +// Which field to use when ordering the results. +func (r ApiCatalogDeploymentsInstancesListRequest) Ordering(ordering string) ApiCatalogDeploymentsInstancesListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiCatalogDeploymentsInstancesListRequest) Page(page int32) ApiCatalogDeploymentsInstancesListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiCatalogDeploymentsInstancesListRequest) PageSize(pageSize int32) ApiCatalogDeploymentsInstancesListRequest { + r.pageSize = &pageSize + return r +} + +// Search for deployment-instances by id, instance_id, name, state, tags +func (r ApiCatalogDeploymentsInstancesListRequest) Search(search string) ApiCatalogDeploymentsInstancesListRequest { + r.search = &search + return r +} + +// Current lifecycle state of this instance * `running` - Instance is running * `starting` - Instance is starting * `stopped` - Instance is stopped * `stopping` - Instance is stopping * `unknown` - Instance state is currently unknown +func (r ApiCatalogDeploymentsInstancesListRequest) State(state string) ApiCatalogDeploymentsInstancesListRequest { + r.state = &state + return r +} + +func (r ApiCatalogDeploymentsInstancesListRequest) Execute() (*PaginatedDeploymentInstanceList, *http.Response, error) { + return r.ApiService.CatalogDeploymentsInstancesListExecute(r) +} + +/* +CatalogDeploymentsInstancesList 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @return ApiCatalogDeploymentsInstancesListRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsInstancesList(ctx context.Context, deploymentId string) ApiCatalogDeploymentsInstancesListRequest { + return ApiCatalogDeploymentsInstancesListRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + } +} + +// Execute executes the request +// +// @return PaginatedDeploymentInstanceList +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsInstancesListExecute(r ApiCatalogDeploymentsInstancesListRequest) (*PaginatedDeploymentInstanceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeploymentInstanceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsInstancesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/instances/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.instanceId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "instance_id", r.instanceId, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + if r.state != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "state", r.state, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsListRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + bastionOperatingSystem *string + cluster *string + clusterGpusModel *[]string + collectionBranch *string + expand *string + experience *string + experienceBranch *string + expired *bool + expiresAt *string + expiring *string + fields *string + flightcontrolRelease *string + garageId *string + gcBranch *string + gpuAlias *string + gpuCount *int32 + gpuModel *string + gpuOsName *string + gpuOsRelease *string + gpuOsVersion *string + id *string + nodeCount *int32 + oemName *string + omit *string + ordering *string + orgName *string + page *int32 + pageSize *int32 + persistOnFailure *bool + persona *string + pipeline *int32 + pipelineBranch *string + platform *string + priority *string + providerName *string + region *string + requestId *string + requesterEmail *string + requesterName *string + salesId *string + salesOwnerEmail *string + salesOwnerName *string + search *string + state *[]string + workshop *bool + workshopId *string +} + +func (r ApiCatalogDeploymentsListRequest) BastionOperatingSystem(bastionOperatingSystem string) ApiCatalogDeploymentsListRequest { + r.bastionOperatingSystem = &bastionOperatingSystem + return r +} + +func (r ApiCatalogDeploymentsListRequest) Cluster(cluster string) ApiCatalogDeploymentsListRequest { + r.cluster = &cluster + return r +} + +// Multiple values may be separated by commas. +func (r ApiCatalogDeploymentsListRequest) ClusterGpusModel(clusterGpusModel []string) ApiCatalogDeploymentsListRequest { + r.clusterGpusModel = &clusterGpusModel + return r +} + +func (r ApiCatalogDeploymentsListRequest) CollectionBranch(collectionBranch string) ApiCatalogDeploymentsListRequest { + r.collectionBranch = &collectionBranch + return r +} + +// Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). +func (r ApiCatalogDeploymentsListRequest) Expand(expand string) ApiCatalogDeploymentsListRequest { + r.expand = &expand + return r +} + +func (r ApiCatalogDeploymentsListRequest) Experience(experience string) ApiCatalogDeploymentsListRequest { + r.experience = &experience + return r +} + +func (r ApiCatalogDeploymentsListRequest) ExperienceBranch(experienceBranch string) ApiCatalogDeploymentsListRequest { + r.experienceBranch = &experienceBranch + return r +} + +func (r ApiCatalogDeploymentsListRequest) Expired(expired bool) ApiCatalogDeploymentsListRequest { + r.expired = &expired + return r +} + +func (r ApiCatalogDeploymentsListRequest) ExpiresAt(expiresAt string) ApiCatalogDeploymentsListRequest { + r.expiresAt = &expiresAt + return r +} + +// Include deployments whose expires_at value is within the given range (inclusive), specified as \"today\", \"tomorrow\", or \"{start}[,end]\". Start and end times must be in ISO format. +func (r ApiCatalogDeploymentsListRequest) Expiring(expiring string) ApiCatalogDeploymentsListRequest { + r.expiring = &expiring + return r +} + +// Include only the specified fields in the response +func (r ApiCatalogDeploymentsListRequest) Fields(fields string) ApiCatalogDeploymentsListRequest { + r.fields = &fields + return r +} + +func (r ApiCatalogDeploymentsListRequest) FlightcontrolRelease(flightcontrolRelease string) ApiCatalogDeploymentsListRequest { + r.flightcontrolRelease = &flightcontrolRelease + return r +} + +func (r ApiCatalogDeploymentsListRequest) GarageId(garageId string) ApiCatalogDeploymentsListRequest { + r.garageId = &garageId + return r +} + +func (r ApiCatalogDeploymentsListRequest) GcBranch(gcBranch string) ApiCatalogDeploymentsListRequest { + r.gcBranch = &gcBranch + return r +} + +func (r ApiCatalogDeploymentsListRequest) GpuAlias(gpuAlias string) ApiCatalogDeploymentsListRequest { + r.gpuAlias = &gpuAlias + return r +} + +func (r ApiCatalogDeploymentsListRequest) GpuCount(gpuCount int32) ApiCatalogDeploymentsListRequest { + r.gpuCount = &gpuCount + return r +} + +func (r ApiCatalogDeploymentsListRequest) GpuModel(gpuModel string) ApiCatalogDeploymentsListRequest { + r.gpuModel = &gpuModel + return r +} + +func (r ApiCatalogDeploymentsListRequest) GpuOsName(gpuOsName string) ApiCatalogDeploymentsListRequest { + r.gpuOsName = &gpuOsName + return r +} + +func (r ApiCatalogDeploymentsListRequest) GpuOsRelease(gpuOsRelease string) ApiCatalogDeploymentsListRequest { + r.gpuOsRelease = &gpuOsRelease + return r +} + +func (r ApiCatalogDeploymentsListRequest) GpuOsVersion(gpuOsVersion string) ApiCatalogDeploymentsListRequest { + r.gpuOsVersion = &gpuOsVersion + return r +} + +func (r ApiCatalogDeploymentsListRequest) Id(id string) ApiCatalogDeploymentsListRequest { + r.id = &id + return r +} + +func (r ApiCatalogDeploymentsListRequest) NodeCount(nodeCount int32) ApiCatalogDeploymentsListRequest { + r.nodeCount = &nodeCount + return r +} + +func (r ApiCatalogDeploymentsListRequest) OemName(oemName string) ApiCatalogDeploymentsListRequest { + r.oemName = &oemName + return r +} + +// Exclude the specified fields in the response +func (r ApiCatalogDeploymentsListRequest) Omit(omit string) ApiCatalogDeploymentsListRequest { + r.omit = &omit + return r +} + +// Which field to use when ordering the results. +func (r ApiCatalogDeploymentsListRequest) Ordering(ordering string) ApiCatalogDeploymentsListRequest { + r.ordering = &ordering + return r +} + +func (r ApiCatalogDeploymentsListRequest) OrgName(orgName string) ApiCatalogDeploymentsListRequest { + r.orgName = &orgName + return r +} + +// A page number within the paginated result set. +func (r ApiCatalogDeploymentsListRequest) Page(page int32) ApiCatalogDeploymentsListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiCatalogDeploymentsListRequest) PageSize(pageSize int32) ApiCatalogDeploymentsListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiCatalogDeploymentsListRequest) PersistOnFailure(persistOnFailure bool) ApiCatalogDeploymentsListRequest { + r.persistOnFailure = &persistOnFailure + return r +} + +func (r ApiCatalogDeploymentsListRequest) Persona(persona string) ApiCatalogDeploymentsListRequest { + r.persona = &persona + return r +} + +func (r ApiCatalogDeploymentsListRequest) Pipeline(pipeline int32) ApiCatalogDeploymentsListRequest { + r.pipeline = &pipeline + return r +} + +func (r ApiCatalogDeploymentsListRequest) PipelineBranch(pipelineBranch string) ApiCatalogDeploymentsListRequest { + r.pipelineBranch = &pipelineBranch + return r +} + +// Override the default platform selection * `air` - NVIDIA Air * `flight_deck` - Flight Deck * `kvm_bastion` - KVM Bastion * `lp-vmware-platform` - lp-vmware-platform * `minimal` - minimal * `openshift` - OpenShift * `vsphere` - vSphere * `vsphere_horizon` - VMware Horizon * `vsphere7` - vSphere 7 * `vsphere8` - vSphere 8 +func (r ApiCatalogDeploymentsListRequest) Platform(platform string) ApiCatalogDeploymentsListRequest { + r.platform = &platform + return r +} + +// Priority level for the request * `p0` - p0 * `p1` - p1 * `p2` - p2 * `p3` - p3 +func (r ApiCatalogDeploymentsListRequest) Priority(priority string) ApiCatalogDeploymentsListRequest { + r.priority = &priority + return r +} + +func (r ApiCatalogDeploymentsListRequest) ProviderName(providerName string) ApiCatalogDeploymentsListRequest { + r.providerName = &providerName + return r +} + +func (r ApiCatalogDeploymentsListRequest) Region(region string) ApiCatalogDeploymentsListRequest { + r.region = ®ion + return r +} + +func (r ApiCatalogDeploymentsListRequest) RequestId(requestId string) ApiCatalogDeploymentsListRequest { + r.requestId = &requestId + return r +} + +func (r ApiCatalogDeploymentsListRequest) RequesterEmail(requesterEmail string) ApiCatalogDeploymentsListRequest { + r.requesterEmail = &requesterEmail + return r +} + +func (r ApiCatalogDeploymentsListRequest) RequesterName(requesterName string) ApiCatalogDeploymentsListRequest { + r.requesterName = &requesterName + return r +} + +func (r ApiCatalogDeploymentsListRequest) SalesId(salesId string) ApiCatalogDeploymentsListRequest { + r.salesId = &salesId + return r +} + +func (r ApiCatalogDeploymentsListRequest) SalesOwnerEmail(salesOwnerEmail string) ApiCatalogDeploymentsListRequest { + r.salesOwnerEmail = &salesOwnerEmail + return r +} + +func (r ApiCatalogDeploymentsListRequest) SalesOwnerName(salesOwnerName string) ApiCatalogDeploymentsListRequest { + r.salesOwnerName = &salesOwnerName + return r +} + +// Search for deployments by bastion_operating_system, collection_branch, experience_branch, experience catalog_id, experience catalog_id_alias, experience id, experience title, expires_at, flightcontrol_release, garage_id, gc_branch, gpu_alias, gpu_model, gpu_os_name, gpu_os_release, gpu_os_version, id, oem_name, org_name, persona, pipeline_branch, platform, provider_name, region, request_id, requester_email, requester_name, sales_id, sales_owner_email, sales_owner_name, services url, state, tags, workshop_id +func (r ApiCatalogDeploymentsListRequest) Search(search string) ApiCatalogDeploymentsListRequest { + r.search = &search + return r +} + +// Multiple values may be separated by commas. * `destroyed` - Deployment has been fully destroyed * `destroying` - Deployment is being destroyed * `error` - Deployment has encountered a fatal error and will not be retried * `failed` - Deployment has failed but may be retried * `paused` - Deployment is paused but may be retried later * `ready` - Deployment is ready and all instances are running * `retrying` - Deployment is retrying * `starting` - Deployment instances are starting * `stopped` - Deployment instances are stopped * `stopping` - Deployment instances are stopping * `waiting` - Waiting for deployment to be ready +func (r ApiCatalogDeploymentsListRequest) State(state []string) ApiCatalogDeploymentsListRequest { + r.state = &state + return r +} + +func (r ApiCatalogDeploymentsListRequest) Workshop(workshop bool) ApiCatalogDeploymentsListRequest { + r.workshop = &workshop + return r +} + +func (r ApiCatalogDeploymentsListRequest) WorkshopId(workshopId string) ApiCatalogDeploymentsListRequest { + r.workshopId = &workshopId + return r +} + +func (r ApiCatalogDeploymentsListRequest) Execute() (*PaginatedDeploymentList, *http.Response, error) { + return r.ApiService.CatalogDeploymentsListExecute(r) +} + +/* +CatalogDeploymentsList Method for CatalogDeploymentsList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCatalogDeploymentsListRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsList(ctx context.Context) ApiCatalogDeploymentsListRequest { + return ApiCatalogDeploymentsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedDeploymentList +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsListExecute(r ApiCatalogDeploymentsListRequest) (*PaginatedDeploymentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeploymentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.bastionOperatingSystem != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "bastion_operating_system", r.bastionOperatingSystem, "form", "") + } + if r.cluster != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", r.cluster, "form", "") + } + if r.clusterGpusModel != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_gpus_model", r.clusterGpusModel, "form", "csv") + } + if r.collectionBranch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "collection_branch", r.collectionBranch, "form", "") + } + if r.expand != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expand", r.expand, "form", "") + } + if r.experience != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "experience", r.experience, "form", "") + } + if r.experienceBranch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "experience_branch", r.experienceBranch, "form", "") + } + if r.expired != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expired", r.expired, "form", "") + } + if r.expiresAt != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expires_at", r.expiresAt, "form", "") + } + if r.expiring != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expiring", r.expiring, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.flightcontrolRelease != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "flightcontrol_release", r.flightcontrolRelease, "form", "") + } + if r.garageId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "garage_id", r.garageId, "form", "") + } + if r.gcBranch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gc_branch", r.gcBranch, "form", "") + } + if r.gpuAlias != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_alias", r.gpuAlias, "form", "") + } + if r.gpuCount != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_count", r.gpuCount, "form", "") + } + if r.gpuModel != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_model", r.gpuModel, "form", "") + } + if r.gpuOsName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_os_name", r.gpuOsName, "form", "") + } + if r.gpuOsRelease != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_os_release", r.gpuOsRelease, "form", "") + } + if r.gpuOsVersion != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_os_version", r.gpuOsVersion, "form", "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.nodeCount != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "node_count", r.nodeCount, "form", "") + } + if r.oemName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "oem_name", r.oemName, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.orgName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "org_name", r.orgName, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.persistOnFailure != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "persist_on_failure", r.persistOnFailure, "form", "") + } + if r.persona != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "persona", r.persona, "form", "") + } + if r.pipeline != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pipeline", r.pipeline, "form", "") + } + if r.pipelineBranch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pipeline_branch", r.pipelineBranch, "form", "") + } + if r.platform != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "platform", r.platform, "form", "") + } + if r.priority != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "priority", r.priority, "form", "") + } + if r.providerName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_name", r.providerName, "form", "") + } + if r.region != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", r.region, "form", "") + } + if r.requestId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "request_id", r.requestId, "form", "") + } + if r.requesterEmail != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "requester_email", r.requesterEmail, "form", "") + } + if r.requesterName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "requester_name", r.requesterName, "form", "") + } + if r.salesId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sales_id", r.salesId, "form", "") + } + if r.salesOwnerEmail != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sales_owner_email", r.salesOwnerEmail, "form", "") + } + if r.salesOwnerName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sales_owner_name", r.salesOwnerName, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + if r.state != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "state", r.state, "form", "csv") + } + if r.workshop != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "workshop", r.workshop, "form", "") + } + if r.workshopId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "workshop_id", r.workshopId, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsNotesCreateRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + deploymentNote *DeploymentNote +} + +func (r ApiCatalogDeploymentsNotesCreateRequest) DeploymentNote(deploymentNote DeploymentNote) ApiCatalogDeploymentsNotesCreateRequest { + r.deploymentNote = &deploymentNote + return r +} + +func (r ApiCatalogDeploymentsNotesCreateRequest) Execute() (*DeploymentNote, *http.Response, error) { + return r.ApiService.CatalogDeploymentsNotesCreateExecute(r) +} + +/* +CatalogDeploymentsNotesCreate Method for CatalogDeploymentsNotesCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @return ApiCatalogDeploymentsNotesCreateRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsNotesCreate(ctx context.Context, deploymentId string) ApiCatalogDeploymentsNotesCreateRequest { + return ApiCatalogDeploymentsNotesCreateRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + } +} + +// Execute executes the request +// +// @return DeploymentNote +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsNotesCreateExecute(r ApiCatalogDeploymentsNotesCreateRequest) (*DeploymentNote, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeploymentNote + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsNotesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/notes/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deploymentNote == nil { + return localVarReturnValue, nil, reportError("deploymentNote is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deploymentNote + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsNotesDestroyRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + id string +} + +func (r ApiCatalogDeploymentsNotesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CatalogDeploymentsNotesDestroyExecute(r) +} + +/* +CatalogDeploymentsNotesDestroy Method for CatalogDeploymentsNotesDestroy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @param id + @return ApiCatalogDeploymentsNotesDestroyRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsNotesDestroy(ctx context.Context, deploymentId string, id string) ApiCatalogDeploymentsNotesDestroyRequest { + return ApiCatalogDeploymentsNotesDestroyRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + id: id, + } +} + +// Execute executes the request +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsNotesDestroyExecute(r ApiCatalogDeploymentsNotesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsNotesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/notes/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiCatalogDeploymentsNotesListRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + createdBy *int32 + deployment *string + fields *string + id *string + modifiedBy *int32 + omit *string + ordering *string + page *int32 + pageSize *int32 + search *string +} + +func (r ApiCatalogDeploymentsNotesListRequest) CreatedBy(createdBy int32) ApiCatalogDeploymentsNotesListRequest { + r.createdBy = &createdBy + return r +} + +func (r ApiCatalogDeploymentsNotesListRequest) Deployment(deployment string) ApiCatalogDeploymentsNotesListRequest { + r.deployment = &deployment + return r +} + +// Include only the specified fields in the response +func (r ApiCatalogDeploymentsNotesListRequest) Fields(fields string) ApiCatalogDeploymentsNotesListRequest { + r.fields = &fields + return r +} + +func (r ApiCatalogDeploymentsNotesListRequest) Id(id string) ApiCatalogDeploymentsNotesListRequest { + r.id = &id + return r +} + +func (r ApiCatalogDeploymentsNotesListRequest) ModifiedBy(modifiedBy int32) ApiCatalogDeploymentsNotesListRequest { + r.modifiedBy = &modifiedBy + return r +} + +// Exclude the specified fields in the response +func (r ApiCatalogDeploymentsNotesListRequest) Omit(omit string) ApiCatalogDeploymentsNotesListRequest { + r.omit = &omit + return r +} + +// Which field to use when ordering the results. +func (r ApiCatalogDeploymentsNotesListRequest) Ordering(ordering string) ApiCatalogDeploymentsNotesListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiCatalogDeploymentsNotesListRequest) Page(page int32) ApiCatalogDeploymentsNotesListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiCatalogDeploymentsNotesListRequest) PageSize(pageSize int32) ApiCatalogDeploymentsNotesListRequest { + r.pageSize = &pageSize + return r +} + +// Search for deployment-notes by content +func (r ApiCatalogDeploymentsNotesListRequest) Search(search string) ApiCatalogDeploymentsNotesListRequest { + r.search = &search + return r +} + +func (r ApiCatalogDeploymentsNotesListRequest) Execute() (*PaginatedDeploymentNoteList, *http.Response, error) { + return r.ApiService.CatalogDeploymentsNotesListExecute(r) +} + +/* +CatalogDeploymentsNotesList Method for CatalogDeploymentsNotesList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @return ApiCatalogDeploymentsNotesListRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsNotesList(ctx context.Context, deploymentId string) ApiCatalogDeploymentsNotesListRequest { + return ApiCatalogDeploymentsNotesListRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + } +} + +// Execute executes the request +// +// @return PaginatedDeploymentNoteList +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsNotesListExecute(r ApiCatalogDeploymentsNotesListRequest) (*PaginatedDeploymentNoteList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeploymentNoteList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsNotesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/notes/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.createdBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by", r.createdBy, "form", "") + } + if r.deployment != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deployment", r.deployment, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.modifiedBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by", r.modifiedBy, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsNotesPartialUpdateRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + id string + deploymentNote *DeploymentNote +} + +func (r ApiCatalogDeploymentsNotesPartialUpdateRequest) DeploymentNote(deploymentNote DeploymentNote) ApiCatalogDeploymentsNotesPartialUpdateRequest { + r.deploymentNote = &deploymentNote + return r +} + +func (r ApiCatalogDeploymentsNotesPartialUpdateRequest) Execute() (*DeploymentNote, *http.Response, error) { + return r.ApiService.CatalogDeploymentsNotesPartialUpdateExecute(r) +} + +/* +CatalogDeploymentsNotesPartialUpdate Method for CatalogDeploymentsNotesPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @param id + @return ApiCatalogDeploymentsNotesPartialUpdateRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsNotesPartialUpdate(ctx context.Context, deploymentId string, id string) ApiCatalogDeploymentsNotesPartialUpdateRequest { + return ApiCatalogDeploymentsNotesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + id: id, + } +} + +// Execute executes the request +// +// @return DeploymentNote +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsNotesPartialUpdateExecute(r ApiCatalogDeploymentsNotesPartialUpdateRequest) (*DeploymentNote, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeploymentNote + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsNotesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/notes/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deploymentNote == nil { + return localVarReturnValue, nil, reportError("deploymentNote is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deploymentNote + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsNotesRetrieveRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + id string + fields *string + omit *string +} + +// Include only the specified fields in the response +func (r ApiCatalogDeploymentsNotesRetrieveRequest) Fields(fields string) ApiCatalogDeploymentsNotesRetrieveRequest { + r.fields = &fields + return r +} + +// Exclude the specified fields in the response +func (r ApiCatalogDeploymentsNotesRetrieveRequest) Omit(omit string) ApiCatalogDeploymentsNotesRetrieveRequest { + r.omit = &omit + return r +} + +func (r ApiCatalogDeploymentsNotesRetrieveRequest) Execute() (*DeploymentNote, *http.Response, error) { + return r.ApiService.CatalogDeploymentsNotesRetrieveExecute(r) +} + +/* +CatalogDeploymentsNotesRetrieve Method for CatalogDeploymentsNotesRetrieve + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @param id + @return ApiCatalogDeploymentsNotesRetrieveRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsNotesRetrieve(ctx context.Context, deploymentId string, id string) ApiCatalogDeploymentsNotesRetrieveRequest { + return ApiCatalogDeploymentsNotesRetrieveRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + id: id, + } +} + +// Execute executes the request +// +// @return DeploymentNote +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsNotesRetrieveExecute(r ApiCatalogDeploymentsNotesRetrieveRequest) (*DeploymentNote, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeploymentNote + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsNotesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/notes/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsNotesUpdateRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + id string + deploymentNote *DeploymentNote +} + +func (r ApiCatalogDeploymentsNotesUpdateRequest) DeploymentNote(deploymentNote DeploymentNote) ApiCatalogDeploymentsNotesUpdateRequest { + r.deploymentNote = &deploymentNote + return r +} + +func (r ApiCatalogDeploymentsNotesUpdateRequest) Execute() (*DeploymentNote, *http.Response, error) { + return r.ApiService.CatalogDeploymentsNotesUpdateExecute(r) +} + +/* +CatalogDeploymentsNotesUpdate Method for CatalogDeploymentsNotesUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @param id + @return ApiCatalogDeploymentsNotesUpdateRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsNotesUpdate(ctx context.Context, deploymentId string, id string) ApiCatalogDeploymentsNotesUpdateRequest { + return ApiCatalogDeploymentsNotesUpdateRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + id: id, + } +} + +// Execute executes the request +// +// @return DeploymentNote +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsNotesUpdateExecute(r ApiCatalogDeploymentsNotesUpdateRequest) (*DeploymentNote, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeploymentNote + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsNotesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/notes/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deploymentNote == nil { + return localVarReturnValue, nil, reportError("deploymentNote is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deploymentNote + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsPartialUpdateRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + id string + deploymentUpdate *DeploymentUpdate +} + +func (r ApiCatalogDeploymentsPartialUpdateRequest) DeploymentUpdate(deploymentUpdate DeploymentUpdate) ApiCatalogDeploymentsPartialUpdateRequest { + r.deploymentUpdate = &deploymentUpdate + return r +} + +func (r ApiCatalogDeploymentsPartialUpdateRequest) Execute() (*DeploymentUpdate, *http.Response, error) { + return r.ApiService.CatalogDeploymentsPartialUpdateExecute(r) +} + +/* +CatalogDeploymentsPartialUpdate Method for CatalogDeploymentsPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this deployment. + @return ApiCatalogDeploymentsPartialUpdateRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsPartialUpdate(ctx context.Context, id string) ApiCatalogDeploymentsPartialUpdateRequest { + return ApiCatalogDeploymentsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return DeploymentUpdate +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsPartialUpdateExecute(r ApiCatalogDeploymentsPartialUpdateRequest) (*DeploymentUpdate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeploymentUpdate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deploymentUpdate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsPipelinesCreateRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + deploymentPipeline *DeploymentPipeline +} + +func (r ApiCatalogDeploymentsPipelinesCreateRequest) DeploymentPipeline(deploymentPipeline DeploymentPipeline) ApiCatalogDeploymentsPipelinesCreateRequest { + r.deploymentPipeline = &deploymentPipeline + return r +} + +func (r ApiCatalogDeploymentsPipelinesCreateRequest) Execute() (*DeploymentPipeline, *http.Response, error) { + return r.ApiService.CatalogDeploymentsPipelinesCreateExecute(r) +} + +/* +CatalogDeploymentsPipelinesCreate Method for CatalogDeploymentsPipelinesCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @return ApiCatalogDeploymentsPipelinesCreateRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsPipelinesCreate(ctx context.Context, deploymentId string) ApiCatalogDeploymentsPipelinesCreateRequest { + return ApiCatalogDeploymentsPipelinesCreateRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + } +} + +// Execute executes the request +// +// @return DeploymentPipeline +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsPipelinesCreateExecute(r ApiCatalogDeploymentsPipelinesCreateRequest) (*DeploymentPipeline, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeploymentPipeline + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsPipelinesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/pipelines/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deploymentPipeline == nil { + return localVarReturnValue, nil, reportError("deploymentPipeline is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deploymentPipeline + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsPipelinesListRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + action *string + id *string + ordering *string + page *int32 + pageSize *int32 + pipelineId *int32 + search *string +} + +// Action for the pipeline to run * `apply` - apply * `destroy` - destroy +func (r ApiCatalogDeploymentsPipelinesListRequest) Action(action string) ApiCatalogDeploymentsPipelinesListRequest { + r.action = &action + return r +} + +func (r ApiCatalogDeploymentsPipelinesListRequest) Id(id string) ApiCatalogDeploymentsPipelinesListRequest { + r.id = &id + return r +} + +// Which field to use when ordering the results. +func (r ApiCatalogDeploymentsPipelinesListRequest) Ordering(ordering string) ApiCatalogDeploymentsPipelinesListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiCatalogDeploymentsPipelinesListRequest) Page(page int32) ApiCatalogDeploymentsPipelinesListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiCatalogDeploymentsPipelinesListRequest) PageSize(pageSize int32) ApiCatalogDeploymentsPipelinesListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiCatalogDeploymentsPipelinesListRequest) PipelineId(pipelineId int32) ApiCatalogDeploymentsPipelinesListRequest { + r.pipelineId = &pipelineId + return r +} + +// Search for deployment-pipelines by action, id, pipeline_id, url +func (r ApiCatalogDeploymentsPipelinesListRequest) Search(search string) ApiCatalogDeploymentsPipelinesListRequest { + r.search = &search + return r +} + +func (r ApiCatalogDeploymentsPipelinesListRequest) Execute() (*PaginatedDeploymentPipelineList, *http.Response, error) { + return r.ApiService.CatalogDeploymentsPipelinesListExecute(r) +} + +/* +CatalogDeploymentsPipelinesList Method for CatalogDeploymentsPipelinesList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @return ApiCatalogDeploymentsPipelinesListRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsPipelinesList(ctx context.Context, deploymentId string) ApiCatalogDeploymentsPipelinesListRequest { + return ApiCatalogDeploymentsPipelinesListRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + } +} + +// Execute executes the request +// +// @return PaginatedDeploymentPipelineList +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsPipelinesListExecute(r ApiCatalogDeploymentsPipelinesListRequest) (*PaginatedDeploymentPipelineList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeploymentPipelineList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsPipelinesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/pipelines/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.action != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "action", r.action, "form", "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.pipelineId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pipeline_id", r.pipelineId, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsRetrieveRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + id string + expand *string + expiring *string + fields *string + omit *string +} + +// Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). +func (r ApiCatalogDeploymentsRetrieveRequest) Expand(expand string) ApiCatalogDeploymentsRetrieveRequest { + r.expand = &expand + return r +} + +// Include deployments whose expires_at value is within the given range (inclusive), specified as \"today\", \"tomorrow\", or \"{start}[,end]\". Start and end times must be in ISO format. +func (r ApiCatalogDeploymentsRetrieveRequest) Expiring(expiring string) ApiCatalogDeploymentsRetrieveRequest { + r.expiring = &expiring + return r +} + +// Include only the specified fields in the response +func (r ApiCatalogDeploymentsRetrieveRequest) Fields(fields string) ApiCatalogDeploymentsRetrieveRequest { + r.fields = &fields + return r +} + +// Exclude the specified fields in the response +func (r ApiCatalogDeploymentsRetrieveRequest) Omit(omit string) ApiCatalogDeploymentsRetrieveRequest { + r.omit = &omit + return r +} + +func (r ApiCatalogDeploymentsRetrieveRequest) Execute() (*Deployment, *http.Response, error) { + return r.ApiService.CatalogDeploymentsRetrieveExecute(r) +} + +/* +CatalogDeploymentsRetrieve Method for CatalogDeploymentsRetrieve + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this deployment. + @return ApiCatalogDeploymentsRetrieveRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsRetrieve(ctx context.Context, id string) ApiCatalogDeploymentsRetrieveRequest { + return ApiCatalogDeploymentsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Deployment +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsRetrieveExecute(r ApiCatalogDeploymentsRetrieveRequest) (*Deployment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Deployment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.expand != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expand", r.expand, "form", "") + } + if r.expiring != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expiring", r.expiring, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsServicesCreateRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + deploymentService *DeploymentService +} + +func (r ApiCatalogDeploymentsServicesCreateRequest) DeploymentService(deploymentService DeploymentService) ApiCatalogDeploymentsServicesCreateRequest { + r.deploymentService = &deploymentService + return r +} + +func (r ApiCatalogDeploymentsServicesCreateRequest) Execute() (*DeploymentService, *http.Response, error) { + return r.ApiService.CatalogDeploymentsServicesCreateExecute(r) +} + +/* +CatalogDeploymentsServicesCreate Method for CatalogDeploymentsServicesCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @return ApiCatalogDeploymentsServicesCreateRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsServicesCreate(ctx context.Context, deploymentId string) ApiCatalogDeploymentsServicesCreateRequest { + return ApiCatalogDeploymentsServicesCreateRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + } +} + +// Execute executes the request +// +// @return DeploymentService +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsServicesCreateExecute(r ApiCatalogDeploymentsServicesCreateRequest) (*DeploymentService, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeploymentService + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsServicesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/services/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deploymentService == nil { + return localVarReturnValue, nil, reportError("deploymentService is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deploymentService + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsServicesListRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + id *string + name *string + ordering *string + page *int32 + pageSize *int32 + search *string +} + +func (r ApiCatalogDeploymentsServicesListRequest) Id(id string) ApiCatalogDeploymentsServicesListRequest { + r.id = &id + return r +} + +func (r ApiCatalogDeploymentsServicesListRequest) Name(name string) ApiCatalogDeploymentsServicesListRequest { + r.name = &name + return r +} + +// Which field to use when ordering the results. +func (r ApiCatalogDeploymentsServicesListRequest) Ordering(ordering string) ApiCatalogDeploymentsServicesListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiCatalogDeploymentsServicesListRequest) Page(page int32) ApiCatalogDeploymentsServicesListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiCatalogDeploymentsServicesListRequest) PageSize(pageSize int32) ApiCatalogDeploymentsServicesListRequest { + r.pageSize = &pageSize + return r +} + +// Search for deployment-services by id, name, url +func (r ApiCatalogDeploymentsServicesListRequest) Search(search string) ApiCatalogDeploymentsServicesListRequest { + r.search = &search + return r +} + +func (r ApiCatalogDeploymentsServicesListRequest) Execute() (*PaginatedDeploymentServiceList, *http.Response, error) { + return r.ApiService.CatalogDeploymentsServicesListExecute(r) +} + +/* +CatalogDeploymentsServicesList Method for CatalogDeploymentsServicesList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @return ApiCatalogDeploymentsServicesListRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsServicesList(ctx context.Context, deploymentId string) ApiCatalogDeploymentsServicesListRequest { + return ApiCatalogDeploymentsServicesListRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + } +} + +// Execute executes the request +// +// @return PaginatedDeploymentServiceList +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsServicesListExecute(r ApiCatalogDeploymentsServicesListRequest) (*PaginatedDeploymentServiceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeploymentServiceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsServicesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/services/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsSshKeysCreateRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + deploymentKey *DeploymentKey +} + +func (r ApiCatalogDeploymentsSshKeysCreateRequest) DeploymentKey(deploymentKey DeploymentKey) ApiCatalogDeploymentsSshKeysCreateRequest { + r.deploymentKey = &deploymentKey + return r +} + +func (r ApiCatalogDeploymentsSshKeysCreateRequest) Execute() (*DeploymentKey, *http.Response, error) { + return r.ApiService.CatalogDeploymentsSshKeysCreateExecute(r) +} + +/* +CatalogDeploymentsSshKeysCreate Method for CatalogDeploymentsSshKeysCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @return ApiCatalogDeploymentsSshKeysCreateRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsSshKeysCreate(ctx context.Context, deploymentId string) ApiCatalogDeploymentsSshKeysCreateRequest { + return ApiCatalogDeploymentsSshKeysCreateRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + } +} + +// Execute executes the request +// +// @return DeploymentKey +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsSshKeysCreateExecute(r ApiCatalogDeploymentsSshKeysCreateRequest) (*DeploymentKey, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeploymentKey + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsSshKeysCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/ssh-keys/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deploymentKey == nil { + return localVarReturnValue, nil, reportError("deploymentKey is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deploymentKey + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsSshKeysDestroyRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + id string +} + +func (r ApiCatalogDeploymentsSshKeysDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CatalogDeploymentsSshKeysDestroyExecute(r) +} + +/* +CatalogDeploymentsSshKeysDestroy Method for CatalogDeploymentsSshKeysDestroy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @param id + @return ApiCatalogDeploymentsSshKeysDestroyRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsSshKeysDestroy(ctx context.Context, deploymentId string, id string) ApiCatalogDeploymentsSshKeysDestroyRequest { + return ApiCatalogDeploymentsSshKeysDestroyRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + id: id, + } +} + +// Execute executes the request +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsSshKeysDestroyExecute(r ApiCatalogDeploymentsSshKeysDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsSshKeysDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/ssh-keys/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiCatalogDeploymentsSshKeysListRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + id *string + name *string + ordering *string + page *int32 + pageSize *int32 + search *string +} + +func (r ApiCatalogDeploymentsSshKeysListRequest) Id(id string) ApiCatalogDeploymentsSshKeysListRequest { + r.id = &id + return r +} + +func (r ApiCatalogDeploymentsSshKeysListRequest) Name(name string) ApiCatalogDeploymentsSshKeysListRequest { + r.name = &name + return r +} + +// Which field to use when ordering the results. +func (r ApiCatalogDeploymentsSshKeysListRequest) Ordering(ordering string) ApiCatalogDeploymentsSshKeysListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiCatalogDeploymentsSshKeysListRequest) Page(page int32) ApiCatalogDeploymentsSshKeysListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiCatalogDeploymentsSshKeysListRequest) PageSize(pageSize int32) ApiCatalogDeploymentsSshKeysListRequest { + r.pageSize = &pageSize + return r +} + +// Search for deployment-keys by name +func (r ApiCatalogDeploymentsSshKeysListRequest) Search(search string) ApiCatalogDeploymentsSshKeysListRequest { + r.search = &search + return r +} + +func (r ApiCatalogDeploymentsSshKeysListRequest) Execute() (*PaginatedDeploymentKeyList, *http.Response, error) { + return r.ApiService.CatalogDeploymentsSshKeysListExecute(r) +} + +/* +CatalogDeploymentsSshKeysList Method for CatalogDeploymentsSshKeysList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @return ApiCatalogDeploymentsSshKeysListRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsSshKeysList(ctx context.Context, deploymentId string) ApiCatalogDeploymentsSshKeysListRequest { + return ApiCatalogDeploymentsSshKeysListRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + } +} + +// Execute executes the request +// +// @return PaginatedDeploymentKeyList +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsSshKeysListExecute(r ApiCatalogDeploymentsSshKeysListRequest) (*PaginatedDeploymentKeyList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeploymentKeyList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsSshKeysList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/ssh-keys/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsStatsRetrieveRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService +} + +func (r ApiCatalogDeploymentsStatsRetrieveRequest) Execute() (*http.Response, error) { + return r.ApiService.CatalogDeploymentsStatsRetrieveExecute(r) +} + +/* +CatalogDeploymentsStatsRetrieve 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCatalogDeploymentsStatsRetrieveRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsStatsRetrieve(ctx context.Context) ApiCatalogDeploymentsStatsRetrieveRequest { + return ApiCatalogDeploymentsStatsRetrieveRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsStatsRetrieveExecute(r ApiCatalogDeploymentsStatsRetrieveRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsStatsRetrieve") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/stats/" + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiCatalogDeploymentsTasksCreateRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + deploymentTask *DeploymentTask +} + +func (r ApiCatalogDeploymentsTasksCreateRequest) DeploymentTask(deploymentTask DeploymentTask) ApiCatalogDeploymentsTasksCreateRequest { + r.deploymentTask = &deploymentTask + return r +} + +func (r ApiCatalogDeploymentsTasksCreateRequest) Execute() (*DeploymentTask, *http.Response, error) { + return r.ApiService.CatalogDeploymentsTasksCreateExecute(r) +} + +/* +CatalogDeploymentsTasksCreate 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @return ApiCatalogDeploymentsTasksCreateRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsTasksCreate(ctx context.Context, deploymentId string) ApiCatalogDeploymentsTasksCreateRequest { + return ApiCatalogDeploymentsTasksCreateRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + } +} + +// Execute executes the request +// +// @return DeploymentTask +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsTasksCreateExecute(r ApiCatalogDeploymentsTasksCreateRequest) (*DeploymentTask, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeploymentTask + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsTasksCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/tasks/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deploymentTask == nil { + return localVarReturnValue, nil, reportError("deploymentTask is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deploymentTask + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsTasksListRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + action *string + id *string + ordering *string + page *int32 + pageSize *int32 + search *string + status *string +} + +// The action the task will perform * `start_instances` - Start all instances in the deployment * `stop_instances` - Stop all instances in the deployment +func (r ApiCatalogDeploymentsTasksListRequest) Action(action string) ApiCatalogDeploymentsTasksListRequest { + r.action = &action + return r +} + +func (r ApiCatalogDeploymentsTasksListRequest) Id(id string) ApiCatalogDeploymentsTasksListRequest { + r.id = &id + return r +} + +// Which field to use when ordering the results. +func (r ApiCatalogDeploymentsTasksListRequest) Ordering(ordering string) ApiCatalogDeploymentsTasksListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiCatalogDeploymentsTasksListRequest) Page(page int32) ApiCatalogDeploymentsTasksListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiCatalogDeploymentsTasksListRequest) PageSize(pageSize int32) ApiCatalogDeploymentsTasksListRequest { + r.pageSize = &pageSize + return r +} + +// Search for deployment-tasks by action, id, status, status_text +func (r ApiCatalogDeploymentsTasksListRequest) Search(search string) ApiCatalogDeploymentsTasksListRequest { + r.search = &search + return r +} + +// Current status of the task * `completed` - completed * `failed` - failed * `pending` - pending * `processing` - processing * `retrying` - retrying +func (r ApiCatalogDeploymentsTasksListRequest) Status(status string) ApiCatalogDeploymentsTasksListRequest { + r.status = &status + return r +} + +func (r ApiCatalogDeploymentsTasksListRequest) Execute() (*PaginatedDeploymentTaskList, *http.Response, error) { + return r.ApiService.CatalogDeploymentsTasksListExecute(r) +} + +/* +CatalogDeploymentsTasksList 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @return ApiCatalogDeploymentsTasksListRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsTasksList(ctx context.Context, deploymentId string) ApiCatalogDeploymentsTasksListRequest { + return ApiCatalogDeploymentsTasksListRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + } +} + +// Execute executes the request +// +// @return PaginatedDeploymentTaskList +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsTasksListExecute(r ApiCatalogDeploymentsTasksListRequest) (*PaginatedDeploymentTaskList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeploymentTaskList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsTasksList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/tasks/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.action != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "action", r.action, "form", "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsTasksRetrieveRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + deploymentId string + id string +} + +func (r ApiCatalogDeploymentsTasksRetrieveRequest) Execute() (*DeploymentTask, *http.Response, error) { + return r.ApiService.CatalogDeploymentsTasksRetrieveExecute(r) +} + +/* +CatalogDeploymentsTasksRetrieve 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deploymentId + @param id + @return ApiCatalogDeploymentsTasksRetrieveRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsTasksRetrieve(ctx context.Context, deploymentId string, id string) ApiCatalogDeploymentsTasksRetrieveRequest { + return ApiCatalogDeploymentsTasksRetrieveRequest{ + ApiService: a, + ctx: ctx, + deploymentId: deploymentId, + id: id, + } +} + +// Execute executes the request +// +// @return DeploymentTask +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsTasksRetrieveExecute(r ApiCatalogDeploymentsTasksRetrieveRequest) (*DeploymentTask, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeploymentTask + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsTasksRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{deployment_id}/tasks/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"deployment_id"+"}", url.PathEscape(parameterValueToString(r.deploymentId, "deploymentId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogDeploymentsUpdateRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + id string + deploymentUpdate *DeploymentUpdate +} + +func (r ApiCatalogDeploymentsUpdateRequest) DeploymentUpdate(deploymentUpdate DeploymentUpdate) ApiCatalogDeploymentsUpdateRequest { + r.deploymentUpdate = &deploymentUpdate + return r +} + +func (r ApiCatalogDeploymentsUpdateRequest) Execute() (*DeploymentUpdate, *http.Response, error) { + return r.ApiService.CatalogDeploymentsUpdateExecute(r) +} + +/* +CatalogDeploymentsUpdate Method for CatalogDeploymentsUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this deployment. + @return ApiCatalogDeploymentsUpdateRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsUpdate(ctx context.Context, id string) ApiCatalogDeploymentsUpdateRequest { + return ApiCatalogDeploymentsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return DeploymentUpdate +func (a *CatalogDeploymentsAPIService) CatalogDeploymentsUpdateExecute(r ApiCatalogDeploymentsUpdateRequest) (*DeploymentUpdate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeploymentUpdate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogDeploymentsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/deployments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deploymentUpdate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogExperiencesNotesCreateRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + experienceId string + experienceNote *ExperienceNote +} + +func (r ApiCatalogExperiencesNotesCreateRequest) ExperienceNote(experienceNote ExperienceNote) ApiCatalogExperiencesNotesCreateRequest { + r.experienceNote = &experienceNote + return r +} + +func (r ApiCatalogExperiencesNotesCreateRequest) Execute() (*ExperienceNote, *http.Response, error) { + return r.ApiService.CatalogExperiencesNotesCreateExecute(r) +} + +/* +CatalogExperiencesNotesCreate Method for CatalogExperiencesNotesCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param experienceId + @return ApiCatalogExperiencesNotesCreateRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogExperiencesNotesCreate(ctx context.Context, experienceId string) ApiCatalogExperiencesNotesCreateRequest { + return ApiCatalogExperiencesNotesCreateRequest{ + ApiService: a, + ctx: ctx, + experienceId: experienceId, + } +} + +// Execute executes the request +// +// @return ExperienceNote +func (a *CatalogDeploymentsAPIService) CatalogExperiencesNotesCreateExecute(r ApiCatalogExperiencesNotesCreateRequest) (*ExperienceNote, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExperienceNote + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogExperiencesNotesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/{experience_id}/notes/" + localVarPath = strings.Replace(localVarPath, "{"+"experience_id"+"}", url.PathEscape(parameterValueToString(r.experienceId, "experienceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.experienceNote == nil { + return localVarReturnValue, nil, reportError("experienceNote is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.experienceNote + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogExperiencesNotesDestroyRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + experienceId string + id string +} + +func (r ApiCatalogExperiencesNotesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CatalogExperiencesNotesDestroyExecute(r) +} + +/* +CatalogExperiencesNotesDestroy Method for CatalogExperiencesNotesDestroy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param experienceId + @param id + @return ApiCatalogExperiencesNotesDestroyRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogExperiencesNotesDestroy(ctx context.Context, experienceId string, id string) ApiCatalogExperiencesNotesDestroyRequest { + return ApiCatalogExperiencesNotesDestroyRequest{ + ApiService: a, + ctx: ctx, + experienceId: experienceId, + id: id, + } +} + +// Execute executes the request +func (a *CatalogDeploymentsAPIService) CatalogExperiencesNotesDestroyExecute(r ApiCatalogExperiencesNotesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogExperiencesNotesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/{experience_id}/notes/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"experience_id"+"}", url.PathEscape(parameterValueToString(r.experienceId, "experienceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiCatalogExperiencesNotesListRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + experienceId string + createdBy *int32 + experience *string + fields *string + id *string + modifiedBy *int32 + omit *string + ordering *string + page *int32 + pageSize *int32 + search *string +} + +func (r ApiCatalogExperiencesNotesListRequest) CreatedBy(createdBy int32) ApiCatalogExperiencesNotesListRequest { + r.createdBy = &createdBy + return r +} + +func (r ApiCatalogExperiencesNotesListRequest) Experience(experience string) ApiCatalogExperiencesNotesListRequest { + r.experience = &experience + return r +} + +// Include only the specified fields in the response +func (r ApiCatalogExperiencesNotesListRequest) Fields(fields string) ApiCatalogExperiencesNotesListRequest { + r.fields = &fields + return r +} + +func (r ApiCatalogExperiencesNotesListRequest) Id(id string) ApiCatalogExperiencesNotesListRequest { + r.id = &id + return r +} + +func (r ApiCatalogExperiencesNotesListRequest) ModifiedBy(modifiedBy int32) ApiCatalogExperiencesNotesListRequest { + r.modifiedBy = &modifiedBy + return r +} + +// Exclude the specified fields in the response +func (r ApiCatalogExperiencesNotesListRequest) Omit(omit string) ApiCatalogExperiencesNotesListRequest { + r.omit = &omit + return r +} + +// Which field to use when ordering the results. +func (r ApiCatalogExperiencesNotesListRequest) Ordering(ordering string) ApiCatalogExperiencesNotesListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiCatalogExperiencesNotesListRequest) Page(page int32) ApiCatalogExperiencesNotesListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiCatalogExperiencesNotesListRequest) PageSize(pageSize int32) ApiCatalogExperiencesNotesListRequest { + r.pageSize = &pageSize + return r +} + +// Search for experience-notes by content +func (r ApiCatalogExperiencesNotesListRequest) Search(search string) ApiCatalogExperiencesNotesListRequest { + r.search = &search + return r +} + +func (r ApiCatalogExperiencesNotesListRequest) Execute() (*PaginatedExperienceNoteList, *http.Response, error) { + return r.ApiService.CatalogExperiencesNotesListExecute(r) +} + +/* +CatalogExperiencesNotesList Method for CatalogExperiencesNotesList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param experienceId + @return ApiCatalogExperiencesNotesListRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogExperiencesNotesList(ctx context.Context, experienceId string) ApiCatalogExperiencesNotesListRequest { + return ApiCatalogExperiencesNotesListRequest{ + ApiService: a, + ctx: ctx, + experienceId: experienceId, + } +} + +// Execute executes the request +// +// @return PaginatedExperienceNoteList +func (a *CatalogDeploymentsAPIService) CatalogExperiencesNotesListExecute(r ApiCatalogExperiencesNotesListRequest) (*PaginatedExperienceNoteList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedExperienceNoteList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogExperiencesNotesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/{experience_id}/notes/" + localVarPath = strings.Replace(localVarPath, "{"+"experience_id"+"}", url.PathEscape(parameterValueToString(r.experienceId, "experienceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.createdBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by", r.createdBy, "form", "") + } + if r.experience != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "experience", r.experience, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.modifiedBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by", r.modifiedBy, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogExperiencesNotesPartialUpdateRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + experienceId string + id string + experienceNote *ExperienceNote +} + +func (r ApiCatalogExperiencesNotesPartialUpdateRequest) ExperienceNote(experienceNote ExperienceNote) ApiCatalogExperiencesNotesPartialUpdateRequest { + r.experienceNote = &experienceNote + return r +} + +func (r ApiCatalogExperiencesNotesPartialUpdateRequest) Execute() (*ExperienceNote, *http.Response, error) { + return r.ApiService.CatalogExperiencesNotesPartialUpdateExecute(r) +} + +/* +CatalogExperiencesNotesPartialUpdate Method for CatalogExperiencesNotesPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param experienceId + @param id + @return ApiCatalogExperiencesNotesPartialUpdateRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogExperiencesNotesPartialUpdate(ctx context.Context, experienceId string, id string) ApiCatalogExperiencesNotesPartialUpdateRequest { + return ApiCatalogExperiencesNotesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + experienceId: experienceId, + id: id, + } +} + +// Execute executes the request +// +// @return ExperienceNote +func (a *CatalogDeploymentsAPIService) CatalogExperiencesNotesPartialUpdateExecute(r ApiCatalogExperiencesNotesPartialUpdateRequest) (*ExperienceNote, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExperienceNote + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogExperiencesNotesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/{experience_id}/notes/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"experience_id"+"}", url.PathEscape(parameterValueToString(r.experienceId, "experienceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.experienceNote == nil { + return localVarReturnValue, nil, reportError("experienceNote is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.experienceNote + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogExperiencesNotesRetrieveRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + experienceId string + id string + fields *string + omit *string +} + +// Include only the specified fields in the response +func (r ApiCatalogExperiencesNotesRetrieveRequest) Fields(fields string) ApiCatalogExperiencesNotesRetrieveRequest { + r.fields = &fields + return r +} + +// Exclude the specified fields in the response +func (r ApiCatalogExperiencesNotesRetrieveRequest) Omit(omit string) ApiCatalogExperiencesNotesRetrieveRequest { + r.omit = &omit + return r +} + +func (r ApiCatalogExperiencesNotesRetrieveRequest) Execute() (*ExperienceNote, *http.Response, error) { + return r.ApiService.CatalogExperiencesNotesRetrieveExecute(r) +} + +/* +CatalogExperiencesNotesRetrieve Method for CatalogExperiencesNotesRetrieve + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param experienceId + @param id + @return ApiCatalogExperiencesNotesRetrieveRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogExperiencesNotesRetrieve(ctx context.Context, experienceId string, id string) ApiCatalogExperiencesNotesRetrieveRequest { + return ApiCatalogExperiencesNotesRetrieveRequest{ + ApiService: a, + ctx: ctx, + experienceId: experienceId, + id: id, + } +} + +// Execute executes the request +// +// @return ExperienceNote +func (a *CatalogDeploymentsAPIService) CatalogExperiencesNotesRetrieveExecute(r ApiCatalogExperiencesNotesRetrieveRequest) (*ExperienceNote, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExperienceNote + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogExperiencesNotesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/{experience_id}/notes/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"experience_id"+"}", url.PathEscape(parameterValueToString(r.experienceId, "experienceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogExperiencesNotesUpdateRequest struct { + ctx context.Context + ApiService *CatalogDeploymentsAPIService + experienceId string + id string + experienceNote *ExperienceNote +} + +func (r ApiCatalogExperiencesNotesUpdateRequest) ExperienceNote(experienceNote ExperienceNote) ApiCatalogExperiencesNotesUpdateRequest { + r.experienceNote = &experienceNote + return r +} + +func (r ApiCatalogExperiencesNotesUpdateRequest) Execute() (*ExperienceNote, *http.Response, error) { + return r.ApiService.CatalogExperiencesNotesUpdateExecute(r) +} + +/* +CatalogExperiencesNotesUpdate Method for CatalogExperiencesNotesUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param experienceId + @param id + @return ApiCatalogExperiencesNotesUpdateRequest +*/ +func (a *CatalogDeploymentsAPIService) CatalogExperiencesNotesUpdate(ctx context.Context, experienceId string, id string) ApiCatalogExperiencesNotesUpdateRequest { + return ApiCatalogExperiencesNotesUpdateRequest{ + ApiService: a, + ctx: ctx, + experienceId: experienceId, + id: id, + } +} + +// Execute executes the request +// +// @return ExperienceNote +func (a *CatalogDeploymentsAPIService) CatalogExperiencesNotesUpdateExecute(r ApiCatalogExperiencesNotesUpdateRequest) (*ExperienceNote, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExperienceNote + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogDeploymentsAPIService.CatalogExperiencesNotesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/{experience_id}/notes/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"experience_id"+"}", url.PathEscape(parameterValueToString(r.experienceId, "experienceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.experienceNote == nil { + return localVarReturnValue, nil, reportError("experienceNote is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.experienceNote + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v1/providers/launchpad/gen/launchpad/api_catalog_experiences.go b/v1/providers/launchpad/gen/launchpad/api_catalog_experiences.go new file mode 100644 index 0000000..44f86c6 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api_catalog_experiences.go @@ -0,0 +1,1579 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "os" + "strings" +) + +// CatalogExperiencesAPIService CatalogExperiencesAPI service +type CatalogExperiencesAPIService service + +type ApiCatalogExperiencesBulkCreateRequest struct { + ctx context.Context + ApiService *CatalogExperiencesAPIService + csvFile *os.File +} + +func (r ApiCatalogExperiencesBulkCreateRequest) CsvFile(csvFile *os.File) ApiCatalogExperiencesBulkCreateRequest { + r.csvFile = csvFile + return r +} + +func (r ApiCatalogExperiencesBulkCreateRequest) Execute() (*ExperienceBulk, *http.Response, error) { + return r.ApiService.CatalogExperiencesBulkCreateExecute(r) +} + +/* +CatalogExperiencesBulkCreate Method for CatalogExperiencesBulkCreate + +Create experiences in bulk via CSV file upload + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCatalogExperiencesBulkCreateRequest +*/ +func (a *CatalogExperiencesAPIService) CatalogExperiencesBulkCreate(ctx context.Context) ApiCatalogExperiencesBulkCreateRequest { + return ApiCatalogExperiencesBulkCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return ExperienceBulk +func (a *CatalogExperiencesAPIService) CatalogExperiencesBulkCreateExecute(r ApiCatalogExperiencesBulkCreateRequest) (*ExperienceBulk, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExperienceBulk + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogExperiencesAPIService.CatalogExperiencesBulkCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/bulk/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.csvFile == nil { + return localVarReturnValue, nil, reportError("csvFile is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + var csvFileLocalVarFormFileName string + var csvFileLocalVarFileName string + var csvFileLocalVarFileBytes []byte + + csvFileLocalVarFormFileName = "csv_file" + csvFileLocalVarFile := r.csvFile + + if csvFileLocalVarFile != nil { + fbs, _ := io.ReadAll(csvFileLocalVarFile) + + csvFileLocalVarFileBytes = fbs + csvFileLocalVarFileName = csvFileLocalVarFile.Name() + csvFileLocalVarFile.Close() + formFiles = append(formFiles, formFile{fileBytes: csvFileLocalVarFileBytes, fileName: csvFileLocalVarFileName, formFileName: csvFileLocalVarFormFileName}) + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogExperiencesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *CatalogExperiencesAPIService + experienceBulkUpdate *ExperienceBulkUpdate +} + +func (r ApiCatalogExperiencesBulkPartialUpdateRequest) ExperienceBulkUpdate(experienceBulkUpdate ExperienceBulkUpdate) ApiCatalogExperiencesBulkPartialUpdateRequest { + r.experienceBulkUpdate = &experienceBulkUpdate + return r +} + +func (r ApiCatalogExperiencesBulkPartialUpdateRequest) Execute() (*ExperienceBulkUpdate, *http.Response, error) { + return r.ApiService.CatalogExperiencesBulkPartialUpdateExecute(r) +} + +/* +CatalogExperiencesBulkPartialUpdate Method for CatalogExperiencesBulkPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCatalogExperiencesBulkPartialUpdateRequest +*/ +func (a *CatalogExperiencesAPIService) CatalogExperiencesBulkPartialUpdate(ctx context.Context) ApiCatalogExperiencesBulkPartialUpdateRequest { + return ApiCatalogExperiencesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return ExperienceBulkUpdate +func (a *CatalogExperiencesAPIService) CatalogExperiencesBulkPartialUpdateExecute(r ApiCatalogExperiencesBulkPartialUpdateRequest) (*ExperienceBulkUpdate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExperienceBulkUpdate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogExperiencesAPIService.CatalogExperiencesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/bulk/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.experienceBulkUpdate == nil { + return localVarReturnValue, nil, reportError("experienceBulkUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.experienceBulkUpdate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogExperiencesCreateRequest struct { + ctx context.Context + ApiService *CatalogExperiencesAPIService + experience *Experience +} + +func (r ApiCatalogExperiencesCreateRequest) Experience(experience Experience) ApiCatalogExperiencesCreateRequest { + r.experience = &experience + return r +} + +func (r ApiCatalogExperiencesCreateRequest) Execute() (*Experience, *http.Response, error) { + return r.ApiService.CatalogExperiencesCreateExecute(r) +} + +/* +CatalogExperiencesCreate Method for CatalogExperiencesCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCatalogExperiencesCreateRequest +*/ +func (a *CatalogExperiencesAPIService) CatalogExperiencesCreate(ctx context.Context) ApiCatalogExperiencesCreateRequest { + return ApiCatalogExperiencesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Experience +func (a *CatalogExperiencesAPIService) CatalogExperiencesCreateExecute(r ApiCatalogExperiencesCreateRequest) (*Experience, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Experience + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogExperiencesAPIService.CatalogExperiencesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.experience == nil { + return localVarReturnValue, nil, reportError("experience is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.experience + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogExperiencesDestroyRequest struct { + ctx context.Context + ApiService *CatalogExperiencesAPIService + id string +} + +func (r ApiCatalogExperiencesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CatalogExperiencesDestroyExecute(r) +} + +/* +CatalogExperiencesDestroy Method for CatalogExperiencesDestroy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this experience. + @return ApiCatalogExperiencesDestroyRequest +*/ +func (a *CatalogExperiencesAPIService) CatalogExperiencesDestroy(ctx context.Context, id string) ApiCatalogExperiencesDestroyRequest { + return ApiCatalogExperiencesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CatalogExperiencesAPIService) CatalogExperiencesDestroyExecute(r ApiCatalogExperiencesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogExperiencesAPIService.CatalogExperiencesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiCatalogExperiencesHistoryListRequest struct { + ctx context.Context + ApiService *CatalogExperiencesAPIService + id string + page *int32 + pageSize *int32 +} + +// A page number within the paginated result set. +func (r ApiCatalogExperiencesHistoryListRequest) Page(page int32) ApiCatalogExperiencesHistoryListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiCatalogExperiencesHistoryListRequest) PageSize(pageSize int32) ApiCatalogExperiencesHistoryListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiCatalogExperiencesHistoryListRequest) Execute() (*PaginatedModelChangeList, *http.Response, error) { + return r.ApiService.CatalogExperiencesHistoryListExecute(r) +} + +/* +CatalogExperiencesHistoryList Method for CatalogExperiencesHistoryList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiCatalogExperiencesHistoryListRequest +*/ +func (a *CatalogExperiencesAPIService) CatalogExperiencesHistoryList(ctx context.Context, id string) ApiCatalogExperiencesHistoryListRequest { + return ApiCatalogExperiencesHistoryListRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return PaginatedModelChangeList +func (a *CatalogExperiencesAPIService) CatalogExperiencesHistoryListExecute(r ApiCatalogExperiencesHistoryListRequest) (*PaginatedModelChangeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModelChangeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogExperiencesAPIService.CatalogExperiencesHistoryList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/{id}/history/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogExperiencesListRequest struct { + ctx context.Context + ApiService *CatalogExperiencesAPIService + assignee *string + autoapprove *bool + autoprovision *bool + bootstrap *bool + catalogId *string + catalogIdAlias *string + category *[]string + collectionBranch *string + expand *string + experience *string + experienceBranch *string + fields *string + garageId *string + gcBranch *string + gpuCount *int32 + gpuOsName *string + gpuOsRelease *string + gpuOsVersion *string + id *string + nodeCount *int32 + omit *string + ordering *string + page *int32 + pageSize *int32 + persona *string + pipeline *int32 + platform *string + provider *string + published *[]string + requiresGpu *string + saLab *bool + search *string + systemArch *string + vgpuProfile *string +} + +func (r ApiCatalogExperiencesListRequest) Assignee(assignee string) ApiCatalogExperiencesListRequest { + r.assignee = &assignee + return r +} + +func (r ApiCatalogExperiencesListRequest) Autoapprove(autoapprove bool) ApiCatalogExperiencesListRequest { + r.autoapprove = &autoapprove + return r +} + +func (r ApiCatalogExperiencesListRequest) Autoprovision(autoprovision bool) ApiCatalogExperiencesListRequest { + r.autoprovision = &autoprovision + return r +} + +func (r ApiCatalogExperiencesListRequest) Bootstrap(bootstrap bool) ApiCatalogExperiencesListRequest { + r.bootstrap = &bootstrap + return r +} + +func (r ApiCatalogExperiencesListRequest) CatalogId(catalogId string) ApiCatalogExperiencesListRequest { + r.catalogId = &catalogId + return r +} + +func (r ApiCatalogExperiencesListRequest) CatalogIdAlias(catalogIdAlias string) ApiCatalogExperiencesListRequest { + r.catalogIdAlias = &catalogIdAlias + return r +} + +// Multiple values may be separated by commas. * `AI` - AI * `Clara` - Clara * `Data Science` - Data Science * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation * `Developer` - Developer * `Infrastructure Optimization` - Infrastructure Optimization +func (r ApiCatalogExperiencesListRequest) Category(category []string) ApiCatalogExperiencesListRequest { + r.category = &category + return r +} + +func (r ApiCatalogExperiencesListRequest) CollectionBranch(collectionBranch string) ApiCatalogExperiencesListRequest { + r.collectionBranch = &collectionBranch + return r +} + +// Expand related field(s) instead of only showing a UUID (ex: \"required_gpus\"). +func (r ApiCatalogExperiencesListRequest) Expand(expand string) ApiCatalogExperiencesListRequest { + r.expand = &expand + return r +} + +func (r ApiCatalogExperiencesListRequest) Experience(experience string) ApiCatalogExperiencesListRequest { + r.experience = &experience + return r +} + +func (r ApiCatalogExperiencesListRequest) ExperienceBranch(experienceBranch string) ApiCatalogExperiencesListRequest { + r.experienceBranch = &experienceBranch + return r +} + +// Include only the specified fields in the response +func (r ApiCatalogExperiencesListRequest) Fields(fields string) ApiCatalogExperiencesListRequest { + r.fields = &fields + return r +} + +func (r ApiCatalogExperiencesListRequest) GarageId(garageId string) ApiCatalogExperiencesListRequest { + r.garageId = &garageId + return r +} + +func (r ApiCatalogExperiencesListRequest) GcBranch(gcBranch string) ApiCatalogExperiencesListRequest { + r.gcBranch = &gcBranch + return r +} + +func (r ApiCatalogExperiencesListRequest) GpuCount(gpuCount int32) ApiCatalogExperiencesListRequest { + r.gpuCount = &gpuCount + return r +} + +func (r ApiCatalogExperiencesListRequest) GpuOsName(gpuOsName string) ApiCatalogExperiencesListRequest { + r.gpuOsName = &gpuOsName + return r +} + +func (r ApiCatalogExperiencesListRequest) GpuOsRelease(gpuOsRelease string) ApiCatalogExperiencesListRequest { + r.gpuOsRelease = &gpuOsRelease + return r +} + +func (r ApiCatalogExperiencesListRequest) GpuOsVersion(gpuOsVersion string) ApiCatalogExperiencesListRequest { + r.gpuOsVersion = &gpuOsVersion + return r +} + +func (r ApiCatalogExperiencesListRequest) Id(id string) ApiCatalogExperiencesListRequest { + r.id = &id + return r +} + +func (r ApiCatalogExperiencesListRequest) NodeCount(nodeCount int32) ApiCatalogExperiencesListRequest { + r.nodeCount = &nodeCount + return r +} + +// Exclude the specified fields in the response +func (r ApiCatalogExperiencesListRequest) Omit(omit string) ApiCatalogExperiencesListRequest { + r.omit = &omit + return r +} + +// Which field to use when ordering the results. +func (r ApiCatalogExperiencesListRequest) Ordering(ordering string) ApiCatalogExperiencesListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiCatalogExperiencesListRequest) Page(page int32) ApiCatalogExperiencesListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiCatalogExperiencesListRequest) PageSize(pageSize int32) ApiCatalogExperiencesListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiCatalogExperiencesListRequest) Persona(persona string) ApiCatalogExperiencesListRequest { + r.persona = &persona + return r +} + +func (r ApiCatalogExperiencesListRequest) Pipeline(pipeline int32) ApiCatalogExperiencesListRequest { + r.pipeline = &pipeline + return r +} + +// Base platform that the experience will be provisioned onto * `air` - NVIDIA Air * `flight_deck` - Flight Deck * `kvm_bastion` - KVM Bastion * `lp-vmware-platform` - lp-vmware-platform * `minimal` - minimal * `openshift` - OpenShift * `vsphere` - vSphere * `vsphere_horizon` - VMware Horizon * `vsphere7` - vSphere 7 * `vsphere8` - vSphere 8 +func (r ApiCatalogExperiencesListRequest) Platform(platform string) ApiCatalogExperiencesListRequest { + r.platform = &platform + return r +} + +func (r ApiCatalogExperiencesListRequest) Provider(provider string) ApiCatalogExperiencesListRequest { + r.provider = &provider + return r +} + +// Multiple values may be separated by commas. * `draft` - draft * `no` - no * `yes` - yes +func (r ApiCatalogExperiencesListRequest) Published(published []string) ApiCatalogExperiencesListRequest { + r.published = &published + return r +} + +// Only include experiences that require a given GPU ID or model +func (r ApiCatalogExperiencesListRequest) RequiresGpu(requiresGpu string) ApiCatalogExperiencesListRequest { + r.requiresGpu = &requiresGpu + return r +} + +func (r ApiCatalogExperiencesListRequest) SaLab(saLab bool) ApiCatalogExperiencesListRequest { + r.saLab = &saLab + return r +} + +// Search for experiences by assignee, catalog_id, catalog_id_alias, category, collection_branch, description, experience, experience_branch, gc_branch, gpu_os_name, gpu_os_release, gpu_os_version, id, persona, pipeline, platform, provider name, required_gpus model, system_arch, title, vgpu_profile +func (r ApiCatalogExperiencesListRequest) Search(search string) ApiCatalogExperiencesListRequest { + r.search = &search + return r +} + +// Required CPU architecture * `amd64` - amd64 * `arm64` - arm64 +func (r ApiCatalogExperiencesListRequest) SystemArch(systemArch string) ApiCatalogExperiencesListRequest { + r.systemArch = &systemArch + return r +} + +// vGPU profile name used by the experience * `air` - NVIDIA Air * `bright_cluster` - Bright Cluster * `bright-cluster` - Bright Cluster (legacy option) * `flight_deck` - Flight Deck * `flight-deck` - Flight Deck (legacy option) * `nvidia_a40-48q` - nvidia_a40-48q * `nvidia-ai-enterprise` - NVIDIA AI Enterprise * `nvidia_l40s-48q` - nvidia_l40s-48q * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q * `openshift` - OpenShift * `platform_only` - platform_only * `vmware_itadmin` - VMware IT admin +func (r ApiCatalogExperiencesListRequest) VgpuProfile(vgpuProfile string) ApiCatalogExperiencesListRequest { + r.vgpuProfile = &vgpuProfile + return r +} + +func (r ApiCatalogExperiencesListRequest) Execute() (*PaginatedExperienceList, *http.Response, error) { + return r.ApiService.CatalogExperiencesListExecute(r) +} + +/* +CatalogExperiencesList Method for CatalogExperiencesList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCatalogExperiencesListRequest +*/ +func (a *CatalogExperiencesAPIService) CatalogExperiencesList(ctx context.Context) ApiCatalogExperiencesListRequest { + return ApiCatalogExperiencesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedExperienceList +func (a *CatalogExperiencesAPIService) CatalogExperiencesListExecute(r ApiCatalogExperiencesListRequest) (*PaginatedExperienceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedExperienceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogExperiencesAPIService.CatalogExperiencesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.assignee != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assignee", r.assignee, "form", "") + } + if r.autoapprove != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "autoapprove", r.autoapprove, "form", "") + } + if r.autoprovision != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "autoprovision", r.autoprovision, "form", "") + } + if r.bootstrap != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "bootstrap", r.bootstrap, "form", "") + } + if r.catalogId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "catalog_id", r.catalogId, "form", "") + } + if r.catalogIdAlias != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "catalog_id_alias", r.catalogIdAlias, "form", "") + } + if r.category != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "category", r.category, "form", "csv") + } + if r.collectionBranch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "collection_branch", r.collectionBranch, "form", "") + } + if r.expand != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expand", r.expand, "form", "") + } + if r.experience != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "experience", r.experience, "form", "") + } + if r.experienceBranch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "experience_branch", r.experienceBranch, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.garageId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "garage_id", r.garageId, "form", "") + } + if r.gcBranch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gc_branch", r.gcBranch, "form", "") + } + if r.gpuCount != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_count", r.gpuCount, "form", "") + } + if r.gpuOsName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_os_name", r.gpuOsName, "form", "") + } + if r.gpuOsRelease != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_os_release", r.gpuOsRelease, "form", "") + } + if r.gpuOsVersion != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_os_version", r.gpuOsVersion, "form", "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.nodeCount != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "node_count", r.nodeCount, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.persona != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "persona", r.persona, "form", "") + } + if r.pipeline != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pipeline", r.pipeline, "form", "") + } + if r.platform != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "platform", r.platform, "form", "") + } + if r.provider != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", r.provider, "form", "") + } + if r.published != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "published", r.published, "form", "csv") + } + if r.requiresGpu != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "requires_gpu", r.requiresGpu, "form", "") + } + if r.saLab != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lab", r.saLab, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + if r.systemArch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "system_arch", r.systemArch, "form", "") + } + if r.vgpuProfile != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vgpu_profile", r.vgpuProfile, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogExperiencesPartialUpdateRequest struct { + ctx context.Context + ApiService *CatalogExperiencesAPIService + id string + experience *Experience +} + +func (r ApiCatalogExperiencesPartialUpdateRequest) Experience(experience Experience) ApiCatalogExperiencesPartialUpdateRequest { + r.experience = &experience + return r +} + +func (r ApiCatalogExperiencesPartialUpdateRequest) Execute() (*Experience, *http.Response, error) { + return r.ApiService.CatalogExperiencesPartialUpdateExecute(r) +} + +/* +CatalogExperiencesPartialUpdate Method for CatalogExperiencesPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this experience. + @return ApiCatalogExperiencesPartialUpdateRequest +*/ +func (a *CatalogExperiencesAPIService) CatalogExperiencesPartialUpdate(ctx context.Context, id string) ApiCatalogExperiencesPartialUpdateRequest { + return ApiCatalogExperiencesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Experience +func (a *CatalogExperiencesAPIService) CatalogExperiencesPartialUpdateExecute(r ApiCatalogExperiencesPartialUpdateRequest) (*Experience, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Experience + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogExperiencesAPIService.CatalogExperiencesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.experience == nil { + return localVarReturnValue, nil, reportError("experience is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.experience + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogExperiencesRetrieveRequest struct { + ctx context.Context + ApiService *CatalogExperiencesAPIService + id string + expand *string + fields *string + omit *string +} + +// Expand related field(s) instead of only showing a UUID (ex: \"required_gpus\"). +func (r ApiCatalogExperiencesRetrieveRequest) Expand(expand string) ApiCatalogExperiencesRetrieveRequest { + r.expand = &expand + return r +} + +// Include only the specified fields in the response +func (r ApiCatalogExperiencesRetrieveRequest) Fields(fields string) ApiCatalogExperiencesRetrieveRequest { + r.fields = &fields + return r +} + +// Exclude the specified fields in the response +func (r ApiCatalogExperiencesRetrieveRequest) Omit(omit string) ApiCatalogExperiencesRetrieveRequest { + r.omit = &omit + return r +} + +func (r ApiCatalogExperiencesRetrieveRequest) Execute() (*Experience, *http.Response, error) { + return r.ApiService.CatalogExperiencesRetrieveExecute(r) +} + +/* +CatalogExperiencesRetrieve Method for CatalogExperiencesRetrieve + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this experience. + @return ApiCatalogExperiencesRetrieveRequest +*/ +func (a *CatalogExperiencesAPIService) CatalogExperiencesRetrieve(ctx context.Context, id string) ApiCatalogExperiencesRetrieveRequest { + return ApiCatalogExperiencesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Experience +func (a *CatalogExperiencesAPIService) CatalogExperiencesRetrieveExecute(r ApiCatalogExperiencesRetrieveRequest) (*Experience, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Experience + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogExperiencesAPIService.CatalogExperiencesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.expand != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expand", r.expand, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogExperiencesStatsRetrieveRequest struct { + ctx context.Context + ApiService *CatalogExperiencesAPIService +} + +func (r ApiCatalogExperiencesStatsRetrieveRequest) Execute() (*http.Response, error) { + return r.ApiService.CatalogExperiencesStatsRetrieveExecute(r) +} + +/* +CatalogExperiencesStatsRetrieve 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCatalogExperiencesStatsRetrieveRequest +*/ +func (a *CatalogExperiencesAPIService) CatalogExperiencesStatsRetrieve(ctx context.Context) ApiCatalogExperiencesStatsRetrieveRequest { + return ApiCatalogExperiencesStatsRetrieveRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CatalogExperiencesAPIService) CatalogExperiencesStatsRetrieveExecute(r ApiCatalogExperiencesStatsRetrieveRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogExperiencesAPIService.CatalogExperiencesStatsRetrieve") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/stats/" + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiCatalogExperiencesUpdateRequest struct { + ctx context.Context + ApiService *CatalogExperiencesAPIService + id string + experience *Experience +} + +func (r ApiCatalogExperiencesUpdateRequest) Experience(experience Experience) ApiCatalogExperiencesUpdateRequest { + r.experience = &experience + return r +} + +func (r ApiCatalogExperiencesUpdateRequest) Execute() (*Experience, *http.Response, error) { + return r.ApiService.CatalogExperiencesUpdateExecute(r) +} + +/* +CatalogExperiencesUpdate Method for CatalogExperiencesUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this experience. + @return ApiCatalogExperiencesUpdateRequest +*/ +func (a *CatalogExperiencesAPIService) CatalogExperiencesUpdate(ctx context.Context, id string) ApiCatalogExperiencesUpdateRequest { + return ApiCatalogExperiencesUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Experience +func (a *CatalogExperiencesAPIService) CatalogExperiencesUpdateExecute(r ApiCatalogExperiencesUpdateRequest) (*Experience, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Experience + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogExperiencesAPIService.CatalogExperiencesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/experiences/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.experience == nil { + return localVarReturnValue, nil, reportError("experience is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.experience + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v1/providers/launchpad/gen/launchpad/api_catalog_gpu_os_choices.go b/v1/providers/launchpad/gen/launchpad/api_catalog_gpu_os_choices.go new file mode 100644 index 0000000..fa21010 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api_catalog_gpu_os_choices.go @@ -0,0 +1,317 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + +// CatalogGpuOsChoicesAPIService CatalogGpuOsChoicesAPI service +type CatalogGpuOsChoicesAPIService service + +type ApiCatalogGpuOsChoicesCreateRequest struct { + ctx context.Context + ApiService *CatalogGpuOsChoicesAPIService + gpuOsChoice *GpuOsChoice +} + +func (r ApiCatalogGpuOsChoicesCreateRequest) GpuOsChoice(gpuOsChoice GpuOsChoice) ApiCatalogGpuOsChoicesCreateRequest { + r.gpuOsChoice = &gpuOsChoice + return r +} + +func (r ApiCatalogGpuOsChoicesCreateRequest) Execute() (*GpuOsChoice, *http.Response, error) { + return r.ApiService.CatalogGpuOsChoicesCreateExecute(r) +} + +/* +CatalogGpuOsChoicesCreate Method for CatalogGpuOsChoicesCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCatalogGpuOsChoicesCreateRequest +*/ +func (a *CatalogGpuOsChoicesAPIService) CatalogGpuOsChoicesCreate(ctx context.Context) ApiCatalogGpuOsChoicesCreateRequest { + return ApiCatalogGpuOsChoicesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GpuOsChoice +func (a *CatalogGpuOsChoicesAPIService) CatalogGpuOsChoicesCreateExecute(r ApiCatalogGpuOsChoicesCreateRequest) (*GpuOsChoice, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GpuOsChoice + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogGpuOsChoicesAPIService.CatalogGpuOsChoicesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/gpu-os-choices/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.gpuOsChoice == nil { + return localVarReturnValue, nil, reportError("gpuOsChoice is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.gpuOsChoice + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogGpuOsChoicesListRequest struct { + ctx context.Context + ApiService *CatalogGpuOsChoicesAPIService + fields *string + omit *string + ordering *string + page *int32 + pageSize *int32 + search *string +} + +// Include only the specified fields in the response +func (r ApiCatalogGpuOsChoicesListRequest) Fields(fields string) ApiCatalogGpuOsChoicesListRequest { + r.fields = &fields + return r +} + +// Exclude the specified fields in the response +func (r ApiCatalogGpuOsChoicesListRequest) Omit(omit string) ApiCatalogGpuOsChoicesListRequest { + r.omit = &omit + return r +} + +// Which field to use when ordering the results. +func (r ApiCatalogGpuOsChoicesListRequest) Ordering(ordering string) ApiCatalogGpuOsChoicesListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiCatalogGpuOsChoicesListRequest) Page(page int32) ApiCatalogGpuOsChoicesListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiCatalogGpuOsChoicesListRequest) PageSize(pageSize int32) ApiCatalogGpuOsChoicesListRequest { + r.pageSize = &pageSize + return r +} + +// Search for gpuoschoices by id, name, release, version +func (r ApiCatalogGpuOsChoicesListRequest) Search(search string) ApiCatalogGpuOsChoicesListRequest { + r.search = &search + return r +} + +func (r ApiCatalogGpuOsChoicesListRequest) Execute() (*PaginatedGpuOsChoiceList, *http.Response, error) { + return r.ApiService.CatalogGpuOsChoicesListExecute(r) +} + +/* +CatalogGpuOsChoicesList Method for CatalogGpuOsChoicesList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCatalogGpuOsChoicesListRequest +*/ +func (a *CatalogGpuOsChoicesAPIService) CatalogGpuOsChoicesList(ctx context.Context) ApiCatalogGpuOsChoicesListRequest { + return ApiCatalogGpuOsChoicesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedGpuOsChoiceList +func (a *CatalogGpuOsChoicesAPIService) CatalogGpuOsChoicesListExecute(r ApiCatalogGpuOsChoicesListRequest) (*PaginatedGpuOsChoiceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedGpuOsChoiceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogGpuOsChoicesAPIService.CatalogGpuOsChoicesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/gpu-os-choices/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v1/providers/launchpad/gen/launchpad/api_catalog_instance_types.go b/v1/providers/launchpad/gen/launchpad/api_catalog_instance_types.go new file mode 100644 index 0000000..f6c1327 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api_catalog_instance_types.go @@ -0,0 +1,154 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + +// CatalogInstanceTypesAPIService CatalogInstanceTypesAPI service +type CatalogInstanceTypesAPIService service + +type ApiCatalogInstanceTypesListRequest struct { + ctx context.Context + ApiService *CatalogInstanceTypesAPIService + page *int32 + pageSize *int32 +} + +// A page number within the paginated result set. +func (r ApiCatalogInstanceTypesListRequest) Page(page int32) ApiCatalogInstanceTypesListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiCatalogInstanceTypesListRequest) PageSize(pageSize int32) ApiCatalogInstanceTypesListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiCatalogInstanceTypesListRequest) Execute() (*PaginatedInstanceTypeList, *http.Response, error) { + return r.ApiService.CatalogInstanceTypesListExecute(r) +} + +/* +CatalogInstanceTypesList Method for CatalogInstanceTypesList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCatalogInstanceTypesListRequest +*/ +func (a *CatalogInstanceTypesAPIService) CatalogInstanceTypesList(ctx context.Context) ApiCatalogInstanceTypesListRequest { + return ApiCatalogInstanceTypesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedInstanceTypeList +func (a *CatalogInstanceTypesAPIService) CatalogInstanceTypesListExecute(r ApiCatalogInstanceTypesListRequest) (*PaginatedInstanceTypeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedInstanceTypeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogInstanceTypesAPIService.CatalogInstanceTypesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/instance-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v1/providers/launchpad/gen/launchpad/api_catalog_persona_choices.go b/v1/providers/launchpad/gen/launchpad/api_catalog_persona_choices.go new file mode 100644 index 0000000..9beed15 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api_catalog_persona_choices.go @@ -0,0 +1,317 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + +// CatalogPersonaChoicesAPIService CatalogPersonaChoicesAPI service +type CatalogPersonaChoicesAPIService service + +type ApiCatalogPersonaChoicesCreateRequest struct { + ctx context.Context + ApiService *CatalogPersonaChoicesAPIService + personaChoice *PersonaChoice +} + +func (r ApiCatalogPersonaChoicesCreateRequest) PersonaChoice(personaChoice PersonaChoice) ApiCatalogPersonaChoicesCreateRequest { + r.personaChoice = &personaChoice + return r +} + +func (r ApiCatalogPersonaChoicesCreateRequest) Execute() (*PersonaChoice, *http.Response, error) { + return r.ApiService.CatalogPersonaChoicesCreateExecute(r) +} + +/* +CatalogPersonaChoicesCreate Method for CatalogPersonaChoicesCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCatalogPersonaChoicesCreateRequest +*/ +func (a *CatalogPersonaChoicesAPIService) CatalogPersonaChoicesCreate(ctx context.Context) ApiCatalogPersonaChoicesCreateRequest { + return ApiCatalogPersonaChoicesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PersonaChoice +func (a *CatalogPersonaChoicesAPIService) CatalogPersonaChoicesCreateExecute(r ApiCatalogPersonaChoicesCreateRequest) (*PersonaChoice, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PersonaChoice + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogPersonaChoicesAPIService.CatalogPersonaChoicesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/persona-choices/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.personaChoice == nil { + return localVarReturnValue, nil, reportError("personaChoice is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.personaChoice + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCatalogPersonaChoicesListRequest struct { + ctx context.Context + ApiService *CatalogPersonaChoicesAPIService + fields *string + omit *string + ordering *string + page *int32 + pageSize *int32 + search *string +} + +// Include only the specified fields in the response +func (r ApiCatalogPersonaChoicesListRequest) Fields(fields string) ApiCatalogPersonaChoicesListRequest { + r.fields = &fields + return r +} + +// Exclude the specified fields in the response +func (r ApiCatalogPersonaChoicesListRequest) Omit(omit string) ApiCatalogPersonaChoicesListRequest { + r.omit = &omit + return r +} + +// Which field to use when ordering the results. +func (r ApiCatalogPersonaChoicesListRequest) Ordering(ordering string) ApiCatalogPersonaChoicesListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiCatalogPersonaChoicesListRequest) Page(page int32) ApiCatalogPersonaChoicesListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiCatalogPersonaChoicesListRequest) PageSize(pageSize int32) ApiCatalogPersonaChoicesListRequest { + r.pageSize = &pageSize + return r +} + +// Search for personachoices by id, name +func (r ApiCatalogPersonaChoicesListRequest) Search(search string) ApiCatalogPersonaChoicesListRequest { + r.search = &search + return r +} + +func (r ApiCatalogPersonaChoicesListRequest) Execute() (*PaginatedPersonaChoiceList, *http.Response, error) { + return r.ApiService.CatalogPersonaChoicesListExecute(r) +} + +/* +CatalogPersonaChoicesList Method for CatalogPersonaChoicesList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCatalogPersonaChoicesListRequest +*/ +func (a *CatalogPersonaChoicesAPIService) CatalogPersonaChoicesList(ctx context.Context) ApiCatalogPersonaChoicesListRequest { + return ApiCatalogPersonaChoicesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedPersonaChoiceList +func (a *CatalogPersonaChoicesAPIService) CatalogPersonaChoicesListExecute(r ApiCatalogPersonaChoicesListRequest) (*PaginatedPersonaChoiceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPersonaChoiceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CatalogPersonaChoicesAPIService.CatalogPersonaChoicesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/catalog/persona-choices/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v1/providers/launchpad/gen/launchpad/api_identity_profile.go b/v1/providers/launchpad/gen/launchpad/api_identity_profile.go new file mode 100644 index 0000000..139791e --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api_identity_profile.go @@ -0,0 +1,257 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + +// IdentityProfileAPIService IdentityProfileAPI service +type IdentityProfileAPIService service + +type ApiIdentityProfilePartialUpdateRequest struct { + ctx context.Context + ApiService *IdentityProfileAPIService + profile *Profile +} + +func (r ApiIdentityProfilePartialUpdateRequest) Profile(profile Profile) ApiIdentityProfilePartialUpdateRequest { + r.profile = &profile + return r +} + +func (r ApiIdentityProfilePartialUpdateRequest) Execute() (*Profile, *http.Response, error) { + return r.ApiService.IdentityProfilePartialUpdateExecute(r) +} + +/* +IdentityProfilePartialUpdate Method for IdentityProfilePartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIdentityProfilePartialUpdateRequest +*/ +func (a *IdentityProfileAPIService) IdentityProfilePartialUpdate(ctx context.Context) ApiIdentityProfilePartialUpdateRequest { + return ApiIdentityProfilePartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Profile +func (a *IdentityProfileAPIService) IdentityProfilePartialUpdateExecute(r ApiIdentityProfilePartialUpdateRequest) (*Profile, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Profile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProfileAPIService.IdentityProfilePartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/identity/profile/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.profile == nil { + return localVarReturnValue, nil, reportError("profile is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.profile + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiIdentityProfileRetrieveRequest struct { + ctx context.Context + ApiService *IdentityProfileAPIService +} + +func (r ApiIdentityProfileRetrieveRequest) Execute() (*Profile, *http.Response, error) { + return r.ApiService.IdentityProfileRetrieveExecute(r) +} + +/* +IdentityProfileRetrieve Method for IdentityProfileRetrieve + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIdentityProfileRetrieveRequest +*/ +func (a *IdentityProfileAPIService) IdentityProfileRetrieve(ctx context.Context) ApiIdentityProfileRetrieveRequest { + return ApiIdentityProfileRetrieveRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Profile +func (a *IdentityProfileAPIService) IdentityProfileRetrieveExecute(r ApiIdentityProfileRetrieveRequest) (*Profile, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Profile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProfileAPIService.IdentityProfileRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/identity/profile/" + + 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v1/providers/launchpad/gen/launchpad/api_inventory_clusters.go b/v1/providers/launchpad/gen/launchpad/api_inventory_clusters.go new file mode 100644 index 0000000..6b8f135 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api_inventory_clusters.go @@ -0,0 +1,1831 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// InventoryClustersAPIService InventoryClustersAPI service +type InventoryClustersAPIService service + +type ApiInventoryClustersBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *InventoryClustersAPIService + clusterBulkUpdate *ClusterBulkUpdate +} + +func (r ApiInventoryClustersBulkPartialUpdateRequest) ClusterBulkUpdate(clusterBulkUpdate ClusterBulkUpdate) ApiInventoryClustersBulkPartialUpdateRequest { + r.clusterBulkUpdate = &clusterBulkUpdate + return r +} + +func (r ApiInventoryClustersBulkPartialUpdateRequest) Execute() (*ClusterBulkUpdate, *http.Response, error) { + return r.ApiService.InventoryClustersBulkPartialUpdateExecute(r) +} + +/* +InventoryClustersBulkPartialUpdate Method for InventoryClustersBulkPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryClustersBulkPartialUpdateRequest +*/ +func (a *InventoryClustersAPIService) InventoryClustersBulkPartialUpdate(ctx context.Context) ApiInventoryClustersBulkPartialUpdateRequest { + return ApiInventoryClustersBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return ClusterBulkUpdate +func (a *InventoryClustersAPIService) InventoryClustersBulkPartialUpdateExecute(r ApiInventoryClustersBulkPartialUpdateRequest) (*ClusterBulkUpdate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClusterBulkUpdate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryClustersAPIService.InventoryClustersBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/clusters/bulk/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.clusterBulkUpdate == nil { + return localVarReturnValue, nil, reportError("clusterBulkUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clusterBulkUpdate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryClustersCreateRequest struct { + ctx context.Context + ApiService *InventoryClustersAPIService + cluster *Cluster +} + +func (r ApiInventoryClustersCreateRequest) Cluster(cluster Cluster) ApiInventoryClustersCreateRequest { + r.cluster = &cluster + return r +} + +func (r ApiInventoryClustersCreateRequest) Execute() (*Cluster, *http.Response, error) { + return r.ApiService.InventoryClustersCreateExecute(r) +} + +/* +InventoryClustersCreate Method for InventoryClustersCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryClustersCreateRequest +*/ +func (a *InventoryClustersAPIService) InventoryClustersCreate(ctx context.Context) ApiInventoryClustersCreateRequest { + return ApiInventoryClustersCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Cluster +func (a *InventoryClustersAPIService) InventoryClustersCreateExecute(r ApiInventoryClustersCreateRequest) (*Cluster, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryClustersAPIService.InventoryClustersCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/clusters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.cluster + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryClustersDestroyRequest struct { + ctx context.Context + ApiService *InventoryClustersAPIService + id string +} + +func (r ApiInventoryClustersDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.InventoryClustersDestroyExecute(r) +} + +/* +InventoryClustersDestroy Method for InventoryClustersDestroy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this cluster. + @return ApiInventoryClustersDestroyRequest +*/ +func (a *InventoryClustersAPIService) InventoryClustersDestroy(ctx context.Context, id string) ApiInventoryClustersDestroyRequest { + return ApiInventoryClustersDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *InventoryClustersAPIService) InventoryClustersDestroyExecute(r ApiInventoryClustersDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryClustersAPIService.InventoryClustersDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/clusters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiInventoryClustersHistoryListRequest struct { + ctx context.Context + ApiService *InventoryClustersAPIService + id string + page *int32 + pageSize *int32 +} + +// A page number within the paginated result set. +func (r ApiInventoryClustersHistoryListRequest) Page(page int32) ApiInventoryClustersHistoryListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiInventoryClustersHistoryListRequest) PageSize(pageSize int32) ApiInventoryClustersHistoryListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiInventoryClustersHistoryListRequest) Execute() (*PaginatedModelChangeList, *http.Response, error) { + return r.ApiService.InventoryClustersHistoryListExecute(r) +} + +/* +InventoryClustersHistoryList Method for InventoryClustersHistoryList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiInventoryClustersHistoryListRequest +*/ +func (a *InventoryClustersAPIService) InventoryClustersHistoryList(ctx context.Context, id string) ApiInventoryClustersHistoryListRequest { + return ApiInventoryClustersHistoryListRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return PaginatedModelChangeList +func (a *InventoryClustersAPIService) InventoryClustersHistoryListExecute(r ApiInventoryClustersHistoryListRequest) (*PaginatedModelChangeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModelChangeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryClustersAPIService.InventoryClustersHistoryList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/clusters/{id}/history/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryClustersListRequest struct { + ctx context.Context + ApiService *InventoryClustersAPIService + available *bool + bastionName *string + deployment *string + enabled *bool + expand *string + experience *string + fields *string + garageId *string + gpu *[]string + gpuAlias *string + gpuCount *float32 + gpuModel *string + hasDeployment *bool + hasRequestId *bool + hasWorkshopId *bool + id *string + location *string + locationName *string + locationRegion *string + maintenance *bool + mgmtIp *string + mgmtMac *string + minGpuCount *float32 + minNodeCount *float32 + minProvisioningAttempts *int32 + minTenantCount *float32 + netmask *int32 + nodeCount *float32 + oem *string + omit *string + ordering *string + page *int32 + pageSize *int32 + persist *bool + provider *string + providerCapacity *bool + providerName *string + providerNodeId *string + provisionUser *string + provisioningAttempts *int32 + provisioningState *[]string + publicAddress *string + rack *string + requestId *string + reservation *bool + search *string + systemArch *string + vlanId *int32 + workshop *bool + workshopId *string + workshopIdNot *string +} + +// Is the cluster currently available for provisioning? +func (r ApiInventoryClustersListRequest) Available(available bool) ApiInventoryClustersListRequest { + r.available = &available + return r +} + +func (r ApiInventoryClustersListRequest) BastionName(bastionName string) ApiInventoryClustersListRequest { + r.bastionName = &bastionName + return r +} + +func (r ApiInventoryClustersListRequest) Deployment(deployment string) ApiInventoryClustersListRequest { + r.deployment = &deployment + return r +} + +func (r ApiInventoryClustersListRequest) Enabled(enabled bool) ApiInventoryClustersListRequest { + r.enabled = &enabled + return r +} + +// Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: \"nodes.location\"). Separate multiple fields with a comma (ex: \"gpus,nodes\") +func (r ApiInventoryClustersListRequest) Expand(expand string) ApiInventoryClustersListRequest { + r.expand = &expand + return r +} + +func (r ApiInventoryClustersListRequest) Experience(experience string) ApiInventoryClustersListRequest { + r.experience = &experience + return r +} + +// Include only the specified fields in the response +func (r ApiInventoryClustersListRequest) Fields(fields string) ApiInventoryClustersListRequest { + r.fields = &fields + return r +} + +// Only include clusters whose nodes have the given garage ID +func (r ApiInventoryClustersListRequest) GarageId(garageId string) ApiInventoryClustersListRequest { + r.garageId = &garageId + return r +} + +// Multiple values may be separated by commas. +func (r ApiInventoryClustersListRequest) Gpu(gpu []string) ApiInventoryClustersListRequest { + r.gpu = &gpu + return r +} + +// Alias for GPU plan (i.e. installed GPU type and count) +func (r ApiInventoryClustersListRequest) GpuAlias(gpuAlias string) ApiInventoryClustersListRequest { + r.gpuAlias = &gpuAlias + return r +} + +// Only include clusters with a physical GPU count equal to this value +func (r ApiInventoryClustersListRequest) GpuCount(gpuCount float32) ApiInventoryClustersListRequest { + r.gpuCount = &gpuCount + return r +} + +// Only include clusters with the given GPU model name +func (r ApiInventoryClustersListRequest) GpuModel(gpuModel string) ApiInventoryClustersListRequest { + r.gpuModel = &gpuModel + return r +} + +func (r ApiInventoryClustersListRequest) HasDeployment(hasDeployment bool) ApiInventoryClustersListRequest { + r.hasDeployment = &hasDeployment + return r +} + +func (r ApiInventoryClustersListRequest) HasRequestId(hasRequestId bool) ApiInventoryClustersListRequest { + r.hasRequestId = &hasRequestId + return r +} + +func (r ApiInventoryClustersListRequest) HasWorkshopId(hasWorkshopId bool) ApiInventoryClustersListRequest { + r.hasWorkshopId = &hasWorkshopId + return r +} + +func (r ApiInventoryClustersListRequest) Id(id string) ApiInventoryClustersListRequest { + r.id = &id + return r +} + +func (r ApiInventoryClustersListRequest) Location(location string) ApiInventoryClustersListRequest { + r.location = &location + return r +} + +// Only include clusters whose nodes are in the location with the given name +func (r ApiInventoryClustersListRequest) LocationName(locationName string) ApiInventoryClustersListRequest { + r.locationName = &locationName + return r +} + +// Only include clusters whose nodes are in the location in the given region +func (r ApiInventoryClustersListRequest) LocationRegion(locationRegion string) ApiInventoryClustersListRequest { + r.locationRegion = &locationRegion + return r +} + +func (r ApiInventoryClustersListRequest) Maintenance(maintenance bool) ApiInventoryClustersListRequest { + r.maintenance = &maintenance + return r +} + +func (r ApiInventoryClustersListRequest) MgmtIp(mgmtIp string) ApiInventoryClustersListRequest { + r.mgmtIp = &mgmtIp + return r +} + +func (r ApiInventoryClustersListRequest) MgmtMac(mgmtMac string) ApiInventoryClustersListRequest { + r.mgmtMac = &mgmtMac + return r +} + +// Only include clusters that have a gpu_count greater than or equal to this value +func (r ApiInventoryClustersListRequest) MinGpuCount(minGpuCount float32) ApiInventoryClustersListRequest { + r.minGpuCount = &minGpuCount + return r +} + +// Only include clusters that have a node_count greater than or equal to this value +func (r ApiInventoryClustersListRequest) MinNodeCount(minNodeCount float32) ApiInventoryClustersListRequest { + r.minNodeCount = &minNodeCount + return r +} + +// Only include clusters that have a provisioning_attempts value greater than or equal to this value +func (r ApiInventoryClustersListRequest) MinProvisioningAttempts(minProvisioningAttempts int32) ApiInventoryClustersListRequest { + r.minProvisioningAttempts = &minProvisioningAttempts + return r +} + +// Only include clusters whose number of tenant_ids is greater than or equal to this value +func (r ApiInventoryClustersListRequest) MinTenantCount(minTenantCount float32) ApiInventoryClustersListRequest { + r.minTenantCount = &minTenantCount + return r +} + +func (r ApiInventoryClustersListRequest) Netmask(netmask int32) ApiInventoryClustersListRequest { + r.netmask = &netmask + return r +} + +// Only include clusters with a node count equal to this value +func (r ApiInventoryClustersListRequest) NodeCount(nodeCount float32) ApiInventoryClustersListRequest { + r.nodeCount = &nodeCount + return r +} + +// Only include clusters with nodes that have the given OEM ID +func (r ApiInventoryClustersListRequest) Oem(oem string) ApiInventoryClustersListRequest { + r.oem = &oem + return r +} + +// Exclude the specified fields in the response +func (r ApiInventoryClustersListRequest) Omit(omit string) ApiInventoryClustersListRequest { + r.omit = &omit + return r +} + +// Which field to use when ordering the results. +func (r ApiInventoryClustersListRequest) Ordering(ordering string) ApiInventoryClustersListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiInventoryClustersListRequest) Page(page int32) ApiInventoryClustersListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiInventoryClustersListRequest) PageSize(pageSize int32) ApiInventoryClustersListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiInventoryClustersListRequest) Persist(persist bool) ApiInventoryClustersListRequest { + r.persist = &persist + return r +} + +func (r ApiInventoryClustersListRequest) Provider(provider string) ApiInventoryClustersListRequest { + r.provider = &provider + return r +} + +func (r ApiInventoryClustersListRequest) ProviderCapacity(providerCapacity bool) ApiInventoryClustersListRequest { + r.providerCapacity = &providerCapacity + return r +} + +// Only include clusters whose nodes are from the provider with the given name +func (r ApiInventoryClustersListRequest) ProviderName(providerName string) ApiInventoryClustersListRequest { + r.providerName = &providerName + return r +} + +func (r ApiInventoryClustersListRequest) ProviderNodeId(providerNodeId string) ApiInventoryClustersListRequest { + r.providerNodeId = &providerNodeId + return r +} + +func (r ApiInventoryClustersListRequest) ProvisionUser(provisionUser string) ApiInventoryClustersListRequest { + r.provisionUser = &provisionUser + return r +} + +func (r ApiInventoryClustersListRequest) ProvisioningAttempts(provisioningAttempts int32) ApiInventoryClustersListRequest { + r.provisioningAttempts = &provisioningAttempts + return r +} + +// Multiple values may be separated by commas. * `deployed` - Cluster is in use by a deployment * `deploying` - Provisioning is in progress * `destroying` - Cluster is being destroyed * `pending` - Provisioning will begin soon * `ready` - Provisioning has completed and is ready for a deployment * `reserved` - Cluster is unprovisioned but reserved for later use * `unprovisioned` - Cluster has not yet been provisioned +func (r ApiInventoryClustersListRequest) ProvisioningState(provisioningState []string) ApiInventoryClustersListRequest { + r.provisioningState = &provisioningState + return r +} + +func (r ApiInventoryClustersListRequest) PublicAddress(publicAddress string) ApiInventoryClustersListRequest { + r.publicAddress = &publicAddress + return r +} + +// Only include clusters whose nodes are in the given rack +func (r ApiInventoryClustersListRequest) Rack(rack string) ApiInventoryClustersListRequest { + r.rack = &rack + return r +} + +func (r ApiInventoryClustersListRequest) RequestId(requestId string) ApiInventoryClustersListRequest { + r.requestId = &requestId + return r +} + +func (r ApiInventoryClustersListRequest) Reservation(reservation bool) ApiInventoryClustersListRequest { + r.reservation = &reservation + return r +} + +// Search for clusters by bastion_name, experience id, gpu_alias, gpus model, id, mgmt_ip, mgmt_mac, netmask, nodes garage_id, nodes location name, nodes location provider name, nodes oem name, nodes provider_node_id, nodes rack, notes, provision_user, provisioning_state, public_address, request_id, tenant_ids, workshop_id +func (r ApiInventoryClustersListRequest) Search(search string) ApiInventoryClustersListRequest { + r.search = &search + return r +} + +// Only include clusters whose nodes have the given CPU architecture +func (r ApiInventoryClustersListRequest) SystemArch(systemArch string) ApiInventoryClustersListRequest { + r.systemArch = &systemArch + return r +} + +func (r ApiInventoryClustersListRequest) VlanId(vlanId int32) ApiInventoryClustersListRequest { + r.vlanId = &vlanId + return r +} + +func (r ApiInventoryClustersListRequest) Workshop(workshop bool) ApiInventoryClustersListRequest { + r.workshop = &workshop + return r +} + +func (r ApiInventoryClustersListRequest) WorkshopId(workshopId string) ApiInventoryClustersListRequest { + r.workshopId = &workshopId + return r +} + +func (r ApiInventoryClustersListRequest) WorkshopIdNot(workshopIdNot string) ApiInventoryClustersListRequest { + r.workshopIdNot = &workshopIdNot + return r +} + +func (r ApiInventoryClustersListRequest) Execute() (*PaginatedClusterList, *http.Response, error) { + return r.ApiService.InventoryClustersListExecute(r) +} + +/* +InventoryClustersList Method for InventoryClustersList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryClustersListRequest +*/ +func (a *InventoryClustersAPIService) InventoryClustersList(ctx context.Context) ApiInventoryClustersListRequest { + return ApiInventoryClustersListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedClusterList +func (a *InventoryClustersAPIService) InventoryClustersListExecute(r ApiInventoryClustersListRequest) (*PaginatedClusterList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedClusterList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryClustersAPIService.InventoryClustersList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/clusters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.available != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "available", r.available, "form", "") + } + if r.bastionName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "bastion_name", r.bastionName, "form", "") + } + if r.deployment != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deployment", r.deployment, "form", "") + } + if r.enabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "form", "") + } + if r.expand != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expand", r.expand, "form", "") + } + if r.experience != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "experience", r.experience, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.garageId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "garage_id", r.garageId, "form", "") + } + if r.gpu != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu", r.gpu, "form", "csv") + } + if r.gpuAlias != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_alias", r.gpuAlias, "form", "") + } + if r.gpuCount != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_count", r.gpuCount, "form", "") + } + if r.gpuModel != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_model", r.gpuModel, "form", "") + } + if r.hasDeployment != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "has_deployment", r.hasDeployment, "form", "") + } + if r.hasRequestId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "has_request_id", r.hasRequestId, "form", "") + } + if r.hasWorkshopId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "has_workshop_id", r.hasWorkshopId, "form", "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.location != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", r.location, "form", "") + } + if r.locationName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_name", r.locationName, "form", "") + } + if r.locationRegion != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_region", r.locationRegion, "form", "") + } + if r.maintenance != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "maintenance", r.maintenance, "form", "") + } + if r.mgmtIp != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mgmt_ip", r.mgmtIp, "form", "") + } + if r.mgmtMac != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mgmt_mac", r.mgmtMac, "form", "") + } + if r.minGpuCount != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_gpu_count", r.minGpuCount, "form", "") + } + if r.minNodeCount != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_node_count", r.minNodeCount, "form", "") + } + if r.minProvisioningAttempts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_provisioning_attempts", r.minProvisioningAttempts, "form", "") + } + if r.minTenantCount != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_tenant_count", r.minTenantCount, "form", "") + } + if r.netmask != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "netmask", r.netmask, "form", "") + } + if r.nodeCount != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "node_count", r.nodeCount, "form", "") + } + if r.oem != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "oem", r.oem, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.persist != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "persist", r.persist, "form", "") + } + if r.provider != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", r.provider, "form", "") + } + if r.providerCapacity != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_capacity", r.providerCapacity, "form", "") + } + if r.providerName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_name", r.providerName, "form", "") + } + if r.providerNodeId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_node_id", r.providerNodeId, "form", "") + } + if r.provisionUser != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "provision_user", r.provisionUser, "form", "") + } + if r.provisioningAttempts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "provisioning_attempts", r.provisioningAttempts, "form", "") + } + if r.provisioningState != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "provisioning_state", r.provisioningState, "form", "csv") + } + if r.publicAddress != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "public_address", r.publicAddress, "form", "") + } + if r.rack != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", r.rack, "form", "") + } + if r.requestId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "request_id", r.requestId, "form", "") + } + if r.reservation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "reservation", r.reservation, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + if r.systemArch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "system_arch", r.systemArch, "form", "") + } + if r.vlanId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", r.vlanId, "form", "") + } + if r.workshop != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "workshop", r.workshop, "form", "") + } + if r.workshopId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "workshop_id", r.workshopId, "form", "") + } + if r.workshopIdNot != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "workshop_id_not", r.workshopIdNot, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryClustersPartialUpdateRequest struct { + ctx context.Context + ApiService *InventoryClustersAPIService + id string + cluster *Cluster +} + +func (r ApiInventoryClustersPartialUpdateRequest) Cluster(cluster Cluster) ApiInventoryClustersPartialUpdateRequest { + r.cluster = &cluster + return r +} + +func (r ApiInventoryClustersPartialUpdateRequest) Execute() (*Cluster, *http.Response, error) { + return r.ApiService.InventoryClustersPartialUpdateExecute(r) +} + +/* +InventoryClustersPartialUpdate Method for InventoryClustersPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this cluster. + @return ApiInventoryClustersPartialUpdateRequest +*/ +func (a *InventoryClustersAPIService) InventoryClustersPartialUpdate(ctx context.Context, id string) ApiInventoryClustersPartialUpdateRequest { + return ApiInventoryClustersPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Cluster +func (a *InventoryClustersAPIService) InventoryClustersPartialUpdateExecute(r ApiInventoryClustersPartialUpdateRequest) (*Cluster, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryClustersAPIService.InventoryClustersPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/clusters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.cluster + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryClustersRetrieveRequest struct { + ctx context.Context + ApiService *InventoryClustersAPIService + id string + expand *string + fields *string + omit *string +} + +// Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: \"nodes.location\"). Separate multiple fields with a comma (ex: \"gpus,nodes\") +func (r ApiInventoryClustersRetrieveRequest) Expand(expand string) ApiInventoryClustersRetrieveRequest { + r.expand = &expand + return r +} + +// Include only the specified fields in the response +func (r ApiInventoryClustersRetrieveRequest) Fields(fields string) ApiInventoryClustersRetrieveRequest { + r.fields = &fields + return r +} + +// Exclude the specified fields in the response +func (r ApiInventoryClustersRetrieveRequest) Omit(omit string) ApiInventoryClustersRetrieveRequest { + r.omit = &omit + return r +} + +func (r ApiInventoryClustersRetrieveRequest) Execute() (*Cluster, *http.Response, error) { + return r.ApiService.InventoryClustersRetrieveExecute(r) +} + +/* +InventoryClustersRetrieve Method for InventoryClustersRetrieve + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this cluster. + @return ApiInventoryClustersRetrieveRequest +*/ +func (a *InventoryClustersAPIService) InventoryClustersRetrieve(ctx context.Context, id string) ApiInventoryClustersRetrieveRequest { + return ApiInventoryClustersRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Cluster +func (a *InventoryClustersAPIService) InventoryClustersRetrieveExecute(r ApiInventoryClustersRetrieveRequest) (*Cluster, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryClustersAPIService.InventoryClustersRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/clusters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.expand != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expand", r.expand, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryClustersStatsRetrieveRequest struct { + ctx context.Context + ApiService *InventoryClustersAPIService +} + +func (r ApiInventoryClustersStatsRetrieveRequest) Execute() (*http.Response, error) { + return r.ApiService.InventoryClustersStatsRetrieveExecute(r) +} + +/* +InventoryClustersStatsRetrieve 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryClustersStatsRetrieveRequest +*/ +func (a *InventoryClustersAPIService) InventoryClustersStatsRetrieve(ctx context.Context) ApiInventoryClustersStatsRetrieveRequest { + return ApiInventoryClustersStatsRetrieveRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *InventoryClustersAPIService) InventoryClustersStatsRetrieveExecute(r ApiInventoryClustersStatsRetrieveRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryClustersAPIService.InventoryClustersStatsRetrieve") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/clusters/stats/" + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiInventoryClustersTenantsCreateRequest struct { + ctx context.Context + ApiService *InventoryClustersAPIService + clusterId string + tenant *Tenant +} + +func (r ApiInventoryClustersTenantsCreateRequest) Tenant(tenant Tenant) ApiInventoryClustersTenantsCreateRequest { + r.tenant = &tenant + return r +} + +func (r ApiInventoryClustersTenantsCreateRequest) Execute() (*Cluster, *http.Response, error) { + return r.ApiService.InventoryClustersTenantsCreateExecute(r) +} + +/* +InventoryClustersTenantsCreate Method for InventoryClustersTenantsCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param clusterId + @return ApiInventoryClustersTenantsCreateRequest +*/ +func (a *InventoryClustersAPIService) InventoryClustersTenantsCreate(ctx context.Context, clusterId string) ApiInventoryClustersTenantsCreateRequest { + return ApiInventoryClustersTenantsCreateRequest{ + ApiService: a, + ctx: ctx, + clusterId: clusterId, + } +} + +// Execute executes the request +// +// @return Cluster +func (a *InventoryClustersAPIService) InventoryClustersTenantsCreateExecute(r ApiInventoryClustersTenantsCreateRequest) (*Cluster, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryClustersAPIService.InventoryClustersTenantsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/clusters/{cluster_id}/tenants/" + localVarPath = strings.Replace(localVarPath, "{"+"cluster_id"+"}", url.PathEscape(parameterValueToString(r.clusterId, "clusterId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.tenant == nil { + return localVarReturnValue, nil, reportError("tenant is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.tenant + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryClustersTenantsDestroyRequest struct { + ctx context.Context + ApiService *InventoryClustersAPIService + clusterId string + id string +} + +func (r ApiInventoryClustersTenantsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.InventoryClustersTenantsDestroyExecute(r) +} + +/* +InventoryClustersTenantsDestroy Method for InventoryClustersTenantsDestroy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param clusterId + @param id + @return ApiInventoryClustersTenantsDestroyRequest +*/ +func (a *InventoryClustersAPIService) InventoryClustersTenantsDestroy(ctx context.Context, clusterId string, id string) ApiInventoryClustersTenantsDestroyRequest { + return ApiInventoryClustersTenantsDestroyRequest{ + ApiService: a, + ctx: ctx, + clusterId: clusterId, + id: id, + } +} + +// Execute executes the request +func (a *InventoryClustersAPIService) InventoryClustersTenantsDestroyExecute(r ApiInventoryClustersTenantsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryClustersAPIService.InventoryClustersTenantsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/clusters/{cluster_id}/tenants/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"cluster_id"+"}", url.PathEscape(parameterValueToString(r.clusterId, "clusterId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiInventoryClustersUpdateRequest struct { + ctx context.Context + ApiService *InventoryClustersAPIService + id string + cluster *Cluster +} + +func (r ApiInventoryClustersUpdateRequest) Cluster(cluster Cluster) ApiInventoryClustersUpdateRequest { + r.cluster = &cluster + return r +} + +func (r ApiInventoryClustersUpdateRequest) Execute() (*Cluster, *http.Response, error) { + return r.ApiService.InventoryClustersUpdateExecute(r) +} + +/* +InventoryClustersUpdate Method for InventoryClustersUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this cluster. + @return ApiInventoryClustersUpdateRequest +*/ +func (a *InventoryClustersAPIService) InventoryClustersUpdate(ctx context.Context, id string) ApiInventoryClustersUpdateRequest { + return ApiInventoryClustersUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Cluster +func (a *InventoryClustersAPIService) InventoryClustersUpdateExecute(r ApiInventoryClustersUpdateRequest) (*Cluster, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryClustersAPIService.InventoryClustersUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/clusters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.cluster + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v1/providers/launchpad/gen/launchpad/api_inventory_gpus.go b/v1/providers/launchpad/gen/launchpad/api_inventory_gpus.go new file mode 100644 index 0000000..a1d0540 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api_inventory_gpus.go @@ -0,0 +1,1209 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// InventoryGpusAPIService InventoryGpusAPI service +type InventoryGpusAPIService service + +type ApiInventoryGpusBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *InventoryGpusAPIService + gpuBulkUpdate *GpuBulkUpdate +} + +func (r ApiInventoryGpusBulkPartialUpdateRequest) GpuBulkUpdate(gpuBulkUpdate GpuBulkUpdate) ApiInventoryGpusBulkPartialUpdateRequest { + r.gpuBulkUpdate = &gpuBulkUpdate + return r +} + +func (r ApiInventoryGpusBulkPartialUpdateRequest) Execute() (*GpuBulkUpdate, *http.Response, error) { + return r.ApiService.InventoryGpusBulkPartialUpdateExecute(r) +} + +/* +InventoryGpusBulkPartialUpdate Method for InventoryGpusBulkPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryGpusBulkPartialUpdateRequest +*/ +func (a *InventoryGpusAPIService) InventoryGpusBulkPartialUpdate(ctx context.Context) ApiInventoryGpusBulkPartialUpdateRequest { + return ApiInventoryGpusBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GpuBulkUpdate +func (a *InventoryGpusAPIService) InventoryGpusBulkPartialUpdateExecute(r ApiInventoryGpusBulkPartialUpdateRequest) (*GpuBulkUpdate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GpuBulkUpdate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryGpusAPIService.InventoryGpusBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/gpus/bulk/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.gpuBulkUpdate == nil { + return localVarReturnValue, nil, reportError("gpuBulkUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.gpuBulkUpdate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryGpusCreateRequest struct { + ctx context.Context + ApiService *InventoryGpusAPIService + gpu *Gpu +} + +func (r ApiInventoryGpusCreateRequest) Gpu(gpu Gpu) ApiInventoryGpusCreateRequest { + r.gpu = &gpu + return r +} + +func (r ApiInventoryGpusCreateRequest) Execute() (*Gpu, *http.Response, error) { + return r.ApiService.InventoryGpusCreateExecute(r) +} + +/* +InventoryGpusCreate Method for InventoryGpusCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryGpusCreateRequest +*/ +func (a *InventoryGpusAPIService) InventoryGpusCreate(ctx context.Context) ApiInventoryGpusCreateRequest { + return ApiInventoryGpusCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Gpu +func (a *InventoryGpusAPIService) InventoryGpusCreateExecute(r ApiInventoryGpusCreateRequest) (*Gpu, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Gpu + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryGpusAPIService.InventoryGpusCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/gpus/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.gpu == nil { + return localVarReturnValue, nil, reportError("gpu is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.gpu + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryGpusDestroyRequest struct { + ctx context.Context + ApiService *InventoryGpusAPIService + id string +} + +func (r ApiInventoryGpusDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.InventoryGpusDestroyExecute(r) +} + +/* +InventoryGpusDestroy Method for InventoryGpusDestroy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this gpu. + @return ApiInventoryGpusDestroyRequest +*/ +func (a *InventoryGpusAPIService) InventoryGpusDestroy(ctx context.Context, id string) ApiInventoryGpusDestroyRequest { + return ApiInventoryGpusDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *InventoryGpusAPIService) InventoryGpusDestroyExecute(r ApiInventoryGpusDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryGpusAPIService.InventoryGpusDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/gpus/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiInventoryGpusHistoryListRequest struct { + ctx context.Context + ApiService *InventoryGpusAPIService + id string + page *int32 + pageSize *int32 +} + +// A page number within the paginated result set. +func (r ApiInventoryGpusHistoryListRequest) Page(page int32) ApiInventoryGpusHistoryListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiInventoryGpusHistoryListRequest) PageSize(pageSize int32) ApiInventoryGpusHistoryListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiInventoryGpusHistoryListRequest) Execute() (*PaginatedModelChangeList, *http.Response, error) { + return r.ApiService.InventoryGpusHistoryListExecute(r) +} + +/* +InventoryGpusHistoryList Method for InventoryGpusHistoryList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiInventoryGpusHistoryListRequest +*/ +func (a *InventoryGpusAPIService) InventoryGpusHistoryList(ctx context.Context, id string) ApiInventoryGpusHistoryListRequest { + return ApiInventoryGpusHistoryListRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return PaginatedModelChangeList +func (a *InventoryGpusAPIService) InventoryGpusHistoryListExecute(r ApiInventoryGpusHistoryListRequest) (*PaginatedModelChangeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModelChangeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryGpusAPIService.InventoryGpusHistoryList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/gpus/{id}/history/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryGpusListRequest struct { + ctx context.Context + ApiService *InventoryGpusAPIService + fields *string + formFactor *string + id *string + model *[]string + omit *string + ordering *string + page *int32 + pageSize *int32 + priority *int32 + search *string +} + +// Include only the specified fields in the response +func (r ApiInventoryGpusListRequest) Fields(fields string) ApiInventoryGpusListRequest { + r.fields = &fields + return r +} + +// GPU form factor * `pcie` - PCIe * `sxm` - SXM +func (r ApiInventoryGpusListRequest) FormFactor(formFactor string) ApiInventoryGpusListRequest { + r.formFactor = &formFactor + return r +} + +func (r ApiInventoryGpusListRequest) Id(id string) ApiInventoryGpusListRequest { + r.id = &id + return r +} + +// Multiple values may be separated by commas. +func (r ApiInventoryGpusListRequest) Model(model []string) ApiInventoryGpusListRequest { + r.model = &model + return r +} + +// Exclude the specified fields in the response +func (r ApiInventoryGpusListRequest) Omit(omit string) ApiInventoryGpusListRequest { + r.omit = &omit + return r +} + +// Which field to use when ordering the results. +func (r ApiInventoryGpusListRequest) Ordering(ordering string) ApiInventoryGpusListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiInventoryGpusListRequest) Page(page int32) ApiInventoryGpusListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiInventoryGpusListRequest) PageSize(pageSize int32) ApiInventoryGpusListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiInventoryGpusListRequest) Priority(priority int32) ApiInventoryGpusListRequest { + r.priority = &priority + return r +} + +// Search for gpus by form_factor, id, memory, model +func (r ApiInventoryGpusListRequest) Search(search string) ApiInventoryGpusListRequest { + r.search = &search + return r +} + +func (r ApiInventoryGpusListRequest) Execute() (*PaginatedGpuList, *http.Response, error) { + return r.ApiService.InventoryGpusListExecute(r) +} + +/* +InventoryGpusList Method for InventoryGpusList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryGpusListRequest +*/ +func (a *InventoryGpusAPIService) InventoryGpusList(ctx context.Context) ApiInventoryGpusListRequest { + return ApiInventoryGpusListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedGpuList +func (a *InventoryGpusAPIService) InventoryGpusListExecute(r ApiInventoryGpusListRequest) (*PaginatedGpuList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedGpuList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryGpusAPIService.InventoryGpusList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/gpus/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.formFactor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", r.formFactor, "form", "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.model != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "form", "csv") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.priority != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "priority", r.priority, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryGpusPartialUpdateRequest struct { + ctx context.Context + ApiService *InventoryGpusAPIService + id string + gpu *Gpu +} + +func (r ApiInventoryGpusPartialUpdateRequest) Gpu(gpu Gpu) ApiInventoryGpusPartialUpdateRequest { + r.gpu = &gpu + return r +} + +func (r ApiInventoryGpusPartialUpdateRequest) Execute() (*Gpu, *http.Response, error) { + return r.ApiService.InventoryGpusPartialUpdateExecute(r) +} + +/* +InventoryGpusPartialUpdate Method for InventoryGpusPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this gpu. + @return ApiInventoryGpusPartialUpdateRequest +*/ +func (a *InventoryGpusAPIService) InventoryGpusPartialUpdate(ctx context.Context, id string) ApiInventoryGpusPartialUpdateRequest { + return ApiInventoryGpusPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Gpu +func (a *InventoryGpusAPIService) InventoryGpusPartialUpdateExecute(r ApiInventoryGpusPartialUpdateRequest) (*Gpu, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Gpu + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryGpusAPIService.InventoryGpusPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/gpus/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.gpu == nil { + return localVarReturnValue, nil, reportError("gpu is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.gpu + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryGpusRetrieveRequest struct { + ctx context.Context + ApiService *InventoryGpusAPIService + id string + fields *string + omit *string +} + +// Include only the specified fields in the response +func (r ApiInventoryGpusRetrieveRequest) Fields(fields string) ApiInventoryGpusRetrieveRequest { + r.fields = &fields + return r +} + +// Exclude the specified fields in the response +func (r ApiInventoryGpusRetrieveRequest) Omit(omit string) ApiInventoryGpusRetrieveRequest { + r.omit = &omit + return r +} + +func (r ApiInventoryGpusRetrieveRequest) Execute() (*Gpu, *http.Response, error) { + return r.ApiService.InventoryGpusRetrieveExecute(r) +} + +/* +InventoryGpusRetrieve Method for InventoryGpusRetrieve + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this gpu. + @return ApiInventoryGpusRetrieveRequest +*/ +func (a *InventoryGpusAPIService) InventoryGpusRetrieve(ctx context.Context, id string) ApiInventoryGpusRetrieveRequest { + return ApiInventoryGpusRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Gpu +func (a *InventoryGpusAPIService) InventoryGpusRetrieveExecute(r ApiInventoryGpusRetrieveRequest) (*Gpu, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Gpu + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryGpusAPIService.InventoryGpusRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/gpus/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryGpusStatsRetrieveRequest struct { + ctx context.Context + ApiService *InventoryGpusAPIService +} + +func (r ApiInventoryGpusStatsRetrieveRequest) Execute() (*http.Response, error) { + return r.ApiService.InventoryGpusStatsRetrieveExecute(r) +} + +/* +InventoryGpusStatsRetrieve 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryGpusStatsRetrieveRequest +*/ +func (a *InventoryGpusAPIService) InventoryGpusStatsRetrieve(ctx context.Context) ApiInventoryGpusStatsRetrieveRequest { + return ApiInventoryGpusStatsRetrieveRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *InventoryGpusAPIService) InventoryGpusStatsRetrieveExecute(r ApiInventoryGpusStatsRetrieveRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryGpusAPIService.InventoryGpusStatsRetrieve") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/gpus/stats/" + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiInventoryGpusUpdateRequest struct { + ctx context.Context + ApiService *InventoryGpusAPIService + id string + gpu *Gpu +} + +func (r ApiInventoryGpusUpdateRequest) Gpu(gpu Gpu) ApiInventoryGpusUpdateRequest { + r.gpu = &gpu + return r +} + +func (r ApiInventoryGpusUpdateRequest) Execute() (*Gpu, *http.Response, error) { + return r.ApiService.InventoryGpusUpdateExecute(r) +} + +/* +InventoryGpusUpdate Method for InventoryGpusUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this gpu. + @return ApiInventoryGpusUpdateRequest +*/ +func (a *InventoryGpusAPIService) InventoryGpusUpdate(ctx context.Context, id string) ApiInventoryGpusUpdateRequest { + return ApiInventoryGpusUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Gpu +func (a *InventoryGpusAPIService) InventoryGpusUpdateExecute(r ApiInventoryGpusUpdateRequest) (*Gpu, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Gpu + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryGpusAPIService.InventoryGpusUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/gpus/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.gpu == nil { + return localVarReturnValue, nil, reportError("gpu is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.gpu + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v1/providers/launchpad/gen/launchpad/api_inventory_instances.go b/v1/providers/launchpad/gen/launchpad/api_inventory_instances.go new file mode 100644 index 0000000..b96c001 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api_inventory_instances.go @@ -0,0 +1,1137 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// InventoryInstancesAPIService InventoryInstancesAPI service +type InventoryInstancesAPIService service + +type ApiInventoryInstancesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *InventoryInstancesAPIService + instanceBulkUpdate *InstanceBulkUpdate +} + +func (r ApiInventoryInstancesBulkPartialUpdateRequest) InstanceBulkUpdate(instanceBulkUpdate InstanceBulkUpdate) ApiInventoryInstancesBulkPartialUpdateRequest { + r.instanceBulkUpdate = &instanceBulkUpdate + return r +} + +func (r ApiInventoryInstancesBulkPartialUpdateRequest) Execute() (*InstanceBulkUpdate, *http.Response, error) { + return r.ApiService.InventoryInstancesBulkPartialUpdateExecute(r) +} + +/* +InventoryInstancesBulkPartialUpdate 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryInstancesBulkPartialUpdateRequest +*/ +func (a *InventoryInstancesAPIService) InventoryInstancesBulkPartialUpdate(ctx context.Context) ApiInventoryInstancesBulkPartialUpdateRequest { + return ApiInventoryInstancesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return InstanceBulkUpdate +func (a *InventoryInstancesAPIService) InventoryInstancesBulkPartialUpdateExecute(r ApiInventoryInstancesBulkPartialUpdateRequest) (*InstanceBulkUpdate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InstanceBulkUpdate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryInstancesAPIService.InventoryInstancesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/instances/bulk/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.instanceBulkUpdate == nil { + return localVarReturnValue, nil, reportError("instanceBulkUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.instanceBulkUpdate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryInstancesCreateRequest struct { + ctx context.Context + ApiService *InventoryInstancesAPIService + instance *Instance +} + +func (r ApiInventoryInstancesCreateRequest) Instance(instance Instance) ApiInventoryInstancesCreateRequest { + r.instance = &instance + return r +} + +func (r ApiInventoryInstancesCreateRequest) Execute() (*Instance, *http.Response, error) { + return r.ApiService.InventoryInstancesCreateExecute(r) +} + +/* +InventoryInstancesCreate 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryInstancesCreateRequest +*/ +func (a *InventoryInstancesAPIService) InventoryInstancesCreate(ctx context.Context) ApiInventoryInstancesCreateRequest { + return ApiInventoryInstancesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Instance +func (a *InventoryInstancesAPIService) InventoryInstancesCreateExecute(r ApiInventoryInstancesCreateRequest) (*Instance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Instance + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryInstancesAPIService.InventoryInstancesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/instances/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.instance == nil { + return localVarReturnValue, nil, reportError("instance is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.instance + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryInstancesDestroyRequest struct { + ctx context.Context + ApiService *InventoryInstancesAPIService + id string +} + +func (r ApiInventoryInstancesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.InventoryInstancesDestroyExecute(r) +} + +/* +InventoryInstancesDestroy 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this instance. + @return ApiInventoryInstancesDestroyRequest +*/ +func (a *InventoryInstancesAPIService) InventoryInstancesDestroy(ctx context.Context, id string) ApiInventoryInstancesDestroyRequest { + return ApiInventoryInstancesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *InventoryInstancesAPIService) InventoryInstancesDestroyExecute(r ApiInventoryInstancesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryInstancesAPIService.InventoryInstancesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/instances/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiInventoryInstancesHistoryListRequest struct { + ctx context.Context + ApiService *InventoryInstancesAPIService + id string + page *int32 + pageSize *int32 +} + +// A page number within the paginated result set. +func (r ApiInventoryInstancesHistoryListRequest) Page(page int32) ApiInventoryInstancesHistoryListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiInventoryInstancesHistoryListRequest) PageSize(pageSize int32) ApiInventoryInstancesHistoryListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiInventoryInstancesHistoryListRequest) Execute() (*PaginatedModelChangeList, *http.Response, error) { + return r.ApiService.InventoryInstancesHistoryListExecute(r) +} + +/* +InventoryInstancesHistoryList 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiInventoryInstancesHistoryListRequest +*/ +func (a *InventoryInstancesAPIService) InventoryInstancesHistoryList(ctx context.Context, id string) ApiInventoryInstancesHistoryListRequest { + return ApiInventoryInstancesHistoryListRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return PaginatedModelChangeList +func (a *InventoryInstancesAPIService) InventoryInstancesHistoryListExecute(r ApiInventoryInstancesHistoryListRequest) (*PaginatedModelChangeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModelChangeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryInstancesAPIService.InventoryInstancesHistoryList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/instances/{id}/history/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryInstancesListRequest struct { + ctx context.Context + ApiService *InventoryInstancesAPIService + cluster *string + expand *string + fields *string + id *string + instanceId *string + name *string + omit *string + ordering *string + page *int32 + pageSize *int32 + search *string + state *string +} + +func (r ApiInventoryInstancesListRequest) Cluster(cluster string) ApiInventoryInstancesListRequest { + r.cluster = &cluster + return r +} + +// Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). +func (r ApiInventoryInstancesListRequest) Expand(expand string) ApiInventoryInstancesListRequest { + r.expand = &expand + return r +} + +// Include only the specified fields in the response +func (r ApiInventoryInstancesListRequest) Fields(fields string) ApiInventoryInstancesListRequest { + r.fields = &fields + return r +} + +func (r ApiInventoryInstancesListRequest) Id(id string) ApiInventoryInstancesListRequest { + r.id = &id + return r +} + +func (r ApiInventoryInstancesListRequest) InstanceId(instanceId string) ApiInventoryInstancesListRequest { + r.instanceId = &instanceId + return r +} + +func (r ApiInventoryInstancesListRequest) Name(name string) ApiInventoryInstancesListRequest { + r.name = &name + return r +} + +// Exclude the specified fields in the response +func (r ApiInventoryInstancesListRequest) Omit(omit string) ApiInventoryInstancesListRequest { + r.omit = &omit + return r +} + +// Which field to use when ordering the results. +func (r ApiInventoryInstancesListRequest) Ordering(ordering string) ApiInventoryInstancesListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiInventoryInstancesListRequest) Page(page int32) ApiInventoryInstancesListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiInventoryInstancesListRequest) PageSize(pageSize int32) ApiInventoryInstancesListRequest { + r.pageSize = &pageSize + return r +} + +// Search for instances by cluster, id, instance_id, name, state, tags +func (r ApiInventoryInstancesListRequest) Search(search string) ApiInventoryInstancesListRequest { + r.search = &search + return r +} + +// Current lifecycle state of this instance * `running` - Instance is running * `starting` - Instance is starting * `stopped` - Instance is stopped * `stopping` - Instance is stopping * `unknown` - Instance state is currently unknown +func (r ApiInventoryInstancesListRequest) State(state string) ApiInventoryInstancesListRequest { + r.state = &state + return r +} + +func (r ApiInventoryInstancesListRequest) Execute() (*PaginatedInstanceList, *http.Response, error) { + return r.ApiService.InventoryInstancesListExecute(r) +} + +/* +InventoryInstancesList 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryInstancesListRequest +*/ +func (a *InventoryInstancesAPIService) InventoryInstancesList(ctx context.Context) ApiInventoryInstancesListRequest { + return ApiInventoryInstancesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedInstanceList +func (a *InventoryInstancesAPIService) InventoryInstancesListExecute(r ApiInventoryInstancesListRequest) (*PaginatedInstanceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedInstanceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryInstancesAPIService.InventoryInstancesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/instances/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cluster != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", r.cluster, "form", "") + } + if r.expand != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expand", r.expand, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.instanceId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "instance_id", r.instanceId, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + if r.state != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "state", r.state, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryInstancesPartialUpdateRequest struct { + ctx context.Context + ApiService *InventoryInstancesAPIService + id string + instance *Instance +} + +func (r ApiInventoryInstancesPartialUpdateRequest) Instance(instance Instance) ApiInventoryInstancesPartialUpdateRequest { + r.instance = &instance + return r +} + +func (r ApiInventoryInstancesPartialUpdateRequest) Execute() (*Instance, *http.Response, error) { + return r.ApiService.InventoryInstancesPartialUpdateExecute(r) +} + +/* +InventoryInstancesPartialUpdate 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this instance. + @return ApiInventoryInstancesPartialUpdateRequest +*/ +func (a *InventoryInstancesAPIService) InventoryInstancesPartialUpdate(ctx context.Context, id string) ApiInventoryInstancesPartialUpdateRequest { + return ApiInventoryInstancesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Instance +func (a *InventoryInstancesAPIService) InventoryInstancesPartialUpdateExecute(r ApiInventoryInstancesPartialUpdateRequest) (*Instance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Instance + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryInstancesAPIService.InventoryInstancesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/instances/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.instance == nil { + return localVarReturnValue, nil, reportError("instance is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.instance + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryInstancesRetrieveRequest struct { + ctx context.Context + ApiService *InventoryInstancesAPIService + id string + expand *string + fields *string + omit *string +} + +// Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). +func (r ApiInventoryInstancesRetrieveRequest) Expand(expand string) ApiInventoryInstancesRetrieveRequest { + r.expand = &expand + return r +} + +// Include only the specified fields in the response +func (r ApiInventoryInstancesRetrieveRequest) Fields(fields string) ApiInventoryInstancesRetrieveRequest { + r.fields = &fields + return r +} + +// Exclude the specified fields in the response +func (r ApiInventoryInstancesRetrieveRequest) Omit(omit string) ApiInventoryInstancesRetrieveRequest { + r.omit = &omit + return r +} + +func (r ApiInventoryInstancesRetrieveRequest) Execute() (*Instance, *http.Response, error) { + return r.ApiService.InventoryInstancesRetrieveExecute(r) +} + +/* +InventoryInstancesRetrieve 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this instance. + @return ApiInventoryInstancesRetrieveRequest +*/ +func (a *InventoryInstancesAPIService) InventoryInstancesRetrieve(ctx context.Context, id string) ApiInventoryInstancesRetrieveRequest { + return ApiInventoryInstancesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Instance +func (a *InventoryInstancesAPIService) InventoryInstancesRetrieveExecute(r ApiInventoryInstancesRetrieveRequest) (*Instance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Instance + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryInstancesAPIService.InventoryInstancesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/instances/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.expand != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expand", r.expand, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryInstancesUpdateRequest struct { + ctx context.Context + ApiService *InventoryInstancesAPIService + id string + instance *Instance +} + +func (r ApiInventoryInstancesUpdateRequest) Instance(instance Instance) ApiInventoryInstancesUpdateRequest { + r.instance = &instance + return r +} + +func (r ApiInventoryInstancesUpdateRequest) Execute() (*Instance, *http.Response, error) { + return r.ApiService.InventoryInstancesUpdateExecute(r) +} + +/* +InventoryInstancesUpdate 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this instance. + @return ApiInventoryInstancesUpdateRequest +*/ +func (a *InventoryInstancesAPIService) InventoryInstancesUpdate(ctx context.Context, id string) ApiInventoryInstancesUpdateRequest { + return ApiInventoryInstancesUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Instance +func (a *InventoryInstancesAPIService) InventoryInstancesUpdateExecute(r ApiInventoryInstancesUpdateRequest) (*Instance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Instance + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryInstancesAPIService.InventoryInstancesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/instances/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.instance == nil { + return localVarReturnValue, nil, reportError("instance is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.instance + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v1/providers/launchpad/gen/launchpad/api_inventory_locations.go b/v1/providers/launchpad/gen/launchpad/api_inventory_locations.go new file mode 100644 index 0000000..84991c2 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api_inventory_locations.go @@ -0,0 +1,1004 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// InventoryLocationsAPIService InventoryLocationsAPI service +type InventoryLocationsAPIService service + +type ApiInventoryLocationsCreateRequest struct { + ctx context.Context + ApiService *InventoryLocationsAPIService + location *Location +} + +func (r ApiInventoryLocationsCreateRequest) Location(location Location) ApiInventoryLocationsCreateRequest { + r.location = &location + return r +} + +func (r ApiInventoryLocationsCreateRequest) Execute() (*Location, *http.Response, error) { + return r.ApiService.InventoryLocationsCreateExecute(r) +} + +/* +InventoryLocationsCreate Method for InventoryLocationsCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryLocationsCreateRequest +*/ +func (a *InventoryLocationsAPIService) InventoryLocationsCreate(ctx context.Context) ApiInventoryLocationsCreateRequest { + return ApiInventoryLocationsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Location +func (a *InventoryLocationsAPIService) InventoryLocationsCreateExecute(r ApiInventoryLocationsCreateRequest) (*Location, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Location + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryLocationsAPIService.InventoryLocationsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/locations/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.location == nil { + return localVarReturnValue, nil, reportError("location is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.location + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryLocationsDestroyRequest struct { + ctx context.Context + ApiService *InventoryLocationsAPIService + id string +} + +func (r ApiInventoryLocationsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.InventoryLocationsDestroyExecute(r) +} + +/* +InventoryLocationsDestroy Method for InventoryLocationsDestroy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this location. + @return ApiInventoryLocationsDestroyRequest +*/ +func (a *InventoryLocationsAPIService) InventoryLocationsDestroy(ctx context.Context, id string) ApiInventoryLocationsDestroyRequest { + return ApiInventoryLocationsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *InventoryLocationsAPIService) InventoryLocationsDestroyExecute(r ApiInventoryLocationsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryLocationsAPIService.InventoryLocationsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/locations/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiInventoryLocationsHistoryListRequest struct { + ctx context.Context + ApiService *InventoryLocationsAPIService + id string + page *int32 + pageSize *int32 +} + +// A page number within the paginated result set. +func (r ApiInventoryLocationsHistoryListRequest) Page(page int32) ApiInventoryLocationsHistoryListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiInventoryLocationsHistoryListRequest) PageSize(pageSize int32) ApiInventoryLocationsHistoryListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiInventoryLocationsHistoryListRequest) Execute() (*PaginatedModelChangeList, *http.Response, error) { + return r.ApiService.InventoryLocationsHistoryListExecute(r) +} + +/* +InventoryLocationsHistoryList Method for InventoryLocationsHistoryList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiInventoryLocationsHistoryListRequest +*/ +func (a *InventoryLocationsAPIService) InventoryLocationsHistoryList(ctx context.Context, id string) ApiInventoryLocationsHistoryListRequest { + return ApiInventoryLocationsHistoryListRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return PaginatedModelChangeList +func (a *InventoryLocationsAPIService) InventoryLocationsHistoryListExecute(r ApiInventoryLocationsHistoryListRequest) (*PaginatedModelChangeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModelChangeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryLocationsAPIService.InventoryLocationsHistoryList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/locations/{id}/history/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryLocationsListRequest struct { + ctx context.Context + ApiService *InventoryLocationsAPIService + expand *string + fields *string + id *string + name *string + omit *string + ordering *string + page *int32 + pageSize *int32 + provider *string + region *string + search *string +} + +// Expand related field(s) instead of only showing a UUID (ex: \"provider\"). +func (r ApiInventoryLocationsListRequest) Expand(expand string) ApiInventoryLocationsListRequest { + r.expand = &expand + return r +} + +// Include only the specified fields in the response +func (r ApiInventoryLocationsListRequest) Fields(fields string) ApiInventoryLocationsListRequest { + r.fields = &fields + return r +} + +func (r ApiInventoryLocationsListRequest) Id(id string) ApiInventoryLocationsListRequest { + r.id = &id + return r +} + +func (r ApiInventoryLocationsListRequest) Name(name string) ApiInventoryLocationsListRequest { + r.name = &name + return r +} + +// Exclude the specified fields in the response +func (r ApiInventoryLocationsListRequest) Omit(omit string) ApiInventoryLocationsListRequest { + r.omit = &omit + return r +} + +// Which field to use when ordering the results. +func (r ApiInventoryLocationsListRequest) Ordering(ordering string) ApiInventoryLocationsListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiInventoryLocationsListRequest) Page(page int32) ApiInventoryLocationsListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiInventoryLocationsListRequest) PageSize(pageSize int32) ApiInventoryLocationsListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiInventoryLocationsListRequest) Provider(provider string) ApiInventoryLocationsListRequest { + r.provider = &provider + return r +} + +func (r ApiInventoryLocationsListRequest) Region(region string) ApiInventoryLocationsListRequest { + r.region = ®ion + return r +} + +// Search for locations by id, name, provider name, region +func (r ApiInventoryLocationsListRequest) Search(search string) ApiInventoryLocationsListRequest { + r.search = &search + return r +} + +func (r ApiInventoryLocationsListRequest) Execute() (*PaginatedLocationList, *http.Response, error) { + return r.ApiService.InventoryLocationsListExecute(r) +} + +/* +InventoryLocationsList Method for InventoryLocationsList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryLocationsListRequest +*/ +func (a *InventoryLocationsAPIService) InventoryLocationsList(ctx context.Context) ApiInventoryLocationsListRequest { + return ApiInventoryLocationsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedLocationList +func (a *InventoryLocationsAPIService) InventoryLocationsListExecute(r ApiInventoryLocationsListRequest) (*PaginatedLocationList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedLocationList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryLocationsAPIService.InventoryLocationsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/locations/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.expand != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expand", r.expand, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.provider != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", r.provider, "form", "") + } + if r.region != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", r.region, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryLocationsPartialUpdateRequest struct { + ctx context.Context + ApiService *InventoryLocationsAPIService + id string + location *Location +} + +func (r ApiInventoryLocationsPartialUpdateRequest) Location(location Location) ApiInventoryLocationsPartialUpdateRequest { + r.location = &location + return r +} + +func (r ApiInventoryLocationsPartialUpdateRequest) Execute() (*Location, *http.Response, error) { + return r.ApiService.InventoryLocationsPartialUpdateExecute(r) +} + +/* +InventoryLocationsPartialUpdate Method for InventoryLocationsPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this location. + @return ApiInventoryLocationsPartialUpdateRequest +*/ +func (a *InventoryLocationsAPIService) InventoryLocationsPartialUpdate(ctx context.Context, id string) ApiInventoryLocationsPartialUpdateRequest { + return ApiInventoryLocationsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Location +func (a *InventoryLocationsAPIService) InventoryLocationsPartialUpdateExecute(r ApiInventoryLocationsPartialUpdateRequest) (*Location, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Location + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryLocationsAPIService.InventoryLocationsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/locations/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.location == nil { + return localVarReturnValue, nil, reportError("location is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.location + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryLocationsRetrieveRequest struct { + ctx context.Context + ApiService *InventoryLocationsAPIService + id string + expand *string + fields *string + omit *string +} + +// Expand related field(s) instead of only showing a UUID (ex: \"provider\"). +func (r ApiInventoryLocationsRetrieveRequest) Expand(expand string) ApiInventoryLocationsRetrieveRequest { + r.expand = &expand + return r +} + +// Include only the specified fields in the response +func (r ApiInventoryLocationsRetrieveRequest) Fields(fields string) ApiInventoryLocationsRetrieveRequest { + r.fields = &fields + return r +} + +// Exclude the specified fields in the response +func (r ApiInventoryLocationsRetrieveRequest) Omit(omit string) ApiInventoryLocationsRetrieveRequest { + r.omit = &omit + return r +} + +func (r ApiInventoryLocationsRetrieveRequest) Execute() (*Location, *http.Response, error) { + return r.ApiService.InventoryLocationsRetrieveExecute(r) +} + +/* +InventoryLocationsRetrieve Method for InventoryLocationsRetrieve + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this location. + @return ApiInventoryLocationsRetrieveRequest +*/ +func (a *InventoryLocationsAPIService) InventoryLocationsRetrieve(ctx context.Context, id string) ApiInventoryLocationsRetrieveRequest { + return ApiInventoryLocationsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Location +func (a *InventoryLocationsAPIService) InventoryLocationsRetrieveExecute(r ApiInventoryLocationsRetrieveRequest) (*Location, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Location + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryLocationsAPIService.InventoryLocationsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/locations/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.expand != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expand", r.expand, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryLocationsUpdateRequest struct { + ctx context.Context + ApiService *InventoryLocationsAPIService + id string + location *Location +} + +func (r ApiInventoryLocationsUpdateRequest) Location(location Location) ApiInventoryLocationsUpdateRequest { + r.location = &location + return r +} + +func (r ApiInventoryLocationsUpdateRequest) Execute() (*Location, *http.Response, error) { + return r.ApiService.InventoryLocationsUpdateExecute(r) +} + +/* +InventoryLocationsUpdate Method for InventoryLocationsUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this location. + @return ApiInventoryLocationsUpdateRequest +*/ +func (a *InventoryLocationsAPIService) InventoryLocationsUpdate(ctx context.Context, id string) ApiInventoryLocationsUpdateRequest { + return ApiInventoryLocationsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Location +func (a *InventoryLocationsAPIService) InventoryLocationsUpdateExecute(r ApiInventoryLocationsUpdateRequest) (*Location, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Location + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryLocationsAPIService.InventoryLocationsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/locations/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.location == nil { + return localVarReturnValue, nil, reportError("location is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.location + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v1/providers/launchpad/gen/launchpad/api_inventory_nodes.go b/v1/providers/launchpad/gen/launchpad/api_inventory_nodes.go new file mode 100644 index 0000000..44516d1 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api_inventory_nodes.go @@ -0,0 +1,1507 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "os" + "strings" +) + +// InventoryNodesAPIService InventoryNodesAPI service +type InventoryNodesAPIService service + +type ApiInventoryNodesBulkCreateRequest struct { + ctx context.Context + ApiService *InventoryNodesAPIService + csvFile *os.File +} + +func (r ApiInventoryNodesBulkCreateRequest) CsvFile(csvFile *os.File) ApiInventoryNodesBulkCreateRequest { + r.csvFile = csvFile + return r +} + +func (r ApiInventoryNodesBulkCreateRequest) Execute() (*NodeBulk, *http.Response, error) { + return r.ApiService.InventoryNodesBulkCreateExecute(r) +} + +/* +InventoryNodesBulkCreate Method for InventoryNodesBulkCreate + +Create nodes in bulk via CSV file upload + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryNodesBulkCreateRequest +*/ +func (a *InventoryNodesAPIService) InventoryNodesBulkCreate(ctx context.Context) ApiInventoryNodesBulkCreateRequest { + return ApiInventoryNodesBulkCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return NodeBulk +func (a *InventoryNodesAPIService) InventoryNodesBulkCreateExecute(r ApiInventoryNodesBulkCreateRequest) (*NodeBulk, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NodeBulk + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryNodesAPIService.InventoryNodesBulkCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/nodes/bulk/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.csvFile == nil { + return localVarReturnValue, nil, reportError("csvFile is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + var csvFileLocalVarFormFileName string + var csvFileLocalVarFileName string + var csvFileLocalVarFileBytes []byte + + csvFileLocalVarFormFileName = "csv_file" + csvFileLocalVarFile := r.csvFile + + if csvFileLocalVarFile != nil { + fbs, _ := io.ReadAll(csvFileLocalVarFile) + + csvFileLocalVarFileBytes = fbs + csvFileLocalVarFileName = csvFileLocalVarFile.Name() + csvFileLocalVarFile.Close() + formFiles = append(formFiles, formFile{fileBytes: csvFileLocalVarFileBytes, fileName: csvFileLocalVarFileName, formFileName: csvFileLocalVarFormFileName}) + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryNodesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *InventoryNodesAPIService + nodeBulkUpdate *NodeBulkUpdate +} + +func (r ApiInventoryNodesBulkPartialUpdateRequest) NodeBulkUpdate(nodeBulkUpdate NodeBulkUpdate) ApiInventoryNodesBulkPartialUpdateRequest { + r.nodeBulkUpdate = &nodeBulkUpdate + return r +} + +func (r ApiInventoryNodesBulkPartialUpdateRequest) Execute() (*NodeBulkUpdate, *http.Response, error) { + return r.ApiService.InventoryNodesBulkPartialUpdateExecute(r) +} + +/* +InventoryNodesBulkPartialUpdate Method for InventoryNodesBulkPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryNodesBulkPartialUpdateRequest +*/ +func (a *InventoryNodesAPIService) InventoryNodesBulkPartialUpdate(ctx context.Context) ApiInventoryNodesBulkPartialUpdateRequest { + return ApiInventoryNodesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return NodeBulkUpdate +func (a *InventoryNodesAPIService) InventoryNodesBulkPartialUpdateExecute(r ApiInventoryNodesBulkPartialUpdateRequest) (*NodeBulkUpdate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NodeBulkUpdate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryNodesAPIService.InventoryNodesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/nodes/bulk/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.nodeBulkUpdate == nil { + return localVarReturnValue, nil, reportError("nodeBulkUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.nodeBulkUpdate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryNodesCreateRequest struct { + ctx context.Context + ApiService *InventoryNodesAPIService + node *Node +} + +func (r ApiInventoryNodesCreateRequest) Node(node Node) ApiInventoryNodesCreateRequest { + r.node = &node + return r +} + +func (r ApiInventoryNodesCreateRequest) Execute() (*Node, *http.Response, error) { + return r.ApiService.InventoryNodesCreateExecute(r) +} + +/* +InventoryNodesCreate Method for InventoryNodesCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryNodesCreateRequest +*/ +func (a *InventoryNodesAPIService) InventoryNodesCreate(ctx context.Context) ApiInventoryNodesCreateRequest { + return ApiInventoryNodesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Node +func (a *InventoryNodesAPIService) InventoryNodesCreateExecute(r ApiInventoryNodesCreateRequest) (*Node, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Node + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryNodesAPIService.InventoryNodesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/nodes/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.node == nil { + return localVarReturnValue, nil, reportError("node is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.node + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryNodesDestroyRequest struct { + ctx context.Context + ApiService *InventoryNodesAPIService + id string +} + +func (r ApiInventoryNodesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.InventoryNodesDestroyExecute(r) +} + +/* +InventoryNodesDestroy Method for InventoryNodesDestroy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this node. + @return ApiInventoryNodesDestroyRequest +*/ +func (a *InventoryNodesAPIService) InventoryNodesDestroy(ctx context.Context, id string) ApiInventoryNodesDestroyRequest { + return ApiInventoryNodesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *InventoryNodesAPIService) InventoryNodesDestroyExecute(r ApiInventoryNodesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryNodesAPIService.InventoryNodesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/nodes/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiInventoryNodesHistoryListRequest struct { + ctx context.Context + ApiService *InventoryNodesAPIService + id string + page *int32 + pageSize *int32 +} + +// A page number within the paginated result set. +func (r ApiInventoryNodesHistoryListRequest) Page(page int32) ApiInventoryNodesHistoryListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiInventoryNodesHistoryListRequest) PageSize(pageSize int32) ApiInventoryNodesHistoryListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiInventoryNodesHistoryListRequest) Execute() (*PaginatedModelChangeList, *http.Response, error) { + return r.ApiService.InventoryNodesHistoryListExecute(r) +} + +/* +InventoryNodesHistoryList Method for InventoryNodesHistoryList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiInventoryNodesHistoryListRequest +*/ +func (a *InventoryNodesAPIService) InventoryNodesHistoryList(ctx context.Context, id string) ApiInventoryNodesHistoryListRequest { + return ApiInventoryNodesHistoryListRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return PaginatedModelChangeList +func (a *InventoryNodesAPIService) InventoryNodesHistoryListExecute(r ApiInventoryNodesHistoryListRequest) (*PaginatedModelChangeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModelChangeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryNodesAPIService.InventoryNodesHistoryList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/nodes/{id}/history/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryNodesListRequest struct { + ctx context.Context + ApiService *InventoryNodesAPIService + bmcIp *string + bmcMac *string + bmcPassword *string + bmcUser *string + cluster *string + cpu *int32 + cpuManufacturer *string + cpuModel *string + expand *string + fields *string + garageId *string + gpu *[]string + gpuAlias *string + gpuCount *int32 + gpuModel *string + gpuVbios *string + id *string + location *string + memory *int32 + mgmtIp *string + mgmtMac *string + minGpuCount *int32 + model *string + networkType *string + oem *string + omit *string + ordering *string + page *int32 + pageSize *int32 + provider *string + providerNodeId *string + rack *string + rackUnit *int32 + search *string + serialNumber *string + systemArch *string + tee *bool +} + +func (r ApiInventoryNodesListRequest) BmcIp(bmcIp string) ApiInventoryNodesListRequest { + r.bmcIp = &bmcIp + return r +} + +func (r ApiInventoryNodesListRequest) BmcMac(bmcMac string) ApiInventoryNodesListRequest { + r.bmcMac = &bmcMac + return r +} + +func (r ApiInventoryNodesListRequest) BmcPassword(bmcPassword string) ApiInventoryNodesListRequest { + r.bmcPassword = &bmcPassword + return r +} + +func (r ApiInventoryNodesListRequest) BmcUser(bmcUser string) ApiInventoryNodesListRequest { + r.bmcUser = &bmcUser + return r +} + +func (r ApiInventoryNodesListRequest) Cluster(cluster string) ApiInventoryNodesListRequest { + r.cluster = &cluster + return r +} + +func (r ApiInventoryNodesListRequest) Cpu(cpu int32) ApiInventoryNodesListRequest { + r.cpu = &cpu + return r +} + +// Manufacturer of the node's CPU * `amd` - AMD * `arm` - ARM * `intel` - Intel +func (r ApiInventoryNodesListRequest) CpuManufacturer(cpuManufacturer string) ApiInventoryNodesListRequest { + r.cpuManufacturer = &cpuManufacturer + return r +} + +func (r ApiInventoryNodesListRequest) CpuModel(cpuModel string) ApiInventoryNodesListRequest { + r.cpuModel = &cpuModel + return r +} + +// Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: \"location.provider\"). Separate multiple fields with a comma (ex: \"location,oem\") +func (r ApiInventoryNodesListRequest) Expand(expand string) ApiInventoryNodesListRequest { + r.expand = &expand + return r +} + +// Include only the specified fields in the response +func (r ApiInventoryNodesListRequest) Fields(fields string) ApiInventoryNodesListRequest { + r.fields = &fields + return r +} + +func (r ApiInventoryNodesListRequest) GarageId(garageId string) ApiInventoryNodesListRequest { + r.garageId = &garageId + return r +} + +// Multiple values may be separated by commas. +func (r ApiInventoryNodesListRequest) Gpu(gpu []string) ApiInventoryNodesListRequest { + r.gpu = &gpu + return r +} + +// Alias for GPU plan (i.e. installed GPU type and count) +func (r ApiInventoryNodesListRequest) GpuAlias(gpuAlias string) ApiInventoryNodesListRequest { + r.gpuAlias = &gpuAlias + return r +} + +func (r ApiInventoryNodesListRequest) GpuCount(gpuCount int32) ApiInventoryNodesListRequest { + r.gpuCount = &gpuCount + return r +} + +// Model of GPU(s) installed +func (r ApiInventoryNodesListRequest) GpuModel(gpuModel string) ApiInventoryNodesListRequest { + r.gpuModel = &gpuModel + return r +} + +func (r ApiInventoryNodesListRequest) GpuVbios(gpuVbios string) ApiInventoryNodesListRequest { + r.gpuVbios = &gpuVbios + return r +} + +func (r ApiInventoryNodesListRequest) Id(id string) ApiInventoryNodesListRequest { + r.id = &id + return r +} + +func (r ApiInventoryNodesListRequest) Location(location string) ApiInventoryNodesListRequest { + r.location = &location + return r +} + +func (r ApiInventoryNodesListRequest) Memory(memory int32) ApiInventoryNodesListRequest { + r.memory = &memory + return r +} + +func (r ApiInventoryNodesListRequest) MgmtIp(mgmtIp string) ApiInventoryNodesListRequest { + r.mgmtIp = &mgmtIp + return r +} + +func (r ApiInventoryNodesListRequest) MgmtMac(mgmtMac string) ApiInventoryNodesListRequest { + r.mgmtMac = &mgmtMac + return r +} + +// Only include nodes that have a gpu_count greater than or equal to this value +func (r ApiInventoryNodesListRequest) MinGpuCount(minGpuCount int32) ApiInventoryNodesListRequest { + r.minGpuCount = &minGpuCount + return r +} + +func (r ApiInventoryNodesListRequest) Model(model string) ApiInventoryNodesListRequest { + r.model = &model + return r +} + +// Type of networking technology used * `ethernet` - Ethernet * `infiniband` - InfiniBand +func (r ApiInventoryNodesListRequest) NetworkType(networkType string) ApiInventoryNodesListRequest { + r.networkType = &networkType + return r +} + +func (r ApiInventoryNodesListRequest) Oem(oem string) ApiInventoryNodesListRequest { + r.oem = &oem + return r +} + +// Exclude the specified fields in the response +func (r ApiInventoryNodesListRequest) Omit(omit string) ApiInventoryNodesListRequest { + r.omit = &omit + return r +} + +// Which field to use when ordering the results. +func (r ApiInventoryNodesListRequest) Ordering(ordering string) ApiInventoryNodesListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiInventoryNodesListRequest) Page(page int32) ApiInventoryNodesListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiInventoryNodesListRequest) PageSize(pageSize int32) ApiInventoryNodesListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiInventoryNodesListRequest) Provider(provider string) ApiInventoryNodesListRequest { + r.provider = &provider + return r +} + +func (r ApiInventoryNodesListRequest) ProviderNodeId(providerNodeId string) ApiInventoryNodesListRequest { + r.providerNodeId = &providerNodeId + return r +} + +func (r ApiInventoryNodesListRequest) Rack(rack string) ApiInventoryNodesListRequest { + r.rack = &rack + return r +} + +func (r ApiInventoryNodesListRequest) RackUnit(rackUnit int32) ApiInventoryNodesListRequest { + r.rackUnit = &rackUnit + return r +} + +// Search for nodes by bmc_ip, bmc_mac, bmc_password, bmc_user, cpu_manufacturer, cpu_model, garage_id, gpu_alias, gpu model, gpu_vbios, id, location name, location provider name, memory, mgmt_ip, mgmt_mac, model, network_type, nic_prefixes, notes, oem name, provider_node_id, rack, rack_unit, serial_number, storage, system_arch +func (r ApiInventoryNodesListRequest) Search(search string) ApiInventoryNodesListRequest { + r.search = &search + return r +} + +func (r ApiInventoryNodesListRequest) SerialNumber(serialNumber string) ApiInventoryNodesListRequest { + r.serialNumber = &serialNumber + return r +} + +// CPU architecture * `amd64` - amd64 * `arm64` - arm64 +func (r ApiInventoryNodesListRequest) SystemArch(systemArch string) ApiInventoryNodesListRequest { + r.systemArch = &systemArch + return r +} + +func (r ApiInventoryNodesListRequest) Tee(tee bool) ApiInventoryNodesListRequest { + r.tee = &tee + return r +} + +func (r ApiInventoryNodesListRequest) Execute() (*PaginatedNodeList, *http.Response, error) { + return r.ApiService.InventoryNodesListExecute(r) +} + +/* +InventoryNodesList Method for InventoryNodesList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryNodesListRequest +*/ +func (a *InventoryNodesAPIService) InventoryNodesList(ctx context.Context) ApiInventoryNodesListRequest { + return ApiInventoryNodesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedNodeList +func (a *InventoryNodesAPIService) InventoryNodesListExecute(r ApiInventoryNodesListRequest) (*PaginatedNodeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedNodeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryNodesAPIService.InventoryNodesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/nodes/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.bmcIp != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "bmc_ip", r.bmcIp, "form", "") + } + if r.bmcMac != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "bmc_mac", r.bmcMac, "form", "") + } + if r.bmcPassword != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "bmc_password", r.bmcPassword, "form", "") + } + if r.bmcUser != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "bmc_user", r.bmcUser, "form", "") + } + if r.cluster != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", r.cluster, "form", "") + } + if r.cpu != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cpu", r.cpu, "form", "") + } + if r.cpuManufacturer != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cpu_manufacturer", r.cpuManufacturer, "form", "") + } + if r.cpuModel != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cpu_model", r.cpuModel, "form", "") + } + if r.expand != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expand", r.expand, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.garageId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "garage_id", r.garageId, "form", "") + } + if r.gpu != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu", r.gpu, "form", "csv") + } + if r.gpuAlias != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_alias", r.gpuAlias, "form", "") + } + if r.gpuCount != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_count", r.gpuCount, "form", "") + } + if r.gpuModel != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_model", r.gpuModel, "form", "") + } + if r.gpuVbios != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "gpu_vbios", r.gpuVbios, "form", "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.location != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", r.location, "form", "") + } + if r.memory != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "memory", r.memory, "form", "") + } + if r.mgmtIp != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mgmt_ip", r.mgmtIp, "form", "") + } + if r.mgmtMac != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mgmt_mac", r.mgmtMac, "form", "") + } + if r.minGpuCount != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_gpu_count", r.minGpuCount, "form", "") + } + if r.model != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "form", "") + } + if r.networkType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "network_type", r.networkType, "form", "") + } + if r.oem != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "oem", r.oem, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.provider != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", r.provider, "form", "") + } + if r.providerNodeId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_node_id", r.providerNodeId, "form", "") + } + if r.rack != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", r.rack, "form", "") + } + if r.rackUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_unit", r.rackUnit, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + if r.serialNumber != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial_number", r.serialNumber, "form", "") + } + if r.systemArch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "system_arch", r.systemArch, "form", "") + } + if r.tee != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "tee", r.tee, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryNodesPartialUpdateRequest struct { + ctx context.Context + ApiService *InventoryNodesAPIService + id string + node *Node +} + +func (r ApiInventoryNodesPartialUpdateRequest) Node(node Node) ApiInventoryNodesPartialUpdateRequest { + r.node = &node + return r +} + +func (r ApiInventoryNodesPartialUpdateRequest) Execute() (*Node, *http.Response, error) { + return r.ApiService.InventoryNodesPartialUpdateExecute(r) +} + +/* +InventoryNodesPartialUpdate Method for InventoryNodesPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this node. + @return ApiInventoryNodesPartialUpdateRequest +*/ +func (a *InventoryNodesAPIService) InventoryNodesPartialUpdate(ctx context.Context, id string) ApiInventoryNodesPartialUpdateRequest { + return ApiInventoryNodesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Node +func (a *InventoryNodesAPIService) InventoryNodesPartialUpdateExecute(r ApiInventoryNodesPartialUpdateRequest) (*Node, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Node + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryNodesAPIService.InventoryNodesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/nodes/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.node == nil { + return localVarReturnValue, nil, reportError("node is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.node + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryNodesRetrieveRequest struct { + ctx context.Context + ApiService *InventoryNodesAPIService + id string + expand *string + fields *string + omit *string +} + +// Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: \"location.provider\"). Separate multiple fields with a comma (ex: \"location,oem\") +func (r ApiInventoryNodesRetrieveRequest) Expand(expand string) ApiInventoryNodesRetrieveRequest { + r.expand = &expand + return r +} + +// Include only the specified fields in the response +func (r ApiInventoryNodesRetrieveRequest) Fields(fields string) ApiInventoryNodesRetrieveRequest { + r.fields = &fields + return r +} + +// Exclude the specified fields in the response +func (r ApiInventoryNodesRetrieveRequest) Omit(omit string) ApiInventoryNodesRetrieveRequest { + r.omit = &omit + return r +} + +func (r ApiInventoryNodesRetrieveRequest) Execute() (*Node, *http.Response, error) { + return r.ApiService.InventoryNodesRetrieveExecute(r) +} + +/* +InventoryNodesRetrieve Method for InventoryNodesRetrieve + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this node. + @return ApiInventoryNodesRetrieveRequest +*/ +func (a *InventoryNodesAPIService) InventoryNodesRetrieve(ctx context.Context, id string) ApiInventoryNodesRetrieveRequest { + return ApiInventoryNodesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Node +func (a *InventoryNodesAPIService) InventoryNodesRetrieveExecute(r ApiInventoryNodesRetrieveRequest) (*Node, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Node + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryNodesAPIService.InventoryNodesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/nodes/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.expand != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "expand", r.expand, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryNodesUpdateRequest struct { + ctx context.Context + ApiService *InventoryNodesAPIService + id string + node *Node +} + +func (r ApiInventoryNodesUpdateRequest) Node(node Node) ApiInventoryNodesUpdateRequest { + r.node = &node + return r +} + +func (r ApiInventoryNodesUpdateRequest) Execute() (*Node, *http.Response, error) { + return r.ApiService.InventoryNodesUpdateExecute(r) +} + +/* +InventoryNodesUpdate Method for InventoryNodesUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this node. + @return ApiInventoryNodesUpdateRequest +*/ +func (a *InventoryNodesAPIService) InventoryNodesUpdate(ctx context.Context, id string) ApiInventoryNodesUpdateRequest { + return ApiInventoryNodesUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Node +func (a *InventoryNodesAPIService) InventoryNodesUpdateExecute(r ApiInventoryNodesUpdateRequest) (*Node, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Node + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryNodesAPIService.InventoryNodesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/nodes/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.node == nil { + return localVarReturnValue, nil, reportError("node is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.node + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v1/providers/launchpad/gen/launchpad/api_inventory_oems.go b/v1/providers/launchpad/gen/launchpad/api_inventory_oems.go new file mode 100644 index 0000000..8e8cbe7 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api_inventory_oems.go @@ -0,0 +1,926 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// InventoryOemsAPIService InventoryOemsAPI service +type InventoryOemsAPIService service + +type ApiInventoryOemsCreateRequest struct { + ctx context.Context + ApiService *InventoryOemsAPIService + oEM *OEM +} + +func (r ApiInventoryOemsCreateRequest) OEM(oEM OEM) ApiInventoryOemsCreateRequest { + r.oEM = &oEM + return r +} + +func (r ApiInventoryOemsCreateRequest) Execute() (*OEM, *http.Response, error) { + return r.ApiService.InventoryOemsCreateExecute(r) +} + +/* +InventoryOemsCreate Method for InventoryOemsCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryOemsCreateRequest +*/ +func (a *InventoryOemsAPIService) InventoryOemsCreate(ctx context.Context) ApiInventoryOemsCreateRequest { + return ApiInventoryOemsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return OEM +func (a *InventoryOemsAPIService) InventoryOemsCreateExecute(r ApiInventoryOemsCreateRequest) (*OEM, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OEM + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryOemsAPIService.InventoryOemsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/oems/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.oEM == nil { + return localVarReturnValue, nil, reportError("oEM is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.oEM + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryOemsDestroyRequest struct { + ctx context.Context + ApiService *InventoryOemsAPIService + id string +} + +func (r ApiInventoryOemsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.InventoryOemsDestroyExecute(r) +} + +/* +InventoryOemsDestroy Method for InventoryOemsDestroy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this oem. + @return ApiInventoryOemsDestroyRequest +*/ +func (a *InventoryOemsAPIService) InventoryOemsDestroy(ctx context.Context, id string) ApiInventoryOemsDestroyRequest { + return ApiInventoryOemsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *InventoryOemsAPIService) InventoryOemsDestroyExecute(r ApiInventoryOemsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryOemsAPIService.InventoryOemsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/oems/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiInventoryOemsHistoryListRequest struct { + ctx context.Context + ApiService *InventoryOemsAPIService + id string + page *int32 + pageSize *int32 +} + +// A page number within the paginated result set. +func (r ApiInventoryOemsHistoryListRequest) Page(page int32) ApiInventoryOemsHistoryListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiInventoryOemsHistoryListRequest) PageSize(pageSize int32) ApiInventoryOemsHistoryListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiInventoryOemsHistoryListRequest) Execute() (*PaginatedModelChangeList, *http.Response, error) { + return r.ApiService.InventoryOemsHistoryListExecute(r) +} + +/* +InventoryOemsHistoryList Method for InventoryOemsHistoryList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiInventoryOemsHistoryListRequest +*/ +func (a *InventoryOemsAPIService) InventoryOemsHistoryList(ctx context.Context, id string) ApiInventoryOemsHistoryListRequest { + return ApiInventoryOemsHistoryListRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return PaginatedModelChangeList +func (a *InventoryOemsAPIService) InventoryOemsHistoryListExecute(r ApiInventoryOemsHistoryListRequest) (*PaginatedModelChangeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModelChangeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryOemsAPIService.InventoryOemsHistoryList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/oems/{id}/history/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryOemsListRequest struct { + ctx context.Context + ApiService *InventoryOemsAPIService + id *string + name *string + ordering *string + page *int32 + pageSize *int32 + search *string +} + +func (r ApiInventoryOemsListRequest) Id(id string) ApiInventoryOemsListRequest { + r.id = &id + return r +} + +func (r ApiInventoryOemsListRequest) Name(name string) ApiInventoryOemsListRequest { + r.name = &name + return r +} + +// Which field to use when ordering the results. +func (r ApiInventoryOemsListRequest) Ordering(ordering string) ApiInventoryOemsListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiInventoryOemsListRequest) Page(page int32) ApiInventoryOemsListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiInventoryOemsListRequest) PageSize(pageSize int32) ApiInventoryOemsListRequest { + r.pageSize = &pageSize + return r +} + +// Search for oems by id, name +func (r ApiInventoryOemsListRequest) Search(search string) ApiInventoryOemsListRequest { + r.search = &search + return r +} + +func (r ApiInventoryOemsListRequest) Execute() (*PaginatedOEMList, *http.Response, error) { + return r.ApiService.InventoryOemsListExecute(r) +} + +/* +InventoryOemsList Method for InventoryOemsList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryOemsListRequest +*/ +func (a *InventoryOemsAPIService) InventoryOemsList(ctx context.Context) ApiInventoryOemsListRequest { + return ApiInventoryOemsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedOEMList +func (a *InventoryOemsAPIService) InventoryOemsListExecute(r ApiInventoryOemsListRequest) (*PaginatedOEMList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedOEMList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryOemsAPIService.InventoryOemsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/oems/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryOemsPartialUpdateRequest struct { + ctx context.Context + ApiService *InventoryOemsAPIService + id string + oEM *OEM +} + +func (r ApiInventoryOemsPartialUpdateRequest) OEM(oEM OEM) ApiInventoryOemsPartialUpdateRequest { + r.oEM = &oEM + return r +} + +func (r ApiInventoryOemsPartialUpdateRequest) Execute() (*OEM, *http.Response, error) { + return r.ApiService.InventoryOemsPartialUpdateExecute(r) +} + +/* +InventoryOemsPartialUpdate Method for InventoryOemsPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this oem. + @return ApiInventoryOemsPartialUpdateRequest +*/ +func (a *InventoryOemsAPIService) InventoryOemsPartialUpdate(ctx context.Context, id string) ApiInventoryOemsPartialUpdateRequest { + return ApiInventoryOemsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return OEM +func (a *InventoryOemsAPIService) InventoryOemsPartialUpdateExecute(r ApiInventoryOemsPartialUpdateRequest) (*OEM, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OEM + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryOemsAPIService.InventoryOemsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/oems/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.oEM == nil { + return localVarReturnValue, nil, reportError("oEM is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.oEM + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryOemsRetrieveRequest struct { + ctx context.Context + ApiService *InventoryOemsAPIService + id string +} + +func (r ApiInventoryOemsRetrieveRequest) Execute() (*OEM, *http.Response, error) { + return r.ApiService.InventoryOemsRetrieveExecute(r) +} + +/* +InventoryOemsRetrieve Method for InventoryOemsRetrieve + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this oem. + @return ApiInventoryOemsRetrieveRequest +*/ +func (a *InventoryOemsAPIService) InventoryOemsRetrieve(ctx context.Context, id string) ApiInventoryOemsRetrieveRequest { + return ApiInventoryOemsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return OEM +func (a *InventoryOemsAPIService) InventoryOemsRetrieveExecute(r ApiInventoryOemsRetrieveRequest) (*OEM, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OEM + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryOemsAPIService.InventoryOemsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/oems/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryOemsUpdateRequest struct { + ctx context.Context + ApiService *InventoryOemsAPIService + id string + oEM *OEM +} + +func (r ApiInventoryOemsUpdateRequest) OEM(oEM OEM) ApiInventoryOemsUpdateRequest { + r.oEM = &oEM + return r +} + +func (r ApiInventoryOemsUpdateRequest) Execute() (*OEM, *http.Response, error) { + return r.ApiService.InventoryOemsUpdateExecute(r) +} + +/* +InventoryOemsUpdate Method for InventoryOemsUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this oem. + @return ApiInventoryOemsUpdateRequest +*/ +func (a *InventoryOemsAPIService) InventoryOemsUpdate(ctx context.Context, id string) ApiInventoryOemsUpdateRequest { + return ApiInventoryOemsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return OEM +func (a *InventoryOemsAPIService) InventoryOemsUpdateExecute(r ApiInventoryOemsUpdateRequest) (*OEM, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OEM + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryOemsAPIService.InventoryOemsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/oems/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.oEM == nil { + return localVarReturnValue, nil, reportError("oEM is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.oEM + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v1/providers/launchpad/gen/launchpad/api_inventory_providers.go b/v1/providers/launchpad/gen/launchpad/api_inventory_providers.go new file mode 100644 index 0000000..9f59375 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/api_inventory_providers.go @@ -0,0 +1,1216 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// InventoryProvidersAPIService InventoryProvidersAPI service +type InventoryProvidersAPIService service + +type ApiInventoryProvidersBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *InventoryProvidersAPIService + providerBulkUpdate *ProviderBulkUpdate +} + +func (r ApiInventoryProvidersBulkPartialUpdateRequest) ProviderBulkUpdate(providerBulkUpdate ProviderBulkUpdate) ApiInventoryProvidersBulkPartialUpdateRequest { + r.providerBulkUpdate = &providerBulkUpdate + return r +} + +func (r ApiInventoryProvidersBulkPartialUpdateRequest) Execute() (*ProviderBulkUpdate, *http.Response, error) { + return r.ApiService.InventoryProvidersBulkPartialUpdateExecute(r) +} + +/* +InventoryProvidersBulkPartialUpdate Method for InventoryProvidersBulkPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryProvidersBulkPartialUpdateRequest +*/ +func (a *InventoryProvidersAPIService) InventoryProvidersBulkPartialUpdate(ctx context.Context) ApiInventoryProvidersBulkPartialUpdateRequest { + return ApiInventoryProvidersBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return ProviderBulkUpdate +func (a *InventoryProvidersAPIService) InventoryProvidersBulkPartialUpdateExecute(r ApiInventoryProvidersBulkPartialUpdateRequest) (*ProviderBulkUpdate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderBulkUpdate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryProvidersAPIService.InventoryProvidersBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/providers/bulk/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.providerBulkUpdate == nil { + return localVarReturnValue, nil, reportError("providerBulkUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.providerBulkUpdate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryProvidersCreateRequest struct { + ctx context.Context + ApiService *InventoryProvidersAPIService + provider *Provider +} + +func (r ApiInventoryProvidersCreateRequest) Provider(provider Provider) ApiInventoryProvidersCreateRequest { + r.provider = &provider + return r +} + +func (r ApiInventoryProvidersCreateRequest) Execute() (*Provider, *http.Response, error) { + return r.ApiService.InventoryProvidersCreateExecute(r) +} + +/* +InventoryProvidersCreate Method for InventoryProvidersCreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryProvidersCreateRequest +*/ +func (a *InventoryProvidersAPIService) InventoryProvidersCreate(ctx context.Context) ApiInventoryProvidersCreateRequest { + return ApiInventoryProvidersCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Provider +func (a *InventoryProvidersAPIService) InventoryProvidersCreateExecute(r ApiInventoryProvidersCreateRequest) (*Provider, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Provider + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryProvidersAPIService.InventoryProvidersCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/providers/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.provider == nil { + return localVarReturnValue, nil, reportError("provider is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.provider + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryProvidersDestroyRequest struct { + ctx context.Context + ApiService *InventoryProvidersAPIService + id string +} + +func (r ApiInventoryProvidersDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.InventoryProvidersDestroyExecute(r) +} + +/* +InventoryProvidersDestroy Method for InventoryProvidersDestroy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this provider. + @return ApiInventoryProvidersDestroyRequest +*/ +func (a *InventoryProvidersAPIService) InventoryProvidersDestroy(ctx context.Context, id string) ApiInventoryProvidersDestroyRequest { + return ApiInventoryProvidersDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *InventoryProvidersAPIService) InventoryProvidersDestroyExecute(r ApiInventoryProvidersDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryProvidersAPIService.InventoryProvidersDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/providers/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiInventoryProvidersHistoryListRequest struct { + ctx context.Context + ApiService *InventoryProvidersAPIService + id string + page *int32 + pageSize *int32 +} + +// A page number within the paginated result set. +func (r ApiInventoryProvidersHistoryListRequest) Page(page int32) ApiInventoryProvidersHistoryListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiInventoryProvidersHistoryListRequest) PageSize(pageSize int32) ApiInventoryProvidersHistoryListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiInventoryProvidersHistoryListRequest) Execute() (*PaginatedModelChangeList, *http.Response, error) { + return r.ApiService.InventoryProvidersHistoryListExecute(r) +} + +/* +InventoryProvidersHistoryList Method for InventoryProvidersHistoryList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiInventoryProvidersHistoryListRequest +*/ +func (a *InventoryProvidersAPIService) InventoryProvidersHistoryList(ctx context.Context, id string) ApiInventoryProvidersHistoryListRequest { + return ApiInventoryProvidersHistoryListRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return PaginatedModelChangeList +func (a *InventoryProvidersAPIService) InventoryProvidersHistoryListExecute(r ApiInventoryProvidersHistoryListRequest) (*PaginatedModelChangeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModelChangeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryProvidersAPIService.InventoryProvidersHistoryList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/providers/{id}/history/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryProvidersListRequest struct { + ctx context.Context + ApiService *InventoryProvidersAPIService + displayName *string + fields *string + id *string + instanceLimit *int32 + name *string + omit *string + ordering *string + page *int32 + pageSize *int32 + priority *int32 + search *string +} + +func (r ApiInventoryProvidersListRequest) DisplayName(displayName string) ApiInventoryProvidersListRequest { + r.displayName = &displayName + return r +} + +// Include only the specified fields in the response +func (r ApiInventoryProvidersListRequest) Fields(fields string) ApiInventoryProvidersListRequest { + r.fields = &fields + return r +} + +func (r ApiInventoryProvidersListRequest) Id(id string) ApiInventoryProvidersListRequest { + r.id = &id + return r +} + +func (r ApiInventoryProvidersListRequest) InstanceLimit(instanceLimit int32) ApiInventoryProvidersListRequest { + r.instanceLimit = &instanceLimit + return r +} + +func (r ApiInventoryProvidersListRequest) Name(name string) ApiInventoryProvidersListRequest { + r.name = &name + return r +} + +// Exclude the specified fields in the response +func (r ApiInventoryProvidersListRequest) Omit(omit string) ApiInventoryProvidersListRequest { + r.omit = &omit + return r +} + +// Which field to use when ordering the results. +func (r ApiInventoryProvidersListRequest) Ordering(ordering string) ApiInventoryProvidersListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiInventoryProvidersListRequest) Page(page int32) ApiInventoryProvidersListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiInventoryProvidersListRequest) PageSize(pageSize int32) ApiInventoryProvidersListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiInventoryProvidersListRequest) Priority(priority int32) ApiInventoryProvidersListRequest { + r.priority = &priority + return r +} + +// Search for providers by display_name, id, name +func (r ApiInventoryProvidersListRequest) Search(search string) ApiInventoryProvidersListRequest { + r.search = &search + return r +} + +func (r ApiInventoryProvidersListRequest) Execute() (*PaginatedProviderList, *http.Response, error) { + return r.ApiService.InventoryProvidersListExecute(r) +} + +/* +InventoryProvidersList Method for InventoryProvidersList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryProvidersListRequest +*/ +func (a *InventoryProvidersAPIService) InventoryProvidersList(ctx context.Context) ApiInventoryProvidersListRequest { + return ApiInventoryProvidersListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedProviderList +func (a *InventoryProvidersAPIService) InventoryProvidersListExecute(r ApiInventoryProvidersListRequest) (*PaginatedProviderList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedProviderList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryProvidersAPIService.InventoryProvidersList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/providers/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.displayName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "display_name", r.displayName, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.instanceLimit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "instance_limit", r.instanceLimit, "form", "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.priority != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "priority", r.priority, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryProvidersPartialUpdateRequest struct { + ctx context.Context + ApiService *InventoryProvidersAPIService + id string + provider *Provider +} + +func (r ApiInventoryProvidersPartialUpdateRequest) Provider(provider Provider) ApiInventoryProvidersPartialUpdateRequest { + r.provider = &provider + return r +} + +func (r ApiInventoryProvidersPartialUpdateRequest) Execute() (*Provider, *http.Response, error) { + return r.ApiService.InventoryProvidersPartialUpdateExecute(r) +} + +/* +InventoryProvidersPartialUpdate Method for InventoryProvidersPartialUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this provider. + @return ApiInventoryProvidersPartialUpdateRequest +*/ +func (a *InventoryProvidersAPIService) InventoryProvidersPartialUpdate(ctx context.Context, id string) ApiInventoryProvidersPartialUpdateRequest { + return ApiInventoryProvidersPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Provider +func (a *InventoryProvidersAPIService) InventoryProvidersPartialUpdateExecute(r ApiInventoryProvidersPartialUpdateRequest) (*Provider, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Provider + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryProvidersAPIService.InventoryProvidersPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/providers/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.provider == nil { + return localVarReturnValue, nil, reportError("provider is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.provider + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryProvidersRetrieveRequest struct { + ctx context.Context + ApiService *InventoryProvidersAPIService + id string + fields *string + omit *string +} + +// Include only the specified fields in the response +func (r ApiInventoryProvidersRetrieveRequest) Fields(fields string) ApiInventoryProvidersRetrieveRequest { + r.fields = &fields + return r +} + +// Exclude the specified fields in the response +func (r ApiInventoryProvidersRetrieveRequest) Omit(omit string) ApiInventoryProvidersRetrieveRequest { + r.omit = &omit + return r +} + +func (r ApiInventoryProvidersRetrieveRequest) Execute() (*Provider, *http.Response, error) { + return r.ApiService.InventoryProvidersRetrieveExecute(r) +} + +/* +InventoryProvidersRetrieve Method for InventoryProvidersRetrieve + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this provider. + @return ApiInventoryProvidersRetrieveRequest +*/ +func (a *InventoryProvidersAPIService) InventoryProvidersRetrieve(ctx context.Context, id string) ApiInventoryProvidersRetrieveRequest { + return ApiInventoryProvidersRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Provider +func (a *InventoryProvidersAPIService) InventoryProvidersRetrieveExecute(r ApiInventoryProvidersRetrieveRequest) (*Provider, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Provider + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryProvidersAPIService.InventoryProvidersRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/providers/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.omit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "omit", r.omit, "form", "") + } + // 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{"application/json"} + + // 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInventoryProvidersStatsRetrieveRequest struct { + ctx context.Context + ApiService *InventoryProvidersAPIService +} + +func (r ApiInventoryProvidersStatsRetrieveRequest) Execute() (*http.Response, error) { + return r.ApiService.InventoryProvidersStatsRetrieveExecute(r) +} + +/* +InventoryProvidersStatsRetrieve 🚧 [Beta Feature] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInventoryProvidersStatsRetrieveRequest +*/ +func (a *InventoryProvidersAPIService) InventoryProvidersStatsRetrieve(ctx context.Context) ApiInventoryProvidersStatsRetrieveRequest { + return ApiInventoryProvidersStatsRetrieveRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *InventoryProvidersAPIService) InventoryProvidersStatsRetrieveExecute(r ApiInventoryProvidersStatsRetrieveRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryProvidersAPIService.InventoryProvidersStatsRetrieve") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/providers/stats/" + + 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["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = 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 ApiInventoryProvidersUpdateRequest struct { + ctx context.Context + ApiService *InventoryProvidersAPIService + id string + provider *Provider +} + +func (r ApiInventoryProvidersUpdateRequest) Provider(provider Provider) ApiInventoryProvidersUpdateRequest { + r.provider = &provider + return r +} + +func (r ApiInventoryProvidersUpdateRequest) Execute() (*Provider, *http.Response, error) { + return r.ApiService.InventoryProvidersUpdateExecute(r) +} + +/* +InventoryProvidersUpdate Method for InventoryProvidersUpdate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A UUID string identifying this provider. + @return ApiInventoryProvidersUpdateRequest +*/ +func (a *InventoryProvidersAPIService) InventoryProvidersUpdate(ctx context.Context, id string) ApiInventoryProvidersUpdateRequest { + return ApiInventoryProvidersUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Provider +func (a *InventoryProvidersAPIService) InventoryProvidersUpdateExecute(r ApiInventoryProvidersUpdateRequest) (*Provider, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Provider + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryProvidersAPIService.InventoryProvidersUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/inventory/providers/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.provider == nil { + return localVarReturnValue, nil, reportError("provider is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.provider + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["TokenAuthentication"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v1/providers/launchpad/gen/launchpad/client.go b/v1/providers/launchpad/gen/launchpad/client.go new file mode 100644 index 0000000..7d64f63 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/client.go @@ -0,0 +1,690 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// 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)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") +) + +// APIClient manages communication with the NVIDIA LaunchPad API API v2.36.1 +// 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 + + AuthAPI *AuthAPIService + + CatalogDeploymentsAPI *CatalogDeploymentsAPIService + + CatalogExperiencesAPI *CatalogExperiencesAPIService + + CatalogGpuOsChoicesAPI *CatalogGpuOsChoicesAPIService + + CatalogInstanceTypesAPI *CatalogInstanceTypesAPIService + + CatalogPersonaChoicesAPI *CatalogPersonaChoicesAPIService + + IdentityProfileAPI *IdentityProfileAPIService + + InventoryClustersAPI *InventoryClustersAPIService + + InventoryGpusAPI *InventoryGpusAPIService + + InventoryInstancesAPI *InventoryInstancesAPIService + + InventoryLocationsAPI *InventoryLocationsAPIService + + InventoryNodesAPI *InventoryNodesAPIService + + InventoryOemsAPI *InventoryOemsAPIService + + InventoryProvidersAPI *InventoryProvidersAPIService +} + +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.AuthAPI = (*AuthAPIService)(&c.common) + c.CatalogDeploymentsAPI = (*CatalogDeploymentsAPIService)(&c.common) + c.CatalogExperiencesAPI = (*CatalogExperiencesAPIService)(&c.common) + c.CatalogGpuOsChoicesAPI = (*CatalogGpuOsChoicesAPIService)(&c.common) + c.CatalogInstanceTypesAPI = (*CatalogInstanceTypesAPIService)(&c.common) + c.CatalogPersonaChoicesAPI = (*CatalogPersonaChoicesAPIService)(&c.common) + c.IdentityProfileAPI = (*IdentityProfileAPIService)(&c.common) + c.InventoryClustersAPI = (*InventoryClustersAPIService)(&c.common) + c.InventoryGpusAPI = (*InventoryGpusAPIService)(&c.common) + c.InventoryInstancesAPI = (*InventoryInstancesAPIService)(&c.common) + c.InventoryLocationsAPI = (*InventoryLocationsAPIService)(&c.common) + c.InventoryNodesAPI = (*InventoryNodesAPIService)(&c.common) + c.InventoryOemsAPI = (*InventoryOemsAPIService)(&c.common) + c.InventoryProvidersAPI = (*InventoryProvidersAPIService)(&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{}, style string, 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, style, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, 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) + var keyPrefixForCollectionType = keyPrefix + if style == "deepObject" { + keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]" + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, 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(), style, collectionType) + } + return + + case reflect.Interface: + fallthrough + case reflect.Ptr: + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, 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) + 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) + 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 +} + +// 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)) +} diff --git a/v1/providers/launchpad/gen/launchpad/configuration.go b/v1/providers/launchpad/gen/launchpad/configuration.go new file mode 100644 index 0000000..2f0d78f --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/configuration.go @@ -0,0 +1,217 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// 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: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{}, + } + 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) +} diff --git a/v1/providers/launchpad/gen/launchpad/docs/AuthAPI.md b/v1/providers/launchpad/gen/launchpad/docs/AuthAPI.md new file mode 100644 index 0000000..c462803 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/AuthAPI.md @@ -0,0 +1,281 @@ +# \AuthAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AuthLoginCreate**](AuthAPI.md#AuthLoginCreate) | **Post** /v1/auth/login/ | +[**AuthLogoutCreate**](AuthAPI.md#AuthLogoutCreate) | **Post** /v1/auth/logout/ | +[**AuthPasswordChangeCreate**](AuthAPI.md#AuthPasswordChangeCreate) | **Post** /v1/auth/password-change/ | +[**AuthRedirectRetrieve**](AuthAPI.md#AuthRedirectRetrieve) | **Get** /v1/auth/redirect/ | + + + +## AuthLoginCreate + +> AuthToken AuthLoginCreate(ctx).AuthCode(authCode).Password(password).Username(username).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + authCode := "authCode_example" // string | (optional) + password := "password_example" // string | (optional) + username := "username_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthAPI.AuthLoginCreate(context.Background()).AuthCode(authCode).Password(password).Username(username).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.AuthLoginCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuthLoginCreate`: AuthToken + fmt.Fprintf(os.Stdout, "Response from `AuthAPI.AuthLoginCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuthLoginCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authCode** | **string** | | + **password** | **string** | | + **username** | **string** | | + +### Return type + +[**AuthToken**](AuthToken.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded, multipart/form-data, application/json +- **Accept**: application/json + +[[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) + + +## AuthLogoutCreate + +> Logout AuthLogoutCreate(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthAPI.AuthLogoutCreate(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.AuthLogoutCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuthLogoutCreate`: Logout + fmt.Fprintf(os.Stdout, "Response from `AuthAPI.AuthLogoutCreate`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuthLogoutCreateRequest struct via the builder pattern + + +### Return type + +[**Logout**](Logout.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## AuthPasswordChangeCreate + +> PasswordChange AuthPasswordChangeCreate(ctx).Username(username).Password(password).NewPassword(newPassword).Result(result).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + username := "username_example" // string | + password := "password_example" // string | + newPassword := "newPassword_example" // string | + result := "result_example" // string | (default to "Password changed successfully.") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthAPI.AuthPasswordChangeCreate(context.Background()).Username(username).Password(password).NewPassword(newPassword).Result(result).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.AuthPasswordChangeCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuthPasswordChangeCreate`: PasswordChange + fmt.Fprintf(os.Stdout, "Response from `AuthAPI.AuthPasswordChangeCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuthPasswordChangeCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **string** | | + **password** | **string** | | + **newPassword** | **string** | | + **result** | **string** | | [default to "Password changed successfully."] + +### Return type + +[**PasswordChange**](PasswordChange.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded, multipart/form-data, application/json +- **Accept**: application/json + +[[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) + + +## AuthRedirectRetrieve + +> AuthRedirect AuthRedirectRetrieve(ctx).AsJson(asJson).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + asJson := true // bool | If \"false\" or unset, receive an HTTP 302 with the OAuth URL returned in the Location header. If \"true\", receive an HTTP 200 with the OAuth URL returned in the JSON payload. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthAPI.AuthRedirectRetrieve(context.Background()).AsJson(asJson).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.AuthRedirectRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuthRedirectRetrieve`: AuthRedirect + fmt.Fprintf(os.Stdout, "Response from `AuthAPI.AuthRedirectRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuthRedirectRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **asJson** | **bool** | If \"false\" or unset, receive an HTTP 302 with the OAuth URL returned in the Location header. If \"true\", receive an HTTP 200 with the OAuth URL returned in the JSON payload. | + +### Return type + +[**AuthRedirect**](AuthRedirect.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + diff --git a/v1/providers/launchpad/gen/launchpad/docs/AuthLogin.md b/v1/providers/launchpad/gen/launchpad/docs/AuthLogin.md new file mode 100644 index 0000000..48dc337 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/AuthLogin.md @@ -0,0 +1,108 @@ +# AuthLogin + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthCode** | Pointer to **string** | | [optional] +**Password** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewAuthLogin + +`func NewAuthLogin() *AuthLogin` + +NewAuthLogin instantiates a new AuthLogin 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 + +### NewAuthLoginWithDefaults + +`func NewAuthLoginWithDefaults() *AuthLogin` + +NewAuthLoginWithDefaults instantiates a new AuthLogin 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 + +### GetAuthCode + +`func (o *AuthLogin) GetAuthCode() string` + +GetAuthCode returns the AuthCode field if non-nil, zero value otherwise. + +### GetAuthCodeOk + +`func (o *AuthLogin) GetAuthCodeOk() (*string, bool)` + +GetAuthCodeOk returns a tuple with the AuthCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthCode + +`func (o *AuthLogin) SetAuthCode(v string)` + +SetAuthCode sets AuthCode field to given value. + +### HasAuthCode + +`func (o *AuthLogin) HasAuthCode() bool` + +HasAuthCode returns a boolean if a field has been set. + +### GetPassword + +`func (o *AuthLogin) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *AuthLogin) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *AuthLogin) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *AuthLogin) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetUsername + +`func (o *AuthLogin) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *AuthLogin) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *AuthLogin) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *AuthLogin) HasUsername() bool` + +HasUsername 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) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/AuthRedirect.md b/v1/providers/launchpad/gen/launchpad/docs/AuthRedirect.md new file mode 100644 index 0000000..38f0c04 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/AuthRedirect.md @@ -0,0 +1,51 @@ +# AuthRedirect + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Redirect** | **string** | | + +## Methods + +### NewAuthRedirect + +`func NewAuthRedirect(redirect string, ) *AuthRedirect` + +NewAuthRedirect instantiates a new AuthRedirect 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 + +### NewAuthRedirectWithDefaults + +`func NewAuthRedirectWithDefaults() *AuthRedirect` + +NewAuthRedirectWithDefaults instantiates a new AuthRedirect 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 + +### GetRedirect + +`func (o *AuthRedirect) GetRedirect() string` + +GetRedirect returns the Redirect field if non-nil, zero value otherwise. + +### GetRedirectOk + +`func (o *AuthRedirect) GetRedirectOk() (*string, bool)` + +GetRedirectOk returns a tuple with the Redirect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedirect + +`func (o *AuthRedirect) SetRedirect(v string)` + +SetRedirect sets Redirect field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/AuthToken.md b/v1/providers/launchpad/gen/launchpad/docs/AuthToken.md new file mode 100644 index 0000000..d64576c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/AuthToken.md @@ -0,0 +1,72 @@ +# AuthToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Token** | **string** | | [readonly] +**Username** | **string** | | [readonly] + +## Methods + +### NewAuthToken + +`func NewAuthToken(token string, username string, ) *AuthToken` + +NewAuthToken instantiates a new AuthToken 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 + +### NewAuthTokenWithDefaults + +`func NewAuthTokenWithDefaults() *AuthToken` + +NewAuthTokenWithDefaults instantiates a new AuthToken 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 + +### GetToken + +`func (o *AuthToken) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *AuthToken) GetTokenOk() (*string, bool)` + +GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToken + +`func (o *AuthToken) SetToken(v string)` + +SetToken sets Token field to given value. + + +### GetUsername + +`func (o *AuthToken) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *AuthToken) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *AuthToken) SetUsername(v string)` + +SetUsername sets Username field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/BlankEnum.md b/v1/providers/launchpad/gen/launchpad/docs/BlankEnum.md new file mode 100644 index 0000000..8b09a8d --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/BlankEnum.md @@ -0,0 +1,11 @@ +# BlankEnum + +## Enum + + +* `Blank` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/CatalogDeploymentsAPI.md b/v1/providers/launchpad/gen/launchpad/docs/CatalogDeploymentsAPI.md new file mode 100644 index 0000000..7b59a9f --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/CatalogDeploymentsAPI.md @@ -0,0 +1,2480 @@ +# \CatalogDeploymentsAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CatalogDeploymentsBulkPartialUpdate**](CatalogDeploymentsAPI.md#CatalogDeploymentsBulkPartialUpdate) | **Patch** /v1/catalog/deployments/bulk/ | +[**CatalogDeploymentsCreate**](CatalogDeploymentsAPI.md#CatalogDeploymentsCreate) | **Post** /v1/catalog/deployments/ | +[**CatalogDeploymentsDestroy**](CatalogDeploymentsAPI.md#CatalogDeploymentsDestroy) | **Delete** /v1/catalog/deployments/{id}/ | +[**CatalogDeploymentsHistoryList**](CatalogDeploymentsAPI.md#CatalogDeploymentsHistoryList) | **Get** /v1/catalog/deployments/{id}/history/ | +[**CatalogDeploymentsInstancesList**](CatalogDeploymentsAPI.md#CatalogDeploymentsInstancesList) | **Get** /v1/catalog/deployments/{deployment_id}/instances/ | 🚧 [Beta Feature] +[**CatalogDeploymentsList**](CatalogDeploymentsAPI.md#CatalogDeploymentsList) | **Get** /v1/catalog/deployments/ | +[**CatalogDeploymentsNotesCreate**](CatalogDeploymentsAPI.md#CatalogDeploymentsNotesCreate) | **Post** /v1/catalog/deployments/{deployment_id}/notes/ | +[**CatalogDeploymentsNotesDestroy**](CatalogDeploymentsAPI.md#CatalogDeploymentsNotesDestroy) | **Delete** /v1/catalog/deployments/{deployment_id}/notes/{id}/ | +[**CatalogDeploymentsNotesList**](CatalogDeploymentsAPI.md#CatalogDeploymentsNotesList) | **Get** /v1/catalog/deployments/{deployment_id}/notes/ | +[**CatalogDeploymentsNotesPartialUpdate**](CatalogDeploymentsAPI.md#CatalogDeploymentsNotesPartialUpdate) | **Patch** /v1/catalog/deployments/{deployment_id}/notes/{id}/ | +[**CatalogDeploymentsNotesRetrieve**](CatalogDeploymentsAPI.md#CatalogDeploymentsNotesRetrieve) | **Get** /v1/catalog/deployments/{deployment_id}/notes/{id}/ | +[**CatalogDeploymentsNotesUpdate**](CatalogDeploymentsAPI.md#CatalogDeploymentsNotesUpdate) | **Put** /v1/catalog/deployments/{deployment_id}/notes/{id}/ | +[**CatalogDeploymentsPartialUpdate**](CatalogDeploymentsAPI.md#CatalogDeploymentsPartialUpdate) | **Patch** /v1/catalog/deployments/{id}/ | +[**CatalogDeploymentsPipelinesCreate**](CatalogDeploymentsAPI.md#CatalogDeploymentsPipelinesCreate) | **Post** /v1/catalog/deployments/{deployment_id}/pipelines/ | +[**CatalogDeploymentsPipelinesList**](CatalogDeploymentsAPI.md#CatalogDeploymentsPipelinesList) | **Get** /v1/catalog/deployments/{deployment_id}/pipelines/ | +[**CatalogDeploymentsRetrieve**](CatalogDeploymentsAPI.md#CatalogDeploymentsRetrieve) | **Get** /v1/catalog/deployments/{id}/ | +[**CatalogDeploymentsServicesCreate**](CatalogDeploymentsAPI.md#CatalogDeploymentsServicesCreate) | **Post** /v1/catalog/deployments/{deployment_id}/services/ | +[**CatalogDeploymentsServicesList**](CatalogDeploymentsAPI.md#CatalogDeploymentsServicesList) | **Get** /v1/catalog/deployments/{deployment_id}/services/ | +[**CatalogDeploymentsSshKeysCreate**](CatalogDeploymentsAPI.md#CatalogDeploymentsSshKeysCreate) | **Post** /v1/catalog/deployments/{deployment_id}/ssh-keys/ | +[**CatalogDeploymentsSshKeysDestroy**](CatalogDeploymentsAPI.md#CatalogDeploymentsSshKeysDestroy) | **Delete** /v1/catalog/deployments/{deployment_id}/ssh-keys/{id}/ | +[**CatalogDeploymentsSshKeysList**](CatalogDeploymentsAPI.md#CatalogDeploymentsSshKeysList) | **Get** /v1/catalog/deployments/{deployment_id}/ssh-keys/ | +[**CatalogDeploymentsStatsRetrieve**](CatalogDeploymentsAPI.md#CatalogDeploymentsStatsRetrieve) | **Get** /v1/catalog/deployments/stats/ | 🚧 [Beta Feature] +[**CatalogDeploymentsTasksCreate**](CatalogDeploymentsAPI.md#CatalogDeploymentsTasksCreate) | **Post** /v1/catalog/deployments/{deployment_id}/tasks/ | 🚧 [Beta Feature] +[**CatalogDeploymentsTasksList**](CatalogDeploymentsAPI.md#CatalogDeploymentsTasksList) | **Get** /v1/catalog/deployments/{deployment_id}/tasks/ | 🚧 [Beta Feature] +[**CatalogDeploymentsTasksRetrieve**](CatalogDeploymentsAPI.md#CatalogDeploymentsTasksRetrieve) | **Get** /v1/catalog/deployments/{deployment_id}/tasks/{id}/ | 🚧 [Beta Feature] +[**CatalogDeploymentsUpdate**](CatalogDeploymentsAPI.md#CatalogDeploymentsUpdate) | **Put** /v1/catalog/deployments/{id}/ | +[**CatalogExperiencesNotesCreate**](CatalogDeploymentsAPI.md#CatalogExperiencesNotesCreate) | **Post** /v1/catalog/experiences/{experience_id}/notes/ | +[**CatalogExperiencesNotesDestroy**](CatalogDeploymentsAPI.md#CatalogExperiencesNotesDestroy) | **Delete** /v1/catalog/experiences/{experience_id}/notes/{id}/ | +[**CatalogExperiencesNotesList**](CatalogDeploymentsAPI.md#CatalogExperiencesNotesList) | **Get** /v1/catalog/experiences/{experience_id}/notes/ | +[**CatalogExperiencesNotesPartialUpdate**](CatalogDeploymentsAPI.md#CatalogExperiencesNotesPartialUpdate) | **Patch** /v1/catalog/experiences/{experience_id}/notes/{id}/ | +[**CatalogExperiencesNotesRetrieve**](CatalogDeploymentsAPI.md#CatalogExperiencesNotesRetrieve) | **Get** /v1/catalog/experiences/{experience_id}/notes/{id}/ | +[**CatalogExperiencesNotesUpdate**](CatalogDeploymentsAPI.md#CatalogExperiencesNotesUpdate) | **Put** /v1/catalog/experiences/{experience_id}/notes/{id}/ | + + + +## CatalogDeploymentsBulkPartialUpdate + +> DeploymentBulkUpdate CatalogDeploymentsBulkPartialUpdate(ctx).DeploymentBulkUpdate(deploymentBulkUpdate).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentBulkUpdate := *openapiclient.NewDeploymentBulkUpdate("BastionOperatingSystem_example", "Cluster_example", time.Now(), openapiclient.Deployment_experience{Experience: openapiclient.NewExperience("CatalogId_example", openapiclient.CategoryEnum("AI"), time.Now(), "Experience_example", *openapiclient.NewGpuOs("Name_example", "Release_example", "Version_example"), "Id_example", time.Now(), "Persona_example", int64(123), openapiclient.PlatformEnum("air"), openapiclient.SystemArchEnum("amd64"), "Title_example")}, "GarageId_example", "GpuAlias_example", NullableInt32(123), "GpuModel_example", "GpuOsName_example", "GpuOsRelease_example", "GpuOsVersion_example", "Id_example", NullableInt32(123), NullableInt32(123), time.Now(), NullableInt32(123), "OemName_example", interface{}(123), []string{"Pipelines_example"}, openapiclient.PriorityEnum("p0"), "ProviderName_example", "PublicKey_example", "Region_example", "RequestId_example", time.Now(), "SalesId_example", []string{"Services_example"}, false, "WorkshopId_example", "WorkshopOverridePassword_example", int32(123), []string{"Ids_example"}, "Result_example") // DeploymentBulkUpdate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsBulkPartialUpdate(context.Background()).DeploymentBulkUpdate(deploymentBulkUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsBulkPartialUpdate`: DeploymentBulkUpdate + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deploymentBulkUpdate** | [**DeploymentBulkUpdate**](DeploymentBulkUpdate.md) | | + +### Return type + +[**DeploymentBulkUpdate**](DeploymentBulkUpdate.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsCreate + +> Deployment CatalogDeploymentsCreate(ctx).Deployment(deployment).Expand(expand).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deployment := *openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed")) // Deployment | + expand := "expand_example" // string | Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsCreate(context.Background()).Deployment(deployment).Expand(expand).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsCreate`: Deployment + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployment** | [**Deployment**](Deployment.md) | | + **expand** | **string** | Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). | + +### Return type + +[**Deployment**](Deployment.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsDestroy + +> DocDeploymentDelete CatalogDeploymentsDestroy(ctx, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this deployment. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsDestroy`: DocDeploymentDelete + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsDestroy`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this deployment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**DocDeploymentDelete**](DocDeploymentDelete.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsHistoryList + +> PaginatedModelChangeList CatalogDeploymentsHistoryList(ctx, id).Page(page).PageSize(pageSize).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsHistoryList(context.Background(), id).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsHistoryList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsHistoryList`: PaginatedModelChangeList + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsHistoryList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsHistoryListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + +### Return type + +[**PaginatedModelChangeList**](PaginatedModelChangeList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsInstancesList + +> PaginatedDeploymentInstanceList CatalogDeploymentsInstancesList(ctx, deploymentId).Fields(fields).Id(id).InstanceId(instanceId).Name(name).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).State(state).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + fields := "fields_example" // string | Include only the specified fields in the response (optional) + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + instanceId := "instanceId_example" // string | (optional) + name := "name_example" // string | (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + search := "search_example" // string | Search for deployment-instances by id, instance_id, name, state, tags (optional) + state := "state_example" // string | Current lifecycle state of this instance * `running` - Instance is running * `starting` - Instance is starting * `stopped` - Instance is stopped * `stopping` - Instance is stopping * `unknown` - Instance state is currently unknown (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsInstancesList(context.Background(), deploymentId).Fields(fields).Id(id).InstanceId(instanceId).Name(name).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).State(state).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsInstancesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsInstancesList`: PaginatedDeploymentInstanceList + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsInstancesList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsInstancesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **string** | Include only the specified fields in the response | + **id** | **string** | | + **instanceId** | **string** | | + **name** | **string** | | + **omit** | **string** | Exclude the specified fields in the response | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **search** | **string** | Search for deployment-instances by id, instance_id, name, state, tags | + **state** | **string** | Current lifecycle state of this instance * `running` - Instance is running * `starting` - Instance is starting * `stopped` - Instance is stopped * `stopping` - Instance is stopping * `unknown` - Instance state is currently unknown | + +### Return type + +[**PaginatedDeploymentInstanceList**](PaginatedDeploymentInstanceList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsList + +> PaginatedDeploymentList CatalogDeploymentsList(ctx).BastionOperatingSystem(bastionOperatingSystem).Cluster(cluster).ClusterGpusModel(clusterGpusModel).CollectionBranch(collectionBranch).Expand(expand).Experience(experience).ExperienceBranch(experienceBranch).Expired(expired).ExpiresAt(expiresAt).Expiring(expiring).Fields(fields).FlightcontrolRelease(flightcontrolRelease).GarageId(garageId).GcBranch(gcBranch).GpuAlias(gpuAlias).GpuCount(gpuCount).GpuModel(gpuModel).GpuOsName(gpuOsName).GpuOsRelease(gpuOsRelease).GpuOsVersion(gpuOsVersion).Id(id).NodeCount(nodeCount).OemName(oemName).Omit(omit).Ordering(ordering).OrgName(orgName).Page(page).PageSize(pageSize).PersistOnFailure(persistOnFailure).Persona(persona).Pipeline(pipeline).PipelineBranch(pipelineBranch).Platform(platform).Priority(priority).ProviderName(providerName).Region(region).RequestId(requestId).RequesterEmail(requesterEmail).RequesterName(requesterName).SalesId(salesId).SalesOwnerEmail(salesOwnerEmail).SalesOwnerName(salesOwnerName).Search(search).State(state).Workshop(workshop).WorkshopId(workshopId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + bastionOperatingSystem := "bastionOperatingSystem_example" // string | (optional) + cluster := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + clusterGpusModel := []string{"Inner_example"} // []string | Multiple values may be separated by commas. (optional) + collectionBranch := "collectionBranch_example" // string | (optional) + expand := "expand_example" // string | Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). (optional) + experience := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + experienceBranch := "experienceBranch_example" // string | (optional) + expired := true // bool | (optional) + expiresAt := time.Now() // string | (optional) + expiring := "expiring_example" // string | Include deployments whose expires_at value is within the given range (inclusive), specified as \"today\", \"tomorrow\", or \"{start}[,end]\". Start and end times must be in ISO format. (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + flightcontrolRelease := "flightcontrolRelease_example" // string | (optional) + garageId := "garageId_example" // string | (optional) + gcBranch := "gcBranch_example" // string | (optional) + gpuAlias := "gpuAlias_example" // string | (optional) + gpuCount := int32(56) // int32 | (optional) + gpuModel := "gpuModel_example" // string | (optional) + gpuOsName := "gpuOsName_example" // string | (optional) + gpuOsRelease := "gpuOsRelease_example" // string | (optional) + gpuOsVersion := "gpuOsVersion_example" // string | (optional) + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + nodeCount := int32(56) // int32 | (optional) + oemName := "oemName_example" // string | (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + orgName := "orgName_example" // string | (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + persistOnFailure := true // bool | (optional) + persona := "persona_example" // string | (optional) + pipeline := int32(56) // int32 | (optional) + pipelineBranch := "pipelineBranch_example" // string | (optional) + platform := "platform_example" // string | Override the default platform selection * `air` - NVIDIA Air * `flight_deck` - Flight Deck * `kvm_bastion` - KVM Bastion * `lp-vmware-platform` - lp-vmware-platform * `minimal` - minimal * `openshift` - OpenShift * `vsphere` - vSphere * `vsphere_horizon` - VMware Horizon * `vsphere7` - vSphere 7 * `vsphere8` - vSphere 8 (optional) + priority := "priority_example" // string | Priority level for the request * `p0` - p0 * `p1` - p1 * `p2` - p2 * `p3` - p3 (optional) + providerName := "providerName_example" // string | (optional) + region := "region_example" // string | (optional) + requestId := "requestId_example" // string | (optional) + requesterEmail := "requesterEmail_example" // string | (optional) + requesterName := "requesterName_example" // string | (optional) + salesId := "salesId_example" // string | (optional) + salesOwnerEmail := "salesOwnerEmail_example" // string | (optional) + salesOwnerName := "salesOwnerName_example" // string | (optional) + search := "search_example" // string | Search for deployments by bastion_operating_system, collection_branch, experience_branch, experience catalog_id, experience catalog_id_alias, experience id, experience title, expires_at, flightcontrol_release, garage_id, gc_branch, gpu_alias, gpu_model, gpu_os_name, gpu_os_release, gpu_os_version, id, oem_name, org_name, persona, pipeline_branch, platform, provider_name, region, request_id, requester_email, requester_name, sales_id, sales_owner_email, sales_owner_name, services url, state, tags, workshop_id (optional) + state := []string{"State_example"} // []string | Multiple values may be separated by commas. * `destroyed` - Deployment has been fully destroyed * `destroying` - Deployment is being destroyed * `error` - Deployment has encountered a fatal error and will not be retried * `failed` - Deployment has failed but may be retried * `paused` - Deployment is paused but may be retried later * `ready` - Deployment is ready and all instances are running * `retrying` - Deployment is retrying * `starting` - Deployment instances are starting * `stopped` - Deployment instances are stopped * `stopping` - Deployment instances are stopping * `waiting` - Waiting for deployment to be ready (optional) + workshop := true // bool | (optional) + workshopId := "workshopId_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsList(context.Background()).BastionOperatingSystem(bastionOperatingSystem).Cluster(cluster).ClusterGpusModel(clusterGpusModel).CollectionBranch(collectionBranch).Expand(expand).Experience(experience).ExperienceBranch(experienceBranch).Expired(expired).ExpiresAt(expiresAt).Expiring(expiring).Fields(fields).FlightcontrolRelease(flightcontrolRelease).GarageId(garageId).GcBranch(gcBranch).GpuAlias(gpuAlias).GpuCount(gpuCount).GpuModel(gpuModel).GpuOsName(gpuOsName).GpuOsRelease(gpuOsRelease).GpuOsVersion(gpuOsVersion).Id(id).NodeCount(nodeCount).OemName(oemName).Omit(omit).Ordering(ordering).OrgName(orgName).Page(page).PageSize(pageSize).PersistOnFailure(persistOnFailure).Persona(persona).Pipeline(pipeline).PipelineBranch(pipelineBranch).Platform(platform).Priority(priority).ProviderName(providerName).Region(region).RequestId(requestId).RequesterEmail(requesterEmail).RequesterName(requesterName).SalesId(salesId).SalesOwnerEmail(salesOwnerEmail).SalesOwnerName(salesOwnerName).Search(search).State(state).Workshop(workshop).WorkshopId(workshopId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsList`: PaginatedDeploymentList + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bastionOperatingSystem** | **string** | | + **cluster** | **string** | | + **clusterGpusModel** | **[]string** | Multiple values may be separated by commas. | + **collectionBranch** | **string** | | + **expand** | **string** | Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). | + **experience** | **string** | | + **experienceBranch** | **string** | | + **expired** | **bool** | | + **expiresAt** | **string** | | + **expiring** | **string** | Include deployments whose expires_at value is within the given range (inclusive), specified as \"today\", \"tomorrow\", or \"{start}[,end]\". Start and end times must be in ISO format. | + **fields** | **string** | Include only the specified fields in the response | + **flightcontrolRelease** | **string** | | + **garageId** | **string** | | + **gcBranch** | **string** | | + **gpuAlias** | **string** | | + **gpuCount** | **int32** | | + **gpuModel** | **string** | | + **gpuOsName** | **string** | | + **gpuOsRelease** | **string** | | + **gpuOsVersion** | **string** | | + **id** | **string** | | + **nodeCount** | **int32** | | + **oemName** | **string** | | + **omit** | **string** | Exclude the specified fields in the response | + **ordering** | **string** | Which field to use when ordering the results. | + **orgName** | **string** | | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **persistOnFailure** | **bool** | | + **persona** | **string** | | + **pipeline** | **int32** | | + **pipelineBranch** | **string** | | + **platform** | **string** | Override the default platform selection * `air` - NVIDIA Air * `flight_deck` - Flight Deck * `kvm_bastion` - KVM Bastion * `lp-vmware-platform` - lp-vmware-platform * `minimal` - minimal * `openshift` - OpenShift * `vsphere` - vSphere * `vsphere_horizon` - VMware Horizon * `vsphere7` - vSphere 7 * `vsphere8` - vSphere 8 | + **priority** | **string** | Priority level for the request * `p0` - p0 * `p1` - p1 * `p2` - p2 * `p3` - p3 | + **providerName** | **string** | | + **region** | **string** | | + **requestId** | **string** | | + **requesterEmail** | **string** | | + **requesterName** | **string** | | + **salesId** | **string** | | + **salesOwnerEmail** | **string** | | + **salesOwnerName** | **string** | | + **search** | **string** | Search for deployments by bastion_operating_system, collection_branch, experience_branch, experience catalog_id, experience catalog_id_alias, experience id, experience title, expires_at, flightcontrol_release, garage_id, gc_branch, gpu_alias, gpu_model, gpu_os_name, gpu_os_release, gpu_os_version, id, oem_name, org_name, persona, pipeline_branch, platform, provider_name, region, request_id, requester_email, requester_name, sales_id, sales_owner_email, sales_owner_name, services url, state, tags, workshop_id | + **state** | **[]string** | Multiple values may be separated by commas. * `destroyed` - Deployment has been fully destroyed * `destroying` - Deployment is being destroyed * `error` - Deployment has encountered a fatal error and will not be retried * `failed` - Deployment has failed but may be retried * `paused` - Deployment is paused but may be retried later * `ready` - Deployment is ready and all instances are running * `retrying` - Deployment is retrying * `starting` - Deployment instances are starting * `stopped` - Deployment instances are stopped * `stopping` - Deployment instances are stopping * `waiting` - Waiting for deployment to be ready | + **workshop** | **bool** | | + **workshopId** | **string** | | + +### Return type + +[**PaginatedDeploymentList**](PaginatedDeploymentList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsNotesCreate + +> DeploymentNote CatalogDeploymentsNotesCreate(ctx, deploymentId).DeploymentNote(deploymentNote).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + deploymentNote := *openapiclient.NewDeploymentNote(time.Now(), "CreatedBy_example", openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, "Id_example", time.Now(), "ModifiedBy_example") // DeploymentNote | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsNotesCreate(context.Background(), deploymentId).DeploymentNote(deploymentNote).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsNotesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsNotesCreate`: DeploymentNote + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsNotesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsNotesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **deploymentNote** | [**DeploymentNote**](DeploymentNote.md) | | + +### Return type + +[**DeploymentNote**](DeploymentNote.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsNotesDestroy + +> CatalogDeploymentsNotesDestroy(ctx, deploymentId, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsNotesDestroy(context.Background(), deploymentId, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsNotesDestroy``: %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. +**deploymentId** | **string** | | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsNotesDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## CatalogDeploymentsNotesList + +> PaginatedDeploymentNoteList CatalogDeploymentsNotesList(ctx, deploymentId).CreatedBy(createdBy).Deployment(deployment).Fields(fields).Id(id).ModifiedBy(modifiedBy).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + createdBy := int32(56) // int32 | (optional) + deployment := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + modifiedBy := int32(56) // int32 | (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + search := "search_example" // string | Search for deployment-notes by content (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsNotesList(context.Background(), deploymentId).CreatedBy(createdBy).Deployment(deployment).Fields(fields).Id(id).ModifiedBy(modifiedBy).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsNotesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsNotesList`: PaginatedDeploymentNoteList + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsNotesList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsNotesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **createdBy** | **int32** | | + **deployment** | **string** | | + **fields** | **string** | Include only the specified fields in the response | + **id** | **string** | | + **modifiedBy** | **int32** | | + **omit** | **string** | Exclude the specified fields in the response | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **search** | **string** | Search for deployment-notes by content | + +### Return type + +[**PaginatedDeploymentNoteList**](PaginatedDeploymentNoteList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsNotesPartialUpdate + +> DeploymentNote CatalogDeploymentsNotesPartialUpdate(ctx, deploymentId, id).DeploymentNote(deploymentNote).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + deploymentNote := *openapiclient.NewDeploymentNote(time.Now(), "CreatedBy_example", openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, "Id_example", time.Now(), "ModifiedBy_example") // DeploymentNote | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsNotesPartialUpdate(context.Background(), deploymentId, id).DeploymentNote(deploymentNote).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsNotesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsNotesPartialUpdate`: DeploymentNote + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsNotesPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsNotesPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **deploymentNote** | [**DeploymentNote**](DeploymentNote.md) | | + +### Return type + +[**DeploymentNote**](DeploymentNote.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsNotesRetrieve + +> DeploymentNote CatalogDeploymentsNotesRetrieve(ctx, deploymentId, id).Fields(fields).Omit(omit).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + fields := "fields_example" // string | Include only the specified fields in the response (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsNotesRetrieve(context.Background(), deploymentId, id).Fields(fields).Omit(omit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsNotesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsNotesRetrieve`: DeploymentNote + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsNotesRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsNotesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **fields** | **string** | Include only the specified fields in the response | + **omit** | **string** | Exclude the specified fields in the response | + +### Return type + +[**DeploymentNote**](DeploymentNote.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsNotesUpdate + +> DeploymentNote CatalogDeploymentsNotesUpdate(ctx, deploymentId, id).DeploymentNote(deploymentNote).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + deploymentNote := *openapiclient.NewDeploymentNote(time.Now(), "CreatedBy_example", openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, "Id_example", time.Now(), "ModifiedBy_example") // DeploymentNote | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsNotesUpdate(context.Background(), deploymentId, id).DeploymentNote(deploymentNote).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsNotesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsNotesUpdate`: DeploymentNote + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsNotesUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsNotesUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **deploymentNote** | [**DeploymentNote**](DeploymentNote.md) | | + +### Return type + +[**DeploymentNote**](DeploymentNote.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsPartialUpdate + +> DeploymentUpdate CatalogDeploymentsPartialUpdate(ctx, id).DeploymentUpdate(deploymentUpdate).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this deployment. + deploymentUpdate := *openapiclient.NewDeploymentUpdate("BastionOperatingSystem_example", "Cluster_example", time.Now(), openapiclient.Deployment_experience{Experience: openapiclient.NewExperience("CatalogId_example", openapiclient.CategoryEnum("AI"), time.Now(), "Experience_example", *openapiclient.NewGpuOs("Name_example", "Release_example", "Version_example"), "Id_example", time.Now(), "Persona_example", int64(123), openapiclient.PlatformEnum("air"), openapiclient.SystemArchEnum("amd64"), "Title_example")}, "GarageId_example", "GpuAlias_example", NullableInt32(123), "GpuModel_example", "GpuOsName_example", "GpuOsRelease_example", "GpuOsVersion_example", "Id_example", NullableInt32(123), NullableInt32(123), time.Now(), NullableInt32(123), "OemName_example", interface{}(123), []string{"Pipelines_example"}, openapiclient.PriorityEnum("p0"), "ProviderName_example", "PublicKey_example", "Region_example", "RequestId_example", time.Now(), "SalesId_example", []string{"Services_example"}, false, "WorkshopId_example", "WorkshopOverridePassword_example") // DeploymentUpdate | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsPartialUpdate(context.Background(), id).DeploymentUpdate(deploymentUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsPartialUpdate`: DeploymentUpdate + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this deployment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **deploymentUpdate** | [**DeploymentUpdate**](DeploymentUpdate.md) | | + +### Return type + +[**DeploymentUpdate**](DeploymentUpdate.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsPipelinesCreate + +> DeploymentPipeline CatalogDeploymentsPipelinesCreate(ctx, deploymentId).DeploymentPipeline(deploymentPipeline).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + deploymentPipeline := *openapiclient.NewDeploymentPipeline(openapiclient.DeploymentPipelineActionEnum("apply"), time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, "Id_example", time.Now(), int64(123), "Url_example") // DeploymentPipeline | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsPipelinesCreate(context.Background(), deploymentId).DeploymentPipeline(deploymentPipeline).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsPipelinesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsPipelinesCreate`: DeploymentPipeline + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsPipelinesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsPipelinesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **deploymentPipeline** | [**DeploymentPipeline**](DeploymentPipeline.md) | | + +### Return type + +[**DeploymentPipeline**](DeploymentPipeline.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsPipelinesList + +> PaginatedDeploymentPipelineList CatalogDeploymentsPipelinesList(ctx, deploymentId).Action(action).Id(id).Ordering(ordering).Page(page).PageSize(pageSize).PipelineId(pipelineId).Search(search).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + action := "action_example" // string | Action for the pipeline to run * `apply` - apply * `destroy` - destroy (optional) + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + pipelineId := int32(56) // int32 | (optional) + search := "search_example" // string | Search for deployment-pipelines by action, id, pipeline_id, url (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsPipelinesList(context.Background(), deploymentId).Action(action).Id(id).Ordering(ordering).Page(page).PageSize(pageSize).PipelineId(pipelineId).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsPipelinesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsPipelinesList`: PaginatedDeploymentPipelineList + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsPipelinesList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsPipelinesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **action** | **string** | Action for the pipeline to run * `apply` - apply * `destroy` - destroy | + **id** | **string** | | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **pipelineId** | **int32** | | + **search** | **string** | Search for deployment-pipelines by action, id, pipeline_id, url | + +### Return type + +[**PaginatedDeploymentPipelineList**](PaginatedDeploymentPipelineList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsRetrieve + +> Deployment CatalogDeploymentsRetrieve(ctx, id).Expand(expand).Expiring(expiring).Fields(fields).Omit(omit).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this deployment. + expand := "expand_example" // string | Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). (optional) + expiring := "expiring_example" // string | Include deployments whose expires_at value is within the given range (inclusive), specified as \"today\", \"tomorrow\", or \"{start}[,end]\". Start and end times must be in ISO format. (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsRetrieve(context.Background(), id).Expand(expand).Expiring(expiring).Fields(fields).Omit(omit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsRetrieve`: Deployment + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this deployment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **expand** | **string** | Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). | + **expiring** | **string** | Include deployments whose expires_at value is within the given range (inclusive), specified as \"today\", \"tomorrow\", or \"{start}[,end]\". Start and end times must be in ISO format. | + **fields** | **string** | Include only the specified fields in the response | + **omit** | **string** | Exclude the specified fields in the response | + +### Return type + +[**Deployment**](Deployment.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsServicesCreate + +> DeploymentService CatalogDeploymentsServicesCreate(ctx, deploymentId).DeploymentService(deploymentService).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + deploymentService := *openapiclient.NewDeploymentService(time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, "Id_example", time.Now(), "Name_example", "Url_example") // DeploymentService | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsServicesCreate(context.Background(), deploymentId).DeploymentService(deploymentService).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsServicesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsServicesCreate`: DeploymentService + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsServicesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsServicesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **deploymentService** | [**DeploymentService**](DeploymentService.md) | | + +### Return type + +[**DeploymentService**](DeploymentService.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsServicesList + +> PaginatedDeploymentServiceList CatalogDeploymentsServicesList(ctx, deploymentId).Id(id).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := "name_example" // string | (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + search := "search_example" // string | Search for deployment-services by id, name, url (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsServicesList(context.Background(), deploymentId).Id(id).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsServicesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsServicesList`: PaginatedDeploymentServiceList + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsServicesList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsServicesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **id** | **string** | | + **name** | **string** | | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **search** | **string** | Search for deployment-services by id, name, url | + +### Return type + +[**PaginatedDeploymentServiceList**](PaginatedDeploymentServiceList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsSshKeysCreate + +> DeploymentKey CatalogDeploymentsSshKeysCreate(ctx, deploymentId).DeploymentKey(deploymentKey).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + deploymentKey := *openapiclient.NewDeploymentKey(time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, "Id_example", time.Now(), "Name_example", "PublicKey_example") // DeploymentKey | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsSshKeysCreate(context.Background(), deploymentId).DeploymentKey(deploymentKey).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsSshKeysCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsSshKeysCreate`: DeploymentKey + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsSshKeysCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsSshKeysCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **deploymentKey** | [**DeploymentKey**](DeploymentKey.md) | | + +### Return type + +[**DeploymentKey**](DeploymentKey.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsSshKeysDestroy + +> CatalogDeploymentsSshKeysDestroy(ctx, deploymentId, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsSshKeysDestroy(context.Background(), deploymentId, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsSshKeysDestroy``: %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. +**deploymentId** | **string** | | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsSshKeysDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## CatalogDeploymentsSshKeysList + +> PaginatedDeploymentKeyList CatalogDeploymentsSshKeysList(ctx, deploymentId).Id(id).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := "name_example" // string | (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + search := "search_example" // string | Search for deployment-keys by name (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsSshKeysList(context.Background(), deploymentId).Id(id).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsSshKeysList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsSshKeysList`: PaginatedDeploymentKeyList + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsSshKeysList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsSshKeysListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **id** | **string** | | + **name** | **string** | | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **search** | **string** | Search for deployment-keys by name | + +### Return type + +[**PaginatedDeploymentKeyList**](PaginatedDeploymentKeyList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsStatsRetrieve + +> CatalogDeploymentsStatsRetrieve(ctx).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsStatsRetrieve(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsStatsRetrieve``: %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 apiCatalogDeploymentsStatsRetrieveRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## CatalogDeploymentsTasksCreate + +> DeploymentTask CatalogDeploymentsTasksCreate(ctx, deploymentId).DeploymentTask(deploymentTask).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + deploymentTask := *openapiclient.NewDeploymentTask(openapiclient.DeploymentTaskActionEnum("start_instances"), time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, "Id_example", time.Now(), int32(123), openapiclient.StatusEnum("completed"), "StatusText_example") // DeploymentTask | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsTasksCreate(context.Background(), deploymentId).DeploymentTask(deploymentTask).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsTasksCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsTasksCreate`: DeploymentTask + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsTasksCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsTasksCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **deploymentTask** | [**DeploymentTask**](DeploymentTask.md) | | + +### Return type + +[**DeploymentTask**](DeploymentTask.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsTasksList + +> PaginatedDeploymentTaskList CatalogDeploymentsTasksList(ctx, deploymentId).Action(action).Id(id).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Status(status).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + action := "action_example" // string | The action the task will perform * `start_instances` - Start all instances in the deployment * `stop_instances` - Stop all instances in the deployment (optional) + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + search := "search_example" // string | Search for deployment-tasks by action, id, status, status_text (optional) + status := "status_example" // string | Current status of the task * `completed` - completed * `failed` - failed * `pending` - pending * `processing` - processing * `retrying` - retrying (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsTasksList(context.Background(), deploymentId).Action(action).Id(id).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Status(status).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsTasksList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsTasksList`: PaginatedDeploymentTaskList + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsTasksList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsTasksListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **action** | **string** | The action the task will perform * `start_instances` - Start all instances in the deployment * `stop_instances` - Stop all instances in the deployment | + **id** | **string** | | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **search** | **string** | Search for deployment-tasks by action, id, status, status_text | + **status** | **string** | Current status of the task * `completed` - completed * `failed` - failed * `pending` - pending * `processing` - processing * `retrying` - retrying | + +### Return type + +[**PaginatedDeploymentTaskList**](PaginatedDeploymentTaskList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsTasksRetrieve + +> DeploymentTask CatalogDeploymentsTasksRetrieve(ctx, deploymentId, id).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + deploymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsTasksRetrieve(context.Background(), deploymentId, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsTasksRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsTasksRetrieve`: DeploymentTask + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsTasksRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deploymentId** | **string** | | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsTasksRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**DeploymentTask**](DeploymentTask.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogDeploymentsUpdate + +> DeploymentUpdate CatalogDeploymentsUpdate(ctx, id).DeploymentUpdate(deploymentUpdate).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this deployment. + deploymentUpdate := *openapiclient.NewDeploymentUpdate("BastionOperatingSystem_example", "Cluster_example", time.Now(), openapiclient.Deployment_experience{Experience: openapiclient.NewExperience("CatalogId_example", openapiclient.CategoryEnum("AI"), time.Now(), "Experience_example", *openapiclient.NewGpuOs("Name_example", "Release_example", "Version_example"), "Id_example", time.Now(), "Persona_example", int64(123), openapiclient.PlatformEnum("air"), openapiclient.SystemArchEnum("amd64"), "Title_example")}, "GarageId_example", "GpuAlias_example", NullableInt32(123), "GpuModel_example", "GpuOsName_example", "GpuOsRelease_example", "GpuOsVersion_example", "Id_example", NullableInt32(123), NullableInt32(123), time.Now(), NullableInt32(123), "OemName_example", interface{}(123), []string{"Pipelines_example"}, openapiclient.PriorityEnum("p0"), "ProviderName_example", "PublicKey_example", "Region_example", "RequestId_example", time.Now(), "SalesId_example", []string{"Services_example"}, false, "WorkshopId_example", "WorkshopOverridePassword_example") // DeploymentUpdate | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsUpdate(context.Background(), id).DeploymentUpdate(deploymentUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogDeploymentsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogDeploymentsUpdate`: DeploymentUpdate + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogDeploymentsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this deployment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogDeploymentsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **deploymentUpdate** | [**DeploymentUpdate**](DeploymentUpdate.md) | | + +### Return type + +[**DeploymentUpdate**](DeploymentUpdate.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogExperiencesNotesCreate + +> ExperienceNote CatalogExperiencesNotesCreate(ctx, experienceId).ExperienceNote(experienceNote).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + experienceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + experienceNote := *openapiclient.NewExperienceNote(time.Now(), "CreatedBy_example", openapiclient.Deployment_experience{Experience: openapiclient.NewExperience("CatalogId_example", openapiclient.CategoryEnum("AI"), time.Now(), "Experience_example", *openapiclient.NewGpuOs("Name_example", "Release_example", "Version_example"), "Id_example", time.Now(), "Persona_example", int64(123), openapiclient.PlatformEnum("air"), openapiclient.SystemArchEnum("amd64"), "Title_example")}, "Id_example", time.Now(), "ModifiedBy_example") // ExperienceNote | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogExperiencesNotesCreate(context.Background(), experienceId).ExperienceNote(experienceNote).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogExperiencesNotesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogExperiencesNotesCreate`: ExperienceNote + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogExperiencesNotesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**experienceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesNotesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **experienceNote** | [**ExperienceNote**](ExperienceNote.md) | | + +### Return type + +[**ExperienceNote**](ExperienceNote.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogExperiencesNotesDestroy + +> CatalogExperiencesNotesDestroy(ctx, experienceId, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + experienceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CatalogDeploymentsAPI.CatalogExperiencesNotesDestroy(context.Background(), experienceId, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogExperiencesNotesDestroy``: %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. +**experienceId** | **string** | | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesNotesDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## CatalogExperiencesNotesList + +> PaginatedExperienceNoteList CatalogExperiencesNotesList(ctx, experienceId).CreatedBy(createdBy).Experience(experience).Fields(fields).Id(id).ModifiedBy(modifiedBy).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + experienceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + createdBy := int32(56) // int32 | (optional) + experience := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + modifiedBy := int32(56) // int32 | (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + search := "search_example" // string | Search for experience-notes by content (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogExperiencesNotesList(context.Background(), experienceId).CreatedBy(createdBy).Experience(experience).Fields(fields).Id(id).ModifiedBy(modifiedBy).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogExperiencesNotesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogExperiencesNotesList`: PaginatedExperienceNoteList + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogExperiencesNotesList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**experienceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesNotesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **createdBy** | **int32** | | + **experience** | **string** | | + **fields** | **string** | Include only the specified fields in the response | + **id** | **string** | | + **modifiedBy** | **int32** | | + **omit** | **string** | Exclude the specified fields in the response | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **search** | **string** | Search for experience-notes by content | + +### Return type + +[**PaginatedExperienceNoteList**](PaginatedExperienceNoteList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogExperiencesNotesPartialUpdate + +> ExperienceNote CatalogExperiencesNotesPartialUpdate(ctx, experienceId, id).ExperienceNote(experienceNote).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + experienceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + experienceNote := *openapiclient.NewExperienceNote(time.Now(), "CreatedBy_example", openapiclient.Deployment_experience{Experience: openapiclient.NewExperience("CatalogId_example", openapiclient.CategoryEnum("AI"), time.Now(), "Experience_example", *openapiclient.NewGpuOs("Name_example", "Release_example", "Version_example"), "Id_example", time.Now(), "Persona_example", int64(123), openapiclient.PlatformEnum("air"), openapiclient.SystemArchEnum("amd64"), "Title_example")}, "Id_example", time.Now(), "ModifiedBy_example") // ExperienceNote | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogExperiencesNotesPartialUpdate(context.Background(), experienceId, id).ExperienceNote(experienceNote).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogExperiencesNotesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogExperiencesNotesPartialUpdate`: ExperienceNote + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogExperiencesNotesPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**experienceId** | **string** | | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesNotesPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **experienceNote** | [**ExperienceNote**](ExperienceNote.md) | | + +### Return type + +[**ExperienceNote**](ExperienceNote.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogExperiencesNotesRetrieve + +> ExperienceNote CatalogExperiencesNotesRetrieve(ctx, experienceId, id).Fields(fields).Omit(omit).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + experienceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + fields := "fields_example" // string | Include only the specified fields in the response (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogExperiencesNotesRetrieve(context.Background(), experienceId, id).Fields(fields).Omit(omit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogExperiencesNotesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogExperiencesNotesRetrieve`: ExperienceNote + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogExperiencesNotesRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**experienceId** | **string** | | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesNotesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **fields** | **string** | Include only the specified fields in the response | + **omit** | **string** | Exclude the specified fields in the response | + +### Return type + +[**ExperienceNote**](ExperienceNote.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogExperiencesNotesUpdate + +> ExperienceNote CatalogExperiencesNotesUpdate(ctx, experienceId, id).ExperienceNote(experienceNote).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + experienceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + experienceNote := *openapiclient.NewExperienceNote(time.Now(), "CreatedBy_example", openapiclient.Deployment_experience{Experience: openapiclient.NewExperience("CatalogId_example", openapiclient.CategoryEnum("AI"), time.Now(), "Experience_example", *openapiclient.NewGpuOs("Name_example", "Release_example", "Version_example"), "Id_example", time.Now(), "Persona_example", int64(123), openapiclient.PlatformEnum("air"), openapiclient.SystemArchEnum("amd64"), "Title_example")}, "Id_example", time.Now(), "ModifiedBy_example") // ExperienceNote | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogDeploymentsAPI.CatalogExperiencesNotesUpdate(context.Background(), experienceId, id).ExperienceNote(experienceNote).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogDeploymentsAPI.CatalogExperiencesNotesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogExperiencesNotesUpdate`: ExperienceNote + fmt.Fprintf(os.Stdout, "Response from `CatalogDeploymentsAPI.CatalogExperiencesNotesUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**experienceId** | **string** | | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesNotesUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **experienceNote** | [**ExperienceNote**](ExperienceNote.md) | | + +### Return type + +[**ExperienceNote**](ExperienceNote.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + diff --git a/v1/providers/launchpad/gen/launchpad/docs/CatalogExperiencesAPI.md b/v1/providers/launchpad/gen/launchpad/docs/CatalogExperiencesAPI.md new file mode 100644 index 0000000..676569c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/CatalogExperiencesAPI.md @@ -0,0 +1,755 @@ +# \CatalogExperiencesAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CatalogExperiencesBulkCreate**](CatalogExperiencesAPI.md#CatalogExperiencesBulkCreate) | **Post** /v1/catalog/experiences/bulk/ | +[**CatalogExperiencesBulkPartialUpdate**](CatalogExperiencesAPI.md#CatalogExperiencesBulkPartialUpdate) | **Patch** /v1/catalog/experiences/bulk/ | +[**CatalogExperiencesCreate**](CatalogExperiencesAPI.md#CatalogExperiencesCreate) | **Post** /v1/catalog/experiences/ | +[**CatalogExperiencesDestroy**](CatalogExperiencesAPI.md#CatalogExperiencesDestroy) | **Delete** /v1/catalog/experiences/{id}/ | +[**CatalogExperiencesHistoryList**](CatalogExperiencesAPI.md#CatalogExperiencesHistoryList) | **Get** /v1/catalog/experiences/{id}/history/ | +[**CatalogExperiencesList**](CatalogExperiencesAPI.md#CatalogExperiencesList) | **Get** /v1/catalog/experiences/ | +[**CatalogExperiencesPartialUpdate**](CatalogExperiencesAPI.md#CatalogExperiencesPartialUpdate) | **Patch** /v1/catalog/experiences/{id}/ | +[**CatalogExperiencesRetrieve**](CatalogExperiencesAPI.md#CatalogExperiencesRetrieve) | **Get** /v1/catalog/experiences/{id}/ | +[**CatalogExperiencesStatsRetrieve**](CatalogExperiencesAPI.md#CatalogExperiencesStatsRetrieve) | **Get** /v1/catalog/experiences/stats/ | 🚧 [Beta Feature] +[**CatalogExperiencesUpdate**](CatalogExperiencesAPI.md#CatalogExperiencesUpdate) | **Put** /v1/catalog/experiences/{id}/ | + + + +## CatalogExperiencesBulkCreate + +> ExperienceBulk CatalogExperiencesBulkCreate(ctx).CsvFile(csvFile).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + csvFile := os.NewFile(1234, "some_file") // *os.File | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesBulkCreate(context.Background()).CsvFile(csvFile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogExperiencesAPI.CatalogExperiencesBulkCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogExperiencesBulkCreate`: ExperienceBulk + fmt.Fprintf(os.Stdout, "Response from `CatalogExperiencesAPI.CatalogExperiencesBulkCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesBulkCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **csvFile** | ***os.File** | | + +### Return type + +[**ExperienceBulk**](ExperienceBulk.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogExperiencesBulkPartialUpdate + +> ExperienceBulkUpdate CatalogExperiencesBulkPartialUpdate(ctx).ExperienceBulkUpdate(experienceBulkUpdate).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + experienceBulkUpdate := *openapiclient.NewExperienceBulkUpdate("CatalogId_example", "CatalogIdAlias_example", openapiclient.CategoryEnum("AI"), time.Now(), "Experience_example", *openapiclient.NewGpuOs("Name_example", "Release_example", "Version_example"), "Id_example", time.Now(), "Persona_example", int64(123), openapiclient.PlatformEnum("air"), openapiclient.SystemArchEnum("amd64"), "Title_example", int32(123), []string{"Ids_example"}, "Result_example") // ExperienceBulkUpdate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesBulkPartialUpdate(context.Background()).ExperienceBulkUpdate(experienceBulkUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogExperiencesAPI.CatalogExperiencesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogExperiencesBulkPartialUpdate`: ExperienceBulkUpdate + fmt.Fprintf(os.Stdout, "Response from `CatalogExperiencesAPI.CatalogExperiencesBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **experienceBulkUpdate** | [**ExperienceBulkUpdate**](ExperienceBulkUpdate.md) | | + +### Return type + +[**ExperienceBulkUpdate**](ExperienceBulkUpdate.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[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) + + +## CatalogExperiencesCreate + +> Experience CatalogExperiencesCreate(ctx).Experience(experience).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + experience := *openapiclient.NewExperience("CatalogId_example", openapiclient.CategoryEnum("AI"), time.Now(), "Experience_example", *openapiclient.NewGpuOs("Name_example", "Release_example", "Version_example"), "Id_example", time.Now(), "Persona_example", int64(123), openapiclient.PlatformEnum("air"), openapiclient.SystemArchEnum("amd64"), "Title_example") // Experience | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesCreate(context.Background()).Experience(experience).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogExperiencesAPI.CatalogExperiencesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogExperiencesCreate`: Experience + fmt.Fprintf(os.Stdout, "Response from `CatalogExperiencesAPI.CatalogExperiencesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **experience** | [**Experience**](Experience.md) | | + +### Return type + +[**Experience**](Experience.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogExperiencesDestroy + +> CatalogExperiencesDestroy(ctx, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this experience. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogExperiencesAPI.CatalogExperiencesDestroy``: %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. +**id** | **string** | A UUID string identifying this experience. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## CatalogExperiencesHistoryList + +> PaginatedModelChangeList CatalogExperiencesHistoryList(ctx, id).Page(page).PageSize(pageSize).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesHistoryList(context.Background(), id).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogExperiencesAPI.CatalogExperiencesHistoryList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogExperiencesHistoryList`: PaginatedModelChangeList + fmt.Fprintf(os.Stdout, "Response from `CatalogExperiencesAPI.CatalogExperiencesHistoryList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesHistoryListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + +### Return type + +[**PaginatedModelChangeList**](PaginatedModelChangeList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogExperiencesList + +> PaginatedExperienceList CatalogExperiencesList(ctx).Assignee(assignee).Autoapprove(autoapprove).Autoprovision(autoprovision).Bootstrap(bootstrap).CatalogId(catalogId).CatalogIdAlias(catalogIdAlias).Category(category).CollectionBranch(collectionBranch).Expand(expand).Experience(experience).ExperienceBranch(experienceBranch).Fields(fields).GarageId(garageId).GcBranch(gcBranch).GpuCount(gpuCount).GpuOsName(gpuOsName).GpuOsRelease(gpuOsRelease).GpuOsVersion(gpuOsVersion).Id(id).NodeCount(nodeCount).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Persona(persona).Pipeline(pipeline).Platform(platform).Provider(provider).Published(published).RequiresGpu(requiresGpu).SaLab(saLab).Search(search).SystemArch(systemArch).VgpuProfile(vgpuProfile).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + assignee := "assignee_example" // string | (optional) + autoapprove := true // bool | (optional) + autoprovision := true // bool | (optional) + bootstrap := true // bool | (optional) + catalogId := "catalogId_example" // string | (optional) + catalogIdAlias := "catalogIdAlias_example" // string | (optional) + category := []string{"Category_example"} // []string | Multiple values may be separated by commas. * `AI` - AI * `Clara` - Clara * `Data Science` - Data Science * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation * `Developer` - Developer * `Infrastructure Optimization` - Infrastructure Optimization (optional) + collectionBranch := "collectionBranch_example" // string | (optional) + expand := "expand_example" // string | Expand related field(s) instead of only showing a UUID (ex: \"required_gpus\"). (optional) + experience := "experience_example" // string | (optional) + experienceBranch := "experienceBranch_example" // string | (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + garageId := "garageId_example" // string | (optional) + gcBranch := "gcBranch_example" // string | (optional) + gpuCount := int32(56) // int32 | (optional) + gpuOsName := "gpuOsName_example" // string | (optional) + gpuOsRelease := "gpuOsRelease_example" // string | (optional) + gpuOsVersion := "gpuOsVersion_example" // string | (optional) + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + nodeCount := int32(56) // int32 | (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + persona := "persona_example" // string | (optional) + pipeline := int32(56) // int32 | (optional) + platform := "platform_example" // string | Base platform that the experience will be provisioned onto * `air` - NVIDIA Air * `flight_deck` - Flight Deck * `kvm_bastion` - KVM Bastion * `lp-vmware-platform` - lp-vmware-platform * `minimal` - minimal * `openshift` - OpenShift * `vsphere` - vSphere * `vsphere_horizon` - VMware Horizon * `vsphere7` - vSphere 7 * `vsphere8` - vSphere 8 (optional) + provider := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + published := []string{"Published_example"} // []string | Multiple values may be separated by commas. * `draft` - draft * `no` - no * `yes` - yes (optional) + requiresGpu := "requiresGpu_example" // string | Only include experiences that require a given GPU ID or model (optional) + saLab := true // bool | (optional) + search := "search_example" // string | Search for experiences by assignee, catalog_id, catalog_id_alias, category, collection_branch, description, experience, experience_branch, gc_branch, gpu_os_name, gpu_os_release, gpu_os_version, id, persona, pipeline, platform, provider name, required_gpus model, system_arch, title, vgpu_profile (optional) + systemArch := "systemArch_example" // string | Required CPU architecture * `amd64` - amd64 * `arm64` - arm64 (optional) + vgpuProfile := "vgpuProfile_example" // string | vGPU profile name used by the experience * `air` - NVIDIA Air * `bright_cluster` - Bright Cluster * `bright-cluster` - Bright Cluster (legacy option) * `flight_deck` - Flight Deck * `flight-deck` - Flight Deck (legacy option) * `nvidia_a40-48q` - nvidia_a40-48q * `nvidia-ai-enterprise` - NVIDIA AI Enterprise * `nvidia_l40s-48q` - nvidia_l40s-48q * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q * `openshift` - OpenShift * `platform_only` - platform_only * `vmware_itadmin` - VMware IT admin (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesList(context.Background()).Assignee(assignee).Autoapprove(autoapprove).Autoprovision(autoprovision).Bootstrap(bootstrap).CatalogId(catalogId).CatalogIdAlias(catalogIdAlias).Category(category).CollectionBranch(collectionBranch).Expand(expand).Experience(experience).ExperienceBranch(experienceBranch).Fields(fields).GarageId(garageId).GcBranch(gcBranch).GpuCount(gpuCount).GpuOsName(gpuOsName).GpuOsRelease(gpuOsRelease).GpuOsVersion(gpuOsVersion).Id(id).NodeCount(nodeCount).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Persona(persona).Pipeline(pipeline).Platform(platform).Provider(provider).Published(published).RequiresGpu(requiresGpu).SaLab(saLab).Search(search).SystemArch(systemArch).VgpuProfile(vgpuProfile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogExperiencesAPI.CatalogExperiencesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogExperiencesList`: PaginatedExperienceList + fmt.Fprintf(os.Stdout, "Response from `CatalogExperiencesAPI.CatalogExperiencesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **assignee** | **string** | | + **autoapprove** | **bool** | | + **autoprovision** | **bool** | | + **bootstrap** | **bool** | | + **catalogId** | **string** | | + **catalogIdAlias** | **string** | | + **category** | **[]string** | Multiple values may be separated by commas. * `AI` - AI * `Clara` - Clara * `Data Science` - Data Science * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation * `Developer` - Developer * `Infrastructure Optimization` - Infrastructure Optimization | + **collectionBranch** | **string** | | + **expand** | **string** | Expand related field(s) instead of only showing a UUID (ex: \"required_gpus\"). | + **experience** | **string** | | + **experienceBranch** | **string** | | + **fields** | **string** | Include only the specified fields in the response | + **garageId** | **string** | | + **gcBranch** | **string** | | + **gpuCount** | **int32** | | + **gpuOsName** | **string** | | + **gpuOsRelease** | **string** | | + **gpuOsVersion** | **string** | | + **id** | **string** | | + **nodeCount** | **int32** | | + **omit** | **string** | Exclude the specified fields in the response | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **persona** | **string** | | + **pipeline** | **int32** | | + **platform** | **string** | Base platform that the experience will be provisioned onto * `air` - NVIDIA Air * `flight_deck` - Flight Deck * `kvm_bastion` - KVM Bastion * `lp-vmware-platform` - lp-vmware-platform * `minimal` - minimal * `openshift` - OpenShift * `vsphere` - vSphere * `vsphere_horizon` - VMware Horizon * `vsphere7` - vSphere 7 * `vsphere8` - vSphere 8 | + **provider** | **string** | | + **published** | **[]string** | Multiple values may be separated by commas. * `draft` - draft * `no` - no * `yes` - yes | + **requiresGpu** | **string** | Only include experiences that require a given GPU ID or model | + **saLab** | **bool** | | + **search** | **string** | Search for experiences by assignee, catalog_id, catalog_id_alias, category, collection_branch, description, experience, experience_branch, gc_branch, gpu_os_name, gpu_os_release, gpu_os_version, id, persona, pipeline, platform, provider name, required_gpus model, system_arch, title, vgpu_profile | + **systemArch** | **string** | Required CPU architecture * `amd64` - amd64 * `arm64` - arm64 | + **vgpuProfile** | **string** | vGPU profile name used by the experience * `air` - NVIDIA Air * `bright_cluster` - Bright Cluster * `bright-cluster` - Bright Cluster (legacy option) * `flight_deck` - Flight Deck * `flight-deck` - Flight Deck (legacy option) * `nvidia_a40-48q` - nvidia_a40-48q * `nvidia-ai-enterprise` - NVIDIA AI Enterprise * `nvidia_l40s-48q` - nvidia_l40s-48q * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q * `openshift` - OpenShift * `platform_only` - platform_only * `vmware_itadmin` - VMware IT admin | + +### Return type + +[**PaginatedExperienceList**](PaginatedExperienceList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogExperiencesPartialUpdate + +> Experience CatalogExperiencesPartialUpdate(ctx, id).Experience(experience).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this experience. + experience := *openapiclient.NewExperience("CatalogId_example", openapiclient.CategoryEnum("AI"), time.Now(), "Experience_example", *openapiclient.NewGpuOs("Name_example", "Release_example", "Version_example"), "Id_example", time.Now(), "Persona_example", int64(123), openapiclient.PlatformEnum("air"), openapiclient.SystemArchEnum("amd64"), "Title_example") // Experience | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesPartialUpdate(context.Background(), id).Experience(experience).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogExperiencesAPI.CatalogExperiencesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogExperiencesPartialUpdate`: Experience + fmt.Fprintf(os.Stdout, "Response from `CatalogExperiencesAPI.CatalogExperiencesPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this experience. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **experience** | [**Experience**](Experience.md) | | + +### Return type + +[**Experience**](Experience.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogExperiencesRetrieve + +> Experience CatalogExperiencesRetrieve(ctx, id).Expand(expand).Fields(fields).Omit(omit).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this experience. + expand := "expand_example" // string | Expand related field(s) instead of only showing a UUID (ex: \"required_gpus\"). (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesRetrieve(context.Background(), id).Expand(expand).Fields(fields).Omit(omit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogExperiencesAPI.CatalogExperiencesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogExperiencesRetrieve`: Experience + fmt.Fprintf(os.Stdout, "Response from `CatalogExperiencesAPI.CatalogExperiencesRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this experience. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **expand** | **string** | Expand related field(s) instead of only showing a UUID (ex: \"required_gpus\"). | + **fields** | **string** | Include only the specified fields in the response | + **omit** | **string** | Exclude the specified fields in the response | + +### Return type + +[**Experience**](Experience.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## CatalogExperiencesStatsRetrieve + +> CatalogExperiencesStatsRetrieve(ctx).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesStatsRetrieve(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogExperiencesAPI.CatalogExperiencesStatsRetrieve``: %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 apiCatalogExperiencesStatsRetrieveRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## CatalogExperiencesUpdate + +> Experience CatalogExperiencesUpdate(ctx, id).Experience(experience).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this experience. + experience := *openapiclient.NewExperience("CatalogId_example", openapiclient.CategoryEnum("AI"), time.Now(), "Experience_example", *openapiclient.NewGpuOs("Name_example", "Release_example", "Version_example"), "Id_example", time.Now(), "Persona_example", int64(123), openapiclient.PlatformEnum("air"), openapiclient.SystemArchEnum("amd64"), "Title_example") // Experience | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesUpdate(context.Background(), id).Experience(experience).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogExperiencesAPI.CatalogExperiencesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogExperiencesUpdate`: Experience + fmt.Fprintf(os.Stdout, "Response from `CatalogExperiencesAPI.CatalogExperiencesUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this experience. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogExperiencesUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **experience** | [**Experience**](Experience.md) | | + +### Return type + +[**Experience**](Experience.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + diff --git a/v1/providers/launchpad/gen/launchpad/docs/CatalogGpuOsChoicesAPI.md b/v1/providers/launchpad/gen/launchpad/docs/CatalogGpuOsChoicesAPI.md new file mode 100644 index 0000000..beb203d --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/CatalogGpuOsChoicesAPI.md @@ -0,0 +1,149 @@ +# \CatalogGpuOsChoicesAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CatalogGpuOsChoicesCreate**](CatalogGpuOsChoicesAPI.md#CatalogGpuOsChoicesCreate) | **Post** /v1/catalog/gpu-os-choices/ | +[**CatalogGpuOsChoicesList**](CatalogGpuOsChoicesAPI.md#CatalogGpuOsChoicesList) | **Get** /v1/catalog/gpu-os-choices/ | + + + +## CatalogGpuOsChoicesCreate + +> GpuOsChoice CatalogGpuOsChoicesCreate(ctx).GpuOsChoice(gpuOsChoice).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + gpuOsChoice := *openapiclient.NewGpuOsChoice(time.Now(), int32(123), time.Now(), "Name_example", "Release_example", "Version_example") // GpuOsChoice | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogGpuOsChoicesAPI.CatalogGpuOsChoicesCreate(context.Background()).GpuOsChoice(gpuOsChoice).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogGpuOsChoicesAPI.CatalogGpuOsChoicesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogGpuOsChoicesCreate`: GpuOsChoice + fmt.Fprintf(os.Stdout, "Response from `CatalogGpuOsChoicesAPI.CatalogGpuOsChoicesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogGpuOsChoicesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **gpuOsChoice** | [**GpuOsChoice**](GpuOsChoice.md) | | + +### Return type + +[**GpuOsChoice**](GpuOsChoice.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogGpuOsChoicesList + +> PaginatedGpuOsChoiceList CatalogGpuOsChoicesList(ctx).Fields(fields).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + fields := "fields_example" // string | Include only the specified fields in the response (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + search := "search_example" // string | Search for gpuoschoices by id, name, release, version (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogGpuOsChoicesAPI.CatalogGpuOsChoicesList(context.Background()).Fields(fields).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogGpuOsChoicesAPI.CatalogGpuOsChoicesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogGpuOsChoicesList`: PaginatedGpuOsChoiceList + fmt.Fprintf(os.Stdout, "Response from `CatalogGpuOsChoicesAPI.CatalogGpuOsChoicesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogGpuOsChoicesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **string** | Include only the specified fields in the response | + **omit** | **string** | Exclude the specified fields in the response | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **search** | **string** | Search for gpuoschoices by id, name, release, version | + +### Return type + +[**PaginatedGpuOsChoiceList**](PaginatedGpuOsChoiceList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + diff --git a/v1/providers/launchpad/gen/launchpad/docs/CatalogInstanceTypesAPI.md b/v1/providers/launchpad/gen/launchpad/docs/CatalogInstanceTypesAPI.md new file mode 100644 index 0000000..bdb3e68 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/CatalogInstanceTypesAPI.md @@ -0,0 +1,75 @@ +# \CatalogInstanceTypesAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CatalogInstanceTypesList**](CatalogInstanceTypesAPI.md#CatalogInstanceTypesList) | **Get** /v1/catalog/instance-types/ | + + + +## CatalogInstanceTypesList + +> PaginatedInstanceTypeList CatalogInstanceTypesList(ctx).Page(page).PageSize(pageSize).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogInstanceTypesAPI.CatalogInstanceTypesList(context.Background()).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogInstanceTypesAPI.CatalogInstanceTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogInstanceTypesList`: PaginatedInstanceTypeList + fmt.Fprintf(os.Stdout, "Response from `CatalogInstanceTypesAPI.CatalogInstanceTypesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogInstanceTypesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + +### Return type + +[**PaginatedInstanceTypeList**](PaginatedInstanceTypeList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + diff --git a/v1/providers/launchpad/gen/launchpad/docs/CatalogPersonaChoicesAPI.md b/v1/providers/launchpad/gen/launchpad/docs/CatalogPersonaChoicesAPI.md new file mode 100644 index 0000000..d92c893 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/CatalogPersonaChoicesAPI.md @@ -0,0 +1,149 @@ +# \CatalogPersonaChoicesAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CatalogPersonaChoicesCreate**](CatalogPersonaChoicesAPI.md#CatalogPersonaChoicesCreate) | **Post** /v1/catalog/persona-choices/ | +[**CatalogPersonaChoicesList**](CatalogPersonaChoicesAPI.md#CatalogPersonaChoicesList) | **Get** /v1/catalog/persona-choices/ | + + + +## CatalogPersonaChoicesCreate + +> PersonaChoice CatalogPersonaChoicesCreate(ctx).PersonaChoice(personaChoice).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + personaChoice := *openapiclient.NewPersonaChoice(time.Now(), int32(123), time.Now(), "Name_example") // PersonaChoice | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogPersonaChoicesAPI.CatalogPersonaChoicesCreate(context.Background()).PersonaChoice(personaChoice).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogPersonaChoicesAPI.CatalogPersonaChoicesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogPersonaChoicesCreate`: PersonaChoice + fmt.Fprintf(os.Stdout, "Response from `CatalogPersonaChoicesAPI.CatalogPersonaChoicesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogPersonaChoicesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **personaChoice** | [**PersonaChoice**](PersonaChoice.md) | | + +### Return type + +[**PersonaChoice**](PersonaChoice.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## CatalogPersonaChoicesList + +> PaginatedPersonaChoiceList CatalogPersonaChoicesList(ctx).Fields(fields).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + fields := "fields_example" // string | Include only the specified fields in the response (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + search := "search_example" // string | Search for personachoices by id, name (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CatalogPersonaChoicesAPI.CatalogPersonaChoicesList(context.Background()).Fields(fields).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CatalogPersonaChoicesAPI.CatalogPersonaChoicesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CatalogPersonaChoicesList`: PaginatedPersonaChoiceList + fmt.Fprintf(os.Stdout, "Response from `CatalogPersonaChoicesAPI.CatalogPersonaChoicesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCatalogPersonaChoicesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **string** | Include only the specified fields in the response | + **omit** | **string** | Exclude the specified fields in the response | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **search** | **string** | Search for personachoices by id, name | + +### Return type + +[**PaginatedPersonaChoiceList**](PaginatedPersonaChoiceList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + diff --git a/v1/providers/launchpad/gen/launchpad/docs/CategoryEnum.md b/v1/providers/launchpad/gen/launchpad/docs/CategoryEnum.md new file mode 100644 index 0000000..7bb5db6 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/CategoryEnum.md @@ -0,0 +1,21 @@ +# CategoryEnum + +## Enum + + +* `CategoryAI` (value: `"AI"`) + +* `CategoryClara` (value: `"Clara"`) + +* `CategoryDataScience` (value: `"Data Science"`) + +* `Category3DDesignCollaborationAndSimulation` (value: `"3D Design Collaboration and Simulation"`) + +* `CategoryDeveloper` (value: `"Developer"`) + +* `CategoryInfrastructureOptimization` (value: `"Infrastructure Optimization"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/Cluster.md b/v1/providers/launchpad/gen/launchpad/docs/Cluster.md new file mode 100644 index 0000000..8e90715 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/Cluster.md @@ -0,0 +1,948 @@ +# Cluster + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Available** | **bool** | Is the cluster currently available for provisioning? | [readonly] +**BastionName** | Pointer to **NullableString** | Name of the bastion assigned to the cluster | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Deployment** | [**ClusterDeployment**](ClusterDeployment.md) | | +**Enabled** | Pointer to **bool** | Is the cluster administratively enabled? | [optional] +**Experience** | Pointer to **NullableString** | Experience provisioned onto this cluster | [optional] +**FreeBy** | Pointer to **NullableTime** | | [optional] +**Gpus** | [**[]ClusterGpusInner**](ClusterGpusInner.md) | | +**GpuAlias** | Pointer to **string** | Alias for GPU plan (i.e. installed GPU type and count) | [optional] [readonly] +**GpuCount** | Pointer to **int32** | | [optional] [readonly] +**Id** | **string** | | [readonly] +**Instances** | [**[]ClusterInstancesInner**](ClusterInstancesInner.md) | | +**LastUsed** | **NullableTime** | Timestamp of when the cluster was last in use | [readonly] +**Maintenance** | Pointer to **bool** | Is the cluster in maintenance mode? | [optional] +**MgmtIp** | Pointer to **string** | Management IP address | [optional] +**MgmtMac** | Pointer to **NullableString** | Management MAC address | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**Netmask** | Pointer to **NullableInt32** | The subnet mask of the cluster's public IP address in CIDR notation | [optional] +**NodeCount** | Pointer to **int32** | | [optional] [readonly] +**Nodes** | Pointer to [**[]ClusterNodesInner**](ClusterNodesInner.md) | | [optional] +**Notes** | Pointer to **NullableString** | Administrative comments about the cluster | [optional] +**Persist** | Pointer to **bool** | Is the cluster exempt from provisioning_state timeouts? Can be used to ensure the cluster persists after a provisioning failure. | [optional] +**ProviderCapacity** | **bool** | Does the provider have capacity to provision this cluster? | [readonly] +**ProvisionUser** | Pointer to **NullableString** | Username used for provisioning this cluster | [optional] +**ProvisioningAttempts** | Pointer to **int32** | The number of attempts that have been made to provision this cluster. Automatically resets to 0 after successful provisioning. | [optional] +**ProvisioningState** | Pointer to [**ProvisioningStateEnum**](ProvisioningStateEnum.md) | Is the cluster currently provisioned? * `deployed` - Cluster is in use by a deployment * `deploying` - Provisioning is in progress * `destroying` - Cluster is being destroyed * `pending` - Provisioning will begin soon * `ready` - Provisioning has completed and is ready for a deployment * `reserved` - Cluster is unprovisioned but reserved for later use * `unprovisioned` - Cluster has not yet been provisioned | [optional] +**PublicAddress** | Pointer to **NullableString** | Public IP address or fully-qualified domain name of this cluster | [optional] +**RequestId** | Pointer to **NullableString** | The request ID for the lab that is currently provisioned on this cluster (ex: TRY-1234) | [optional] +**Reservation** | Pointer to **bool** | Is the cluster a static reservation from its provider? | [optional] +**TenantIds** | **[]string** | Tenant UUID(s) that have been generated for this cluster during provisioning | +**VlanId** | Pointer to **int32** | VLAN number | [optional] +**Workshop** | Pointer to **bool** | Is the cluster set aside for use in a workshop? | [optional] +**WorkshopId** | Pointer to **NullableString** | Identifier of the workshop this cluster is set aside for | [optional] + +## Methods + +### NewCluster + +`func NewCluster(available bool, created time.Time, deployment ClusterDeployment, gpus []ClusterGpusInner, id string, instances []ClusterInstancesInner, lastUsed NullableTime, modified time.Time, providerCapacity bool, tenantIds []string, ) *Cluster` + +NewCluster instantiates a new Cluster 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 + +### NewClusterWithDefaults + +`func NewClusterWithDefaults() *Cluster` + +NewClusterWithDefaults instantiates a new Cluster 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 + +### GetAvailable + +`func (o *Cluster) GetAvailable() bool` + +GetAvailable returns the Available field if non-nil, zero value otherwise. + +### GetAvailableOk + +`func (o *Cluster) GetAvailableOk() (*bool, bool)` + +GetAvailableOk returns a tuple with the Available field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailable + +`func (o *Cluster) SetAvailable(v bool)` + +SetAvailable sets Available field to given value. + + +### GetBastionName + +`func (o *Cluster) GetBastionName() string` + +GetBastionName returns the BastionName field if non-nil, zero value otherwise. + +### GetBastionNameOk + +`func (o *Cluster) GetBastionNameOk() (*string, bool)` + +GetBastionNameOk returns a tuple with the BastionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBastionName + +`func (o *Cluster) SetBastionName(v string)` + +SetBastionName sets BastionName field to given value. + +### HasBastionName + +`func (o *Cluster) HasBastionName() bool` + +HasBastionName returns a boolean if a field has been set. + +### SetBastionNameNil + +`func (o *Cluster) SetBastionNameNil(b bool)` + + SetBastionNameNil sets the value for BastionName to be an explicit nil + +### UnsetBastionName +`func (o *Cluster) UnsetBastionName()` + +UnsetBastionName ensures that no value is present for BastionName, not even an explicit nil +### GetCreated + +`func (o *Cluster) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Cluster) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Cluster) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetDeployment + +`func (o *Cluster) GetDeployment() ClusterDeployment` + +GetDeployment returns the Deployment field if non-nil, zero value otherwise. + +### GetDeploymentOk + +`func (o *Cluster) GetDeploymentOk() (*ClusterDeployment, bool)` + +GetDeploymentOk returns a tuple with the Deployment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployment + +`func (o *Cluster) SetDeployment(v ClusterDeployment)` + +SetDeployment sets Deployment field to given value. + + +### GetEnabled + +`func (o *Cluster) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *Cluster) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *Cluster) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *Cluster) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetExperience + +`func (o *Cluster) GetExperience() string` + +GetExperience returns the Experience field if non-nil, zero value otherwise. + +### GetExperienceOk + +`func (o *Cluster) GetExperienceOk() (*string, bool)` + +GetExperienceOk returns a tuple with the Experience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperience + +`func (o *Cluster) SetExperience(v string)` + +SetExperience sets Experience field to given value. + +### HasExperience + +`func (o *Cluster) HasExperience() bool` + +HasExperience returns a boolean if a field has been set. + +### SetExperienceNil + +`func (o *Cluster) SetExperienceNil(b bool)` + + SetExperienceNil sets the value for Experience to be an explicit nil + +### UnsetExperience +`func (o *Cluster) UnsetExperience()` + +UnsetExperience ensures that no value is present for Experience, not even an explicit nil +### GetFreeBy + +`func (o *Cluster) GetFreeBy() time.Time` + +GetFreeBy returns the FreeBy field if non-nil, zero value otherwise. + +### GetFreeByOk + +`func (o *Cluster) GetFreeByOk() (*time.Time, bool)` + +GetFreeByOk returns a tuple with the FreeBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFreeBy + +`func (o *Cluster) SetFreeBy(v time.Time)` + +SetFreeBy sets FreeBy field to given value. + +### HasFreeBy + +`func (o *Cluster) HasFreeBy() bool` + +HasFreeBy returns a boolean if a field has been set. + +### SetFreeByNil + +`func (o *Cluster) SetFreeByNil(b bool)` + + SetFreeByNil sets the value for FreeBy to be an explicit nil + +### UnsetFreeBy +`func (o *Cluster) UnsetFreeBy()` + +UnsetFreeBy ensures that no value is present for FreeBy, not even an explicit nil +### GetGpus + +`func (o *Cluster) GetGpus() []ClusterGpusInner` + +GetGpus returns the Gpus field if non-nil, zero value otherwise. + +### GetGpusOk + +`func (o *Cluster) GetGpusOk() (*[]ClusterGpusInner, bool)` + +GetGpusOk returns a tuple with the Gpus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpus + +`func (o *Cluster) SetGpus(v []ClusterGpusInner)` + +SetGpus sets Gpus field to given value. + + +### GetGpuAlias + +`func (o *Cluster) GetGpuAlias() string` + +GetGpuAlias returns the GpuAlias field if non-nil, zero value otherwise. + +### GetGpuAliasOk + +`func (o *Cluster) GetGpuAliasOk() (*string, bool)` + +GetGpuAliasOk returns a tuple with the GpuAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuAlias + +`func (o *Cluster) SetGpuAlias(v string)` + +SetGpuAlias sets GpuAlias field to given value. + +### HasGpuAlias + +`func (o *Cluster) HasGpuAlias() bool` + +HasGpuAlias returns a boolean if a field has been set. + +### GetGpuCount + +`func (o *Cluster) GetGpuCount() int32` + +GetGpuCount returns the GpuCount field if non-nil, zero value otherwise. + +### GetGpuCountOk + +`func (o *Cluster) GetGpuCountOk() (*int32, bool)` + +GetGpuCountOk returns a tuple with the GpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuCount + +`func (o *Cluster) SetGpuCount(v int32)` + +SetGpuCount sets GpuCount field to given value. + +### HasGpuCount + +`func (o *Cluster) HasGpuCount() bool` + +HasGpuCount returns a boolean if a field has been set. + +### GetId + +`func (o *Cluster) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Cluster) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Cluster) SetId(v string)` + +SetId sets Id field to given value. + + +### GetInstances + +`func (o *Cluster) GetInstances() []ClusterInstancesInner` + +GetInstances returns the Instances field if non-nil, zero value otherwise. + +### GetInstancesOk + +`func (o *Cluster) GetInstancesOk() (*[]ClusterInstancesInner, bool)` + +GetInstancesOk returns a tuple with the Instances field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstances + +`func (o *Cluster) SetInstances(v []ClusterInstancesInner)` + +SetInstances sets Instances field to given value. + + +### GetLastUsed + +`func (o *Cluster) GetLastUsed() time.Time` + +GetLastUsed returns the LastUsed field if non-nil, zero value otherwise. + +### GetLastUsedOk + +`func (o *Cluster) GetLastUsedOk() (*time.Time, bool)` + +GetLastUsedOk returns a tuple with the LastUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUsed + +`func (o *Cluster) SetLastUsed(v time.Time)` + +SetLastUsed sets LastUsed field to given value. + + +### SetLastUsedNil + +`func (o *Cluster) SetLastUsedNil(b bool)` + + SetLastUsedNil sets the value for LastUsed to be an explicit nil + +### UnsetLastUsed +`func (o *Cluster) UnsetLastUsed()` + +UnsetLastUsed ensures that no value is present for LastUsed, not even an explicit nil +### GetMaintenance + +`func (o *Cluster) GetMaintenance() bool` + +GetMaintenance returns the Maintenance field if non-nil, zero value otherwise. + +### GetMaintenanceOk + +`func (o *Cluster) GetMaintenanceOk() (*bool, bool)` + +GetMaintenanceOk returns a tuple with the Maintenance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaintenance + +`func (o *Cluster) SetMaintenance(v bool)` + +SetMaintenance sets Maintenance field to given value. + +### HasMaintenance + +`func (o *Cluster) HasMaintenance() bool` + +HasMaintenance returns a boolean if a field has been set. + +### GetMgmtIp + +`func (o *Cluster) GetMgmtIp() string` + +GetMgmtIp returns the MgmtIp field if non-nil, zero value otherwise. + +### GetMgmtIpOk + +`func (o *Cluster) GetMgmtIpOk() (*string, bool)` + +GetMgmtIpOk returns a tuple with the MgmtIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMgmtIp + +`func (o *Cluster) SetMgmtIp(v string)` + +SetMgmtIp sets MgmtIp field to given value. + +### HasMgmtIp + +`func (o *Cluster) HasMgmtIp() bool` + +HasMgmtIp returns a boolean if a field has been set. + +### GetMgmtMac + +`func (o *Cluster) GetMgmtMac() string` + +GetMgmtMac returns the MgmtMac field if non-nil, zero value otherwise. + +### GetMgmtMacOk + +`func (o *Cluster) GetMgmtMacOk() (*string, bool)` + +GetMgmtMacOk returns a tuple with the MgmtMac field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMgmtMac + +`func (o *Cluster) SetMgmtMac(v string)` + +SetMgmtMac sets MgmtMac field to given value. + +### HasMgmtMac + +`func (o *Cluster) HasMgmtMac() bool` + +HasMgmtMac returns a boolean if a field has been set. + +### SetMgmtMacNil + +`func (o *Cluster) SetMgmtMacNil(b bool)` + + SetMgmtMacNil sets the value for MgmtMac to be an explicit nil + +### UnsetMgmtMac +`func (o *Cluster) UnsetMgmtMac()` + +UnsetMgmtMac ensures that no value is present for MgmtMac, not even an explicit nil +### GetModified + +`func (o *Cluster) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *Cluster) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *Cluster) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNetmask + +`func (o *Cluster) GetNetmask() int32` + +GetNetmask returns the Netmask field if non-nil, zero value otherwise. + +### GetNetmaskOk + +`func (o *Cluster) GetNetmaskOk() (*int32, bool)` + +GetNetmaskOk returns a tuple with the Netmask field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetmask + +`func (o *Cluster) SetNetmask(v int32)` + +SetNetmask sets Netmask field to given value. + +### HasNetmask + +`func (o *Cluster) HasNetmask() bool` + +HasNetmask returns a boolean if a field has been set. + +### SetNetmaskNil + +`func (o *Cluster) SetNetmaskNil(b bool)` + + SetNetmaskNil sets the value for Netmask to be an explicit nil + +### UnsetNetmask +`func (o *Cluster) UnsetNetmask()` + +UnsetNetmask ensures that no value is present for Netmask, not even an explicit nil +### GetNodeCount + +`func (o *Cluster) GetNodeCount() int32` + +GetNodeCount returns the NodeCount field if non-nil, zero value otherwise. + +### GetNodeCountOk + +`func (o *Cluster) 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 *Cluster) SetNodeCount(v int32)` + +SetNodeCount sets NodeCount field to given value. + +### HasNodeCount + +`func (o *Cluster) HasNodeCount() bool` + +HasNodeCount returns a boolean if a field has been set. + +### GetNodes + +`func (o *Cluster) GetNodes() []ClusterNodesInner` + +GetNodes returns the Nodes field if non-nil, zero value otherwise. + +### GetNodesOk + +`func (o *Cluster) GetNodesOk() (*[]ClusterNodesInner, 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 *Cluster) SetNodes(v []ClusterNodesInner)` + +SetNodes sets Nodes field to given value. + +### HasNodes + +`func (o *Cluster) HasNodes() bool` + +HasNodes returns a boolean if a field has been set. + +### GetNotes + +`func (o *Cluster) GetNotes() string` + +GetNotes returns the Notes field if non-nil, zero value otherwise. + +### GetNotesOk + +`func (o *Cluster) GetNotesOk() (*string, bool)` + +GetNotesOk returns a tuple with the Notes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotes + +`func (o *Cluster) SetNotes(v string)` + +SetNotes sets Notes field to given value. + +### HasNotes + +`func (o *Cluster) HasNotes() bool` + +HasNotes returns a boolean if a field has been set. + +### SetNotesNil + +`func (o *Cluster) SetNotesNil(b bool)` + + SetNotesNil sets the value for Notes to be an explicit nil + +### UnsetNotes +`func (o *Cluster) UnsetNotes()` + +UnsetNotes ensures that no value is present for Notes, not even an explicit nil +### GetPersist + +`func (o *Cluster) GetPersist() bool` + +GetPersist returns the Persist field if non-nil, zero value otherwise. + +### GetPersistOk + +`func (o *Cluster) GetPersistOk() (*bool, bool)` + +GetPersistOk returns a tuple with the Persist field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersist + +`func (o *Cluster) SetPersist(v bool)` + +SetPersist sets Persist field to given value. + +### HasPersist + +`func (o *Cluster) HasPersist() bool` + +HasPersist returns a boolean if a field has been set. + +### GetProviderCapacity + +`func (o *Cluster) GetProviderCapacity() bool` + +GetProviderCapacity returns the ProviderCapacity field if non-nil, zero value otherwise. + +### GetProviderCapacityOk + +`func (o *Cluster) GetProviderCapacityOk() (*bool, bool)` + +GetProviderCapacityOk returns a tuple with the ProviderCapacity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderCapacity + +`func (o *Cluster) SetProviderCapacity(v bool)` + +SetProviderCapacity sets ProviderCapacity field to given value. + + +### GetProvisionUser + +`func (o *Cluster) GetProvisionUser() string` + +GetProvisionUser returns the ProvisionUser field if non-nil, zero value otherwise. + +### GetProvisionUserOk + +`func (o *Cluster) GetProvisionUserOk() (*string, bool)` + +GetProvisionUserOk returns a tuple with the ProvisionUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvisionUser + +`func (o *Cluster) SetProvisionUser(v string)` + +SetProvisionUser sets ProvisionUser field to given value. + +### HasProvisionUser + +`func (o *Cluster) HasProvisionUser() bool` + +HasProvisionUser returns a boolean if a field has been set. + +### SetProvisionUserNil + +`func (o *Cluster) SetProvisionUserNil(b bool)` + + SetProvisionUserNil sets the value for ProvisionUser to be an explicit nil + +### UnsetProvisionUser +`func (o *Cluster) UnsetProvisionUser()` + +UnsetProvisionUser ensures that no value is present for ProvisionUser, not even an explicit nil +### GetProvisioningAttempts + +`func (o *Cluster) GetProvisioningAttempts() int32` + +GetProvisioningAttempts returns the ProvisioningAttempts field if non-nil, zero value otherwise. + +### GetProvisioningAttemptsOk + +`func (o *Cluster) GetProvisioningAttemptsOk() (*int32, bool)` + +GetProvisioningAttemptsOk returns a tuple with the ProvisioningAttempts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvisioningAttempts + +`func (o *Cluster) SetProvisioningAttempts(v int32)` + +SetProvisioningAttempts sets ProvisioningAttempts field to given value. + +### HasProvisioningAttempts + +`func (o *Cluster) HasProvisioningAttempts() bool` + +HasProvisioningAttempts returns a boolean if a field has been set. + +### GetProvisioningState + +`func (o *Cluster) GetProvisioningState() ProvisioningStateEnum` + +GetProvisioningState returns the ProvisioningState field if non-nil, zero value otherwise. + +### GetProvisioningStateOk + +`func (o *Cluster) GetProvisioningStateOk() (*ProvisioningStateEnum, bool)` + +GetProvisioningStateOk returns a tuple with the ProvisioningState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvisioningState + +`func (o *Cluster) SetProvisioningState(v ProvisioningStateEnum)` + +SetProvisioningState sets ProvisioningState field to given value. + +### HasProvisioningState + +`func (o *Cluster) HasProvisioningState() bool` + +HasProvisioningState returns a boolean if a field has been set. + +### GetPublicAddress + +`func (o *Cluster) GetPublicAddress() string` + +GetPublicAddress returns the PublicAddress field if non-nil, zero value otherwise. + +### GetPublicAddressOk + +`func (o *Cluster) GetPublicAddressOk() (*string, bool)` + +GetPublicAddressOk returns a tuple with the PublicAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicAddress + +`func (o *Cluster) SetPublicAddress(v string)` + +SetPublicAddress sets PublicAddress field to given value. + +### HasPublicAddress + +`func (o *Cluster) HasPublicAddress() bool` + +HasPublicAddress returns a boolean if a field has been set. + +### SetPublicAddressNil + +`func (o *Cluster) SetPublicAddressNil(b bool)` + + SetPublicAddressNil sets the value for PublicAddress to be an explicit nil + +### UnsetPublicAddress +`func (o *Cluster) UnsetPublicAddress()` + +UnsetPublicAddress ensures that no value is present for PublicAddress, not even an explicit nil +### GetRequestId + +`func (o *Cluster) GetRequestId() string` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *Cluster) GetRequestIdOk() (*string, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *Cluster) SetRequestId(v string)` + +SetRequestId sets RequestId field to given value. + +### HasRequestId + +`func (o *Cluster) HasRequestId() bool` + +HasRequestId returns a boolean if a field has been set. + +### SetRequestIdNil + +`func (o *Cluster) SetRequestIdNil(b bool)` + + SetRequestIdNil sets the value for RequestId to be an explicit nil + +### UnsetRequestId +`func (o *Cluster) UnsetRequestId()` + +UnsetRequestId ensures that no value is present for RequestId, not even an explicit nil +### GetReservation + +`func (o *Cluster) GetReservation() bool` + +GetReservation returns the Reservation field if non-nil, zero value otherwise. + +### GetReservationOk + +`func (o *Cluster) GetReservationOk() (*bool, bool)` + +GetReservationOk returns a tuple with the Reservation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReservation + +`func (o *Cluster) SetReservation(v bool)` + +SetReservation sets Reservation field to given value. + +### HasReservation + +`func (o *Cluster) HasReservation() bool` + +HasReservation returns a boolean if a field has been set. + +### GetTenantIds + +`func (o *Cluster) GetTenantIds() []string` + +GetTenantIds returns the TenantIds field if non-nil, zero value otherwise. + +### GetTenantIdsOk + +`func (o *Cluster) GetTenantIdsOk() (*[]string, bool)` + +GetTenantIdsOk returns a tuple with the TenantIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantIds + +`func (o *Cluster) SetTenantIds(v []string)` + +SetTenantIds sets TenantIds field to given value. + + +### GetVlanId + +`func (o *Cluster) GetVlanId() int32` + +GetVlanId returns the VlanId field if non-nil, zero value otherwise. + +### GetVlanIdOk + +`func (o *Cluster) GetVlanIdOk() (*int32, bool)` + +GetVlanIdOk returns a tuple with the VlanId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanId + +`func (o *Cluster) SetVlanId(v int32)` + +SetVlanId sets VlanId field to given value. + +### HasVlanId + +`func (o *Cluster) HasVlanId() bool` + +HasVlanId returns a boolean if a field has been set. + +### GetWorkshop + +`func (o *Cluster) GetWorkshop() bool` + +GetWorkshop returns the Workshop field if non-nil, zero value otherwise. + +### GetWorkshopOk + +`func (o *Cluster) GetWorkshopOk() (*bool, bool)` + +GetWorkshopOk returns a tuple with the Workshop field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshop + +`func (o *Cluster) SetWorkshop(v bool)` + +SetWorkshop sets Workshop field to given value. + +### HasWorkshop + +`func (o *Cluster) HasWorkshop() bool` + +HasWorkshop returns a boolean if a field has been set. + +### GetWorkshopId + +`func (o *Cluster) GetWorkshopId() string` + +GetWorkshopId returns the WorkshopId field if non-nil, zero value otherwise. + +### GetWorkshopIdOk + +`func (o *Cluster) GetWorkshopIdOk() (*string, bool)` + +GetWorkshopIdOk returns a tuple with the WorkshopId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshopId + +`func (o *Cluster) SetWorkshopId(v string)` + +SetWorkshopId sets WorkshopId field to given value. + +### HasWorkshopId + +`func (o *Cluster) HasWorkshopId() bool` + +HasWorkshopId returns a boolean if a field has been set. + +### SetWorkshopIdNil + +`func (o *Cluster) SetWorkshopIdNil(b bool)` + + SetWorkshopIdNil sets the value for WorkshopId to be an explicit nil + +### UnsetWorkshopId +`func (o *Cluster) UnsetWorkshopId()` + +UnsetWorkshopId ensures that no value is present for WorkshopId, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/ClusterBulkUpdate.md b/v1/providers/launchpad/gen/launchpad/docs/ClusterBulkUpdate.md new file mode 100644 index 0000000..b81eba8 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/ClusterBulkUpdate.md @@ -0,0 +1,986 @@ +# ClusterBulkUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Available** | **bool** | Is the cluster currently available for provisioning? | [readonly] +**BastionName** | Pointer to **NullableString** | Name of the bastion assigned to the cluster | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Deployment** | [**ClusterDeployment**](ClusterDeployment.md) | | +**Enabled** | Pointer to **bool** | Is the cluster administratively enabled? | [optional] +**Experience** | Pointer to **NullableString** | Experience provisioned onto this cluster | [optional] +**FreeBy** | Pointer to **NullableTime** | | [optional] +**Gpus** | [**[]ClusterGpusInner**](ClusterGpusInner.md) | | +**GpuAlias** | **string** | Alias for GPU plan (i.e. installed GPU type and count) | [readonly] +**GpuCount** | **int32** | | [readonly] +**Id** | **string** | | [readonly] +**Instances** | [**[]ClusterInstancesInner**](ClusterInstancesInner.md) | | +**LastUsed** | **NullableTime** | Timestamp of when the cluster was last in use | [readonly] +**Maintenance** | Pointer to **bool** | Is the cluster in maintenance mode? | [optional] +**MgmtIp** | Pointer to **string** | Management IP address | [optional] +**MgmtMac** | Pointer to **NullableString** | Management MAC address | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**Netmask** | Pointer to **NullableInt32** | The subnet mask of the cluster's public IP address in CIDR notation | [optional] +**NodeCount** | **int32** | | [readonly] +**Nodes** | Pointer to [**[]ClusterNodesInner**](ClusterNodesInner.md) | | [optional] +**Notes** | Pointer to **NullableString** | Administrative comments about the cluster | [optional] +**Persist** | Pointer to **bool** | Is the cluster exempt from provisioning_state timeouts? Can be used to ensure the cluster persists after a provisioning failure. | [optional] +**ProviderCapacity** | **bool** | Does the provider have capacity to provision this cluster? | [readonly] +**ProvisionUser** | Pointer to **NullableString** | Username used for provisioning this cluster | [optional] +**ProvisioningAttempts** | Pointer to **int32** | The number of attempts that have been made to provision this cluster. Automatically resets to 0 after successful provisioning. | [optional] +**ProvisioningState** | Pointer to [**ProvisioningStateEnum**](ProvisioningStateEnum.md) | Is the cluster currently provisioned? * `deployed` - Cluster is in use by a deployment * `deploying` - Provisioning is in progress * `destroying` - Cluster is being destroyed * `pending` - Provisioning will begin soon * `ready` - Provisioning has completed and is ready for a deployment * `reserved` - Cluster is unprovisioned but reserved for later use * `unprovisioned` - Cluster has not yet been provisioned | [optional] +**PublicAddress** | **NullableString** | Public IP address or fully-qualified domain name of this cluster | [readonly] +**RequestId** | **NullableString** | The request ID for the lab that is currently provisioned on this cluster (ex: TRY-1234) | [readonly] +**Reservation** | Pointer to **bool** | Is the cluster a static reservation from its provider? | [optional] +**TenantIds** | **[]string** | Tenant UUID(s) that have been generated for this cluster during provisioning | +**VlanId** | Pointer to **int32** | VLAN number | [optional] +**Workshop** | Pointer to **bool** | Is the cluster set aside for use in a workshop? | [optional] +**WorkshopId** | Pointer to **NullableString** | Identifier of the workshop this cluster is set aside for | [optional] +**Count** | **int32** | | [readonly] +**Ids** | **[]string** | | +**Result** | **string** | | [readonly] + +## Methods + +### NewClusterBulkUpdate + +`func NewClusterBulkUpdate(available bool, created time.Time, deployment ClusterDeployment, gpus []ClusterGpusInner, gpuAlias string, gpuCount int32, id string, instances []ClusterInstancesInner, lastUsed NullableTime, modified time.Time, nodeCount int32, providerCapacity bool, publicAddress NullableString, requestId NullableString, tenantIds []string, count int32, ids []string, result string, ) *ClusterBulkUpdate` + +NewClusterBulkUpdate instantiates a new ClusterBulkUpdate 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 + +### NewClusterBulkUpdateWithDefaults + +`func NewClusterBulkUpdateWithDefaults() *ClusterBulkUpdate` + +NewClusterBulkUpdateWithDefaults instantiates a new ClusterBulkUpdate 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 + +### GetAvailable + +`func (o *ClusterBulkUpdate) GetAvailable() bool` + +GetAvailable returns the Available field if non-nil, zero value otherwise. + +### GetAvailableOk + +`func (o *ClusterBulkUpdate) GetAvailableOk() (*bool, bool)` + +GetAvailableOk returns a tuple with the Available field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailable + +`func (o *ClusterBulkUpdate) SetAvailable(v bool)` + +SetAvailable sets Available field to given value. + + +### GetBastionName + +`func (o *ClusterBulkUpdate) GetBastionName() string` + +GetBastionName returns the BastionName field if non-nil, zero value otherwise. + +### GetBastionNameOk + +`func (o *ClusterBulkUpdate) GetBastionNameOk() (*string, bool)` + +GetBastionNameOk returns a tuple with the BastionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBastionName + +`func (o *ClusterBulkUpdate) SetBastionName(v string)` + +SetBastionName sets BastionName field to given value. + +### HasBastionName + +`func (o *ClusterBulkUpdate) HasBastionName() bool` + +HasBastionName returns a boolean if a field has been set. + +### SetBastionNameNil + +`func (o *ClusterBulkUpdate) SetBastionNameNil(b bool)` + + SetBastionNameNil sets the value for BastionName to be an explicit nil + +### UnsetBastionName +`func (o *ClusterBulkUpdate) UnsetBastionName()` + +UnsetBastionName ensures that no value is present for BastionName, not even an explicit nil +### GetCreated + +`func (o *ClusterBulkUpdate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ClusterBulkUpdate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ClusterBulkUpdate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetDeployment + +`func (o *ClusterBulkUpdate) GetDeployment() ClusterDeployment` + +GetDeployment returns the Deployment field if non-nil, zero value otherwise. + +### GetDeploymentOk + +`func (o *ClusterBulkUpdate) GetDeploymentOk() (*ClusterDeployment, bool)` + +GetDeploymentOk returns a tuple with the Deployment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployment + +`func (o *ClusterBulkUpdate) SetDeployment(v ClusterDeployment)` + +SetDeployment sets Deployment field to given value. + + +### GetEnabled + +`func (o *ClusterBulkUpdate) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *ClusterBulkUpdate) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *ClusterBulkUpdate) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *ClusterBulkUpdate) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetExperience + +`func (o *ClusterBulkUpdate) GetExperience() string` + +GetExperience returns the Experience field if non-nil, zero value otherwise. + +### GetExperienceOk + +`func (o *ClusterBulkUpdate) GetExperienceOk() (*string, bool)` + +GetExperienceOk returns a tuple with the Experience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperience + +`func (o *ClusterBulkUpdate) SetExperience(v string)` + +SetExperience sets Experience field to given value. + +### HasExperience + +`func (o *ClusterBulkUpdate) HasExperience() bool` + +HasExperience returns a boolean if a field has been set. + +### SetExperienceNil + +`func (o *ClusterBulkUpdate) SetExperienceNil(b bool)` + + SetExperienceNil sets the value for Experience to be an explicit nil + +### UnsetExperience +`func (o *ClusterBulkUpdate) UnsetExperience()` + +UnsetExperience ensures that no value is present for Experience, not even an explicit nil +### GetFreeBy + +`func (o *ClusterBulkUpdate) GetFreeBy() time.Time` + +GetFreeBy returns the FreeBy field if non-nil, zero value otherwise. + +### GetFreeByOk + +`func (o *ClusterBulkUpdate) GetFreeByOk() (*time.Time, bool)` + +GetFreeByOk returns a tuple with the FreeBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFreeBy + +`func (o *ClusterBulkUpdate) SetFreeBy(v time.Time)` + +SetFreeBy sets FreeBy field to given value. + +### HasFreeBy + +`func (o *ClusterBulkUpdate) HasFreeBy() bool` + +HasFreeBy returns a boolean if a field has been set. + +### SetFreeByNil + +`func (o *ClusterBulkUpdate) SetFreeByNil(b bool)` + + SetFreeByNil sets the value for FreeBy to be an explicit nil + +### UnsetFreeBy +`func (o *ClusterBulkUpdate) UnsetFreeBy()` + +UnsetFreeBy ensures that no value is present for FreeBy, not even an explicit nil +### GetGpus + +`func (o *ClusterBulkUpdate) GetGpus() []ClusterGpusInner` + +GetGpus returns the Gpus field if non-nil, zero value otherwise. + +### GetGpusOk + +`func (o *ClusterBulkUpdate) GetGpusOk() (*[]ClusterGpusInner, bool)` + +GetGpusOk returns a tuple with the Gpus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpus + +`func (o *ClusterBulkUpdate) SetGpus(v []ClusterGpusInner)` + +SetGpus sets Gpus field to given value. + + +### GetGpuAlias + +`func (o *ClusterBulkUpdate) GetGpuAlias() string` + +GetGpuAlias returns the GpuAlias field if non-nil, zero value otherwise. + +### GetGpuAliasOk + +`func (o *ClusterBulkUpdate) GetGpuAliasOk() (*string, bool)` + +GetGpuAliasOk returns a tuple with the GpuAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuAlias + +`func (o *ClusterBulkUpdate) SetGpuAlias(v string)` + +SetGpuAlias sets GpuAlias field to given value. + + +### GetGpuCount + +`func (o *ClusterBulkUpdate) GetGpuCount() int32` + +GetGpuCount returns the GpuCount field if non-nil, zero value otherwise. + +### GetGpuCountOk + +`func (o *ClusterBulkUpdate) GetGpuCountOk() (*int32, bool)` + +GetGpuCountOk returns a tuple with the GpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuCount + +`func (o *ClusterBulkUpdate) SetGpuCount(v int32)` + +SetGpuCount sets GpuCount field to given value. + + +### GetId + +`func (o *ClusterBulkUpdate) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ClusterBulkUpdate) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ClusterBulkUpdate) SetId(v string)` + +SetId sets Id field to given value. + + +### GetInstances + +`func (o *ClusterBulkUpdate) GetInstances() []ClusterInstancesInner` + +GetInstances returns the Instances field if non-nil, zero value otherwise. + +### GetInstancesOk + +`func (o *ClusterBulkUpdate) GetInstancesOk() (*[]ClusterInstancesInner, bool)` + +GetInstancesOk returns a tuple with the Instances field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstances + +`func (o *ClusterBulkUpdate) SetInstances(v []ClusterInstancesInner)` + +SetInstances sets Instances field to given value. + + +### GetLastUsed + +`func (o *ClusterBulkUpdate) GetLastUsed() time.Time` + +GetLastUsed returns the LastUsed field if non-nil, zero value otherwise. + +### GetLastUsedOk + +`func (o *ClusterBulkUpdate) GetLastUsedOk() (*time.Time, bool)` + +GetLastUsedOk returns a tuple with the LastUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUsed + +`func (o *ClusterBulkUpdate) SetLastUsed(v time.Time)` + +SetLastUsed sets LastUsed field to given value. + + +### SetLastUsedNil + +`func (o *ClusterBulkUpdate) SetLastUsedNil(b bool)` + + SetLastUsedNil sets the value for LastUsed to be an explicit nil + +### UnsetLastUsed +`func (o *ClusterBulkUpdate) UnsetLastUsed()` + +UnsetLastUsed ensures that no value is present for LastUsed, not even an explicit nil +### GetMaintenance + +`func (o *ClusterBulkUpdate) GetMaintenance() bool` + +GetMaintenance returns the Maintenance field if non-nil, zero value otherwise. + +### GetMaintenanceOk + +`func (o *ClusterBulkUpdate) GetMaintenanceOk() (*bool, bool)` + +GetMaintenanceOk returns a tuple with the Maintenance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaintenance + +`func (o *ClusterBulkUpdate) SetMaintenance(v bool)` + +SetMaintenance sets Maintenance field to given value. + +### HasMaintenance + +`func (o *ClusterBulkUpdate) HasMaintenance() bool` + +HasMaintenance returns a boolean if a field has been set. + +### GetMgmtIp + +`func (o *ClusterBulkUpdate) GetMgmtIp() string` + +GetMgmtIp returns the MgmtIp field if non-nil, zero value otherwise. + +### GetMgmtIpOk + +`func (o *ClusterBulkUpdate) GetMgmtIpOk() (*string, bool)` + +GetMgmtIpOk returns a tuple with the MgmtIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMgmtIp + +`func (o *ClusterBulkUpdate) SetMgmtIp(v string)` + +SetMgmtIp sets MgmtIp field to given value. + +### HasMgmtIp + +`func (o *ClusterBulkUpdate) HasMgmtIp() bool` + +HasMgmtIp returns a boolean if a field has been set. + +### GetMgmtMac + +`func (o *ClusterBulkUpdate) GetMgmtMac() string` + +GetMgmtMac returns the MgmtMac field if non-nil, zero value otherwise. + +### GetMgmtMacOk + +`func (o *ClusterBulkUpdate) GetMgmtMacOk() (*string, bool)` + +GetMgmtMacOk returns a tuple with the MgmtMac field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMgmtMac + +`func (o *ClusterBulkUpdate) SetMgmtMac(v string)` + +SetMgmtMac sets MgmtMac field to given value. + +### HasMgmtMac + +`func (o *ClusterBulkUpdate) HasMgmtMac() bool` + +HasMgmtMac returns a boolean if a field has been set. + +### SetMgmtMacNil + +`func (o *ClusterBulkUpdate) SetMgmtMacNil(b bool)` + + SetMgmtMacNil sets the value for MgmtMac to be an explicit nil + +### UnsetMgmtMac +`func (o *ClusterBulkUpdate) UnsetMgmtMac()` + +UnsetMgmtMac ensures that no value is present for MgmtMac, not even an explicit nil +### GetModified + +`func (o *ClusterBulkUpdate) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *ClusterBulkUpdate) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *ClusterBulkUpdate) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNetmask + +`func (o *ClusterBulkUpdate) GetNetmask() int32` + +GetNetmask returns the Netmask field if non-nil, zero value otherwise. + +### GetNetmaskOk + +`func (o *ClusterBulkUpdate) GetNetmaskOk() (*int32, bool)` + +GetNetmaskOk returns a tuple with the Netmask field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetmask + +`func (o *ClusterBulkUpdate) SetNetmask(v int32)` + +SetNetmask sets Netmask field to given value. + +### HasNetmask + +`func (o *ClusterBulkUpdate) HasNetmask() bool` + +HasNetmask returns a boolean if a field has been set. + +### SetNetmaskNil + +`func (o *ClusterBulkUpdate) SetNetmaskNil(b bool)` + + SetNetmaskNil sets the value for Netmask to be an explicit nil + +### UnsetNetmask +`func (o *ClusterBulkUpdate) UnsetNetmask()` + +UnsetNetmask ensures that no value is present for Netmask, not even an explicit nil +### GetNodeCount + +`func (o *ClusterBulkUpdate) GetNodeCount() int32` + +GetNodeCount returns the NodeCount field if non-nil, zero value otherwise. + +### GetNodeCountOk + +`func (o *ClusterBulkUpdate) 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 *ClusterBulkUpdate) SetNodeCount(v int32)` + +SetNodeCount sets NodeCount field to given value. + + +### GetNodes + +`func (o *ClusterBulkUpdate) GetNodes() []ClusterNodesInner` + +GetNodes returns the Nodes field if non-nil, zero value otherwise. + +### GetNodesOk + +`func (o *ClusterBulkUpdate) GetNodesOk() (*[]ClusterNodesInner, 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 *ClusterBulkUpdate) SetNodes(v []ClusterNodesInner)` + +SetNodes sets Nodes field to given value. + +### HasNodes + +`func (o *ClusterBulkUpdate) HasNodes() bool` + +HasNodes returns a boolean if a field has been set. + +### GetNotes + +`func (o *ClusterBulkUpdate) GetNotes() string` + +GetNotes returns the Notes field if non-nil, zero value otherwise. + +### GetNotesOk + +`func (o *ClusterBulkUpdate) GetNotesOk() (*string, bool)` + +GetNotesOk returns a tuple with the Notes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotes + +`func (o *ClusterBulkUpdate) SetNotes(v string)` + +SetNotes sets Notes field to given value. + +### HasNotes + +`func (o *ClusterBulkUpdate) HasNotes() bool` + +HasNotes returns a boolean if a field has been set. + +### SetNotesNil + +`func (o *ClusterBulkUpdate) SetNotesNil(b bool)` + + SetNotesNil sets the value for Notes to be an explicit nil + +### UnsetNotes +`func (o *ClusterBulkUpdate) UnsetNotes()` + +UnsetNotes ensures that no value is present for Notes, not even an explicit nil +### GetPersist + +`func (o *ClusterBulkUpdate) GetPersist() bool` + +GetPersist returns the Persist field if non-nil, zero value otherwise. + +### GetPersistOk + +`func (o *ClusterBulkUpdate) GetPersistOk() (*bool, bool)` + +GetPersistOk returns a tuple with the Persist field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersist + +`func (o *ClusterBulkUpdate) SetPersist(v bool)` + +SetPersist sets Persist field to given value. + +### HasPersist + +`func (o *ClusterBulkUpdate) HasPersist() bool` + +HasPersist returns a boolean if a field has been set. + +### GetProviderCapacity + +`func (o *ClusterBulkUpdate) GetProviderCapacity() bool` + +GetProviderCapacity returns the ProviderCapacity field if non-nil, zero value otherwise. + +### GetProviderCapacityOk + +`func (o *ClusterBulkUpdate) GetProviderCapacityOk() (*bool, bool)` + +GetProviderCapacityOk returns a tuple with the ProviderCapacity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderCapacity + +`func (o *ClusterBulkUpdate) SetProviderCapacity(v bool)` + +SetProviderCapacity sets ProviderCapacity field to given value. + + +### GetProvisionUser + +`func (o *ClusterBulkUpdate) GetProvisionUser() string` + +GetProvisionUser returns the ProvisionUser field if non-nil, zero value otherwise. + +### GetProvisionUserOk + +`func (o *ClusterBulkUpdate) GetProvisionUserOk() (*string, bool)` + +GetProvisionUserOk returns a tuple with the ProvisionUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvisionUser + +`func (o *ClusterBulkUpdate) SetProvisionUser(v string)` + +SetProvisionUser sets ProvisionUser field to given value. + +### HasProvisionUser + +`func (o *ClusterBulkUpdate) HasProvisionUser() bool` + +HasProvisionUser returns a boolean if a field has been set. + +### SetProvisionUserNil + +`func (o *ClusterBulkUpdate) SetProvisionUserNil(b bool)` + + SetProvisionUserNil sets the value for ProvisionUser to be an explicit nil + +### UnsetProvisionUser +`func (o *ClusterBulkUpdate) UnsetProvisionUser()` + +UnsetProvisionUser ensures that no value is present for ProvisionUser, not even an explicit nil +### GetProvisioningAttempts + +`func (o *ClusterBulkUpdate) GetProvisioningAttempts() int32` + +GetProvisioningAttempts returns the ProvisioningAttempts field if non-nil, zero value otherwise. + +### GetProvisioningAttemptsOk + +`func (o *ClusterBulkUpdate) GetProvisioningAttemptsOk() (*int32, bool)` + +GetProvisioningAttemptsOk returns a tuple with the ProvisioningAttempts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvisioningAttempts + +`func (o *ClusterBulkUpdate) SetProvisioningAttempts(v int32)` + +SetProvisioningAttempts sets ProvisioningAttempts field to given value. + +### HasProvisioningAttempts + +`func (o *ClusterBulkUpdate) HasProvisioningAttempts() bool` + +HasProvisioningAttempts returns a boolean if a field has been set. + +### GetProvisioningState + +`func (o *ClusterBulkUpdate) GetProvisioningState() ProvisioningStateEnum` + +GetProvisioningState returns the ProvisioningState field if non-nil, zero value otherwise. + +### GetProvisioningStateOk + +`func (o *ClusterBulkUpdate) GetProvisioningStateOk() (*ProvisioningStateEnum, bool)` + +GetProvisioningStateOk returns a tuple with the ProvisioningState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvisioningState + +`func (o *ClusterBulkUpdate) SetProvisioningState(v ProvisioningStateEnum)` + +SetProvisioningState sets ProvisioningState field to given value. + +### HasProvisioningState + +`func (o *ClusterBulkUpdate) HasProvisioningState() bool` + +HasProvisioningState returns a boolean if a field has been set. + +### GetPublicAddress + +`func (o *ClusterBulkUpdate) GetPublicAddress() string` + +GetPublicAddress returns the PublicAddress field if non-nil, zero value otherwise. + +### GetPublicAddressOk + +`func (o *ClusterBulkUpdate) GetPublicAddressOk() (*string, bool)` + +GetPublicAddressOk returns a tuple with the PublicAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicAddress + +`func (o *ClusterBulkUpdate) SetPublicAddress(v string)` + +SetPublicAddress sets PublicAddress field to given value. + + +### SetPublicAddressNil + +`func (o *ClusterBulkUpdate) SetPublicAddressNil(b bool)` + + SetPublicAddressNil sets the value for PublicAddress to be an explicit nil + +### UnsetPublicAddress +`func (o *ClusterBulkUpdate) UnsetPublicAddress()` + +UnsetPublicAddress ensures that no value is present for PublicAddress, not even an explicit nil +### GetRequestId + +`func (o *ClusterBulkUpdate) GetRequestId() string` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *ClusterBulkUpdate) GetRequestIdOk() (*string, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *ClusterBulkUpdate) SetRequestId(v string)` + +SetRequestId sets RequestId field to given value. + + +### SetRequestIdNil + +`func (o *ClusterBulkUpdate) SetRequestIdNil(b bool)` + + SetRequestIdNil sets the value for RequestId to be an explicit nil + +### UnsetRequestId +`func (o *ClusterBulkUpdate) UnsetRequestId()` + +UnsetRequestId ensures that no value is present for RequestId, not even an explicit nil +### GetReservation + +`func (o *ClusterBulkUpdate) GetReservation() bool` + +GetReservation returns the Reservation field if non-nil, zero value otherwise. + +### GetReservationOk + +`func (o *ClusterBulkUpdate) GetReservationOk() (*bool, bool)` + +GetReservationOk returns a tuple with the Reservation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReservation + +`func (o *ClusterBulkUpdate) SetReservation(v bool)` + +SetReservation sets Reservation field to given value. + +### HasReservation + +`func (o *ClusterBulkUpdate) HasReservation() bool` + +HasReservation returns a boolean if a field has been set. + +### GetTenantIds + +`func (o *ClusterBulkUpdate) GetTenantIds() []string` + +GetTenantIds returns the TenantIds field if non-nil, zero value otherwise. + +### GetTenantIdsOk + +`func (o *ClusterBulkUpdate) GetTenantIdsOk() (*[]string, bool)` + +GetTenantIdsOk returns a tuple with the TenantIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantIds + +`func (o *ClusterBulkUpdate) SetTenantIds(v []string)` + +SetTenantIds sets TenantIds field to given value. + + +### GetVlanId + +`func (o *ClusterBulkUpdate) GetVlanId() int32` + +GetVlanId returns the VlanId field if non-nil, zero value otherwise. + +### GetVlanIdOk + +`func (o *ClusterBulkUpdate) GetVlanIdOk() (*int32, bool)` + +GetVlanIdOk returns a tuple with the VlanId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanId + +`func (o *ClusterBulkUpdate) SetVlanId(v int32)` + +SetVlanId sets VlanId field to given value. + +### HasVlanId + +`func (o *ClusterBulkUpdate) HasVlanId() bool` + +HasVlanId returns a boolean if a field has been set. + +### GetWorkshop + +`func (o *ClusterBulkUpdate) GetWorkshop() bool` + +GetWorkshop returns the Workshop field if non-nil, zero value otherwise. + +### GetWorkshopOk + +`func (o *ClusterBulkUpdate) GetWorkshopOk() (*bool, bool)` + +GetWorkshopOk returns a tuple with the Workshop field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshop + +`func (o *ClusterBulkUpdate) SetWorkshop(v bool)` + +SetWorkshop sets Workshop field to given value. + +### HasWorkshop + +`func (o *ClusterBulkUpdate) HasWorkshop() bool` + +HasWorkshop returns a boolean if a field has been set. + +### GetWorkshopId + +`func (o *ClusterBulkUpdate) GetWorkshopId() string` + +GetWorkshopId returns the WorkshopId field if non-nil, zero value otherwise. + +### GetWorkshopIdOk + +`func (o *ClusterBulkUpdate) GetWorkshopIdOk() (*string, bool)` + +GetWorkshopIdOk returns a tuple with the WorkshopId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshopId + +`func (o *ClusterBulkUpdate) SetWorkshopId(v string)` + +SetWorkshopId sets WorkshopId field to given value. + +### HasWorkshopId + +`func (o *ClusterBulkUpdate) HasWorkshopId() bool` + +HasWorkshopId returns a boolean if a field has been set. + +### SetWorkshopIdNil + +`func (o *ClusterBulkUpdate) SetWorkshopIdNil(b bool)` + + SetWorkshopIdNil sets the value for WorkshopId to be an explicit nil + +### UnsetWorkshopId +`func (o *ClusterBulkUpdate) UnsetWorkshopId()` + +UnsetWorkshopId ensures that no value is present for WorkshopId, not even an explicit nil +### GetCount + +`func (o *ClusterBulkUpdate) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ClusterBulkUpdate) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ClusterBulkUpdate) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetIds + +`func (o *ClusterBulkUpdate) GetIds() []string` + +GetIds returns the Ids field if non-nil, zero value otherwise. + +### GetIdsOk + +`func (o *ClusterBulkUpdate) GetIdsOk() (*[]string, bool)` + +GetIdsOk returns a tuple with the Ids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIds + +`func (o *ClusterBulkUpdate) SetIds(v []string)` + +SetIds sets Ids field to given value. + + +### GetResult + +`func (o *ClusterBulkUpdate) GetResult() string` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *ClusterBulkUpdate) GetResultOk() (*string, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *ClusterBulkUpdate) SetResult(v string)` + +SetResult sets Result field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/ClusterDeployment.md b/v1/providers/launchpad/gen/launchpad/docs/ClusterDeployment.md new file mode 100644 index 0000000..7cd8dc3 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/ClusterDeployment.md @@ -0,0 +1,1389 @@ +# ClusterDeployment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BastionOperatingSystem** | Pointer to **string** | Override bastion operating system provisioned and/or configured by Liftoff | [optional] +**CatalogId** | Pointer to **string** | Unique ID for this experience in the sales catalog. Must be unique. | [optional] +**CatalogIdAlias** | Pointer to **string** | Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique. | [optional] +**Cluster** | Pointer to [**DeploymentCluster**](DeploymentCluster.md) | | [optional] +**CollectionBranch** | Pointer to **string** | Override the Ansible collection branch initialized within the pipeline | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Experience** | Pointer to [**DeploymentExperience**](DeploymentExperience.md) | | [optional] +**ExperienceBranch** | Pointer to **string** | Override the experience branch | [optional] +**ExperienceId** | Pointer to **string** | | [optional] +**ExpiresAt** | Pointer to **time.Time** | | [optional] +**FlightcontrolRelease** | Pointer to **string** | Override the image tag used for Flight Control | [optional] +**GarageId** | Pointer to **string** | Require a cluster with nodes in the given garage | [optional] +**GcBranch** | Pointer to **string** | Override the default Ground Control branch | [optional] +**GpuAlias** | Pointer to **string** | Require a cluster with the given GPU alias | [optional] +**GpuCount** | Pointer to **int32** | Require a cluster with the given number of GPUs | [optional] +**GpuModel** | Pointer to **string** | Require a cluster with the given GPU model | [optional] +**GpuOsName** | Pointer to **string** | | [optional] +**GpuOsRelease** | Pointer to **string** | | [optional] +**GpuOsVersion** | Pointer to **string** | | [optional] +**Id** | **string** | | [readonly] +**IpAllowlist** | Pointer to **[]string** | Host IP addresses that should be allowed to access the deployment | [optional] +**Lifetime** | Pointer to **int32** | Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. | [optional] +**MinGpuCount** | Pointer to **int32** | Require a cluster whose GPU count is greater than or equal to the given number | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**NodeCount** | Pointer to **int32** | Require a cluster with the given number of nodes | [optional] +**OemName** | Pointer to **string** | Require a cluster manufactured by the given OEM name | [optional] +**OrgName** | **string** | Requester's organization name | +**Overrides** | **interface{}** | | +**PersistOnFailure** | Pointer to **bool** | Override the default cleanup/destroy behavior when a provisioning failure occurs | [optional] +**Persona** | Pointer to **string** | | [optional] +**Pipeline** | Pointer to **int64** | Override the pipeline ID that will be triggered for request fulfillment | [optional] +**PipelineBranch** | Pointer to **string** | Override the default pipeline branch ref used when triggering a Fuselage pipeline | [optional] +**Pipelines** | **[]string** | | +**Platform** | Pointer to [**PlatformEnum**](PlatformEnum.md) | | [optional] +**Priority** | Pointer to [**PriorityEnum**](PriorityEnum.md) | Priority level for the request * `p0` - p0 * `p1` - p1 * `p2` - p2 * `p3` - p3 | [optional] +**ProviderName** | Pointer to **string** | Require a cluster from the given provider name | [optional] +**PublicKey** | Pointer to **string** | The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. | [optional] +**Region** | Pointer to **string** | Require a cluster located in the given region | [optional] +**RequestId** | Pointer to **string** | Trial request ID (ex: TRY-1234) | [optional] +**RequesterEmail** | **string** | Email address of the user requesting the experience | +**RequesterName** | **string** | Name of the user requesting the experience | +**RetryCount** | **int32** | Number of times the deployment has been retried | [readonly] +**SalesCreatedDate** | Pointer to **time.Time** | | [optional] +**SalesId** | Pointer to **string** | Unique identifier for the requester's sales relationship | [optional] +**SalesOwnerEmail** | Pointer to **string** | Email address of the sales contact associated with the requester | [optional] +**SalesOwnerName** | Pointer to **string** | Name of the sales contact associated with the requester | [optional] +**Services** | **[]string** | | +**SshPort** | **int32** | | [readonly] +**SshUser** | **string** | | [readonly] +**State** | [**DeploymentState**](DeploymentState.md) | Current state of the deployment * `destroyed` - Deployment has been fully destroyed * `destroying` - Deployment is being destroyed * `error` - Deployment has encountered a fatal error and will not be retried * `failed` - Deployment has failed but may be retried * `paused` - Deployment is paused but may be retried later * `ready` - Deployment is ready and all instances are running * `retrying` - Deployment is retrying * `starting` - Deployment instances are starting * `stopped` - Deployment instances are stopped * `stopping` - Deployment instances are stopping * `waiting` - Waiting for deployment to be ready | [readonly] +**Tags** | Pointer to **interface{}** | | [optional] +**Workshop** | Pointer to **bool** | Require a cluster whose workshop flag is set | [optional] +**WorkshopId** | Pointer to **string** | Require a cluster with the given workshop ID | [optional] +**WorkshopOverridePassword** | Pointer to **string** | Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) | [optional] + +## Methods + +### NewClusterDeployment + +`func NewClusterDeployment(created time.Time, id string, modified time.Time, orgName string, overrides interface{}, pipelines []string, requesterEmail string, requesterName string, retryCount int32, services []string, sshPort int32, sshUser string, state DeploymentState, ) *ClusterDeployment` + +NewClusterDeployment instantiates a new ClusterDeployment 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 + +### NewClusterDeploymentWithDefaults + +`func NewClusterDeploymentWithDefaults() *ClusterDeployment` + +NewClusterDeploymentWithDefaults instantiates a new ClusterDeployment 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 + +### GetBastionOperatingSystem + +`func (o *ClusterDeployment) GetBastionOperatingSystem() string` + +GetBastionOperatingSystem returns the BastionOperatingSystem field if non-nil, zero value otherwise. + +### GetBastionOperatingSystemOk + +`func (o *ClusterDeployment) GetBastionOperatingSystemOk() (*string, bool)` + +GetBastionOperatingSystemOk returns a tuple with the BastionOperatingSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBastionOperatingSystem + +`func (o *ClusterDeployment) SetBastionOperatingSystem(v string)` + +SetBastionOperatingSystem sets BastionOperatingSystem field to given value. + +### HasBastionOperatingSystem + +`func (o *ClusterDeployment) HasBastionOperatingSystem() bool` + +HasBastionOperatingSystem returns a boolean if a field has been set. + +### GetCatalogId + +`func (o *ClusterDeployment) GetCatalogId() string` + +GetCatalogId returns the CatalogId field if non-nil, zero value otherwise. + +### GetCatalogIdOk + +`func (o *ClusterDeployment) GetCatalogIdOk() (*string, bool)` + +GetCatalogIdOk returns a tuple with the CatalogId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogId + +`func (o *ClusterDeployment) SetCatalogId(v string)` + +SetCatalogId sets CatalogId field to given value. + +### HasCatalogId + +`func (o *ClusterDeployment) HasCatalogId() bool` + +HasCatalogId returns a boolean if a field has been set. + +### GetCatalogIdAlias + +`func (o *ClusterDeployment) GetCatalogIdAlias() string` + +GetCatalogIdAlias returns the CatalogIdAlias field if non-nil, zero value otherwise. + +### GetCatalogIdAliasOk + +`func (o *ClusterDeployment) GetCatalogIdAliasOk() (*string, bool)` + +GetCatalogIdAliasOk returns a tuple with the CatalogIdAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogIdAlias + +`func (o *ClusterDeployment) SetCatalogIdAlias(v string)` + +SetCatalogIdAlias sets CatalogIdAlias field to given value. + +### HasCatalogIdAlias + +`func (o *ClusterDeployment) HasCatalogIdAlias() bool` + +HasCatalogIdAlias returns a boolean if a field has been set. + +### GetCluster + +`func (o *ClusterDeployment) GetCluster() DeploymentCluster` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *ClusterDeployment) GetClusterOk() (*DeploymentCluster, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *ClusterDeployment) SetCluster(v DeploymentCluster)` + +SetCluster sets Cluster field to given value. + +### HasCluster + +`func (o *ClusterDeployment) HasCluster() bool` + +HasCluster returns a boolean if a field has been set. + +### GetCollectionBranch + +`func (o *ClusterDeployment) GetCollectionBranch() string` + +GetCollectionBranch returns the CollectionBranch field if non-nil, zero value otherwise. + +### GetCollectionBranchOk + +`func (o *ClusterDeployment) GetCollectionBranchOk() (*string, bool)` + +GetCollectionBranchOk returns a tuple with the CollectionBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionBranch + +`func (o *ClusterDeployment) SetCollectionBranch(v string)` + +SetCollectionBranch sets CollectionBranch field to given value. + +### HasCollectionBranch + +`func (o *ClusterDeployment) HasCollectionBranch() bool` + +HasCollectionBranch returns a boolean if a field has been set. + +### GetCreated + +`func (o *ClusterDeployment) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ClusterDeployment) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ClusterDeployment) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetExperience + +`func (o *ClusterDeployment) GetExperience() DeploymentExperience` + +GetExperience returns the Experience field if non-nil, zero value otherwise. + +### GetExperienceOk + +`func (o *ClusterDeployment) GetExperienceOk() (*DeploymentExperience, bool)` + +GetExperienceOk returns a tuple with the Experience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperience + +`func (o *ClusterDeployment) SetExperience(v DeploymentExperience)` + +SetExperience sets Experience field to given value. + +### HasExperience + +`func (o *ClusterDeployment) HasExperience() bool` + +HasExperience returns a boolean if a field has been set. + +### GetExperienceBranch + +`func (o *ClusterDeployment) GetExperienceBranch() string` + +GetExperienceBranch returns the ExperienceBranch field if non-nil, zero value otherwise. + +### GetExperienceBranchOk + +`func (o *ClusterDeployment) GetExperienceBranchOk() (*string, bool)` + +GetExperienceBranchOk returns a tuple with the ExperienceBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperienceBranch + +`func (o *ClusterDeployment) SetExperienceBranch(v string)` + +SetExperienceBranch sets ExperienceBranch field to given value. + +### HasExperienceBranch + +`func (o *ClusterDeployment) HasExperienceBranch() bool` + +HasExperienceBranch returns a boolean if a field has been set. + +### GetExperienceId + +`func (o *ClusterDeployment) GetExperienceId() string` + +GetExperienceId returns the ExperienceId field if non-nil, zero value otherwise. + +### GetExperienceIdOk + +`func (o *ClusterDeployment) GetExperienceIdOk() (*string, bool)` + +GetExperienceIdOk returns a tuple with the ExperienceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperienceId + +`func (o *ClusterDeployment) SetExperienceId(v string)` + +SetExperienceId sets ExperienceId field to given value. + +### HasExperienceId + +`func (o *ClusterDeployment) HasExperienceId() bool` + +HasExperienceId returns a boolean if a field has been set. + +### GetExpiresAt + +`func (o *ClusterDeployment) GetExpiresAt() time.Time` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *ClusterDeployment) GetExpiresAtOk() (*time.Time, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *ClusterDeployment) SetExpiresAt(v time.Time)` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *ClusterDeployment) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### GetFlightcontrolRelease + +`func (o *ClusterDeployment) GetFlightcontrolRelease() string` + +GetFlightcontrolRelease returns the FlightcontrolRelease field if non-nil, zero value otherwise. + +### GetFlightcontrolReleaseOk + +`func (o *ClusterDeployment) GetFlightcontrolReleaseOk() (*string, bool)` + +GetFlightcontrolReleaseOk returns a tuple with the FlightcontrolRelease field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlightcontrolRelease + +`func (o *ClusterDeployment) SetFlightcontrolRelease(v string)` + +SetFlightcontrolRelease sets FlightcontrolRelease field to given value. + +### HasFlightcontrolRelease + +`func (o *ClusterDeployment) HasFlightcontrolRelease() bool` + +HasFlightcontrolRelease returns a boolean if a field has been set. + +### GetGarageId + +`func (o *ClusterDeployment) GetGarageId() string` + +GetGarageId returns the GarageId field if non-nil, zero value otherwise. + +### GetGarageIdOk + +`func (o *ClusterDeployment) GetGarageIdOk() (*string, bool)` + +GetGarageIdOk returns a tuple with the GarageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGarageId + +`func (o *ClusterDeployment) SetGarageId(v string)` + +SetGarageId sets GarageId field to given value. + +### HasGarageId + +`func (o *ClusterDeployment) HasGarageId() bool` + +HasGarageId returns a boolean if a field has been set. + +### GetGcBranch + +`func (o *ClusterDeployment) GetGcBranch() string` + +GetGcBranch returns the GcBranch field if non-nil, zero value otherwise. + +### GetGcBranchOk + +`func (o *ClusterDeployment) GetGcBranchOk() (*string, bool)` + +GetGcBranchOk returns a tuple with the GcBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcBranch + +`func (o *ClusterDeployment) SetGcBranch(v string)` + +SetGcBranch sets GcBranch field to given value. + +### HasGcBranch + +`func (o *ClusterDeployment) HasGcBranch() bool` + +HasGcBranch returns a boolean if a field has been set. + +### GetGpuAlias + +`func (o *ClusterDeployment) GetGpuAlias() string` + +GetGpuAlias returns the GpuAlias field if non-nil, zero value otherwise. + +### GetGpuAliasOk + +`func (o *ClusterDeployment) GetGpuAliasOk() (*string, bool)` + +GetGpuAliasOk returns a tuple with the GpuAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuAlias + +`func (o *ClusterDeployment) SetGpuAlias(v string)` + +SetGpuAlias sets GpuAlias field to given value. + +### HasGpuAlias + +`func (o *ClusterDeployment) HasGpuAlias() bool` + +HasGpuAlias returns a boolean if a field has been set. + +### GetGpuCount + +`func (o *ClusterDeployment) GetGpuCount() int32` + +GetGpuCount returns the GpuCount field if non-nil, zero value otherwise. + +### GetGpuCountOk + +`func (o *ClusterDeployment) GetGpuCountOk() (*int32, bool)` + +GetGpuCountOk returns a tuple with the GpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuCount + +`func (o *ClusterDeployment) SetGpuCount(v int32)` + +SetGpuCount sets GpuCount field to given value. + +### HasGpuCount + +`func (o *ClusterDeployment) HasGpuCount() bool` + +HasGpuCount returns a boolean if a field has been set. + +### GetGpuModel + +`func (o *ClusterDeployment) GetGpuModel() string` + +GetGpuModel returns the GpuModel field if non-nil, zero value otherwise. + +### GetGpuModelOk + +`func (o *ClusterDeployment) GetGpuModelOk() (*string, bool)` + +GetGpuModelOk returns a tuple with the GpuModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuModel + +`func (o *ClusterDeployment) SetGpuModel(v string)` + +SetGpuModel sets GpuModel field to given value. + +### HasGpuModel + +`func (o *ClusterDeployment) HasGpuModel() bool` + +HasGpuModel returns a boolean if a field has been set. + +### GetGpuOsName + +`func (o *ClusterDeployment) GetGpuOsName() string` + +GetGpuOsName returns the GpuOsName field if non-nil, zero value otherwise. + +### GetGpuOsNameOk + +`func (o *ClusterDeployment) GetGpuOsNameOk() (*string, bool)` + +GetGpuOsNameOk returns a tuple with the GpuOsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsName + +`func (o *ClusterDeployment) SetGpuOsName(v string)` + +SetGpuOsName sets GpuOsName field to given value. + +### HasGpuOsName + +`func (o *ClusterDeployment) HasGpuOsName() bool` + +HasGpuOsName returns a boolean if a field has been set. + +### GetGpuOsRelease + +`func (o *ClusterDeployment) GetGpuOsRelease() string` + +GetGpuOsRelease returns the GpuOsRelease field if non-nil, zero value otherwise. + +### GetGpuOsReleaseOk + +`func (o *ClusterDeployment) GetGpuOsReleaseOk() (*string, bool)` + +GetGpuOsReleaseOk returns a tuple with the GpuOsRelease field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsRelease + +`func (o *ClusterDeployment) SetGpuOsRelease(v string)` + +SetGpuOsRelease sets GpuOsRelease field to given value. + +### HasGpuOsRelease + +`func (o *ClusterDeployment) HasGpuOsRelease() bool` + +HasGpuOsRelease returns a boolean if a field has been set. + +### GetGpuOsVersion + +`func (o *ClusterDeployment) GetGpuOsVersion() string` + +GetGpuOsVersion returns the GpuOsVersion field if non-nil, zero value otherwise. + +### GetGpuOsVersionOk + +`func (o *ClusterDeployment) GetGpuOsVersionOk() (*string, bool)` + +GetGpuOsVersionOk returns a tuple with the GpuOsVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsVersion + +`func (o *ClusterDeployment) SetGpuOsVersion(v string)` + +SetGpuOsVersion sets GpuOsVersion field to given value. + +### HasGpuOsVersion + +`func (o *ClusterDeployment) HasGpuOsVersion() bool` + +HasGpuOsVersion returns a boolean if a field has been set. + +### GetId + +`func (o *ClusterDeployment) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ClusterDeployment) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ClusterDeployment) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIpAllowlist + +`func (o *ClusterDeployment) GetIpAllowlist() []string` + +GetIpAllowlist returns the IpAllowlist field if non-nil, zero value otherwise. + +### GetIpAllowlistOk + +`func (o *ClusterDeployment) GetIpAllowlistOk() (*[]string, bool)` + +GetIpAllowlistOk returns a tuple with the IpAllowlist field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAllowlist + +`func (o *ClusterDeployment) SetIpAllowlist(v []string)` + +SetIpAllowlist sets IpAllowlist field to given value. + +### HasIpAllowlist + +`func (o *ClusterDeployment) HasIpAllowlist() bool` + +HasIpAllowlist returns a boolean if a field has been set. + +### GetLifetime + +`func (o *ClusterDeployment) GetLifetime() int32` + +GetLifetime returns the Lifetime field if non-nil, zero value otherwise. + +### GetLifetimeOk + +`func (o *ClusterDeployment) GetLifetimeOk() (*int32, bool)` + +GetLifetimeOk returns a tuple with the Lifetime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifetime + +`func (o *ClusterDeployment) SetLifetime(v int32)` + +SetLifetime sets Lifetime field to given value. + +### HasLifetime + +`func (o *ClusterDeployment) HasLifetime() bool` + +HasLifetime returns a boolean if a field has been set. + +### GetMinGpuCount + +`func (o *ClusterDeployment) GetMinGpuCount() int32` + +GetMinGpuCount returns the MinGpuCount field if non-nil, zero value otherwise. + +### GetMinGpuCountOk + +`func (o *ClusterDeployment) GetMinGpuCountOk() (*int32, bool)` + +GetMinGpuCountOk returns a tuple with the MinGpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinGpuCount + +`func (o *ClusterDeployment) SetMinGpuCount(v int32)` + +SetMinGpuCount sets MinGpuCount field to given value. + +### HasMinGpuCount + +`func (o *ClusterDeployment) HasMinGpuCount() bool` + +HasMinGpuCount returns a boolean if a field has been set. + +### GetModified + +`func (o *ClusterDeployment) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *ClusterDeployment) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *ClusterDeployment) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNodeCount + +`func (o *ClusterDeployment) GetNodeCount() int32` + +GetNodeCount returns the NodeCount field if non-nil, zero value otherwise. + +### GetNodeCountOk + +`func (o *ClusterDeployment) 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 *ClusterDeployment) SetNodeCount(v int32)` + +SetNodeCount sets NodeCount field to given value. + +### HasNodeCount + +`func (o *ClusterDeployment) HasNodeCount() bool` + +HasNodeCount returns a boolean if a field has been set. + +### GetOemName + +`func (o *ClusterDeployment) GetOemName() string` + +GetOemName returns the OemName field if non-nil, zero value otherwise. + +### GetOemNameOk + +`func (o *ClusterDeployment) GetOemNameOk() (*string, bool)` + +GetOemNameOk returns a tuple with the OemName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOemName + +`func (o *ClusterDeployment) SetOemName(v string)` + +SetOemName sets OemName field to given value. + +### HasOemName + +`func (o *ClusterDeployment) HasOemName() bool` + +HasOemName returns a boolean if a field has been set. + +### GetOrgName + +`func (o *ClusterDeployment) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *ClusterDeployment) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *ClusterDeployment) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + + +### GetOverrides + +`func (o *ClusterDeployment) GetOverrides() interface{}` + +GetOverrides returns the Overrides field if non-nil, zero value otherwise. + +### GetOverridesOk + +`func (o *ClusterDeployment) GetOverridesOk() (*interface{}, bool)` + +GetOverridesOk returns a tuple with the Overrides field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverrides + +`func (o *ClusterDeployment) SetOverrides(v interface{})` + +SetOverrides sets Overrides field to given value. + + +### SetOverridesNil + +`func (o *ClusterDeployment) SetOverridesNil(b bool)` + + SetOverridesNil sets the value for Overrides to be an explicit nil + +### UnsetOverrides +`func (o *ClusterDeployment) UnsetOverrides()` + +UnsetOverrides ensures that no value is present for Overrides, not even an explicit nil +### GetPersistOnFailure + +`func (o *ClusterDeployment) GetPersistOnFailure() bool` + +GetPersistOnFailure returns the PersistOnFailure field if non-nil, zero value otherwise. + +### GetPersistOnFailureOk + +`func (o *ClusterDeployment) GetPersistOnFailureOk() (*bool, bool)` + +GetPersistOnFailureOk returns a tuple with the PersistOnFailure field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersistOnFailure + +`func (o *ClusterDeployment) SetPersistOnFailure(v bool)` + +SetPersistOnFailure sets PersistOnFailure field to given value. + +### HasPersistOnFailure + +`func (o *ClusterDeployment) HasPersistOnFailure() bool` + +HasPersistOnFailure returns a boolean if a field has been set. + +### GetPersona + +`func (o *ClusterDeployment) GetPersona() string` + +GetPersona returns the Persona field if non-nil, zero value otherwise. + +### GetPersonaOk + +`func (o *ClusterDeployment) GetPersonaOk() (*string, bool)` + +GetPersonaOk returns a tuple with the Persona field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersona + +`func (o *ClusterDeployment) SetPersona(v string)` + +SetPersona sets Persona field to given value. + +### HasPersona + +`func (o *ClusterDeployment) HasPersona() bool` + +HasPersona returns a boolean if a field has been set. + +### GetPipeline + +`func (o *ClusterDeployment) GetPipeline() int64` + +GetPipeline returns the Pipeline field if non-nil, zero value otherwise. + +### GetPipelineOk + +`func (o *ClusterDeployment) GetPipelineOk() (*int64, bool)` + +GetPipelineOk returns a tuple with the Pipeline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipeline + +`func (o *ClusterDeployment) SetPipeline(v int64)` + +SetPipeline sets Pipeline field to given value. + +### HasPipeline + +`func (o *ClusterDeployment) HasPipeline() bool` + +HasPipeline returns a boolean if a field has been set. + +### GetPipelineBranch + +`func (o *ClusterDeployment) GetPipelineBranch() string` + +GetPipelineBranch returns the PipelineBranch field if non-nil, zero value otherwise. + +### GetPipelineBranchOk + +`func (o *ClusterDeployment) GetPipelineBranchOk() (*string, bool)` + +GetPipelineBranchOk returns a tuple with the PipelineBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipelineBranch + +`func (o *ClusterDeployment) SetPipelineBranch(v string)` + +SetPipelineBranch sets PipelineBranch field to given value. + +### HasPipelineBranch + +`func (o *ClusterDeployment) HasPipelineBranch() bool` + +HasPipelineBranch returns a boolean if a field has been set. + +### GetPipelines + +`func (o *ClusterDeployment) GetPipelines() []string` + +GetPipelines returns the Pipelines field if non-nil, zero value otherwise. + +### GetPipelinesOk + +`func (o *ClusterDeployment) GetPipelinesOk() (*[]string, bool)` + +GetPipelinesOk returns a tuple with the Pipelines field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipelines + +`func (o *ClusterDeployment) SetPipelines(v []string)` + +SetPipelines sets Pipelines field to given value. + + +### GetPlatform + +`func (o *ClusterDeployment) GetPlatform() PlatformEnum` + +GetPlatform returns the Platform field if non-nil, zero value otherwise. + +### GetPlatformOk + +`func (o *ClusterDeployment) GetPlatformOk() (*PlatformEnum, bool)` + +GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatform + +`func (o *ClusterDeployment) SetPlatform(v PlatformEnum)` + +SetPlatform sets Platform field to given value. + +### HasPlatform + +`func (o *ClusterDeployment) HasPlatform() bool` + +HasPlatform returns a boolean if a field has been set. + +### GetPriority + +`func (o *ClusterDeployment) GetPriority() PriorityEnum` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *ClusterDeployment) GetPriorityOk() (*PriorityEnum, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *ClusterDeployment) SetPriority(v PriorityEnum)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *ClusterDeployment) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetProviderName + +`func (o *ClusterDeployment) GetProviderName() string` + +GetProviderName returns the ProviderName field if non-nil, zero value otherwise. + +### GetProviderNameOk + +`func (o *ClusterDeployment) GetProviderNameOk() (*string, bool)` + +GetProviderNameOk returns a tuple with the ProviderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderName + +`func (o *ClusterDeployment) SetProviderName(v string)` + +SetProviderName sets ProviderName field to given value. + +### HasProviderName + +`func (o *ClusterDeployment) HasProviderName() bool` + +HasProviderName returns a boolean if a field has been set. + +### GetPublicKey + +`func (o *ClusterDeployment) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *ClusterDeployment) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *ClusterDeployment) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + +### HasPublicKey + +`func (o *ClusterDeployment) HasPublicKey() bool` + +HasPublicKey returns a boolean if a field has been set. + +### GetRegion + +`func (o *ClusterDeployment) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *ClusterDeployment) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *ClusterDeployment) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *ClusterDeployment) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetRequestId + +`func (o *ClusterDeployment) GetRequestId() string` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *ClusterDeployment) GetRequestIdOk() (*string, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *ClusterDeployment) SetRequestId(v string)` + +SetRequestId sets RequestId field to given value. + +### HasRequestId + +`func (o *ClusterDeployment) HasRequestId() bool` + +HasRequestId returns a boolean if a field has been set. + +### GetRequesterEmail + +`func (o *ClusterDeployment) GetRequesterEmail() string` + +GetRequesterEmail returns the RequesterEmail field if non-nil, zero value otherwise. + +### GetRequesterEmailOk + +`func (o *ClusterDeployment) GetRequesterEmailOk() (*string, bool)` + +GetRequesterEmailOk returns a tuple with the RequesterEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterEmail + +`func (o *ClusterDeployment) SetRequesterEmail(v string)` + +SetRequesterEmail sets RequesterEmail field to given value. + + +### GetRequesterName + +`func (o *ClusterDeployment) GetRequesterName() string` + +GetRequesterName returns the RequesterName field if non-nil, zero value otherwise. + +### GetRequesterNameOk + +`func (o *ClusterDeployment) GetRequesterNameOk() (*string, bool)` + +GetRequesterNameOk returns a tuple with the RequesterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterName + +`func (o *ClusterDeployment) SetRequesterName(v string)` + +SetRequesterName sets RequesterName field to given value. + + +### GetRetryCount + +`func (o *ClusterDeployment) GetRetryCount() int32` + +GetRetryCount returns the RetryCount field if non-nil, zero value otherwise. + +### GetRetryCountOk + +`func (o *ClusterDeployment) GetRetryCountOk() (*int32, bool)` + +GetRetryCountOk returns a tuple with the RetryCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetryCount + +`func (o *ClusterDeployment) SetRetryCount(v int32)` + +SetRetryCount sets RetryCount field to given value. + + +### GetSalesCreatedDate + +`func (o *ClusterDeployment) GetSalesCreatedDate() time.Time` + +GetSalesCreatedDate returns the SalesCreatedDate field if non-nil, zero value otherwise. + +### GetSalesCreatedDateOk + +`func (o *ClusterDeployment) GetSalesCreatedDateOk() (*time.Time, bool)` + +GetSalesCreatedDateOk returns a tuple with the SalesCreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesCreatedDate + +`func (o *ClusterDeployment) SetSalesCreatedDate(v time.Time)` + +SetSalesCreatedDate sets SalesCreatedDate field to given value. + +### HasSalesCreatedDate + +`func (o *ClusterDeployment) HasSalesCreatedDate() bool` + +HasSalesCreatedDate returns a boolean if a field has been set. + +### GetSalesId + +`func (o *ClusterDeployment) GetSalesId() string` + +GetSalesId returns the SalesId field if non-nil, zero value otherwise. + +### GetSalesIdOk + +`func (o *ClusterDeployment) GetSalesIdOk() (*string, bool)` + +GetSalesIdOk returns a tuple with the SalesId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesId + +`func (o *ClusterDeployment) SetSalesId(v string)` + +SetSalesId sets SalesId field to given value. + +### HasSalesId + +`func (o *ClusterDeployment) HasSalesId() bool` + +HasSalesId returns a boolean if a field has been set. + +### GetSalesOwnerEmail + +`func (o *ClusterDeployment) GetSalesOwnerEmail() string` + +GetSalesOwnerEmail returns the SalesOwnerEmail field if non-nil, zero value otherwise. + +### GetSalesOwnerEmailOk + +`func (o *ClusterDeployment) GetSalesOwnerEmailOk() (*string, bool)` + +GetSalesOwnerEmailOk returns a tuple with the SalesOwnerEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesOwnerEmail + +`func (o *ClusterDeployment) SetSalesOwnerEmail(v string)` + +SetSalesOwnerEmail sets SalesOwnerEmail field to given value. + +### HasSalesOwnerEmail + +`func (o *ClusterDeployment) HasSalesOwnerEmail() bool` + +HasSalesOwnerEmail returns a boolean if a field has been set. + +### GetSalesOwnerName + +`func (o *ClusterDeployment) GetSalesOwnerName() string` + +GetSalesOwnerName returns the SalesOwnerName field if non-nil, zero value otherwise. + +### GetSalesOwnerNameOk + +`func (o *ClusterDeployment) GetSalesOwnerNameOk() (*string, bool)` + +GetSalesOwnerNameOk returns a tuple with the SalesOwnerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesOwnerName + +`func (o *ClusterDeployment) SetSalesOwnerName(v string)` + +SetSalesOwnerName sets SalesOwnerName field to given value. + +### HasSalesOwnerName + +`func (o *ClusterDeployment) HasSalesOwnerName() bool` + +HasSalesOwnerName returns a boolean if a field has been set. + +### GetServices + +`func (o *ClusterDeployment) GetServices() []string` + +GetServices returns the Services field if non-nil, zero value otherwise. + +### GetServicesOk + +`func (o *ClusterDeployment) GetServicesOk() (*[]string, bool)` + +GetServicesOk returns a tuple with the Services field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServices + +`func (o *ClusterDeployment) SetServices(v []string)` + +SetServices sets Services field to given value. + + +### GetSshPort + +`func (o *ClusterDeployment) GetSshPort() int32` + +GetSshPort returns the SshPort field if non-nil, zero value otherwise. + +### GetSshPortOk + +`func (o *ClusterDeployment) GetSshPortOk() (*int32, bool)` + +GetSshPortOk returns a tuple with the SshPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshPort + +`func (o *ClusterDeployment) SetSshPort(v int32)` + +SetSshPort sets SshPort field to given value. + + +### GetSshUser + +`func (o *ClusterDeployment) GetSshUser() string` + +GetSshUser returns the SshUser field if non-nil, zero value otherwise. + +### GetSshUserOk + +`func (o *ClusterDeployment) GetSshUserOk() (*string, bool)` + +GetSshUserOk returns a tuple with the SshUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshUser + +`func (o *ClusterDeployment) SetSshUser(v string)` + +SetSshUser sets SshUser field to given value. + + +### GetState + +`func (o *ClusterDeployment) GetState() DeploymentState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ClusterDeployment) GetStateOk() (*DeploymentState, 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 *ClusterDeployment) SetState(v DeploymentState)` + +SetState sets State field to given value. + + +### GetTags + +`func (o *ClusterDeployment) GetTags() interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ClusterDeployment) GetTagsOk() (*interface{}, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ClusterDeployment) SetTags(v interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ClusterDeployment) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### SetTagsNil + +`func (o *ClusterDeployment) SetTagsNil(b bool)` + + SetTagsNil sets the value for Tags to be an explicit nil + +### UnsetTags +`func (o *ClusterDeployment) UnsetTags()` + +UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetWorkshop + +`func (o *ClusterDeployment) GetWorkshop() bool` + +GetWorkshop returns the Workshop field if non-nil, zero value otherwise. + +### GetWorkshopOk + +`func (o *ClusterDeployment) GetWorkshopOk() (*bool, bool)` + +GetWorkshopOk returns a tuple with the Workshop field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshop + +`func (o *ClusterDeployment) SetWorkshop(v bool)` + +SetWorkshop sets Workshop field to given value. + +### HasWorkshop + +`func (o *ClusterDeployment) HasWorkshop() bool` + +HasWorkshop returns a boolean if a field has been set. + +### GetWorkshopId + +`func (o *ClusterDeployment) GetWorkshopId() string` + +GetWorkshopId returns the WorkshopId field if non-nil, zero value otherwise. + +### GetWorkshopIdOk + +`func (o *ClusterDeployment) GetWorkshopIdOk() (*string, bool)` + +GetWorkshopIdOk returns a tuple with the WorkshopId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshopId + +`func (o *ClusterDeployment) SetWorkshopId(v string)` + +SetWorkshopId sets WorkshopId field to given value. + +### HasWorkshopId + +`func (o *ClusterDeployment) HasWorkshopId() bool` + +HasWorkshopId returns a boolean if a field has been set. + +### GetWorkshopOverridePassword + +`func (o *ClusterDeployment) GetWorkshopOverridePassword() string` + +GetWorkshopOverridePassword returns the WorkshopOverridePassword field if non-nil, zero value otherwise. + +### GetWorkshopOverridePasswordOk + +`func (o *ClusterDeployment) GetWorkshopOverridePasswordOk() (*string, bool)` + +GetWorkshopOverridePasswordOk returns a tuple with the WorkshopOverridePassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshopOverridePassword + +`func (o *ClusterDeployment) SetWorkshopOverridePassword(v string)` + +SetWorkshopOverridePassword sets WorkshopOverridePassword field to given value. + +### HasWorkshopOverridePassword + +`func (o *ClusterDeployment) HasWorkshopOverridePassword() bool` + +HasWorkshopOverridePassword 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) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/ClusterGpusInner.md b/v1/providers/launchpad/gen/launchpad/docs/ClusterGpusInner.md new file mode 100644 index 0000000..8f988c5 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/ClusterGpusInner.md @@ -0,0 +1,218 @@ +# ClusterGpusInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**FormFactor** | Pointer to [**InterconnectionTypeEnum**](InterconnectionTypeEnum.md) | GPU form factor * `pcie` - PCIe * `sxm` - SXM | [optional] [default to InterconnectionTypePCIe] +**Id** | **string** | | [readonly] +**Memory** | Pointer to **int32** | Total GPU memory (in GB) | [optional] [default to 0] +**Model** | **string** | GPU model name | +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**NodeCount** | Pointer to **int32** | | [optional] [readonly] +**Priority** | Pointer to **int32** | Weighted preference to use in selecting a GPU for a deployment. A higher priority means the GPU is in higher demand. Lower priority values will be preferred over higher ones during cluster selection. | [optional] + +## Methods + +### NewClusterGpusInner + +`func NewClusterGpusInner(created time.Time, id string, model string, modified time.Time, ) *ClusterGpusInner` + +NewClusterGpusInner instantiates a new ClusterGpusInner 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 + +### NewClusterGpusInnerWithDefaults + +`func NewClusterGpusInnerWithDefaults() *ClusterGpusInner` + +NewClusterGpusInnerWithDefaults instantiates a new ClusterGpusInner 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 + +### GetCreated + +`func (o *ClusterGpusInner) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ClusterGpusInner) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ClusterGpusInner) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetFormFactor + +`func (o *ClusterGpusInner) GetFormFactor() InterconnectionTypeEnum` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *ClusterGpusInner) GetFormFactorOk() (*InterconnectionTypeEnum, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *ClusterGpusInner) SetFormFactor(v InterconnectionTypeEnum)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *ClusterGpusInner) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### GetId + +`func (o *ClusterGpusInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ClusterGpusInner) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ClusterGpusInner) SetId(v string)` + +SetId sets Id field to given value. + + +### GetMemory + +`func (o *ClusterGpusInner) GetMemory() int32` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *ClusterGpusInner) 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 *ClusterGpusInner) SetMemory(v int32)` + +SetMemory sets Memory field to given value. + +### HasMemory + +`func (o *ClusterGpusInner) HasMemory() bool` + +HasMemory returns a boolean if a field has been set. + +### GetModel + +`func (o *ClusterGpusInner) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *ClusterGpusInner) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *ClusterGpusInner) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetModified + +`func (o *ClusterGpusInner) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *ClusterGpusInner) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *ClusterGpusInner) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNodeCount + +`func (o *ClusterGpusInner) GetNodeCount() int32` + +GetNodeCount returns the NodeCount field if non-nil, zero value otherwise. + +### GetNodeCountOk + +`func (o *ClusterGpusInner) 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 *ClusterGpusInner) SetNodeCount(v int32)` + +SetNodeCount sets NodeCount field to given value. + +### HasNodeCount + +`func (o *ClusterGpusInner) HasNodeCount() bool` + +HasNodeCount returns a boolean if a field has been set. + +### GetPriority + +`func (o *ClusterGpusInner) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *ClusterGpusInner) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *ClusterGpusInner) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *ClusterGpusInner) HasPriority() bool` + +HasPriority 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) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/ClusterInstancesInner.md b/v1/providers/launchpad/gen/launchpad/docs/ClusterInstancesInner.md new file mode 100644 index 0000000..37e99aa --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/ClusterInstancesInner.md @@ -0,0 +1,234 @@ +# ClusterInstancesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cluster** | [**DeploymentCluster**](DeploymentCluster.md) | | +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Id** | **string** | | [readonly] +**InstanceId** | **string** | Unique ID for this instance assigned by its provider | +**Name** | Pointer to **string** | User-friendly name of this instance | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**State** | Pointer to [**InstanceState**](InstanceState.md) | Current lifecycle state of this instance * `running` - Instance is running * `starting` - Instance is starting * `stopped` - Instance is stopped * `stopping` - Instance is stopping * `unknown` - Instance state is currently unknown | [optional] +**StateModified** | **time.Time** | | [readonly] +**Tags** | Pointer to **[]string** | Tags associated with this instance | [optional] + +## Methods + +### NewClusterInstancesInner + +`func NewClusterInstancesInner(cluster DeploymentCluster, created time.Time, id string, instanceId string, modified time.Time, stateModified time.Time, ) *ClusterInstancesInner` + +NewClusterInstancesInner instantiates a new ClusterInstancesInner 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 + +### NewClusterInstancesInnerWithDefaults + +`func NewClusterInstancesInnerWithDefaults() *ClusterInstancesInner` + +NewClusterInstancesInnerWithDefaults instantiates a new ClusterInstancesInner 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 + +### GetCluster + +`func (o *ClusterInstancesInner) GetCluster() DeploymentCluster` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *ClusterInstancesInner) GetClusterOk() (*DeploymentCluster, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *ClusterInstancesInner) SetCluster(v DeploymentCluster)` + +SetCluster sets Cluster field to given value. + + +### GetCreated + +`func (o *ClusterInstancesInner) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ClusterInstancesInner) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ClusterInstancesInner) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetId + +`func (o *ClusterInstancesInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ClusterInstancesInner) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ClusterInstancesInner) SetId(v string)` + +SetId sets Id field to given value. + + +### GetInstanceId + +`func (o *ClusterInstancesInner) GetInstanceId() string` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *ClusterInstancesInner) GetInstanceIdOk() (*string, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *ClusterInstancesInner) SetInstanceId(v string)` + +SetInstanceId sets InstanceId field to given value. + + +### GetName + +`func (o *ClusterInstancesInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ClusterInstancesInner) 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 *ClusterInstancesInner) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ClusterInstancesInner) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetModified + +`func (o *ClusterInstancesInner) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *ClusterInstancesInner) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *ClusterInstancesInner) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetState + +`func (o *ClusterInstancesInner) GetState() InstanceState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ClusterInstancesInner) GetStateOk() (*InstanceState, 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 *ClusterInstancesInner) SetState(v InstanceState)` + +SetState sets State field to given value. + +### HasState + +`func (o *ClusterInstancesInner) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetStateModified + +`func (o *ClusterInstancesInner) GetStateModified() time.Time` + +GetStateModified returns the StateModified field if non-nil, zero value otherwise. + +### GetStateModifiedOk + +`func (o *ClusterInstancesInner) GetStateModifiedOk() (*time.Time, bool)` + +GetStateModifiedOk returns a tuple with the StateModified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateModified + +`func (o *ClusterInstancesInner) SetStateModified(v time.Time)` + +SetStateModified sets StateModified field to given value. + + +### GetTags + +`func (o *ClusterInstancesInner) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ClusterInstancesInner) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ClusterInstancesInner) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ClusterInstancesInner) HasTags() bool` + +HasTags 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) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/ClusterNodesInner.md b/v1/providers/launchpad/gen/launchpad/docs/ClusterNodesInner.md new file mode 100644 index 0000000..11a2ab4 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/ClusterNodesInner.md @@ -0,0 +1,843 @@ +# ClusterNodesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BmcIp** | Pointer to **string** | IP address of the BMC | [optional] +**BmcMac** | Pointer to **string** | MAC address of the BMC | [optional] +**BmcPassword** | Pointer to **string** | Password for the BMC | [optional] +**BmcUser** | Pointer to **string** | Username for the BMC | [optional] +**Cluster** | Pointer to **string** | UUID of the node's parent cluster | [optional] +**Cpu** | Pointer to **int32** | Number of CPU cores installed | [optional] +**CpuManufacturer** | Pointer to [**CpuManufacturerEnum**](CpuManufacturerEnum.md) | | [optional] +**CpuModel** | Pointer to **string** | Model information for the node's CPU | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**GarageId** | Pointer to **string** | ID for the garage where a node is parked when unprovisioned | [optional] +**Gpu** | [**ClusterGpusInner**](ClusterGpusInner.md) | | +**GpuAlias** | **string** | Alias for GPU plan (i.e. installed GPU type and count) | [readonly] +**GpuCount** | Pointer to **int32** | Number of GPUs installed | [optional] +**GpuModel** | **string** | Model of GPU(s) installed | [readonly] +**GpuVbios** | Pointer to **string** | VBIOS version used by installed GPU(s) | [optional] +**Id** | **string** | | [readonly] +**Location** | [**NodeLocation**](NodeLocation.md) | | +**Memory** | Pointer to **int32** | Amount of RAM installed (in GB) | [optional] +**MgmtIp** | Pointer to **string** | Management IP address | [optional] +**MgmtMac** | Pointer to **string** | Management MAC address | [optional] +**Model** | Pointer to **string** | Hardware model of the node | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**NetworkType** | Pointer to [**NetworkTypeEnum**](NetworkTypeEnum.md) | Type of networking technology used * `ethernet` - Ethernet * `infiniband` - InfiniBand | [optional] +**NicPrefixes** | Pointer to **[]string** | Prefixes for the node's network interface(s) | [optional] +**Notes** | Pointer to **string** | Administrative comments about the node | [optional] +**Oem** | Pointer to **string** | UUID of the node's OEM | [optional] +**ProviderNodeId** | Pointer to **string** | Unique ID for this node assigned by its provider | [optional] +**Rack** | Pointer to **string** | Physical rack identifier | [optional] +**RackUnit** | Pointer to **int32** | The rack unit (RU) within the rack where the node is installed | [optional] +**SerialNumber** | Pointer to **string** | Serial number of the node | [optional] +**Storage** | [**[]NodeStorage**](NodeStorage.md) | | +**SystemArch** | [**SystemArchEnum**](SystemArchEnum.md) | CPU architecture * `amd64` - amd64 * `arm64` - arm64 | +**Tee** | Pointer to **bool** | Does the node support Trusted Execution Environment (TEE)? | [optional] + +## Methods + +### NewClusterNodesInner + +`func NewClusterNodesInner(created time.Time, gpu ClusterGpusInner, gpuAlias string, gpuModel string, id string, location NodeLocation, modified time.Time, storage []NodeStorage, systemArch SystemArchEnum, ) *ClusterNodesInner` + +NewClusterNodesInner instantiates a new ClusterNodesInner 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 + +### NewClusterNodesInnerWithDefaults + +`func NewClusterNodesInnerWithDefaults() *ClusterNodesInner` + +NewClusterNodesInnerWithDefaults instantiates a new ClusterNodesInner 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 + +### GetBmcIp + +`func (o *ClusterNodesInner) GetBmcIp() string` + +GetBmcIp returns the BmcIp field if non-nil, zero value otherwise. + +### GetBmcIpOk + +`func (o *ClusterNodesInner) GetBmcIpOk() (*string, bool)` + +GetBmcIpOk returns a tuple with the BmcIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBmcIp + +`func (o *ClusterNodesInner) SetBmcIp(v string)` + +SetBmcIp sets BmcIp field to given value. + +### HasBmcIp + +`func (o *ClusterNodesInner) HasBmcIp() bool` + +HasBmcIp returns a boolean if a field has been set. + +### GetBmcMac + +`func (o *ClusterNodesInner) GetBmcMac() string` + +GetBmcMac returns the BmcMac field if non-nil, zero value otherwise. + +### GetBmcMacOk + +`func (o *ClusterNodesInner) GetBmcMacOk() (*string, bool)` + +GetBmcMacOk returns a tuple with the BmcMac field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBmcMac + +`func (o *ClusterNodesInner) SetBmcMac(v string)` + +SetBmcMac sets BmcMac field to given value. + +### HasBmcMac + +`func (o *ClusterNodesInner) HasBmcMac() bool` + +HasBmcMac returns a boolean if a field has been set. + +### GetBmcPassword + +`func (o *ClusterNodesInner) GetBmcPassword() string` + +GetBmcPassword returns the BmcPassword field if non-nil, zero value otherwise. + +### GetBmcPasswordOk + +`func (o *ClusterNodesInner) GetBmcPasswordOk() (*string, bool)` + +GetBmcPasswordOk returns a tuple with the BmcPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBmcPassword + +`func (o *ClusterNodesInner) SetBmcPassword(v string)` + +SetBmcPassword sets BmcPassword field to given value. + +### HasBmcPassword + +`func (o *ClusterNodesInner) HasBmcPassword() bool` + +HasBmcPassword returns a boolean if a field has been set. + +### GetBmcUser + +`func (o *ClusterNodesInner) GetBmcUser() string` + +GetBmcUser returns the BmcUser field if non-nil, zero value otherwise. + +### GetBmcUserOk + +`func (o *ClusterNodesInner) GetBmcUserOk() (*string, bool)` + +GetBmcUserOk returns a tuple with the BmcUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBmcUser + +`func (o *ClusterNodesInner) SetBmcUser(v string)` + +SetBmcUser sets BmcUser field to given value. + +### HasBmcUser + +`func (o *ClusterNodesInner) HasBmcUser() bool` + +HasBmcUser returns a boolean if a field has been set. + +### GetCluster + +`func (o *ClusterNodesInner) GetCluster() string` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *ClusterNodesInner) GetClusterOk() (*string, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *ClusterNodesInner) SetCluster(v string)` + +SetCluster sets Cluster field to given value. + +### HasCluster + +`func (o *ClusterNodesInner) HasCluster() bool` + +HasCluster returns a boolean if a field has been set. + +### GetCpu + +`func (o *ClusterNodesInner) GetCpu() int32` + +GetCpu returns the Cpu field if non-nil, zero value otherwise. + +### GetCpuOk + +`func (o *ClusterNodesInner) GetCpuOk() (*int32, bool)` + +GetCpuOk returns a tuple with the Cpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpu + +`func (o *ClusterNodesInner) SetCpu(v int32)` + +SetCpu sets Cpu field to given value. + +### HasCpu + +`func (o *ClusterNodesInner) HasCpu() bool` + +HasCpu returns a boolean if a field has been set. + +### GetCpuManufacturer + +`func (o *ClusterNodesInner) GetCpuManufacturer() CpuManufacturerEnum` + +GetCpuManufacturer returns the CpuManufacturer field if non-nil, zero value otherwise. + +### GetCpuManufacturerOk + +`func (o *ClusterNodesInner) GetCpuManufacturerOk() (*CpuManufacturerEnum, bool)` + +GetCpuManufacturerOk returns a tuple with the CpuManufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuManufacturer + +`func (o *ClusterNodesInner) SetCpuManufacturer(v CpuManufacturerEnum)` + +SetCpuManufacturer sets CpuManufacturer field to given value. + +### HasCpuManufacturer + +`func (o *ClusterNodesInner) HasCpuManufacturer() bool` + +HasCpuManufacturer returns a boolean if a field has been set. + +### GetCpuModel + +`func (o *ClusterNodesInner) GetCpuModel() string` + +GetCpuModel returns the CpuModel field if non-nil, zero value otherwise. + +### GetCpuModelOk + +`func (o *ClusterNodesInner) GetCpuModelOk() (*string, bool)` + +GetCpuModelOk returns a tuple with the CpuModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuModel + +`func (o *ClusterNodesInner) SetCpuModel(v string)` + +SetCpuModel sets CpuModel field to given value. + +### HasCpuModel + +`func (o *ClusterNodesInner) HasCpuModel() bool` + +HasCpuModel returns a boolean if a field has been set. + +### GetCreated + +`func (o *ClusterNodesInner) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ClusterNodesInner) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ClusterNodesInner) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetGarageId + +`func (o *ClusterNodesInner) GetGarageId() string` + +GetGarageId returns the GarageId field if non-nil, zero value otherwise. + +### GetGarageIdOk + +`func (o *ClusterNodesInner) GetGarageIdOk() (*string, bool)` + +GetGarageIdOk returns a tuple with the GarageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGarageId + +`func (o *ClusterNodesInner) SetGarageId(v string)` + +SetGarageId sets GarageId field to given value. + +### HasGarageId + +`func (o *ClusterNodesInner) HasGarageId() bool` + +HasGarageId returns a boolean if a field has been set. + +### GetGpu + +`func (o *ClusterNodesInner) GetGpu() ClusterGpusInner` + +GetGpu returns the Gpu field if non-nil, zero value otherwise. + +### GetGpuOk + +`func (o *ClusterNodesInner) GetGpuOk() (*ClusterGpusInner, bool)` + +GetGpuOk returns a tuple with the Gpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpu + +`func (o *ClusterNodesInner) SetGpu(v ClusterGpusInner)` + +SetGpu sets Gpu field to given value. + + +### GetGpuAlias + +`func (o *ClusterNodesInner) GetGpuAlias() string` + +GetGpuAlias returns the GpuAlias field if non-nil, zero value otherwise. + +### GetGpuAliasOk + +`func (o *ClusterNodesInner) GetGpuAliasOk() (*string, bool)` + +GetGpuAliasOk returns a tuple with the GpuAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuAlias + +`func (o *ClusterNodesInner) SetGpuAlias(v string)` + +SetGpuAlias sets GpuAlias field to given value. + + +### GetGpuCount + +`func (o *ClusterNodesInner) GetGpuCount() int32` + +GetGpuCount returns the GpuCount field if non-nil, zero value otherwise. + +### GetGpuCountOk + +`func (o *ClusterNodesInner) GetGpuCountOk() (*int32, bool)` + +GetGpuCountOk returns a tuple with the GpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuCount + +`func (o *ClusterNodesInner) SetGpuCount(v int32)` + +SetGpuCount sets GpuCount field to given value. + +### HasGpuCount + +`func (o *ClusterNodesInner) HasGpuCount() bool` + +HasGpuCount returns a boolean if a field has been set. + +### GetGpuModel + +`func (o *ClusterNodesInner) GetGpuModel() string` + +GetGpuModel returns the GpuModel field if non-nil, zero value otherwise. + +### GetGpuModelOk + +`func (o *ClusterNodesInner) GetGpuModelOk() (*string, bool)` + +GetGpuModelOk returns a tuple with the GpuModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuModel + +`func (o *ClusterNodesInner) SetGpuModel(v string)` + +SetGpuModel sets GpuModel field to given value. + + +### GetGpuVbios + +`func (o *ClusterNodesInner) GetGpuVbios() string` + +GetGpuVbios returns the GpuVbios field if non-nil, zero value otherwise. + +### GetGpuVbiosOk + +`func (o *ClusterNodesInner) GetGpuVbiosOk() (*string, bool)` + +GetGpuVbiosOk returns a tuple with the GpuVbios field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuVbios + +`func (o *ClusterNodesInner) SetGpuVbios(v string)` + +SetGpuVbios sets GpuVbios field to given value. + +### HasGpuVbios + +`func (o *ClusterNodesInner) HasGpuVbios() bool` + +HasGpuVbios returns a boolean if a field has been set. + +### GetId + +`func (o *ClusterNodesInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ClusterNodesInner) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ClusterNodesInner) SetId(v string)` + +SetId sets Id field to given value. + + +### GetLocation + +`func (o *ClusterNodesInner) GetLocation() NodeLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *ClusterNodesInner) GetLocationOk() (*NodeLocation, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *ClusterNodesInner) SetLocation(v NodeLocation)` + +SetLocation sets Location field to given value. + + +### GetMemory + +`func (o *ClusterNodesInner) GetMemory() int32` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *ClusterNodesInner) 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 *ClusterNodesInner) SetMemory(v int32)` + +SetMemory sets Memory field to given value. + +### HasMemory + +`func (o *ClusterNodesInner) HasMemory() bool` + +HasMemory returns a boolean if a field has been set. + +### GetMgmtIp + +`func (o *ClusterNodesInner) GetMgmtIp() string` + +GetMgmtIp returns the MgmtIp field if non-nil, zero value otherwise. + +### GetMgmtIpOk + +`func (o *ClusterNodesInner) GetMgmtIpOk() (*string, bool)` + +GetMgmtIpOk returns a tuple with the MgmtIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMgmtIp + +`func (o *ClusterNodesInner) SetMgmtIp(v string)` + +SetMgmtIp sets MgmtIp field to given value. + +### HasMgmtIp + +`func (o *ClusterNodesInner) HasMgmtIp() bool` + +HasMgmtIp returns a boolean if a field has been set. + +### GetMgmtMac + +`func (o *ClusterNodesInner) GetMgmtMac() string` + +GetMgmtMac returns the MgmtMac field if non-nil, zero value otherwise. + +### GetMgmtMacOk + +`func (o *ClusterNodesInner) GetMgmtMacOk() (*string, bool)` + +GetMgmtMacOk returns a tuple with the MgmtMac field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMgmtMac + +`func (o *ClusterNodesInner) SetMgmtMac(v string)` + +SetMgmtMac sets MgmtMac field to given value. + +### HasMgmtMac + +`func (o *ClusterNodesInner) HasMgmtMac() bool` + +HasMgmtMac returns a boolean if a field has been set. + +### GetModel + +`func (o *ClusterNodesInner) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *ClusterNodesInner) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *ClusterNodesInner) SetModel(v string)` + +SetModel sets Model field to given value. + +### HasModel + +`func (o *ClusterNodesInner) HasModel() bool` + +HasModel returns a boolean if a field has been set. + +### GetModified + +`func (o *ClusterNodesInner) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *ClusterNodesInner) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *ClusterNodesInner) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNetworkType + +`func (o *ClusterNodesInner) GetNetworkType() NetworkTypeEnum` + +GetNetworkType returns the NetworkType field if non-nil, zero value otherwise. + +### GetNetworkTypeOk + +`func (o *ClusterNodesInner) GetNetworkTypeOk() (*NetworkTypeEnum, bool)` + +GetNetworkTypeOk returns a tuple with the NetworkType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkType + +`func (o *ClusterNodesInner) SetNetworkType(v NetworkTypeEnum)` + +SetNetworkType sets NetworkType field to given value. + +### HasNetworkType + +`func (o *ClusterNodesInner) HasNetworkType() bool` + +HasNetworkType returns a boolean if a field has been set. + +### GetNicPrefixes + +`func (o *ClusterNodesInner) GetNicPrefixes() []string` + +GetNicPrefixes returns the NicPrefixes field if non-nil, zero value otherwise. + +### GetNicPrefixesOk + +`func (o *ClusterNodesInner) GetNicPrefixesOk() (*[]string, bool)` + +GetNicPrefixesOk returns a tuple with the NicPrefixes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNicPrefixes + +`func (o *ClusterNodesInner) SetNicPrefixes(v []string)` + +SetNicPrefixes sets NicPrefixes field to given value. + +### HasNicPrefixes + +`func (o *ClusterNodesInner) HasNicPrefixes() bool` + +HasNicPrefixes returns a boolean if a field has been set. + +### GetNotes + +`func (o *ClusterNodesInner) GetNotes() string` + +GetNotes returns the Notes field if non-nil, zero value otherwise. + +### GetNotesOk + +`func (o *ClusterNodesInner) GetNotesOk() (*string, bool)` + +GetNotesOk returns a tuple with the Notes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotes + +`func (o *ClusterNodesInner) SetNotes(v string)` + +SetNotes sets Notes field to given value. + +### HasNotes + +`func (o *ClusterNodesInner) HasNotes() bool` + +HasNotes returns a boolean if a field has been set. + +### GetOem + +`func (o *ClusterNodesInner) GetOem() string` + +GetOem returns the Oem field if non-nil, zero value otherwise. + +### GetOemOk + +`func (o *ClusterNodesInner) GetOemOk() (*string, bool)` + +GetOemOk returns a tuple with the Oem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOem + +`func (o *ClusterNodesInner) SetOem(v string)` + +SetOem sets Oem field to given value. + +### HasOem + +`func (o *ClusterNodesInner) HasOem() bool` + +HasOem returns a boolean if a field has been set. + +### GetProviderNodeId + +`func (o *ClusterNodesInner) GetProviderNodeId() string` + +GetProviderNodeId returns the ProviderNodeId field if non-nil, zero value otherwise. + +### GetProviderNodeIdOk + +`func (o *ClusterNodesInner) GetProviderNodeIdOk() (*string, bool)` + +GetProviderNodeIdOk returns a tuple with the ProviderNodeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderNodeId + +`func (o *ClusterNodesInner) SetProviderNodeId(v string)` + +SetProviderNodeId sets ProviderNodeId field to given value. + +### HasProviderNodeId + +`func (o *ClusterNodesInner) HasProviderNodeId() bool` + +HasProviderNodeId returns a boolean if a field has been set. + +### GetRack + +`func (o *ClusterNodesInner) GetRack() string` + +GetRack returns the Rack field if non-nil, zero value otherwise. + +### GetRackOk + +`func (o *ClusterNodesInner) GetRackOk() (*string, bool)` + +GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRack + +`func (o *ClusterNodesInner) SetRack(v string)` + +SetRack sets Rack field to given value. + +### HasRack + +`func (o *ClusterNodesInner) HasRack() bool` + +HasRack returns a boolean if a field has been set. + +### GetRackUnit + +`func (o *ClusterNodesInner) GetRackUnit() int32` + +GetRackUnit returns the RackUnit field if non-nil, zero value otherwise. + +### GetRackUnitOk + +`func (o *ClusterNodesInner) GetRackUnitOk() (*int32, bool)` + +GetRackUnitOk returns a tuple with the RackUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackUnit + +`func (o *ClusterNodesInner) SetRackUnit(v int32)` + +SetRackUnit sets RackUnit field to given value. + +### HasRackUnit + +`func (o *ClusterNodesInner) HasRackUnit() bool` + +HasRackUnit returns a boolean if a field has been set. + +### GetSerialNumber + +`func (o *ClusterNodesInner) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *ClusterNodesInner) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *ClusterNodesInner) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *ClusterNodesInner) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### GetStorage + +`func (o *ClusterNodesInner) GetStorage() []NodeStorage` + +GetStorage returns the Storage field if non-nil, zero value otherwise. + +### GetStorageOk + +`func (o *ClusterNodesInner) GetStorageOk() (*[]NodeStorage, bool)` + +GetStorageOk returns a tuple with the Storage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorage + +`func (o *ClusterNodesInner) SetStorage(v []NodeStorage)` + +SetStorage sets Storage field to given value. + + +### GetSystemArch + +`func (o *ClusterNodesInner) GetSystemArch() SystemArchEnum` + +GetSystemArch returns the SystemArch field if non-nil, zero value otherwise. + +### GetSystemArchOk + +`func (o *ClusterNodesInner) GetSystemArchOk() (*SystemArchEnum, bool)` + +GetSystemArchOk returns a tuple with the SystemArch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemArch + +`func (o *ClusterNodesInner) SetSystemArch(v SystemArchEnum)` + +SetSystemArch sets SystemArch field to given value. + + +### GetTee + +`func (o *ClusterNodesInner) GetTee() bool` + +GetTee returns the Tee field if non-nil, zero value otherwise. + +### GetTeeOk + +`func (o *ClusterNodesInner) GetTeeOk() (*bool, bool)` + +GetTeeOk returns a tuple with the Tee field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTee + +`func (o *ClusterNodesInner) SetTee(v bool)` + +SetTee sets Tee field to given value. + +### HasTee + +`func (o *ClusterNodesInner) HasTee() bool` + +HasTee 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) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/CpuManufacturerEnum.md b/v1/providers/launchpad/gen/launchpad/docs/CpuManufacturerEnum.md new file mode 100644 index 0000000..012fc0f --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/CpuManufacturerEnum.md @@ -0,0 +1,15 @@ +# CpuManufacturerEnum + +## Enum + + +* `CpuManufacturerAMD` (value: `"amd"`) + +* `CpuManufacturerARM` (value: `"arm"`) + +* `CpuManufacturerIntel` (value: `"intel"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/Deployment.md b/v1/providers/launchpad/gen/launchpad/docs/Deployment.md new file mode 100644 index 0000000..c8342d6 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/Deployment.md @@ -0,0 +1,1679 @@ +# Deployment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BastionOperatingSystem** | Pointer to **NullableString** | Override bastion operating system provisioned and/or configured by Liftoff | [optional] +**CatalogId** | Pointer to **string** | Unique ID for this experience in the sales catalog. Must be unique. | [optional] +**CatalogIdAlias** | Pointer to **NullableString** | Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique. | [optional] +**Cluster** | Pointer to [**DeploymentCluster**](DeploymentCluster.md) | | [optional] +**CollectionBranch** | Pointer to **NullableString** | Override the Ansible collection branch initialized within the pipeline | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Experience** | Pointer to [**DeploymentExperience**](DeploymentExperience.md) | | [optional] +**ExperienceBranch** | Pointer to **NullableString** | Override the experience branch | [optional] +**ExperienceId** | Pointer to **string** | | [optional] +**ExpiresAt** | Pointer to **NullableTime** | | [optional] +**FlightcontrolRelease** | Pointer to **NullableString** | Override the image tag used for Flight Control | [optional] +**GarageId** | Pointer to **NullableString** | Require a cluster with nodes in the given garage | [optional] +**GcBranch** | Pointer to **NullableString** | Override the default Ground Control branch | [optional] +**GpuAlias** | Pointer to **NullableString** | Require a cluster with the given GPU alias | [optional] +**GpuCount** | Pointer to **NullableInt32** | Require a cluster with the given number of GPUs | [optional] +**GpuModel** | Pointer to **NullableString** | Require a cluster with the given GPU model | [optional] +**GpuOsName** | Pointer to **string** | | [optional] +**GpuOsRelease** | Pointer to **string** | | [optional] +**GpuOsVersion** | Pointer to **string** | | [optional] +**Id** | **string** | | [readonly] +**IpAllowlist** | Pointer to **[]string** | Host IP addresses that should be allowed to access the deployment | [optional] +**Lifetime** | Pointer to **NullableInt32** | Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. | [optional] +**MinGpuCount** | Pointer to **NullableInt32** | Require a cluster whose GPU count is greater than or equal to the given number | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**NodeCount** | Pointer to **NullableInt32** | Require a cluster with the given number of nodes | [optional] +**OemName** | Pointer to **NullableString** | Require a cluster manufactured by the given OEM name | [optional] +**OrgName** | **string** | Requester's organization name | +**Overrides** | **interface{}** | | +**PersistOnFailure** | Pointer to **NullableBool** | Override the default cleanup/destroy behavior when a provisioning failure occurs | [optional] +**Persona** | Pointer to **string** | | [optional] +**Pipeline** | Pointer to **NullableInt64** | Override the pipeline ID that will be triggered for request fulfillment | [optional] +**PipelineBranch** | Pointer to **NullableString** | Override the default pipeline branch ref used when triggering a Fuselage pipeline | [optional] +**Pipelines** | **[]string** | | +**Platform** | Pointer to [**NullablePlatformEnum**](PlatformEnum.md) | | [optional] +**Priority** | Pointer to [**PriorityEnum**](PriorityEnum.md) | Priority level for the request * `p0` - p0 * `p1` - p1 * `p2` - p2 * `p3` - p3 | [optional] +**ProviderName** | Pointer to **NullableString** | Require a cluster from the given provider name | [optional] +**PublicKey** | Pointer to **NullableString** | The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. | [optional] +**Region** | Pointer to **NullableString** | Require a cluster located in the given region | [optional] +**RequestId** | Pointer to **string** | Trial request ID (ex: TRY-1234) | [optional] +**RequesterEmail** | **string** | Email address of the user requesting the experience | +**RequesterName** | **string** | Name of the user requesting the experience | +**RetryCount** | **int32** | Number of times the deployment has been retried | [readonly] +**SalesCreatedDate** | Pointer to **NullableTime** | | [optional] +**SalesId** | Pointer to **NullableString** | Unique identifier for the requester's sales relationship | [optional] +**SalesOwnerEmail** | Pointer to **NullableString** | Email address of the sales contact associated with the requester | [optional] +**SalesOwnerName** | Pointer to **NullableString** | Name of the sales contact associated with the requester | [optional] +**Services** | **[]string** | | +**SshPort** | **int32** | | [readonly] +**SshUser** | **string** | | [readonly] +**State** | [**DeploymentState**](DeploymentState.md) | Current state of the deployment * `destroyed` - Deployment has been fully destroyed * `destroying` - Deployment is being destroyed * `error` - Deployment has encountered a fatal error and will not be retried * `failed` - Deployment has failed but may be retried * `paused` - Deployment is paused but may be retried later * `ready` - Deployment is ready and all instances are running * `retrying` - Deployment is retrying * `starting` - Deployment instances are starting * `stopped` - Deployment instances are stopped * `stopping` - Deployment instances are stopping * `waiting` - Waiting for deployment to be ready | [readonly] +**Tags** | Pointer to **interface{}** | | [optional] +**Workshop** | Pointer to **NullableBool** | Require a cluster whose workshop flag is set | [optional] +**WorkshopId** | Pointer to **NullableString** | Require a cluster with the given workshop ID | [optional] +**WorkshopOverridePassword** | Pointer to **NullableString** | Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) | [optional] + +## Methods + +### NewDeployment + +`func NewDeployment(created time.Time, id string, modified time.Time, orgName string, overrides interface{}, pipelines []string, requesterEmail string, requesterName string, retryCount int32, services []string, sshPort int32, sshUser string, state DeploymentState, ) *Deployment` + +NewDeployment instantiates a new Deployment 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 + +### NewDeploymentWithDefaults + +`func NewDeploymentWithDefaults() *Deployment` + +NewDeploymentWithDefaults instantiates a new Deployment 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 + +### GetBastionOperatingSystem + +`func (o *Deployment) GetBastionOperatingSystem() string` + +GetBastionOperatingSystem returns the BastionOperatingSystem field if non-nil, zero value otherwise. + +### GetBastionOperatingSystemOk + +`func (o *Deployment) GetBastionOperatingSystemOk() (*string, bool)` + +GetBastionOperatingSystemOk returns a tuple with the BastionOperatingSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBastionOperatingSystem + +`func (o *Deployment) SetBastionOperatingSystem(v string)` + +SetBastionOperatingSystem sets BastionOperatingSystem field to given value. + +### HasBastionOperatingSystem + +`func (o *Deployment) HasBastionOperatingSystem() bool` + +HasBastionOperatingSystem returns a boolean if a field has been set. + +### SetBastionOperatingSystemNil + +`func (o *Deployment) SetBastionOperatingSystemNil(b bool)` + + SetBastionOperatingSystemNil sets the value for BastionOperatingSystem to be an explicit nil + +### UnsetBastionOperatingSystem +`func (o *Deployment) UnsetBastionOperatingSystem()` + +UnsetBastionOperatingSystem ensures that no value is present for BastionOperatingSystem, not even an explicit nil +### GetCatalogId + +`func (o *Deployment) GetCatalogId() string` + +GetCatalogId returns the CatalogId field if non-nil, zero value otherwise. + +### GetCatalogIdOk + +`func (o *Deployment) GetCatalogIdOk() (*string, bool)` + +GetCatalogIdOk returns a tuple with the CatalogId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogId + +`func (o *Deployment) SetCatalogId(v string)` + +SetCatalogId sets CatalogId field to given value. + +### HasCatalogId + +`func (o *Deployment) HasCatalogId() bool` + +HasCatalogId returns a boolean if a field has been set. + +### GetCatalogIdAlias + +`func (o *Deployment) GetCatalogIdAlias() string` + +GetCatalogIdAlias returns the CatalogIdAlias field if non-nil, zero value otherwise. + +### GetCatalogIdAliasOk + +`func (o *Deployment) GetCatalogIdAliasOk() (*string, bool)` + +GetCatalogIdAliasOk returns a tuple with the CatalogIdAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogIdAlias + +`func (o *Deployment) SetCatalogIdAlias(v string)` + +SetCatalogIdAlias sets CatalogIdAlias field to given value. + +### HasCatalogIdAlias + +`func (o *Deployment) HasCatalogIdAlias() bool` + +HasCatalogIdAlias returns a boolean if a field has been set. + +### SetCatalogIdAliasNil + +`func (o *Deployment) SetCatalogIdAliasNil(b bool)` + + SetCatalogIdAliasNil sets the value for CatalogIdAlias to be an explicit nil + +### UnsetCatalogIdAlias +`func (o *Deployment) UnsetCatalogIdAlias()` + +UnsetCatalogIdAlias ensures that no value is present for CatalogIdAlias, not even an explicit nil +### GetCluster + +`func (o *Deployment) GetCluster() DeploymentCluster` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *Deployment) GetClusterOk() (*DeploymentCluster, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *Deployment) SetCluster(v DeploymentCluster)` + +SetCluster sets Cluster field to given value. + +### HasCluster + +`func (o *Deployment) HasCluster() bool` + +HasCluster returns a boolean if a field has been set. + +### GetCollectionBranch + +`func (o *Deployment) GetCollectionBranch() string` + +GetCollectionBranch returns the CollectionBranch field if non-nil, zero value otherwise. + +### GetCollectionBranchOk + +`func (o *Deployment) GetCollectionBranchOk() (*string, bool)` + +GetCollectionBranchOk returns a tuple with the CollectionBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionBranch + +`func (o *Deployment) SetCollectionBranch(v string)` + +SetCollectionBranch sets CollectionBranch field to given value. + +### HasCollectionBranch + +`func (o *Deployment) HasCollectionBranch() bool` + +HasCollectionBranch returns a boolean if a field has been set. + +### SetCollectionBranchNil + +`func (o *Deployment) SetCollectionBranchNil(b bool)` + + SetCollectionBranchNil sets the value for CollectionBranch to be an explicit nil + +### UnsetCollectionBranch +`func (o *Deployment) UnsetCollectionBranch()` + +UnsetCollectionBranch ensures that no value is present for CollectionBranch, not even an explicit nil +### GetCreated + +`func (o *Deployment) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Deployment) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Deployment) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetExperience + +`func (o *Deployment) GetExperience() DeploymentExperience` + +GetExperience returns the Experience field if non-nil, zero value otherwise. + +### GetExperienceOk + +`func (o *Deployment) GetExperienceOk() (*DeploymentExperience, bool)` + +GetExperienceOk returns a tuple with the Experience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperience + +`func (o *Deployment) SetExperience(v DeploymentExperience)` + +SetExperience sets Experience field to given value. + +### HasExperience + +`func (o *Deployment) HasExperience() bool` + +HasExperience returns a boolean if a field has been set. + +### GetExperienceBranch + +`func (o *Deployment) GetExperienceBranch() string` + +GetExperienceBranch returns the ExperienceBranch field if non-nil, zero value otherwise. + +### GetExperienceBranchOk + +`func (o *Deployment) GetExperienceBranchOk() (*string, bool)` + +GetExperienceBranchOk returns a tuple with the ExperienceBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperienceBranch + +`func (o *Deployment) SetExperienceBranch(v string)` + +SetExperienceBranch sets ExperienceBranch field to given value. + +### HasExperienceBranch + +`func (o *Deployment) HasExperienceBranch() bool` + +HasExperienceBranch returns a boolean if a field has been set. + +### SetExperienceBranchNil + +`func (o *Deployment) SetExperienceBranchNil(b bool)` + + SetExperienceBranchNil sets the value for ExperienceBranch to be an explicit nil + +### UnsetExperienceBranch +`func (o *Deployment) UnsetExperienceBranch()` + +UnsetExperienceBranch ensures that no value is present for ExperienceBranch, not even an explicit nil +### GetExperienceId + +`func (o *Deployment) GetExperienceId() string` + +GetExperienceId returns the ExperienceId field if non-nil, zero value otherwise. + +### GetExperienceIdOk + +`func (o *Deployment) GetExperienceIdOk() (*string, bool)` + +GetExperienceIdOk returns a tuple with the ExperienceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperienceId + +`func (o *Deployment) SetExperienceId(v string)` + +SetExperienceId sets ExperienceId field to given value. + +### HasExperienceId + +`func (o *Deployment) HasExperienceId() bool` + +HasExperienceId returns a boolean if a field has been set. + +### GetExpiresAt + +`func (o *Deployment) GetExpiresAt() time.Time` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *Deployment) GetExpiresAtOk() (*time.Time, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *Deployment) SetExpiresAt(v time.Time)` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *Deployment) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *Deployment) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *Deployment) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetFlightcontrolRelease + +`func (o *Deployment) GetFlightcontrolRelease() string` + +GetFlightcontrolRelease returns the FlightcontrolRelease field if non-nil, zero value otherwise. + +### GetFlightcontrolReleaseOk + +`func (o *Deployment) GetFlightcontrolReleaseOk() (*string, bool)` + +GetFlightcontrolReleaseOk returns a tuple with the FlightcontrolRelease field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlightcontrolRelease + +`func (o *Deployment) SetFlightcontrolRelease(v string)` + +SetFlightcontrolRelease sets FlightcontrolRelease field to given value. + +### HasFlightcontrolRelease + +`func (o *Deployment) HasFlightcontrolRelease() bool` + +HasFlightcontrolRelease returns a boolean if a field has been set. + +### SetFlightcontrolReleaseNil + +`func (o *Deployment) SetFlightcontrolReleaseNil(b bool)` + + SetFlightcontrolReleaseNil sets the value for FlightcontrolRelease to be an explicit nil + +### UnsetFlightcontrolRelease +`func (o *Deployment) UnsetFlightcontrolRelease()` + +UnsetFlightcontrolRelease ensures that no value is present for FlightcontrolRelease, not even an explicit nil +### GetGarageId + +`func (o *Deployment) GetGarageId() string` + +GetGarageId returns the GarageId field if non-nil, zero value otherwise. + +### GetGarageIdOk + +`func (o *Deployment) GetGarageIdOk() (*string, bool)` + +GetGarageIdOk returns a tuple with the GarageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGarageId + +`func (o *Deployment) SetGarageId(v string)` + +SetGarageId sets GarageId field to given value. + +### HasGarageId + +`func (o *Deployment) HasGarageId() bool` + +HasGarageId returns a boolean if a field has been set. + +### SetGarageIdNil + +`func (o *Deployment) SetGarageIdNil(b bool)` + + SetGarageIdNil sets the value for GarageId to be an explicit nil + +### UnsetGarageId +`func (o *Deployment) UnsetGarageId()` + +UnsetGarageId ensures that no value is present for GarageId, not even an explicit nil +### GetGcBranch + +`func (o *Deployment) GetGcBranch() string` + +GetGcBranch returns the GcBranch field if non-nil, zero value otherwise. + +### GetGcBranchOk + +`func (o *Deployment) GetGcBranchOk() (*string, bool)` + +GetGcBranchOk returns a tuple with the GcBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcBranch + +`func (o *Deployment) SetGcBranch(v string)` + +SetGcBranch sets GcBranch field to given value. + +### HasGcBranch + +`func (o *Deployment) HasGcBranch() bool` + +HasGcBranch returns a boolean if a field has been set. + +### SetGcBranchNil + +`func (o *Deployment) SetGcBranchNil(b bool)` + + SetGcBranchNil sets the value for GcBranch to be an explicit nil + +### UnsetGcBranch +`func (o *Deployment) UnsetGcBranch()` + +UnsetGcBranch ensures that no value is present for GcBranch, not even an explicit nil +### GetGpuAlias + +`func (o *Deployment) GetGpuAlias() string` + +GetGpuAlias returns the GpuAlias field if non-nil, zero value otherwise. + +### GetGpuAliasOk + +`func (o *Deployment) GetGpuAliasOk() (*string, bool)` + +GetGpuAliasOk returns a tuple with the GpuAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuAlias + +`func (o *Deployment) SetGpuAlias(v string)` + +SetGpuAlias sets GpuAlias field to given value. + +### HasGpuAlias + +`func (o *Deployment) HasGpuAlias() bool` + +HasGpuAlias returns a boolean if a field has been set. + +### SetGpuAliasNil + +`func (o *Deployment) SetGpuAliasNil(b bool)` + + SetGpuAliasNil sets the value for GpuAlias to be an explicit nil + +### UnsetGpuAlias +`func (o *Deployment) UnsetGpuAlias()` + +UnsetGpuAlias ensures that no value is present for GpuAlias, not even an explicit nil +### GetGpuCount + +`func (o *Deployment) GetGpuCount() int32` + +GetGpuCount returns the GpuCount field if non-nil, zero value otherwise. + +### GetGpuCountOk + +`func (o *Deployment) GetGpuCountOk() (*int32, bool)` + +GetGpuCountOk returns a tuple with the GpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuCount + +`func (o *Deployment) SetGpuCount(v int32)` + +SetGpuCount sets GpuCount field to given value. + +### HasGpuCount + +`func (o *Deployment) HasGpuCount() bool` + +HasGpuCount returns a boolean if a field has been set. + +### SetGpuCountNil + +`func (o *Deployment) SetGpuCountNil(b bool)` + + SetGpuCountNil sets the value for GpuCount to be an explicit nil + +### UnsetGpuCount +`func (o *Deployment) UnsetGpuCount()` + +UnsetGpuCount ensures that no value is present for GpuCount, not even an explicit nil +### GetGpuModel + +`func (o *Deployment) GetGpuModel() string` + +GetGpuModel returns the GpuModel field if non-nil, zero value otherwise. + +### GetGpuModelOk + +`func (o *Deployment) GetGpuModelOk() (*string, bool)` + +GetGpuModelOk returns a tuple with the GpuModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuModel + +`func (o *Deployment) SetGpuModel(v string)` + +SetGpuModel sets GpuModel field to given value. + +### HasGpuModel + +`func (o *Deployment) HasGpuModel() bool` + +HasGpuModel returns a boolean if a field has been set. + +### SetGpuModelNil + +`func (o *Deployment) SetGpuModelNil(b bool)` + + SetGpuModelNil sets the value for GpuModel to be an explicit nil + +### UnsetGpuModel +`func (o *Deployment) UnsetGpuModel()` + +UnsetGpuModel ensures that no value is present for GpuModel, not even an explicit nil +### GetGpuOsName + +`func (o *Deployment) GetGpuOsName() string` + +GetGpuOsName returns the GpuOsName field if non-nil, zero value otherwise. + +### GetGpuOsNameOk + +`func (o *Deployment) GetGpuOsNameOk() (*string, bool)` + +GetGpuOsNameOk returns a tuple with the GpuOsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsName + +`func (o *Deployment) SetGpuOsName(v string)` + +SetGpuOsName sets GpuOsName field to given value. + +### HasGpuOsName + +`func (o *Deployment) HasGpuOsName() bool` + +HasGpuOsName returns a boolean if a field has been set. + +### GetGpuOsRelease + +`func (o *Deployment) GetGpuOsRelease() string` + +GetGpuOsRelease returns the GpuOsRelease field if non-nil, zero value otherwise. + +### GetGpuOsReleaseOk + +`func (o *Deployment) GetGpuOsReleaseOk() (*string, bool)` + +GetGpuOsReleaseOk returns a tuple with the GpuOsRelease field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsRelease + +`func (o *Deployment) SetGpuOsRelease(v string)` + +SetGpuOsRelease sets GpuOsRelease field to given value. + +### HasGpuOsRelease + +`func (o *Deployment) HasGpuOsRelease() bool` + +HasGpuOsRelease returns a boolean if a field has been set. + +### GetGpuOsVersion + +`func (o *Deployment) GetGpuOsVersion() string` + +GetGpuOsVersion returns the GpuOsVersion field if non-nil, zero value otherwise. + +### GetGpuOsVersionOk + +`func (o *Deployment) GetGpuOsVersionOk() (*string, bool)` + +GetGpuOsVersionOk returns a tuple with the GpuOsVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsVersion + +`func (o *Deployment) SetGpuOsVersion(v string)` + +SetGpuOsVersion sets GpuOsVersion field to given value. + +### HasGpuOsVersion + +`func (o *Deployment) HasGpuOsVersion() bool` + +HasGpuOsVersion returns a boolean if a field has been set. + +### GetId + +`func (o *Deployment) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Deployment) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Deployment) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIpAllowlist + +`func (o *Deployment) GetIpAllowlist() []string` + +GetIpAllowlist returns the IpAllowlist field if non-nil, zero value otherwise. + +### GetIpAllowlistOk + +`func (o *Deployment) GetIpAllowlistOk() (*[]string, bool)` + +GetIpAllowlistOk returns a tuple with the IpAllowlist field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAllowlist + +`func (o *Deployment) SetIpAllowlist(v []string)` + +SetIpAllowlist sets IpAllowlist field to given value. + +### HasIpAllowlist + +`func (o *Deployment) HasIpAllowlist() bool` + +HasIpAllowlist returns a boolean if a field has been set. + +### GetLifetime + +`func (o *Deployment) GetLifetime() int32` + +GetLifetime returns the Lifetime field if non-nil, zero value otherwise. + +### GetLifetimeOk + +`func (o *Deployment) GetLifetimeOk() (*int32, bool)` + +GetLifetimeOk returns a tuple with the Lifetime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifetime + +`func (o *Deployment) SetLifetime(v int32)` + +SetLifetime sets Lifetime field to given value. + +### HasLifetime + +`func (o *Deployment) HasLifetime() bool` + +HasLifetime returns a boolean if a field has been set. + +### SetLifetimeNil + +`func (o *Deployment) SetLifetimeNil(b bool)` + + SetLifetimeNil sets the value for Lifetime to be an explicit nil + +### UnsetLifetime +`func (o *Deployment) UnsetLifetime()` + +UnsetLifetime ensures that no value is present for Lifetime, not even an explicit nil +### GetMinGpuCount + +`func (o *Deployment) GetMinGpuCount() int32` + +GetMinGpuCount returns the MinGpuCount field if non-nil, zero value otherwise. + +### GetMinGpuCountOk + +`func (o *Deployment) GetMinGpuCountOk() (*int32, bool)` + +GetMinGpuCountOk returns a tuple with the MinGpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinGpuCount + +`func (o *Deployment) SetMinGpuCount(v int32)` + +SetMinGpuCount sets MinGpuCount field to given value. + +### HasMinGpuCount + +`func (o *Deployment) HasMinGpuCount() bool` + +HasMinGpuCount returns a boolean if a field has been set. + +### SetMinGpuCountNil + +`func (o *Deployment) SetMinGpuCountNil(b bool)` + + SetMinGpuCountNil sets the value for MinGpuCount to be an explicit nil + +### UnsetMinGpuCount +`func (o *Deployment) UnsetMinGpuCount()` + +UnsetMinGpuCount ensures that no value is present for MinGpuCount, not even an explicit nil +### GetModified + +`func (o *Deployment) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *Deployment) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *Deployment) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNodeCount + +`func (o *Deployment) GetNodeCount() int32` + +GetNodeCount returns the NodeCount field if non-nil, zero value otherwise. + +### GetNodeCountOk + +`func (o *Deployment) 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 *Deployment) SetNodeCount(v int32)` + +SetNodeCount sets NodeCount field to given value. + +### HasNodeCount + +`func (o *Deployment) HasNodeCount() bool` + +HasNodeCount returns a boolean if a field has been set. + +### SetNodeCountNil + +`func (o *Deployment) SetNodeCountNil(b bool)` + + SetNodeCountNil sets the value for NodeCount to be an explicit nil + +### UnsetNodeCount +`func (o *Deployment) UnsetNodeCount()` + +UnsetNodeCount ensures that no value is present for NodeCount, not even an explicit nil +### GetOemName + +`func (o *Deployment) GetOemName() string` + +GetOemName returns the OemName field if non-nil, zero value otherwise. + +### GetOemNameOk + +`func (o *Deployment) GetOemNameOk() (*string, bool)` + +GetOemNameOk returns a tuple with the OemName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOemName + +`func (o *Deployment) SetOemName(v string)` + +SetOemName sets OemName field to given value. + +### HasOemName + +`func (o *Deployment) HasOemName() bool` + +HasOemName returns a boolean if a field has been set. + +### SetOemNameNil + +`func (o *Deployment) SetOemNameNil(b bool)` + + SetOemNameNil sets the value for OemName to be an explicit nil + +### UnsetOemName +`func (o *Deployment) UnsetOemName()` + +UnsetOemName ensures that no value is present for OemName, not even an explicit nil +### GetOrgName + +`func (o *Deployment) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *Deployment) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *Deployment) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + + +### GetOverrides + +`func (o *Deployment) GetOverrides() interface{}` + +GetOverrides returns the Overrides field if non-nil, zero value otherwise. + +### GetOverridesOk + +`func (o *Deployment) GetOverridesOk() (*interface{}, bool)` + +GetOverridesOk returns a tuple with the Overrides field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverrides + +`func (o *Deployment) SetOverrides(v interface{})` + +SetOverrides sets Overrides field to given value. + + +### SetOverridesNil + +`func (o *Deployment) SetOverridesNil(b bool)` + + SetOverridesNil sets the value for Overrides to be an explicit nil + +### UnsetOverrides +`func (o *Deployment) UnsetOverrides()` + +UnsetOverrides ensures that no value is present for Overrides, not even an explicit nil +### GetPersistOnFailure + +`func (o *Deployment) GetPersistOnFailure() bool` + +GetPersistOnFailure returns the PersistOnFailure field if non-nil, zero value otherwise. + +### GetPersistOnFailureOk + +`func (o *Deployment) GetPersistOnFailureOk() (*bool, bool)` + +GetPersistOnFailureOk returns a tuple with the PersistOnFailure field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersistOnFailure + +`func (o *Deployment) SetPersistOnFailure(v bool)` + +SetPersistOnFailure sets PersistOnFailure field to given value. + +### HasPersistOnFailure + +`func (o *Deployment) HasPersistOnFailure() bool` + +HasPersistOnFailure returns a boolean if a field has been set. + +### SetPersistOnFailureNil + +`func (o *Deployment) SetPersistOnFailureNil(b bool)` + + SetPersistOnFailureNil sets the value for PersistOnFailure to be an explicit nil + +### UnsetPersistOnFailure +`func (o *Deployment) UnsetPersistOnFailure()` + +UnsetPersistOnFailure ensures that no value is present for PersistOnFailure, not even an explicit nil +### GetPersona + +`func (o *Deployment) GetPersona() string` + +GetPersona returns the Persona field if non-nil, zero value otherwise. + +### GetPersonaOk + +`func (o *Deployment) GetPersonaOk() (*string, bool)` + +GetPersonaOk returns a tuple with the Persona field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersona + +`func (o *Deployment) SetPersona(v string)` + +SetPersona sets Persona field to given value. + +### HasPersona + +`func (o *Deployment) HasPersona() bool` + +HasPersona returns a boolean if a field has been set. + +### GetPipeline + +`func (o *Deployment) GetPipeline() int64` + +GetPipeline returns the Pipeline field if non-nil, zero value otherwise. + +### GetPipelineOk + +`func (o *Deployment) GetPipelineOk() (*int64, bool)` + +GetPipelineOk returns a tuple with the Pipeline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipeline + +`func (o *Deployment) SetPipeline(v int64)` + +SetPipeline sets Pipeline field to given value. + +### HasPipeline + +`func (o *Deployment) HasPipeline() bool` + +HasPipeline returns a boolean if a field has been set. + +### SetPipelineNil + +`func (o *Deployment) SetPipelineNil(b bool)` + + SetPipelineNil sets the value for Pipeline to be an explicit nil + +### UnsetPipeline +`func (o *Deployment) UnsetPipeline()` + +UnsetPipeline ensures that no value is present for Pipeline, not even an explicit nil +### GetPipelineBranch + +`func (o *Deployment) GetPipelineBranch() string` + +GetPipelineBranch returns the PipelineBranch field if non-nil, zero value otherwise. + +### GetPipelineBranchOk + +`func (o *Deployment) GetPipelineBranchOk() (*string, bool)` + +GetPipelineBranchOk returns a tuple with the PipelineBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipelineBranch + +`func (o *Deployment) SetPipelineBranch(v string)` + +SetPipelineBranch sets PipelineBranch field to given value. + +### HasPipelineBranch + +`func (o *Deployment) HasPipelineBranch() bool` + +HasPipelineBranch returns a boolean if a field has been set. + +### SetPipelineBranchNil + +`func (o *Deployment) SetPipelineBranchNil(b bool)` + + SetPipelineBranchNil sets the value for PipelineBranch to be an explicit nil + +### UnsetPipelineBranch +`func (o *Deployment) UnsetPipelineBranch()` + +UnsetPipelineBranch ensures that no value is present for PipelineBranch, not even an explicit nil +### GetPipelines + +`func (o *Deployment) GetPipelines() []string` + +GetPipelines returns the Pipelines field if non-nil, zero value otherwise. + +### GetPipelinesOk + +`func (o *Deployment) GetPipelinesOk() (*[]string, bool)` + +GetPipelinesOk returns a tuple with the Pipelines field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipelines + +`func (o *Deployment) SetPipelines(v []string)` + +SetPipelines sets Pipelines field to given value. + + +### GetPlatform + +`func (o *Deployment) GetPlatform() PlatformEnum` + +GetPlatform returns the Platform field if non-nil, zero value otherwise. + +### GetPlatformOk + +`func (o *Deployment) GetPlatformOk() (*PlatformEnum, bool)` + +GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatform + +`func (o *Deployment) SetPlatform(v PlatformEnum)` + +SetPlatform sets Platform field to given value. + +### HasPlatform + +`func (o *Deployment) HasPlatform() bool` + +HasPlatform returns a boolean if a field has been set. + +### SetPlatformNil + +`func (o *Deployment) SetPlatformNil(b bool)` + + SetPlatformNil sets the value for Platform to be an explicit nil + +### UnsetPlatform +`func (o *Deployment) UnsetPlatform()` + +UnsetPlatform ensures that no value is present for Platform, not even an explicit nil +### GetPriority + +`func (o *Deployment) GetPriority() PriorityEnum` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *Deployment) GetPriorityOk() (*PriorityEnum, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *Deployment) SetPriority(v PriorityEnum)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *Deployment) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetProviderName + +`func (o *Deployment) GetProviderName() string` + +GetProviderName returns the ProviderName field if non-nil, zero value otherwise. + +### GetProviderNameOk + +`func (o *Deployment) GetProviderNameOk() (*string, bool)` + +GetProviderNameOk returns a tuple with the ProviderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderName + +`func (o *Deployment) SetProviderName(v string)` + +SetProviderName sets ProviderName field to given value. + +### HasProviderName + +`func (o *Deployment) HasProviderName() bool` + +HasProviderName returns a boolean if a field has been set. + +### SetProviderNameNil + +`func (o *Deployment) SetProviderNameNil(b bool)` + + SetProviderNameNil sets the value for ProviderName to be an explicit nil + +### UnsetProviderName +`func (o *Deployment) UnsetProviderName()` + +UnsetProviderName ensures that no value is present for ProviderName, not even an explicit nil +### GetPublicKey + +`func (o *Deployment) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *Deployment) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *Deployment) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + +### HasPublicKey + +`func (o *Deployment) HasPublicKey() bool` + +HasPublicKey returns a boolean if a field has been set. + +### SetPublicKeyNil + +`func (o *Deployment) SetPublicKeyNil(b bool)` + + SetPublicKeyNil sets the value for PublicKey to be an explicit nil + +### UnsetPublicKey +`func (o *Deployment) UnsetPublicKey()` + +UnsetPublicKey ensures that no value is present for PublicKey, not even an explicit nil +### GetRegion + +`func (o *Deployment) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *Deployment) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *Deployment) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *Deployment) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### SetRegionNil + +`func (o *Deployment) SetRegionNil(b bool)` + + SetRegionNil sets the value for Region to be an explicit nil + +### UnsetRegion +`func (o *Deployment) UnsetRegion()` + +UnsetRegion ensures that no value is present for Region, not even an explicit nil +### GetRequestId + +`func (o *Deployment) GetRequestId() string` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *Deployment) GetRequestIdOk() (*string, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *Deployment) SetRequestId(v string)` + +SetRequestId sets RequestId field to given value. + +### HasRequestId + +`func (o *Deployment) HasRequestId() bool` + +HasRequestId returns a boolean if a field has been set. + +### GetRequesterEmail + +`func (o *Deployment) GetRequesterEmail() string` + +GetRequesterEmail returns the RequesterEmail field if non-nil, zero value otherwise. + +### GetRequesterEmailOk + +`func (o *Deployment) GetRequesterEmailOk() (*string, bool)` + +GetRequesterEmailOk returns a tuple with the RequesterEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterEmail + +`func (o *Deployment) SetRequesterEmail(v string)` + +SetRequesterEmail sets RequesterEmail field to given value. + + +### GetRequesterName + +`func (o *Deployment) GetRequesterName() string` + +GetRequesterName returns the RequesterName field if non-nil, zero value otherwise. + +### GetRequesterNameOk + +`func (o *Deployment) GetRequesterNameOk() (*string, bool)` + +GetRequesterNameOk returns a tuple with the RequesterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterName + +`func (o *Deployment) SetRequesterName(v string)` + +SetRequesterName sets RequesterName field to given value. + + +### GetRetryCount + +`func (o *Deployment) GetRetryCount() int32` + +GetRetryCount returns the RetryCount field if non-nil, zero value otherwise. + +### GetRetryCountOk + +`func (o *Deployment) GetRetryCountOk() (*int32, bool)` + +GetRetryCountOk returns a tuple with the RetryCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetryCount + +`func (o *Deployment) SetRetryCount(v int32)` + +SetRetryCount sets RetryCount field to given value. + + +### GetSalesCreatedDate + +`func (o *Deployment) GetSalesCreatedDate() time.Time` + +GetSalesCreatedDate returns the SalesCreatedDate field if non-nil, zero value otherwise. + +### GetSalesCreatedDateOk + +`func (o *Deployment) GetSalesCreatedDateOk() (*time.Time, bool)` + +GetSalesCreatedDateOk returns a tuple with the SalesCreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesCreatedDate + +`func (o *Deployment) SetSalesCreatedDate(v time.Time)` + +SetSalesCreatedDate sets SalesCreatedDate field to given value. + +### HasSalesCreatedDate + +`func (o *Deployment) HasSalesCreatedDate() bool` + +HasSalesCreatedDate returns a boolean if a field has been set. + +### SetSalesCreatedDateNil + +`func (o *Deployment) SetSalesCreatedDateNil(b bool)` + + SetSalesCreatedDateNil sets the value for SalesCreatedDate to be an explicit nil + +### UnsetSalesCreatedDate +`func (o *Deployment) UnsetSalesCreatedDate()` + +UnsetSalesCreatedDate ensures that no value is present for SalesCreatedDate, not even an explicit nil +### GetSalesId + +`func (o *Deployment) GetSalesId() string` + +GetSalesId returns the SalesId field if non-nil, zero value otherwise. + +### GetSalesIdOk + +`func (o *Deployment) GetSalesIdOk() (*string, bool)` + +GetSalesIdOk returns a tuple with the SalesId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesId + +`func (o *Deployment) SetSalesId(v string)` + +SetSalesId sets SalesId field to given value. + +### HasSalesId + +`func (o *Deployment) HasSalesId() bool` + +HasSalesId returns a boolean if a field has been set. + +### SetSalesIdNil + +`func (o *Deployment) SetSalesIdNil(b bool)` + + SetSalesIdNil sets the value for SalesId to be an explicit nil + +### UnsetSalesId +`func (o *Deployment) UnsetSalesId()` + +UnsetSalesId ensures that no value is present for SalesId, not even an explicit nil +### GetSalesOwnerEmail + +`func (o *Deployment) GetSalesOwnerEmail() string` + +GetSalesOwnerEmail returns the SalesOwnerEmail field if non-nil, zero value otherwise. + +### GetSalesOwnerEmailOk + +`func (o *Deployment) GetSalesOwnerEmailOk() (*string, bool)` + +GetSalesOwnerEmailOk returns a tuple with the SalesOwnerEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesOwnerEmail + +`func (o *Deployment) SetSalesOwnerEmail(v string)` + +SetSalesOwnerEmail sets SalesOwnerEmail field to given value. + +### HasSalesOwnerEmail + +`func (o *Deployment) HasSalesOwnerEmail() bool` + +HasSalesOwnerEmail returns a boolean if a field has been set. + +### SetSalesOwnerEmailNil + +`func (o *Deployment) SetSalesOwnerEmailNil(b bool)` + + SetSalesOwnerEmailNil sets the value for SalesOwnerEmail to be an explicit nil + +### UnsetSalesOwnerEmail +`func (o *Deployment) UnsetSalesOwnerEmail()` + +UnsetSalesOwnerEmail ensures that no value is present for SalesOwnerEmail, not even an explicit nil +### GetSalesOwnerName + +`func (o *Deployment) GetSalesOwnerName() string` + +GetSalesOwnerName returns the SalesOwnerName field if non-nil, zero value otherwise. + +### GetSalesOwnerNameOk + +`func (o *Deployment) GetSalesOwnerNameOk() (*string, bool)` + +GetSalesOwnerNameOk returns a tuple with the SalesOwnerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesOwnerName + +`func (o *Deployment) SetSalesOwnerName(v string)` + +SetSalesOwnerName sets SalesOwnerName field to given value. + +### HasSalesOwnerName + +`func (o *Deployment) HasSalesOwnerName() bool` + +HasSalesOwnerName returns a boolean if a field has been set. + +### SetSalesOwnerNameNil + +`func (o *Deployment) SetSalesOwnerNameNil(b bool)` + + SetSalesOwnerNameNil sets the value for SalesOwnerName to be an explicit nil + +### UnsetSalesOwnerName +`func (o *Deployment) UnsetSalesOwnerName()` + +UnsetSalesOwnerName ensures that no value is present for SalesOwnerName, not even an explicit nil +### GetServices + +`func (o *Deployment) GetServices() []string` + +GetServices returns the Services field if non-nil, zero value otherwise. + +### GetServicesOk + +`func (o *Deployment) GetServicesOk() (*[]string, bool)` + +GetServicesOk returns a tuple with the Services field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServices + +`func (o *Deployment) SetServices(v []string)` + +SetServices sets Services field to given value. + + +### GetSshPort + +`func (o *Deployment) GetSshPort() int32` + +GetSshPort returns the SshPort field if non-nil, zero value otherwise. + +### GetSshPortOk + +`func (o *Deployment) GetSshPortOk() (*int32, bool)` + +GetSshPortOk returns a tuple with the SshPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshPort + +`func (o *Deployment) SetSshPort(v int32)` + +SetSshPort sets SshPort field to given value. + + +### GetSshUser + +`func (o *Deployment) GetSshUser() string` + +GetSshUser returns the SshUser field if non-nil, zero value otherwise. + +### GetSshUserOk + +`func (o *Deployment) GetSshUserOk() (*string, bool)` + +GetSshUserOk returns a tuple with the SshUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshUser + +`func (o *Deployment) SetSshUser(v string)` + +SetSshUser sets SshUser field to given value. + + +### GetState + +`func (o *Deployment) GetState() DeploymentState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *Deployment) GetStateOk() (*DeploymentState, 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 *Deployment) SetState(v DeploymentState)` + +SetState sets State field to given value. + + +### GetTags + +`func (o *Deployment) GetTags() interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Deployment) GetTagsOk() (*interface{}, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Deployment) SetTags(v interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Deployment) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### SetTagsNil + +`func (o *Deployment) SetTagsNil(b bool)` + + SetTagsNil sets the value for Tags to be an explicit nil + +### UnsetTags +`func (o *Deployment) UnsetTags()` + +UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetWorkshop + +`func (o *Deployment) GetWorkshop() bool` + +GetWorkshop returns the Workshop field if non-nil, zero value otherwise. + +### GetWorkshopOk + +`func (o *Deployment) GetWorkshopOk() (*bool, bool)` + +GetWorkshopOk returns a tuple with the Workshop field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshop + +`func (o *Deployment) SetWorkshop(v bool)` + +SetWorkshop sets Workshop field to given value. + +### HasWorkshop + +`func (o *Deployment) HasWorkshop() bool` + +HasWorkshop returns a boolean if a field has been set. + +### SetWorkshopNil + +`func (o *Deployment) SetWorkshopNil(b bool)` + + SetWorkshopNil sets the value for Workshop to be an explicit nil + +### UnsetWorkshop +`func (o *Deployment) UnsetWorkshop()` + +UnsetWorkshop ensures that no value is present for Workshop, not even an explicit nil +### GetWorkshopId + +`func (o *Deployment) GetWorkshopId() string` + +GetWorkshopId returns the WorkshopId field if non-nil, zero value otherwise. + +### GetWorkshopIdOk + +`func (o *Deployment) GetWorkshopIdOk() (*string, bool)` + +GetWorkshopIdOk returns a tuple with the WorkshopId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshopId + +`func (o *Deployment) SetWorkshopId(v string)` + +SetWorkshopId sets WorkshopId field to given value. + +### HasWorkshopId + +`func (o *Deployment) HasWorkshopId() bool` + +HasWorkshopId returns a boolean if a field has been set. + +### SetWorkshopIdNil + +`func (o *Deployment) SetWorkshopIdNil(b bool)` + + SetWorkshopIdNil sets the value for WorkshopId to be an explicit nil + +### UnsetWorkshopId +`func (o *Deployment) UnsetWorkshopId()` + +UnsetWorkshopId ensures that no value is present for WorkshopId, not even an explicit nil +### GetWorkshopOverridePassword + +`func (o *Deployment) GetWorkshopOverridePassword() string` + +GetWorkshopOverridePassword returns the WorkshopOverridePassword field if non-nil, zero value otherwise. + +### GetWorkshopOverridePasswordOk + +`func (o *Deployment) GetWorkshopOverridePasswordOk() (*string, bool)` + +GetWorkshopOverridePasswordOk returns a tuple with the WorkshopOverridePassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshopOverridePassword + +`func (o *Deployment) SetWorkshopOverridePassword(v string)` + +SetWorkshopOverridePassword sets WorkshopOverridePassword field to given value. + +### HasWorkshopOverridePassword + +`func (o *Deployment) HasWorkshopOverridePassword() bool` + +HasWorkshopOverridePassword returns a boolean if a field has been set. + +### SetWorkshopOverridePasswordNil + +`func (o *Deployment) SetWorkshopOverridePasswordNil(b bool)` + + SetWorkshopOverridePasswordNil sets the value for WorkshopOverridePassword to be an explicit nil + +### UnsetWorkshopOverridePassword +`func (o *Deployment) UnsetWorkshopOverridePassword()` + +UnsetWorkshopOverridePassword ensures that no value is present for WorkshopOverridePassword, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/DeploymentBulkUpdate.md b/v1/providers/launchpad/gen/launchpad/docs/DeploymentBulkUpdate.md new file mode 100644 index 0000000..dfc6057 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/DeploymentBulkUpdate.md @@ -0,0 +1,1567 @@ +# DeploymentBulkUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BastionOperatingSystem** | **NullableString** | Override bastion operating system provisioned and/or configured by Liftoff | [readonly] +**Cluster** | **NullableString** | The cluster where the experience has been deployed | [readonly] +**CollectionBranch** | Pointer to **NullableString** | Override the Ansible collection branch initialized within the pipeline | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Experience** | [**DeploymentExperience**](DeploymentExperience.md) | | +**ExperienceBranch** | Pointer to **NullableString** | Override the experience branch | [optional] +**ExpiresAt** | Pointer to **NullableTime** | | [optional] +**FlightcontrolRelease** | Pointer to **NullableString** | Override the image tag used for Flight Control | [optional] +**GarageId** | **NullableString** | Require a cluster with nodes in the given garage | [readonly] +**GcBranch** | Pointer to **NullableString** | Override the default Ground Control branch | [optional] +**GpuAlias** | **NullableString** | Require a cluster with the given GPU alias | [readonly] +**GpuCount** | **NullableInt32** | Require a cluster with the given number of GPUs | [readonly] +**GpuModel** | **NullableString** | Require a cluster with the given GPU model | [readonly] +**GpuOsName** | **NullableString** | Override the GPU node operating system name | [readonly] +**GpuOsRelease** | **NullableString** | Override the GPU node operating system release | [readonly] +**GpuOsVersion** | **NullableString** | Override the GPU node operating system version | [readonly] +**Id** | **string** | | [readonly] +**IpAllowlist** | Pointer to **[]string** | Host IP addresses that should be allowed to access the deployment | [optional] +**Lifetime** | **NullableInt32** | Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. | [readonly] +**MinGpuCount** | **NullableInt32** | Require a cluster whose GPU count is greater than or equal to the given number | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**NodeCount** | **NullableInt32** | Require a cluster with the given number of nodes | [readonly] +**OemName** | **NullableString** | Require a cluster manufactured by the given OEM name | [readonly] +**OrgName** | Pointer to **string** | Requester's organization name | [optional] +**Overrides** | **interface{}** | | +**PersistOnFailure** | Pointer to **NullableBool** | Override the default cleanup/destroy behavior when a provisioning failure occurs | [optional] +**Persona** | Pointer to **NullableString** | Override the defined persona in the experience | [optional] +**Pipeline** | Pointer to **NullableInt64** | Override the pipeline ID that will be triggered for request fulfillment | [optional] +**PipelineBranch** | Pointer to **NullableString** | Override the default pipeline branch ref used when triggering a Fuselage pipeline | [optional] +**Pipelines** | **[]string** | | +**Platform** | Pointer to [**NullablePlatformEnum**](PlatformEnum.md) | | [optional] +**Priority** | [**PriorityEnum**](PriorityEnum.md) | Priority level for the request * `p0` - p0 * `p1` - p1 * `p2` - p2 * `p3` - p3 | [readonly] +**ProviderName** | **NullableString** | Require a cluster from the given provider name | [readonly] +**PublicKey** | **NullableString** | The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. | [readonly] +**Region** | **NullableString** | Require a cluster located in the given region | [readonly] +**RequestId** | **string** | Trial request ID (ex: TRY-1234) | [readonly] +**RequesterEmail** | Pointer to **string** | Email address of the user requesting the experience | [optional] +**RequesterName** | Pointer to **string** | Name of the user requesting the experience | [optional] +**RetryCount** | Pointer to **int32** | Number of times the deployment has been retried | [optional] +**SalesCreatedDate** | **NullableTime** | Timestamp when the requester's sales relationship was created | [readonly] +**SalesId** | **NullableString** | Unique identifier for the requester's sales relationship | [readonly] +**SalesOwnerEmail** | Pointer to **NullableString** | Email address of the sales contact associated with the requester | [optional] +**SalesOwnerName** | Pointer to **NullableString** | Name of the sales contact associated with the requester | [optional] +**Services** | **[]string** | | +**State** | Pointer to [**DeploymentState**](DeploymentState.md) | Current state of the deployment * `destroyed` - Deployment has been fully destroyed * `destroying` - Deployment is being destroyed * `error` - Deployment has encountered a fatal error and will not be retried * `failed` - Deployment has failed but may be retried * `paused` - Deployment is paused but may be retried later * `ready` - Deployment is ready and all instances are running * `retrying` - Deployment is retrying * `starting` - Deployment instances are starting * `stopped` - Deployment instances are stopped * `stopping` - Deployment instances are stopping * `waiting` - Waiting for deployment to be ready | [optional] +**Tags** | Pointer to **interface{}** | | [optional] +**Workshop** | **NullableBool** | Require a cluster whose workshop flag is set | [readonly] +**WorkshopId** | **NullableString** | Require a cluster with the given workshop ID | [readonly] +**WorkshopOverridePassword** | **NullableString** | Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) | [readonly] +**Count** | **int32** | | [readonly] +**Ids** | **[]string** | | +**Result** | **string** | | [readonly] + +## Methods + +### NewDeploymentBulkUpdate + +`func NewDeploymentBulkUpdate(bastionOperatingSystem NullableString, cluster NullableString, created time.Time, experience DeploymentExperience, garageId NullableString, gpuAlias NullableString, gpuCount NullableInt32, gpuModel NullableString, gpuOsName NullableString, gpuOsRelease NullableString, gpuOsVersion NullableString, id string, lifetime NullableInt32, minGpuCount NullableInt32, modified time.Time, nodeCount NullableInt32, oemName NullableString, overrides interface{}, pipelines []string, priority PriorityEnum, providerName NullableString, publicKey NullableString, region NullableString, requestId string, salesCreatedDate NullableTime, salesId NullableString, services []string, workshop NullableBool, workshopId NullableString, workshopOverridePassword NullableString, count int32, ids []string, result string, ) *DeploymentBulkUpdate` + +NewDeploymentBulkUpdate instantiates a new DeploymentBulkUpdate 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 + +### NewDeploymentBulkUpdateWithDefaults + +`func NewDeploymentBulkUpdateWithDefaults() *DeploymentBulkUpdate` + +NewDeploymentBulkUpdateWithDefaults instantiates a new DeploymentBulkUpdate 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 + +### GetBastionOperatingSystem + +`func (o *DeploymentBulkUpdate) GetBastionOperatingSystem() string` + +GetBastionOperatingSystem returns the BastionOperatingSystem field if non-nil, zero value otherwise. + +### GetBastionOperatingSystemOk + +`func (o *DeploymentBulkUpdate) GetBastionOperatingSystemOk() (*string, bool)` + +GetBastionOperatingSystemOk returns a tuple with the BastionOperatingSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBastionOperatingSystem + +`func (o *DeploymentBulkUpdate) SetBastionOperatingSystem(v string)` + +SetBastionOperatingSystem sets BastionOperatingSystem field to given value. + + +### SetBastionOperatingSystemNil + +`func (o *DeploymentBulkUpdate) SetBastionOperatingSystemNil(b bool)` + + SetBastionOperatingSystemNil sets the value for BastionOperatingSystem to be an explicit nil + +### UnsetBastionOperatingSystem +`func (o *DeploymentBulkUpdate) UnsetBastionOperatingSystem()` + +UnsetBastionOperatingSystem ensures that no value is present for BastionOperatingSystem, not even an explicit nil +### GetCluster + +`func (o *DeploymentBulkUpdate) GetCluster() string` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *DeploymentBulkUpdate) GetClusterOk() (*string, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *DeploymentBulkUpdate) SetCluster(v string)` + +SetCluster sets Cluster field to given value. + + +### SetClusterNil + +`func (o *DeploymentBulkUpdate) SetClusterNil(b bool)` + + SetClusterNil sets the value for Cluster to be an explicit nil + +### UnsetCluster +`func (o *DeploymentBulkUpdate) UnsetCluster()` + +UnsetCluster ensures that no value is present for Cluster, not even an explicit nil +### GetCollectionBranch + +`func (o *DeploymentBulkUpdate) GetCollectionBranch() string` + +GetCollectionBranch returns the CollectionBranch field if non-nil, zero value otherwise. + +### GetCollectionBranchOk + +`func (o *DeploymentBulkUpdate) GetCollectionBranchOk() (*string, bool)` + +GetCollectionBranchOk returns a tuple with the CollectionBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionBranch + +`func (o *DeploymentBulkUpdate) SetCollectionBranch(v string)` + +SetCollectionBranch sets CollectionBranch field to given value. + +### HasCollectionBranch + +`func (o *DeploymentBulkUpdate) HasCollectionBranch() bool` + +HasCollectionBranch returns a boolean if a field has been set. + +### SetCollectionBranchNil + +`func (o *DeploymentBulkUpdate) SetCollectionBranchNil(b bool)` + + SetCollectionBranchNil sets the value for CollectionBranch to be an explicit nil + +### UnsetCollectionBranch +`func (o *DeploymentBulkUpdate) UnsetCollectionBranch()` + +UnsetCollectionBranch ensures that no value is present for CollectionBranch, not even an explicit nil +### GetCreated + +`func (o *DeploymentBulkUpdate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeploymentBulkUpdate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeploymentBulkUpdate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetExperience + +`func (o *DeploymentBulkUpdate) GetExperience() DeploymentExperience` + +GetExperience returns the Experience field if non-nil, zero value otherwise. + +### GetExperienceOk + +`func (o *DeploymentBulkUpdate) GetExperienceOk() (*DeploymentExperience, bool)` + +GetExperienceOk returns a tuple with the Experience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperience + +`func (o *DeploymentBulkUpdate) SetExperience(v DeploymentExperience)` + +SetExperience sets Experience field to given value. + + +### GetExperienceBranch + +`func (o *DeploymentBulkUpdate) GetExperienceBranch() string` + +GetExperienceBranch returns the ExperienceBranch field if non-nil, zero value otherwise. + +### GetExperienceBranchOk + +`func (o *DeploymentBulkUpdate) GetExperienceBranchOk() (*string, bool)` + +GetExperienceBranchOk returns a tuple with the ExperienceBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperienceBranch + +`func (o *DeploymentBulkUpdate) SetExperienceBranch(v string)` + +SetExperienceBranch sets ExperienceBranch field to given value. + +### HasExperienceBranch + +`func (o *DeploymentBulkUpdate) HasExperienceBranch() bool` + +HasExperienceBranch returns a boolean if a field has been set. + +### SetExperienceBranchNil + +`func (o *DeploymentBulkUpdate) SetExperienceBranchNil(b bool)` + + SetExperienceBranchNil sets the value for ExperienceBranch to be an explicit nil + +### UnsetExperienceBranch +`func (o *DeploymentBulkUpdate) UnsetExperienceBranch()` + +UnsetExperienceBranch ensures that no value is present for ExperienceBranch, not even an explicit nil +### GetExpiresAt + +`func (o *DeploymentBulkUpdate) GetExpiresAt() time.Time` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *DeploymentBulkUpdate) GetExpiresAtOk() (*time.Time, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *DeploymentBulkUpdate) SetExpiresAt(v time.Time)` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *DeploymentBulkUpdate) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *DeploymentBulkUpdate) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *DeploymentBulkUpdate) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetFlightcontrolRelease + +`func (o *DeploymentBulkUpdate) GetFlightcontrolRelease() string` + +GetFlightcontrolRelease returns the FlightcontrolRelease field if non-nil, zero value otherwise. + +### GetFlightcontrolReleaseOk + +`func (o *DeploymentBulkUpdate) GetFlightcontrolReleaseOk() (*string, bool)` + +GetFlightcontrolReleaseOk returns a tuple with the FlightcontrolRelease field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlightcontrolRelease + +`func (o *DeploymentBulkUpdate) SetFlightcontrolRelease(v string)` + +SetFlightcontrolRelease sets FlightcontrolRelease field to given value. + +### HasFlightcontrolRelease + +`func (o *DeploymentBulkUpdate) HasFlightcontrolRelease() bool` + +HasFlightcontrolRelease returns a boolean if a field has been set. + +### SetFlightcontrolReleaseNil + +`func (o *DeploymentBulkUpdate) SetFlightcontrolReleaseNil(b bool)` + + SetFlightcontrolReleaseNil sets the value for FlightcontrolRelease to be an explicit nil + +### UnsetFlightcontrolRelease +`func (o *DeploymentBulkUpdate) UnsetFlightcontrolRelease()` + +UnsetFlightcontrolRelease ensures that no value is present for FlightcontrolRelease, not even an explicit nil +### GetGarageId + +`func (o *DeploymentBulkUpdate) GetGarageId() string` + +GetGarageId returns the GarageId field if non-nil, zero value otherwise. + +### GetGarageIdOk + +`func (o *DeploymentBulkUpdate) GetGarageIdOk() (*string, bool)` + +GetGarageIdOk returns a tuple with the GarageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGarageId + +`func (o *DeploymentBulkUpdate) SetGarageId(v string)` + +SetGarageId sets GarageId field to given value. + + +### SetGarageIdNil + +`func (o *DeploymentBulkUpdate) SetGarageIdNil(b bool)` + + SetGarageIdNil sets the value for GarageId to be an explicit nil + +### UnsetGarageId +`func (o *DeploymentBulkUpdate) UnsetGarageId()` + +UnsetGarageId ensures that no value is present for GarageId, not even an explicit nil +### GetGcBranch + +`func (o *DeploymentBulkUpdate) GetGcBranch() string` + +GetGcBranch returns the GcBranch field if non-nil, zero value otherwise. + +### GetGcBranchOk + +`func (o *DeploymentBulkUpdate) GetGcBranchOk() (*string, bool)` + +GetGcBranchOk returns a tuple with the GcBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcBranch + +`func (o *DeploymentBulkUpdate) SetGcBranch(v string)` + +SetGcBranch sets GcBranch field to given value. + +### HasGcBranch + +`func (o *DeploymentBulkUpdate) HasGcBranch() bool` + +HasGcBranch returns a boolean if a field has been set. + +### SetGcBranchNil + +`func (o *DeploymentBulkUpdate) SetGcBranchNil(b bool)` + + SetGcBranchNil sets the value for GcBranch to be an explicit nil + +### UnsetGcBranch +`func (o *DeploymentBulkUpdate) UnsetGcBranch()` + +UnsetGcBranch ensures that no value is present for GcBranch, not even an explicit nil +### GetGpuAlias + +`func (o *DeploymentBulkUpdate) GetGpuAlias() string` + +GetGpuAlias returns the GpuAlias field if non-nil, zero value otherwise. + +### GetGpuAliasOk + +`func (o *DeploymentBulkUpdate) GetGpuAliasOk() (*string, bool)` + +GetGpuAliasOk returns a tuple with the GpuAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuAlias + +`func (o *DeploymentBulkUpdate) SetGpuAlias(v string)` + +SetGpuAlias sets GpuAlias field to given value. + + +### SetGpuAliasNil + +`func (o *DeploymentBulkUpdate) SetGpuAliasNil(b bool)` + + SetGpuAliasNil sets the value for GpuAlias to be an explicit nil + +### UnsetGpuAlias +`func (o *DeploymentBulkUpdate) UnsetGpuAlias()` + +UnsetGpuAlias ensures that no value is present for GpuAlias, not even an explicit nil +### GetGpuCount + +`func (o *DeploymentBulkUpdate) GetGpuCount() int32` + +GetGpuCount returns the GpuCount field if non-nil, zero value otherwise. + +### GetGpuCountOk + +`func (o *DeploymentBulkUpdate) GetGpuCountOk() (*int32, bool)` + +GetGpuCountOk returns a tuple with the GpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuCount + +`func (o *DeploymentBulkUpdate) SetGpuCount(v int32)` + +SetGpuCount sets GpuCount field to given value. + + +### SetGpuCountNil + +`func (o *DeploymentBulkUpdate) SetGpuCountNil(b bool)` + + SetGpuCountNil sets the value for GpuCount to be an explicit nil + +### UnsetGpuCount +`func (o *DeploymentBulkUpdate) UnsetGpuCount()` + +UnsetGpuCount ensures that no value is present for GpuCount, not even an explicit nil +### GetGpuModel + +`func (o *DeploymentBulkUpdate) GetGpuModel() string` + +GetGpuModel returns the GpuModel field if non-nil, zero value otherwise. + +### GetGpuModelOk + +`func (o *DeploymentBulkUpdate) GetGpuModelOk() (*string, bool)` + +GetGpuModelOk returns a tuple with the GpuModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuModel + +`func (o *DeploymentBulkUpdate) SetGpuModel(v string)` + +SetGpuModel sets GpuModel field to given value. + + +### SetGpuModelNil + +`func (o *DeploymentBulkUpdate) SetGpuModelNil(b bool)` + + SetGpuModelNil sets the value for GpuModel to be an explicit nil + +### UnsetGpuModel +`func (o *DeploymentBulkUpdate) UnsetGpuModel()` + +UnsetGpuModel ensures that no value is present for GpuModel, not even an explicit nil +### GetGpuOsName + +`func (o *DeploymentBulkUpdate) GetGpuOsName() string` + +GetGpuOsName returns the GpuOsName field if non-nil, zero value otherwise. + +### GetGpuOsNameOk + +`func (o *DeploymentBulkUpdate) GetGpuOsNameOk() (*string, bool)` + +GetGpuOsNameOk returns a tuple with the GpuOsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsName + +`func (o *DeploymentBulkUpdate) SetGpuOsName(v string)` + +SetGpuOsName sets GpuOsName field to given value. + + +### SetGpuOsNameNil + +`func (o *DeploymentBulkUpdate) SetGpuOsNameNil(b bool)` + + SetGpuOsNameNil sets the value for GpuOsName to be an explicit nil + +### UnsetGpuOsName +`func (o *DeploymentBulkUpdate) UnsetGpuOsName()` + +UnsetGpuOsName ensures that no value is present for GpuOsName, not even an explicit nil +### GetGpuOsRelease + +`func (o *DeploymentBulkUpdate) GetGpuOsRelease() string` + +GetGpuOsRelease returns the GpuOsRelease field if non-nil, zero value otherwise. + +### GetGpuOsReleaseOk + +`func (o *DeploymentBulkUpdate) GetGpuOsReleaseOk() (*string, bool)` + +GetGpuOsReleaseOk returns a tuple with the GpuOsRelease field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsRelease + +`func (o *DeploymentBulkUpdate) SetGpuOsRelease(v string)` + +SetGpuOsRelease sets GpuOsRelease field to given value. + + +### SetGpuOsReleaseNil + +`func (o *DeploymentBulkUpdate) SetGpuOsReleaseNil(b bool)` + + SetGpuOsReleaseNil sets the value for GpuOsRelease to be an explicit nil + +### UnsetGpuOsRelease +`func (o *DeploymentBulkUpdate) UnsetGpuOsRelease()` + +UnsetGpuOsRelease ensures that no value is present for GpuOsRelease, not even an explicit nil +### GetGpuOsVersion + +`func (o *DeploymentBulkUpdate) GetGpuOsVersion() string` + +GetGpuOsVersion returns the GpuOsVersion field if non-nil, zero value otherwise. + +### GetGpuOsVersionOk + +`func (o *DeploymentBulkUpdate) GetGpuOsVersionOk() (*string, bool)` + +GetGpuOsVersionOk returns a tuple with the GpuOsVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsVersion + +`func (o *DeploymentBulkUpdate) SetGpuOsVersion(v string)` + +SetGpuOsVersion sets GpuOsVersion field to given value. + + +### SetGpuOsVersionNil + +`func (o *DeploymentBulkUpdate) SetGpuOsVersionNil(b bool)` + + SetGpuOsVersionNil sets the value for GpuOsVersion to be an explicit nil + +### UnsetGpuOsVersion +`func (o *DeploymentBulkUpdate) UnsetGpuOsVersion()` + +UnsetGpuOsVersion ensures that no value is present for GpuOsVersion, not even an explicit nil +### GetId + +`func (o *DeploymentBulkUpdate) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DeploymentBulkUpdate) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DeploymentBulkUpdate) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIpAllowlist + +`func (o *DeploymentBulkUpdate) GetIpAllowlist() []string` + +GetIpAllowlist returns the IpAllowlist field if non-nil, zero value otherwise. + +### GetIpAllowlistOk + +`func (o *DeploymentBulkUpdate) GetIpAllowlistOk() (*[]string, bool)` + +GetIpAllowlistOk returns a tuple with the IpAllowlist field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAllowlist + +`func (o *DeploymentBulkUpdate) SetIpAllowlist(v []string)` + +SetIpAllowlist sets IpAllowlist field to given value. + +### HasIpAllowlist + +`func (o *DeploymentBulkUpdate) HasIpAllowlist() bool` + +HasIpAllowlist returns a boolean if a field has been set. + +### GetLifetime + +`func (o *DeploymentBulkUpdate) GetLifetime() int32` + +GetLifetime returns the Lifetime field if non-nil, zero value otherwise. + +### GetLifetimeOk + +`func (o *DeploymentBulkUpdate) GetLifetimeOk() (*int32, bool)` + +GetLifetimeOk returns a tuple with the Lifetime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifetime + +`func (o *DeploymentBulkUpdate) SetLifetime(v int32)` + +SetLifetime sets Lifetime field to given value. + + +### SetLifetimeNil + +`func (o *DeploymentBulkUpdate) SetLifetimeNil(b bool)` + + SetLifetimeNil sets the value for Lifetime to be an explicit nil + +### UnsetLifetime +`func (o *DeploymentBulkUpdate) UnsetLifetime()` + +UnsetLifetime ensures that no value is present for Lifetime, not even an explicit nil +### GetMinGpuCount + +`func (o *DeploymentBulkUpdate) GetMinGpuCount() int32` + +GetMinGpuCount returns the MinGpuCount field if non-nil, zero value otherwise. + +### GetMinGpuCountOk + +`func (o *DeploymentBulkUpdate) GetMinGpuCountOk() (*int32, bool)` + +GetMinGpuCountOk returns a tuple with the MinGpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinGpuCount + +`func (o *DeploymentBulkUpdate) SetMinGpuCount(v int32)` + +SetMinGpuCount sets MinGpuCount field to given value. + + +### SetMinGpuCountNil + +`func (o *DeploymentBulkUpdate) SetMinGpuCountNil(b bool)` + + SetMinGpuCountNil sets the value for MinGpuCount to be an explicit nil + +### UnsetMinGpuCount +`func (o *DeploymentBulkUpdate) UnsetMinGpuCount()` + +UnsetMinGpuCount ensures that no value is present for MinGpuCount, not even an explicit nil +### GetModified + +`func (o *DeploymentBulkUpdate) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *DeploymentBulkUpdate) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *DeploymentBulkUpdate) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNodeCount + +`func (o *DeploymentBulkUpdate) GetNodeCount() int32` + +GetNodeCount returns the NodeCount field if non-nil, zero value otherwise. + +### GetNodeCountOk + +`func (o *DeploymentBulkUpdate) 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 *DeploymentBulkUpdate) SetNodeCount(v int32)` + +SetNodeCount sets NodeCount field to given value. + + +### SetNodeCountNil + +`func (o *DeploymentBulkUpdate) SetNodeCountNil(b bool)` + + SetNodeCountNil sets the value for NodeCount to be an explicit nil + +### UnsetNodeCount +`func (o *DeploymentBulkUpdate) UnsetNodeCount()` + +UnsetNodeCount ensures that no value is present for NodeCount, not even an explicit nil +### GetOemName + +`func (o *DeploymentBulkUpdate) GetOemName() string` + +GetOemName returns the OemName field if non-nil, zero value otherwise. + +### GetOemNameOk + +`func (o *DeploymentBulkUpdate) GetOemNameOk() (*string, bool)` + +GetOemNameOk returns a tuple with the OemName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOemName + +`func (o *DeploymentBulkUpdate) SetOemName(v string)` + +SetOemName sets OemName field to given value. + + +### SetOemNameNil + +`func (o *DeploymentBulkUpdate) SetOemNameNil(b bool)` + + SetOemNameNil sets the value for OemName to be an explicit nil + +### UnsetOemName +`func (o *DeploymentBulkUpdate) UnsetOemName()` + +UnsetOemName ensures that no value is present for OemName, not even an explicit nil +### GetOrgName + +`func (o *DeploymentBulkUpdate) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *DeploymentBulkUpdate) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *DeploymentBulkUpdate) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *DeploymentBulkUpdate) HasOrgName() bool` + +HasOrgName returns a boolean if a field has been set. + +### GetOverrides + +`func (o *DeploymentBulkUpdate) GetOverrides() interface{}` + +GetOverrides returns the Overrides field if non-nil, zero value otherwise. + +### GetOverridesOk + +`func (o *DeploymentBulkUpdate) GetOverridesOk() (*interface{}, bool)` + +GetOverridesOk returns a tuple with the Overrides field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverrides + +`func (o *DeploymentBulkUpdate) SetOverrides(v interface{})` + +SetOverrides sets Overrides field to given value. + + +### SetOverridesNil + +`func (o *DeploymentBulkUpdate) SetOverridesNil(b bool)` + + SetOverridesNil sets the value for Overrides to be an explicit nil + +### UnsetOverrides +`func (o *DeploymentBulkUpdate) UnsetOverrides()` + +UnsetOverrides ensures that no value is present for Overrides, not even an explicit nil +### GetPersistOnFailure + +`func (o *DeploymentBulkUpdate) GetPersistOnFailure() bool` + +GetPersistOnFailure returns the PersistOnFailure field if non-nil, zero value otherwise. + +### GetPersistOnFailureOk + +`func (o *DeploymentBulkUpdate) GetPersistOnFailureOk() (*bool, bool)` + +GetPersistOnFailureOk returns a tuple with the PersistOnFailure field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersistOnFailure + +`func (o *DeploymentBulkUpdate) SetPersistOnFailure(v bool)` + +SetPersistOnFailure sets PersistOnFailure field to given value. + +### HasPersistOnFailure + +`func (o *DeploymentBulkUpdate) HasPersistOnFailure() bool` + +HasPersistOnFailure returns a boolean if a field has been set. + +### SetPersistOnFailureNil + +`func (o *DeploymentBulkUpdate) SetPersistOnFailureNil(b bool)` + + SetPersistOnFailureNil sets the value for PersistOnFailure to be an explicit nil + +### UnsetPersistOnFailure +`func (o *DeploymentBulkUpdate) UnsetPersistOnFailure()` + +UnsetPersistOnFailure ensures that no value is present for PersistOnFailure, not even an explicit nil +### GetPersona + +`func (o *DeploymentBulkUpdate) GetPersona() string` + +GetPersona returns the Persona field if non-nil, zero value otherwise. + +### GetPersonaOk + +`func (o *DeploymentBulkUpdate) GetPersonaOk() (*string, bool)` + +GetPersonaOk returns a tuple with the Persona field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersona + +`func (o *DeploymentBulkUpdate) SetPersona(v string)` + +SetPersona sets Persona field to given value. + +### HasPersona + +`func (o *DeploymentBulkUpdate) HasPersona() bool` + +HasPersona returns a boolean if a field has been set. + +### SetPersonaNil + +`func (o *DeploymentBulkUpdate) SetPersonaNil(b bool)` + + SetPersonaNil sets the value for Persona to be an explicit nil + +### UnsetPersona +`func (o *DeploymentBulkUpdate) UnsetPersona()` + +UnsetPersona ensures that no value is present for Persona, not even an explicit nil +### GetPipeline + +`func (o *DeploymentBulkUpdate) GetPipeline() int64` + +GetPipeline returns the Pipeline field if non-nil, zero value otherwise. + +### GetPipelineOk + +`func (o *DeploymentBulkUpdate) GetPipelineOk() (*int64, bool)` + +GetPipelineOk returns a tuple with the Pipeline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipeline + +`func (o *DeploymentBulkUpdate) SetPipeline(v int64)` + +SetPipeline sets Pipeline field to given value. + +### HasPipeline + +`func (o *DeploymentBulkUpdate) HasPipeline() bool` + +HasPipeline returns a boolean if a field has been set. + +### SetPipelineNil + +`func (o *DeploymentBulkUpdate) SetPipelineNil(b bool)` + + SetPipelineNil sets the value for Pipeline to be an explicit nil + +### UnsetPipeline +`func (o *DeploymentBulkUpdate) UnsetPipeline()` + +UnsetPipeline ensures that no value is present for Pipeline, not even an explicit nil +### GetPipelineBranch + +`func (o *DeploymentBulkUpdate) GetPipelineBranch() string` + +GetPipelineBranch returns the PipelineBranch field if non-nil, zero value otherwise. + +### GetPipelineBranchOk + +`func (o *DeploymentBulkUpdate) GetPipelineBranchOk() (*string, bool)` + +GetPipelineBranchOk returns a tuple with the PipelineBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipelineBranch + +`func (o *DeploymentBulkUpdate) SetPipelineBranch(v string)` + +SetPipelineBranch sets PipelineBranch field to given value. + +### HasPipelineBranch + +`func (o *DeploymentBulkUpdate) HasPipelineBranch() bool` + +HasPipelineBranch returns a boolean if a field has been set. + +### SetPipelineBranchNil + +`func (o *DeploymentBulkUpdate) SetPipelineBranchNil(b bool)` + + SetPipelineBranchNil sets the value for PipelineBranch to be an explicit nil + +### UnsetPipelineBranch +`func (o *DeploymentBulkUpdate) UnsetPipelineBranch()` + +UnsetPipelineBranch ensures that no value is present for PipelineBranch, not even an explicit nil +### GetPipelines + +`func (o *DeploymentBulkUpdate) GetPipelines() []string` + +GetPipelines returns the Pipelines field if non-nil, zero value otherwise. + +### GetPipelinesOk + +`func (o *DeploymentBulkUpdate) GetPipelinesOk() (*[]string, bool)` + +GetPipelinesOk returns a tuple with the Pipelines field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipelines + +`func (o *DeploymentBulkUpdate) SetPipelines(v []string)` + +SetPipelines sets Pipelines field to given value. + + +### GetPlatform + +`func (o *DeploymentBulkUpdate) GetPlatform() PlatformEnum` + +GetPlatform returns the Platform field if non-nil, zero value otherwise. + +### GetPlatformOk + +`func (o *DeploymentBulkUpdate) GetPlatformOk() (*PlatformEnum, bool)` + +GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatform + +`func (o *DeploymentBulkUpdate) SetPlatform(v PlatformEnum)` + +SetPlatform sets Platform field to given value. + +### HasPlatform + +`func (o *DeploymentBulkUpdate) HasPlatform() bool` + +HasPlatform returns a boolean if a field has been set. + +### SetPlatformNil + +`func (o *DeploymentBulkUpdate) SetPlatformNil(b bool)` + + SetPlatformNil sets the value for Platform to be an explicit nil + +### UnsetPlatform +`func (o *DeploymentBulkUpdate) UnsetPlatform()` + +UnsetPlatform ensures that no value is present for Platform, not even an explicit nil +### GetPriority + +`func (o *DeploymentBulkUpdate) GetPriority() PriorityEnum` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *DeploymentBulkUpdate) GetPriorityOk() (*PriorityEnum, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *DeploymentBulkUpdate) SetPriority(v PriorityEnum)` + +SetPriority sets Priority field to given value. + + +### GetProviderName + +`func (o *DeploymentBulkUpdate) GetProviderName() string` + +GetProviderName returns the ProviderName field if non-nil, zero value otherwise. + +### GetProviderNameOk + +`func (o *DeploymentBulkUpdate) GetProviderNameOk() (*string, bool)` + +GetProviderNameOk returns a tuple with the ProviderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderName + +`func (o *DeploymentBulkUpdate) SetProviderName(v string)` + +SetProviderName sets ProviderName field to given value. + + +### SetProviderNameNil + +`func (o *DeploymentBulkUpdate) SetProviderNameNil(b bool)` + + SetProviderNameNil sets the value for ProviderName to be an explicit nil + +### UnsetProviderName +`func (o *DeploymentBulkUpdate) UnsetProviderName()` + +UnsetProviderName ensures that no value is present for ProviderName, not even an explicit nil +### GetPublicKey + +`func (o *DeploymentBulkUpdate) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *DeploymentBulkUpdate) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *DeploymentBulkUpdate) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + + +### SetPublicKeyNil + +`func (o *DeploymentBulkUpdate) SetPublicKeyNil(b bool)` + + SetPublicKeyNil sets the value for PublicKey to be an explicit nil + +### UnsetPublicKey +`func (o *DeploymentBulkUpdate) UnsetPublicKey()` + +UnsetPublicKey ensures that no value is present for PublicKey, not even an explicit nil +### GetRegion + +`func (o *DeploymentBulkUpdate) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *DeploymentBulkUpdate) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *DeploymentBulkUpdate) SetRegion(v string)` + +SetRegion sets Region field to given value. + + +### SetRegionNil + +`func (o *DeploymentBulkUpdate) SetRegionNil(b bool)` + + SetRegionNil sets the value for Region to be an explicit nil + +### UnsetRegion +`func (o *DeploymentBulkUpdate) UnsetRegion()` + +UnsetRegion ensures that no value is present for Region, not even an explicit nil +### GetRequestId + +`func (o *DeploymentBulkUpdate) GetRequestId() string` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *DeploymentBulkUpdate) GetRequestIdOk() (*string, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *DeploymentBulkUpdate) SetRequestId(v string)` + +SetRequestId sets RequestId field to given value. + + +### GetRequesterEmail + +`func (o *DeploymentBulkUpdate) GetRequesterEmail() string` + +GetRequesterEmail returns the RequesterEmail field if non-nil, zero value otherwise. + +### GetRequesterEmailOk + +`func (o *DeploymentBulkUpdate) GetRequesterEmailOk() (*string, bool)` + +GetRequesterEmailOk returns a tuple with the RequesterEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterEmail + +`func (o *DeploymentBulkUpdate) SetRequesterEmail(v string)` + +SetRequesterEmail sets RequesterEmail field to given value. + +### HasRequesterEmail + +`func (o *DeploymentBulkUpdate) HasRequesterEmail() bool` + +HasRequesterEmail returns a boolean if a field has been set. + +### GetRequesterName + +`func (o *DeploymentBulkUpdate) GetRequesterName() string` + +GetRequesterName returns the RequesterName field if non-nil, zero value otherwise. + +### GetRequesterNameOk + +`func (o *DeploymentBulkUpdate) GetRequesterNameOk() (*string, bool)` + +GetRequesterNameOk returns a tuple with the RequesterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterName + +`func (o *DeploymentBulkUpdate) SetRequesterName(v string)` + +SetRequesterName sets RequesterName field to given value. + +### HasRequesterName + +`func (o *DeploymentBulkUpdate) HasRequesterName() bool` + +HasRequesterName returns a boolean if a field has been set. + +### GetRetryCount + +`func (o *DeploymentBulkUpdate) GetRetryCount() int32` + +GetRetryCount returns the RetryCount field if non-nil, zero value otherwise. + +### GetRetryCountOk + +`func (o *DeploymentBulkUpdate) GetRetryCountOk() (*int32, bool)` + +GetRetryCountOk returns a tuple with the RetryCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetryCount + +`func (o *DeploymentBulkUpdate) SetRetryCount(v int32)` + +SetRetryCount sets RetryCount field to given value. + +### HasRetryCount + +`func (o *DeploymentBulkUpdate) HasRetryCount() bool` + +HasRetryCount returns a boolean if a field has been set. + +### GetSalesCreatedDate + +`func (o *DeploymentBulkUpdate) GetSalesCreatedDate() time.Time` + +GetSalesCreatedDate returns the SalesCreatedDate field if non-nil, zero value otherwise. + +### GetSalesCreatedDateOk + +`func (o *DeploymentBulkUpdate) GetSalesCreatedDateOk() (*time.Time, bool)` + +GetSalesCreatedDateOk returns a tuple with the SalesCreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesCreatedDate + +`func (o *DeploymentBulkUpdate) SetSalesCreatedDate(v time.Time)` + +SetSalesCreatedDate sets SalesCreatedDate field to given value. + + +### SetSalesCreatedDateNil + +`func (o *DeploymentBulkUpdate) SetSalesCreatedDateNil(b bool)` + + SetSalesCreatedDateNil sets the value for SalesCreatedDate to be an explicit nil + +### UnsetSalesCreatedDate +`func (o *DeploymentBulkUpdate) UnsetSalesCreatedDate()` + +UnsetSalesCreatedDate ensures that no value is present for SalesCreatedDate, not even an explicit nil +### GetSalesId + +`func (o *DeploymentBulkUpdate) GetSalesId() string` + +GetSalesId returns the SalesId field if non-nil, zero value otherwise. + +### GetSalesIdOk + +`func (o *DeploymentBulkUpdate) GetSalesIdOk() (*string, bool)` + +GetSalesIdOk returns a tuple with the SalesId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesId + +`func (o *DeploymentBulkUpdate) SetSalesId(v string)` + +SetSalesId sets SalesId field to given value. + + +### SetSalesIdNil + +`func (o *DeploymentBulkUpdate) SetSalesIdNil(b bool)` + + SetSalesIdNil sets the value for SalesId to be an explicit nil + +### UnsetSalesId +`func (o *DeploymentBulkUpdate) UnsetSalesId()` + +UnsetSalesId ensures that no value is present for SalesId, not even an explicit nil +### GetSalesOwnerEmail + +`func (o *DeploymentBulkUpdate) GetSalesOwnerEmail() string` + +GetSalesOwnerEmail returns the SalesOwnerEmail field if non-nil, zero value otherwise. + +### GetSalesOwnerEmailOk + +`func (o *DeploymentBulkUpdate) GetSalesOwnerEmailOk() (*string, bool)` + +GetSalesOwnerEmailOk returns a tuple with the SalesOwnerEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesOwnerEmail + +`func (o *DeploymentBulkUpdate) SetSalesOwnerEmail(v string)` + +SetSalesOwnerEmail sets SalesOwnerEmail field to given value. + +### HasSalesOwnerEmail + +`func (o *DeploymentBulkUpdate) HasSalesOwnerEmail() bool` + +HasSalesOwnerEmail returns a boolean if a field has been set. + +### SetSalesOwnerEmailNil + +`func (o *DeploymentBulkUpdate) SetSalesOwnerEmailNil(b bool)` + + SetSalesOwnerEmailNil sets the value for SalesOwnerEmail to be an explicit nil + +### UnsetSalesOwnerEmail +`func (o *DeploymentBulkUpdate) UnsetSalesOwnerEmail()` + +UnsetSalesOwnerEmail ensures that no value is present for SalesOwnerEmail, not even an explicit nil +### GetSalesOwnerName + +`func (o *DeploymentBulkUpdate) GetSalesOwnerName() string` + +GetSalesOwnerName returns the SalesOwnerName field if non-nil, zero value otherwise. + +### GetSalesOwnerNameOk + +`func (o *DeploymentBulkUpdate) GetSalesOwnerNameOk() (*string, bool)` + +GetSalesOwnerNameOk returns a tuple with the SalesOwnerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesOwnerName + +`func (o *DeploymentBulkUpdate) SetSalesOwnerName(v string)` + +SetSalesOwnerName sets SalesOwnerName field to given value. + +### HasSalesOwnerName + +`func (o *DeploymentBulkUpdate) HasSalesOwnerName() bool` + +HasSalesOwnerName returns a boolean if a field has been set. + +### SetSalesOwnerNameNil + +`func (o *DeploymentBulkUpdate) SetSalesOwnerNameNil(b bool)` + + SetSalesOwnerNameNil sets the value for SalesOwnerName to be an explicit nil + +### UnsetSalesOwnerName +`func (o *DeploymentBulkUpdate) UnsetSalesOwnerName()` + +UnsetSalesOwnerName ensures that no value is present for SalesOwnerName, not even an explicit nil +### GetServices + +`func (o *DeploymentBulkUpdate) GetServices() []string` + +GetServices returns the Services field if non-nil, zero value otherwise. + +### GetServicesOk + +`func (o *DeploymentBulkUpdate) GetServicesOk() (*[]string, bool)` + +GetServicesOk returns a tuple with the Services field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServices + +`func (o *DeploymentBulkUpdate) SetServices(v []string)` + +SetServices sets Services field to given value. + + +### GetState + +`func (o *DeploymentBulkUpdate) GetState() DeploymentState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *DeploymentBulkUpdate) GetStateOk() (*DeploymentState, 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 *DeploymentBulkUpdate) SetState(v DeploymentState)` + +SetState sets State field to given value. + +### HasState + +`func (o *DeploymentBulkUpdate) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetTags + +`func (o *DeploymentBulkUpdate) GetTags() interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeploymentBulkUpdate) GetTagsOk() (*interface{}, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *DeploymentBulkUpdate) SetTags(v interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DeploymentBulkUpdate) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### SetTagsNil + +`func (o *DeploymentBulkUpdate) SetTagsNil(b bool)` + + SetTagsNil sets the value for Tags to be an explicit nil + +### UnsetTags +`func (o *DeploymentBulkUpdate) UnsetTags()` + +UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetWorkshop + +`func (o *DeploymentBulkUpdate) GetWorkshop() bool` + +GetWorkshop returns the Workshop field if non-nil, zero value otherwise. + +### GetWorkshopOk + +`func (o *DeploymentBulkUpdate) GetWorkshopOk() (*bool, bool)` + +GetWorkshopOk returns a tuple with the Workshop field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshop + +`func (o *DeploymentBulkUpdate) SetWorkshop(v bool)` + +SetWorkshop sets Workshop field to given value. + + +### SetWorkshopNil + +`func (o *DeploymentBulkUpdate) SetWorkshopNil(b bool)` + + SetWorkshopNil sets the value for Workshop to be an explicit nil + +### UnsetWorkshop +`func (o *DeploymentBulkUpdate) UnsetWorkshop()` + +UnsetWorkshop ensures that no value is present for Workshop, not even an explicit nil +### GetWorkshopId + +`func (o *DeploymentBulkUpdate) GetWorkshopId() string` + +GetWorkshopId returns the WorkshopId field if non-nil, zero value otherwise. + +### GetWorkshopIdOk + +`func (o *DeploymentBulkUpdate) GetWorkshopIdOk() (*string, bool)` + +GetWorkshopIdOk returns a tuple with the WorkshopId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshopId + +`func (o *DeploymentBulkUpdate) SetWorkshopId(v string)` + +SetWorkshopId sets WorkshopId field to given value. + + +### SetWorkshopIdNil + +`func (o *DeploymentBulkUpdate) SetWorkshopIdNil(b bool)` + + SetWorkshopIdNil sets the value for WorkshopId to be an explicit nil + +### UnsetWorkshopId +`func (o *DeploymentBulkUpdate) UnsetWorkshopId()` + +UnsetWorkshopId ensures that no value is present for WorkshopId, not even an explicit nil +### GetWorkshopOverridePassword + +`func (o *DeploymentBulkUpdate) GetWorkshopOverridePassword() string` + +GetWorkshopOverridePassword returns the WorkshopOverridePassword field if non-nil, zero value otherwise. + +### GetWorkshopOverridePasswordOk + +`func (o *DeploymentBulkUpdate) GetWorkshopOverridePasswordOk() (*string, bool)` + +GetWorkshopOverridePasswordOk returns a tuple with the WorkshopOverridePassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshopOverridePassword + +`func (o *DeploymentBulkUpdate) SetWorkshopOverridePassword(v string)` + +SetWorkshopOverridePassword sets WorkshopOverridePassword field to given value. + + +### SetWorkshopOverridePasswordNil + +`func (o *DeploymentBulkUpdate) SetWorkshopOverridePasswordNil(b bool)` + + SetWorkshopOverridePasswordNil sets the value for WorkshopOverridePassword to be an explicit nil + +### UnsetWorkshopOverridePassword +`func (o *DeploymentBulkUpdate) UnsetWorkshopOverridePassword()` + +UnsetWorkshopOverridePassword ensures that no value is present for WorkshopOverridePassword, not even an explicit nil +### GetCount + +`func (o *DeploymentBulkUpdate) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *DeploymentBulkUpdate) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *DeploymentBulkUpdate) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetIds + +`func (o *DeploymentBulkUpdate) GetIds() []string` + +GetIds returns the Ids field if non-nil, zero value otherwise. + +### GetIdsOk + +`func (o *DeploymentBulkUpdate) GetIdsOk() (*[]string, bool)` + +GetIdsOk returns a tuple with the Ids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIds + +`func (o *DeploymentBulkUpdate) SetIds(v []string)` + +SetIds sets Ids field to given value. + + +### GetResult + +`func (o *DeploymentBulkUpdate) GetResult() string` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *DeploymentBulkUpdate) GetResultOk() (*string, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *DeploymentBulkUpdate) SetResult(v string)` + +SetResult sets Result field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/DeploymentCluster.md b/v1/providers/launchpad/gen/launchpad/docs/DeploymentCluster.md new file mode 100644 index 0000000..c6e5340 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/DeploymentCluster.md @@ -0,0 +1,838 @@ +# DeploymentCluster + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Available** | **bool** | Is the cluster currently available for provisioning? | [readonly] +**BastionName** | Pointer to **string** | Name of the bastion assigned to the cluster | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Deployment** | [**ClusterDeployment**](ClusterDeployment.md) | | +**Enabled** | Pointer to **bool** | Is the cluster administratively enabled? | [optional] +**Experience** | Pointer to **string** | Experience provisioned onto this cluster | [optional] +**FreeBy** | Pointer to **time.Time** | | [optional] +**Gpus** | [**[]ClusterGpusInner**](ClusterGpusInner.md) | | +**GpuAlias** | Pointer to **string** | Alias for GPU plan (i.e. installed GPU type and count) | [optional] [readonly] +**GpuCount** | Pointer to **int32** | | [optional] [readonly] +**Id** | **string** | | [readonly] +**Instances** | [**[]ClusterInstancesInner**](ClusterInstancesInner.md) | | +**LastUsed** | **time.Time** | Timestamp of when the cluster was last in use | [readonly] +**Maintenance** | Pointer to **bool** | Is the cluster in maintenance mode? | [optional] +**MgmtIp** | Pointer to **string** | Management IP address | [optional] +**MgmtMac** | Pointer to **string** | Management MAC address | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**Netmask** | Pointer to **int32** | The subnet mask of the cluster's public IP address in CIDR notation | [optional] +**NodeCount** | Pointer to **int32** | | [optional] [readonly] +**Nodes** | Pointer to [**[]ClusterNodesInner**](ClusterNodesInner.md) | | [optional] +**Notes** | Pointer to **string** | Administrative comments about the cluster | [optional] +**Persist** | Pointer to **bool** | Is the cluster exempt from provisioning_state timeouts? Can be used to ensure the cluster persists after a provisioning failure. | [optional] +**ProviderCapacity** | **bool** | Does the provider have capacity to provision this cluster? | [readonly] +**ProvisionUser** | Pointer to **string** | Username used for provisioning this cluster | [optional] +**ProvisioningAttempts** | Pointer to **int32** | The number of attempts that have been made to provision this cluster. Automatically resets to 0 after successful provisioning. | [optional] +**ProvisioningState** | Pointer to [**ProvisioningStateEnum**](ProvisioningStateEnum.md) | Is the cluster currently provisioned? * `deployed` - Cluster is in use by a deployment * `deploying` - Provisioning is in progress * `destroying` - Cluster is being destroyed * `pending` - Provisioning will begin soon * `ready` - Provisioning has completed and is ready for a deployment * `reserved` - Cluster is unprovisioned but reserved for later use * `unprovisioned` - Cluster has not yet been provisioned | [optional] +**PublicAddress** | Pointer to **string** | Public IP address or fully-qualified domain name of this cluster | [optional] +**RequestId** | Pointer to **string** | The request ID for the lab that is currently provisioned on this cluster (ex: TRY-1234) | [optional] +**Reservation** | Pointer to **bool** | Is the cluster a static reservation from its provider? | [optional] +**TenantIds** | **[]string** | Tenant UUID(s) that have been generated for this cluster during provisioning | +**VlanId** | Pointer to **int32** | VLAN number | [optional] +**Workshop** | Pointer to **bool** | Is the cluster set aside for use in a workshop? | [optional] +**WorkshopId** | Pointer to **string** | Identifier of the workshop this cluster is set aside for | [optional] + +## Methods + +### NewDeploymentCluster + +`func NewDeploymentCluster(available bool, created time.Time, deployment ClusterDeployment, gpus []ClusterGpusInner, id string, instances []ClusterInstancesInner, lastUsed time.Time, modified time.Time, providerCapacity bool, tenantIds []string, ) *DeploymentCluster` + +NewDeploymentCluster instantiates a new DeploymentCluster 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 + +### NewDeploymentClusterWithDefaults + +`func NewDeploymentClusterWithDefaults() *DeploymentCluster` + +NewDeploymentClusterWithDefaults instantiates a new DeploymentCluster 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 + +### GetAvailable + +`func (o *DeploymentCluster) GetAvailable() bool` + +GetAvailable returns the Available field if non-nil, zero value otherwise. + +### GetAvailableOk + +`func (o *DeploymentCluster) GetAvailableOk() (*bool, bool)` + +GetAvailableOk returns a tuple with the Available field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailable + +`func (o *DeploymentCluster) SetAvailable(v bool)` + +SetAvailable sets Available field to given value. + + +### GetBastionName + +`func (o *DeploymentCluster) GetBastionName() string` + +GetBastionName returns the BastionName field if non-nil, zero value otherwise. + +### GetBastionNameOk + +`func (o *DeploymentCluster) GetBastionNameOk() (*string, bool)` + +GetBastionNameOk returns a tuple with the BastionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBastionName + +`func (o *DeploymentCluster) SetBastionName(v string)` + +SetBastionName sets BastionName field to given value. + +### HasBastionName + +`func (o *DeploymentCluster) HasBastionName() bool` + +HasBastionName returns a boolean if a field has been set. + +### GetCreated + +`func (o *DeploymentCluster) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeploymentCluster) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeploymentCluster) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetDeployment + +`func (o *DeploymentCluster) GetDeployment() ClusterDeployment` + +GetDeployment returns the Deployment field if non-nil, zero value otherwise. + +### GetDeploymentOk + +`func (o *DeploymentCluster) GetDeploymentOk() (*ClusterDeployment, bool)` + +GetDeploymentOk returns a tuple with the Deployment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployment + +`func (o *DeploymentCluster) SetDeployment(v ClusterDeployment)` + +SetDeployment sets Deployment field to given value. + + +### GetEnabled + +`func (o *DeploymentCluster) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *DeploymentCluster) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *DeploymentCluster) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *DeploymentCluster) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetExperience + +`func (o *DeploymentCluster) GetExperience() string` + +GetExperience returns the Experience field if non-nil, zero value otherwise. + +### GetExperienceOk + +`func (o *DeploymentCluster) GetExperienceOk() (*string, bool)` + +GetExperienceOk returns a tuple with the Experience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperience + +`func (o *DeploymentCluster) SetExperience(v string)` + +SetExperience sets Experience field to given value. + +### HasExperience + +`func (o *DeploymentCluster) HasExperience() bool` + +HasExperience returns a boolean if a field has been set. + +### GetFreeBy + +`func (o *DeploymentCluster) GetFreeBy() time.Time` + +GetFreeBy returns the FreeBy field if non-nil, zero value otherwise. + +### GetFreeByOk + +`func (o *DeploymentCluster) GetFreeByOk() (*time.Time, bool)` + +GetFreeByOk returns a tuple with the FreeBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFreeBy + +`func (o *DeploymentCluster) SetFreeBy(v time.Time)` + +SetFreeBy sets FreeBy field to given value. + +### HasFreeBy + +`func (o *DeploymentCluster) HasFreeBy() bool` + +HasFreeBy returns a boolean if a field has been set. + +### GetGpus + +`func (o *DeploymentCluster) GetGpus() []ClusterGpusInner` + +GetGpus returns the Gpus field if non-nil, zero value otherwise. + +### GetGpusOk + +`func (o *DeploymentCluster) GetGpusOk() (*[]ClusterGpusInner, bool)` + +GetGpusOk returns a tuple with the Gpus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpus + +`func (o *DeploymentCluster) SetGpus(v []ClusterGpusInner)` + +SetGpus sets Gpus field to given value. + + +### GetGpuAlias + +`func (o *DeploymentCluster) GetGpuAlias() string` + +GetGpuAlias returns the GpuAlias field if non-nil, zero value otherwise. + +### GetGpuAliasOk + +`func (o *DeploymentCluster) GetGpuAliasOk() (*string, bool)` + +GetGpuAliasOk returns a tuple with the GpuAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuAlias + +`func (o *DeploymentCluster) SetGpuAlias(v string)` + +SetGpuAlias sets GpuAlias field to given value. + +### HasGpuAlias + +`func (o *DeploymentCluster) HasGpuAlias() bool` + +HasGpuAlias returns a boolean if a field has been set. + +### GetGpuCount + +`func (o *DeploymentCluster) GetGpuCount() int32` + +GetGpuCount returns the GpuCount field if non-nil, zero value otherwise. + +### GetGpuCountOk + +`func (o *DeploymentCluster) GetGpuCountOk() (*int32, bool)` + +GetGpuCountOk returns a tuple with the GpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuCount + +`func (o *DeploymentCluster) SetGpuCount(v int32)` + +SetGpuCount sets GpuCount field to given value. + +### HasGpuCount + +`func (o *DeploymentCluster) HasGpuCount() bool` + +HasGpuCount returns a boolean if a field has been set. + +### GetId + +`func (o *DeploymentCluster) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DeploymentCluster) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DeploymentCluster) SetId(v string)` + +SetId sets Id field to given value. + + +### GetInstances + +`func (o *DeploymentCluster) GetInstances() []ClusterInstancesInner` + +GetInstances returns the Instances field if non-nil, zero value otherwise. + +### GetInstancesOk + +`func (o *DeploymentCluster) GetInstancesOk() (*[]ClusterInstancesInner, bool)` + +GetInstancesOk returns a tuple with the Instances field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstances + +`func (o *DeploymentCluster) SetInstances(v []ClusterInstancesInner)` + +SetInstances sets Instances field to given value. + + +### GetLastUsed + +`func (o *DeploymentCluster) GetLastUsed() time.Time` + +GetLastUsed returns the LastUsed field if non-nil, zero value otherwise. + +### GetLastUsedOk + +`func (o *DeploymentCluster) GetLastUsedOk() (*time.Time, bool)` + +GetLastUsedOk returns a tuple with the LastUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUsed + +`func (o *DeploymentCluster) SetLastUsed(v time.Time)` + +SetLastUsed sets LastUsed field to given value. + + +### GetMaintenance + +`func (o *DeploymentCluster) GetMaintenance() bool` + +GetMaintenance returns the Maintenance field if non-nil, zero value otherwise. + +### GetMaintenanceOk + +`func (o *DeploymentCluster) GetMaintenanceOk() (*bool, bool)` + +GetMaintenanceOk returns a tuple with the Maintenance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaintenance + +`func (o *DeploymentCluster) SetMaintenance(v bool)` + +SetMaintenance sets Maintenance field to given value. + +### HasMaintenance + +`func (o *DeploymentCluster) HasMaintenance() bool` + +HasMaintenance returns a boolean if a field has been set. + +### GetMgmtIp + +`func (o *DeploymentCluster) GetMgmtIp() string` + +GetMgmtIp returns the MgmtIp field if non-nil, zero value otherwise. + +### GetMgmtIpOk + +`func (o *DeploymentCluster) GetMgmtIpOk() (*string, bool)` + +GetMgmtIpOk returns a tuple with the MgmtIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMgmtIp + +`func (o *DeploymentCluster) SetMgmtIp(v string)` + +SetMgmtIp sets MgmtIp field to given value. + +### HasMgmtIp + +`func (o *DeploymentCluster) HasMgmtIp() bool` + +HasMgmtIp returns a boolean if a field has been set. + +### GetMgmtMac + +`func (o *DeploymentCluster) GetMgmtMac() string` + +GetMgmtMac returns the MgmtMac field if non-nil, zero value otherwise. + +### GetMgmtMacOk + +`func (o *DeploymentCluster) GetMgmtMacOk() (*string, bool)` + +GetMgmtMacOk returns a tuple with the MgmtMac field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMgmtMac + +`func (o *DeploymentCluster) SetMgmtMac(v string)` + +SetMgmtMac sets MgmtMac field to given value. + +### HasMgmtMac + +`func (o *DeploymentCluster) HasMgmtMac() bool` + +HasMgmtMac returns a boolean if a field has been set. + +### GetModified + +`func (o *DeploymentCluster) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *DeploymentCluster) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *DeploymentCluster) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNetmask + +`func (o *DeploymentCluster) GetNetmask() int32` + +GetNetmask returns the Netmask field if non-nil, zero value otherwise. + +### GetNetmaskOk + +`func (o *DeploymentCluster) GetNetmaskOk() (*int32, bool)` + +GetNetmaskOk returns a tuple with the Netmask field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetmask + +`func (o *DeploymentCluster) SetNetmask(v int32)` + +SetNetmask sets Netmask field to given value. + +### HasNetmask + +`func (o *DeploymentCluster) HasNetmask() bool` + +HasNetmask returns a boolean if a field has been set. + +### GetNodeCount + +`func (o *DeploymentCluster) GetNodeCount() int32` + +GetNodeCount returns the NodeCount field if non-nil, zero value otherwise. + +### GetNodeCountOk + +`func (o *DeploymentCluster) 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 *DeploymentCluster) SetNodeCount(v int32)` + +SetNodeCount sets NodeCount field to given value. + +### HasNodeCount + +`func (o *DeploymentCluster) HasNodeCount() bool` + +HasNodeCount returns a boolean if a field has been set. + +### GetNodes + +`func (o *DeploymentCluster) GetNodes() []ClusterNodesInner` + +GetNodes returns the Nodes field if non-nil, zero value otherwise. + +### GetNodesOk + +`func (o *DeploymentCluster) GetNodesOk() (*[]ClusterNodesInner, 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 *DeploymentCluster) SetNodes(v []ClusterNodesInner)` + +SetNodes sets Nodes field to given value. + +### HasNodes + +`func (o *DeploymentCluster) HasNodes() bool` + +HasNodes returns a boolean if a field has been set. + +### GetNotes + +`func (o *DeploymentCluster) GetNotes() string` + +GetNotes returns the Notes field if non-nil, zero value otherwise. + +### GetNotesOk + +`func (o *DeploymentCluster) GetNotesOk() (*string, bool)` + +GetNotesOk returns a tuple with the Notes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotes + +`func (o *DeploymentCluster) SetNotes(v string)` + +SetNotes sets Notes field to given value. + +### HasNotes + +`func (o *DeploymentCluster) HasNotes() bool` + +HasNotes returns a boolean if a field has been set. + +### GetPersist + +`func (o *DeploymentCluster) GetPersist() bool` + +GetPersist returns the Persist field if non-nil, zero value otherwise. + +### GetPersistOk + +`func (o *DeploymentCluster) GetPersistOk() (*bool, bool)` + +GetPersistOk returns a tuple with the Persist field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersist + +`func (o *DeploymentCluster) SetPersist(v bool)` + +SetPersist sets Persist field to given value. + +### HasPersist + +`func (o *DeploymentCluster) HasPersist() bool` + +HasPersist returns a boolean if a field has been set. + +### GetProviderCapacity + +`func (o *DeploymentCluster) GetProviderCapacity() bool` + +GetProviderCapacity returns the ProviderCapacity field if non-nil, zero value otherwise. + +### GetProviderCapacityOk + +`func (o *DeploymentCluster) GetProviderCapacityOk() (*bool, bool)` + +GetProviderCapacityOk returns a tuple with the ProviderCapacity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderCapacity + +`func (o *DeploymentCluster) SetProviderCapacity(v bool)` + +SetProviderCapacity sets ProviderCapacity field to given value. + + +### GetProvisionUser + +`func (o *DeploymentCluster) GetProvisionUser() string` + +GetProvisionUser returns the ProvisionUser field if non-nil, zero value otherwise. + +### GetProvisionUserOk + +`func (o *DeploymentCluster) GetProvisionUserOk() (*string, bool)` + +GetProvisionUserOk returns a tuple with the ProvisionUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvisionUser + +`func (o *DeploymentCluster) SetProvisionUser(v string)` + +SetProvisionUser sets ProvisionUser field to given value. + +### HasProvisionUser + +`func (o *DeploymentCluster) HasProvisionUser() bool` + +HasProvisionUser returns a boolean if a field has been set. + +### GetProvisioningAttempts + +`func (o *DeploymentCluster) GetProvisioningAttempts() int32` + +GetProvisioningAttempts returns the ProvisioningAttempts field if non-nil, zero value otherwise. + +### GetProvisioningAttemptsOk + +`func (o *DeploymentCluster) GetProvisioningAttemptsOk() (*int32, bool)` + +GetProvisioningAttemptsOk returns a tuple with the ProvisioningAttempts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvisioningAttempts + +`func (o *DeploymentCluster) SetProvisioningAttempts(v int32)` + +SetProvisioningAttempts sets ProvisioningAttempts field to given value. + +### HasProvisioningAttempts + +`func (o *DeploymentCluster) HasProvisioningAttempts() bool` + +HasProvisioningAttempts returns a boolean if a field has been set. + +### GetProvisioningState + +`func (o *DeploymentCluster) GetProvisioningState() ProvisioningStateEnum` + +GetProvisioningState returns the ProvisioningState field if non-nil, zero value otherwise. + +### GetProvisioningStateOk + +`func (o *DeploymentCluster) GetProvisioningStateOk() (*ProvisioningStateEnum, bool)` + +GetProvisioningStateOk returns a tuple with the ProvisioningState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvisioningState + +`func (o *DeploymentCluster) SetProvisioningState(v ProvisioningStateEnum)` + +SetProvisioningState sets ProvisioningState field to given value. + +### HasProvisioningState + +`func (o *DeploymentCluster) HasProvisioningState() bool` + +HasProvisioningState returns a boolean if a field has been set. + +### GetPublicAddress + +`func (o *DeploymentCluster) GetPublicAddress() string` + +GetPublicAddress returns the PublicAddress field if non-nil, zero value otherwise. + +### GetPublicAddressOk + +`func (o *DeploymentCluster) GetPublicAddressOk() (*string, bool)` + +GetPublicAddressOk returns a tuple with the PublicAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicAddress + +`func (o *DeploymentCluster) SetPublicAddress(v string)` + +SetPublicAddress sets PublicAddress field to given value. + +### HasPublicAddress + +`func (o *DeploymentCluster) HasPublicAddress() bool` + +HasPublicAddress returns a boolean if a field has been set. + +### GetRequestId + +`func (o *DeploymentCluster) GetRequestId() string` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *DeploymentCluster) GetRequestIdOk() (*string, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *DeploymentCluster) SetRequestId(v string)` + +SetRequestId sets RequestId field to given value. + +### HasRequestId + +`func (o *DeploymentCluster) HasRequestId() bool` + +HasRequestId returns a boolean if a field has been set. + +### GetReservation + +`func (o *DeploymentCluster) GetReservation() bool` + +GetReservation returns the Reservation field if non-nil, zero value otherwise. + +### GetReservationOk + +`func (o *DeploymentCluster) GetReservationOk() (*bool, bool)` + +GetReservationOk returns a tuple with the Reservation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReservation + +`func (o *DeploymentCluster) SetReservation(v bool)` + +SetReservation sets Reservation field to given value. + +### HasReservation + +`func (o *DeploymentCluster) HasReservation() bool` + +HasReservation returns a boolean if a field has been set. + +### GetTenantIds + +`func (o *DeploymentCluster) GetTenantIds() []string` + +GetTenantIds returns the TenantIds field if non-nil, zero value otherwise. + +### GetTenantIdsOk + +`func (o *DeploymentCluster) GetTenantIdsOk() (*[]string, bool)` + +GetTenantIdsOk returns a tuple with the TenantIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantIds + +`func (o *DeploymentCluster) SetTenantIds(v []string)` + +SetTenantIds sets TenantIds field to given value. + + +### GetVlanId + +`func (o *DeploymentCluster) GetVlanId() int32` + +GetVlanId returns the VlanId field if non-nil, zero value otherwise. + +### GetVlanIdOk + +`func (o *DeploymentCluster) GetVlanIdOk() (*int32, bool)` + +GetVlanIdOk returns a tuple with the VlanId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanId + +`func (o *DeploymentCluster) SetVlanId(v int32)` + +SetVlanId sets VlanId field to given value. + +### HasVlanId + +`func (o *DeploymentCluster) HasVlanId() bool` + +HasVlanId returns a boolean if a field has been set. + +### GetWorkshop + +`func (o *DeploymentCluster) GetWorkshop() bool` + +GetWorkshop returns the Workshop field if non-nil, zero value otherwise. + +### GetWorkshopOk + +`func (o *DeploymentCluster) GetWorkshopOk() (*bool, bool)` + +GetWorkshopOk returns a tuple with the Workshop field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshop + +`func (o *DeploymentCluster) SetWorkshop(v bool)` + +SetWorkshop sets Workshop field to given value. + +### HasWorkshop + +`func (o *DeploymentCluster) HasWorkshop() bool` + +HasWorkshop returns a boolean if a field has been set. + +### GetWorkshopId + +`func (o *DeploymentCluster) GetWorkshopId() string` + +GetWorkshopId returns the WorkshopId field if non-nil, zero value otherwise. + +### GetWorkshopIdOk + +`func (o *DeploymentCluster) GetWorkshopIdOk() (*string, bool)` + +GetWorkshopIdOk returns a tuple with the WorkshopId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshopId + +`func (o *DeploymentCluster) SetWorkshopId(v string)` + +SetWorkshopId sets WorkshopId field to given value. + +### HasWorkshopId + +`func (o *DeploymentCluster) HasWorkshopId() bool` + +HasWorkshopId 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) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/DeploymentExperience.md b/v1/providers/launchpad/gen/launchpad/docs/DeploymentExperience.md new file mode 100644 index 0000000..17163fa --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/DeploymentExperience.md @@ -0,0 +1,854 @@ +# DeploymentExperience + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Assignee** | Pointer to **string** | User ID who is responsible for manual provisioning | [optional] +**Autoapprove** | Pointer to **bool** | Can the experience be provisioned without human approval? | [optional] +**Autoprovision** | Pointer to **bool** | Can the experience be provisioned without human intervention? | [optional] +**Bootstrap** | Pointer to **bool** | Can this experience be used to bootstrap another compatible experience? | [optional] +**CatalogId** | **string** | Unique ID for this experience in the sales catalog. Must be unique. | +**CatalogIdAlias** | Pointer to **string** | Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique. | [optional] +**Category** | [**CategoryEnum**](CategoryEnum.md) | Functional group that this experience is targetting * `AI` - AI * `Clara` - Clara * `Data Science` - Data Science * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation * `Developer` - Developer * `Infrastructure Optimization` - Infrastructure Optimization | +**CollectionBranch** | Pointer to **string** | Ansible collection branch initialized within the pipeline | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Description** | Pointer to **string** | | [optional] +**Experience** | **string** | Experience name slug | +**ExperienceBranch** | Pointer to **string** | Experience branch name used during deployment (default: origin/main) | [optional] +**FcPlatform** | Pointer to [**FcPlatformEnum**](FcPlatformEnum.md) | | [optional] +**FcSupport** | Pointer to **bool** | Does the experience support Flight Control? | [optional] +**GarageId** | Pointer to **string** | ID of the garage where nodes for this experience should be selected from | [optional] +**GcBranch** | Pointer to **string** | Ground Control branch name (default: main) | [optional] +**GpuCount** | Pointer to **int32** | Number of GPUs used | [optional] +**GpuOs** | [**GpuOs**](GpuOs.md) | | +**Id** | **string** | | [readonly] +**InactivityMax** | Pointer to **int32** | Number of days without user interaction before the experience is torn down (default: 3) | [optional] +**Lifetime** | Pointer to **int32** | Default number of days a provisioned experience should remain active (default: 3). A null lifetime will cause a deployment to remain active indefinitely. | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**NodeCount** | Pointer to **int32** | Number of Nodes used | [optional] +**Persona** | **string** | | +**Pipeline** | **int64** | Pipeline ID used for provisioning | +**Platform** | [**PlatformEnum**](PlatformEnum.md) | Base platform that the experience will be provisioned onto * `air` - NVIDIA Air * `flight_deck` - Flight Deck * `kvm_bastion` - KVM Bastion * `lp-vmware-platform` - lp-vmware-platform * `minimal` - minimal * `openshift` - OpenShift * `vsphere` - vSphere * `vsphere_horizon` - VMware Horizon * `vsphere7` - vSphere 7 * `vsphere8` - vSphere 8 | +**Provider** | Pointer to **string** | If set, the experience must be provisioned to the given provider | [optional] +**Published** | Pointer to [**PublishedEnum**](PublishedEnum.md) | Is the experience published for use? * `draft` - draft * `no` - no * `yes` - yes | [optional] +**Repo** | Pointer to **string** | URL of the repository for provisioning automation | [optional] +**RequiredGpus** | Pointer to **[]string** | If set, the experience must be provisioned using one of the given GPU types. GPU requirements are evaluated in the order they are set (ex: [\"{l40s_gpu_uuid}\", \"{a100_gpu_uuid}\"] will prefer an l40s). | [optional] +**SaLab** | Pointer to **bool** | Is this a persistent experience for SAs? | [optional] +**SystemArch** | [**SystemArchEnum**](SystemArchEnum.md) | Required CPU architecture * `amd64` - amd64 * `arm64` - arm64 | +**Title** | **string** | | +**VgpuProfile** | Pointer to [**VgpuProfileEnum**](VgpuProfileEnum.md) | | [optional] + +## Methods + +### NewDeploymentExperience + +`func NewDeploymentExperience(catalogId string, category CategoryEnum, created time.Time, experience string, gpuOs GpuOs, id string, modified time.Time, persona string, pipeline int64, platform PlatformEnum, systemArch SystemArchEnum, title string, ) *DeploymentExperience` + +NewDeploymentExperience instantiates a new DeploymentExperience 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 + +### NewDeploymentExperienceWithDefaults + +`func NewDeploymentExperienceWithDefaults() *DeploymentExperience` + +NewDeploymentExperienceWithDefaults instantiates a new DeploymentExperience 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 + +### GetAssignee + +`func (o *DeploymentExperience) GetAssignee() string` + +GetAssignee returns the Assignee field if non-nil, zero value otherwise. + +### GetAssigneeOk + +`func (o *DeploymentExperience) GetAssigneeOk() (*string, bool)` + +GetAssigneeOk returns a tuple with the Assignee field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignee + +`func (o *DeploymentExperience) SetAssignee(v string)` + +SetAssignee sets Assignee field to given value. + +### HasAssignee + +`func (o *DeploymentExperience) HasAssignee() bool` + +HasAssignee returns a boolean if a field has been set. + +### GetAutoapprove + +`func (o *DeploymentExperience) GetAutoapprove() bool` + +GetAutoapprove returns the Autoapprove field if non-nil, zero value otherwise. + +### GetAutoapproveOk + +`func (o *DeploymentExperience) GetAutoapproveOk() (*bool, bool)` + +GetAutoapproveOk returns a tuple with the Autoapprove field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoapprove + +`func (o *DeploymentExperience) SetAutoapprove(v bool)` + +SetAutoapprove sets Autoapprove field to given value. + +### HasAutoapprove + +`func (o *DeploymentExperience) HasAutoapprove() bool` + +HasAutoapprove returns a boolean if a field has been set. + +### GetAutoprovision + +`func (o *DeploymentExperience) GetAutoprovision() bool` + +GetAutoprovision returns the Autoprovision field if non-nil, zero value otherwise. + +### GetAutoprovisionOk + +`func (o *DeploymentExperience) GetAutoprovisionOk() (*bool, bool)` + +GetAutoprovisionOk returns a tuple with the Autoprovision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoprovision + +`func (o *DeploymentExperience) SetAutoprovision(v bool)` + +SetAutoprovision sets Autoprovision field to given value. + +### HasAutoprovision + +`func (o *DeploymentExperience) HasAutoprovision() bool` + +HasAutoprovision returns a boolean if a field has been set. + +### GetBootstrap + +`func (o *DeploymentExperience) GetBootstrap() bool` + +GetBootstrap returns the Bootstrap field if non-nil, zero value otherwise. + +### GetBootstrapOk + +`func (o *DeploymentExperience) GetBootstrapOk() (*bool, bool)` + +GetBootstrapOk returns a tuple with the Bootstrap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBootstrap + +`func (o *DeploymentExperience) SetBootstrap(v bool)` + +SetBootstrap sets Bootstrap field to given value. + +### HasBootstrap + +`func (o *DeploymentExperience) HasBootstrap() bool` + +HasBootstrap returns a boolean if a field has been set. + +### GetCatalogId + +`func (o *DeploymentExperience) GetCatalogId() string` + +GetCatalogId returns the CatalogId field if non-nil, zero value otherwise. + +### GetCatalogIdOk + +`func (o *DeploymentExperience) GetCatalogIdOk() (*string, bool)` + +GetCatalogIdOk returns a tuple with the CatalogId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogId + +`func (o *DeploymentExperience) SetCatalogId(v string)` + +SetCatalogId sets CatalogId field to given value. + + +### GetCatalogIdAlias + +`func (o *DeploymentExperience) GetCatalogIdAlias() string` + +GetCatalogIdAlias returns the CatalogIdAlias field if non-nil, zero value otherwise. + +### GetCatalogIdAliasOk + +`func (o *DeploymentExperience) GetCatalogIdAliasOk() (*string, bool)` + +GetCatalogIdAliasOk returns a tuple with the CatalogIdAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogIdAlias + +`func (o *DeploymentExperience) SetCatalogIdAlias(v string)` + +SetCatalogIdAlias sets CatalogIdAlias field to given value. + +### HasCatalogIdAlias + +`func (o *DeploymentExperience) HasCatalogIdAlias() bool` + +HasCatalogIdAlias returns a boolean if a field has been set. + +### GetCategory + +`func (o *DeploymentExperience) GetCategory() CategoryEnum` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *DeploymentExperience) GetCategoryOk() (*CategoryEnum, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *DeploymentExperience) SetCategory(v CategoryEnum)` + +SetCategory sets Category field to given value. + + +### GetCollectionBranch + +`func (o *DeploymentExperience) GetCollectionBranch() string` + +GetCollectionBranch returns the CollectionBranch field if non-nil, zero value otherwise. + +### GetCollectionBranchOk + +`func (o *DeploymentExperience) GetCollectionBranchOk() (*string, bool)` + +GetCollectionBranchOk returns a tuple with the CollectionBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionBranch + +`func (o *DeploymentExperience) SetCollectionBranch(v string)` + +SetCollectionBranch sets CollectionBranch field to given value. + +### HasCollectionBranch + +`func (o *DeploymentExperience) HasCollectionBranch() bool` + +HasCollectionBranch returns a boolean if a field has been set. + +### GetCreated + +`func (o *DeploymentExperience) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeploymentExperience) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeploymentExperience) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetDescription + +`func (o *DeploymentExperience) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *DeploymentExperience) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *DeploymentExperience) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *DeploymentExperience) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetExperience + +`func (o *DeploymentExperience) GetExperience() string` + +GetExperience returns the Experience field if non-nil, zero value otherwise. + +### GetExperienceOk + +`func (o *DeploymentExperience) GetExperienceOk() (*string, bool)` + +GetExperienceOk returns a tuple with the Experience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperience + +`func (o *DeploymentExperience) SetExperience(v string)` + +SetExperience sets Experience field to given value. + + +### GetExperienceBranch + +`func (o *DeploymentExperience) GetExperienceBranch() string` + +GetExperienceBranch returns the ExperienceBranch field if non-nil, zero value otherwise. + +### GetExperienceBranchOk + +`func (o *DeploymentExperience) GetExperienceBranchOk() (*string, bool)` + +GetExperienceBranchOk returns a tuple with the ExperienceBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperienceBranch + +`func (o *DeploymentExperience) SetExperienceBranch(v string)` + +SetExperienceBranch sets ExperienceBranch field to given value. + +### HasExperienceBranch + +`func (o *DeploymentExperience) HasExperienceBranch() bool` + +HasExperienceBranch returns a boolean if a field has been set. + +### GetFcPlatform + +`func (o *DeploymentExperience) GetFcPlatform() FcPlatformEnum` + +GetFcPlatform returns the FcPlatform field if non-nil, zero value otherwise. + +### GetFcPlatformOk + +`func (o *DeploymentExperience) GetFcPlatformOk() (*FcPlatformEnum, bool)` + +GetFcPlatformOk returns a tuple with the FcPlatform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFcPlatform + +`func (o *DeploymentExperience) SetFcPlatform(v FcPlatformEnum)` + +SetFcPlatform sets FcPlatform field to given value. + +### HasFcPlatform + +`func (o *DeploymentExperience) HasFcPlatform() bool` + +HasFcPlatform returns a boolean if a field has been set. + +### GetFcSupport + +`func (o *DeploymentExperience) GetFcSupport() bool` + +GetFcSupport returns the FcSupport field if non-nil, zero value otherwise. + +### GetFcSupportOk + +`func (o *DeploymentExperience) GetFcSupportOk() (*bool, bool)` + +GetFcSupportOk returns a tuple with the FcSupport field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFcSupport + +`func (o *DeploymentExperience) SetFcSupport(v bool)` + +SetFcSupport sets FcSupport field to given value. + +### HasFcSupport + +`func (o *DeploymentExperience) HasFcSupport() bool` + +HasFcSupport returns a boolean if a field has been set. + +### GetGarageId + +`func (o *DeploymentExperience) GetGarageId() string` + +GetGarageId returns the GarageId field if non-nil, zero value otherwise. + +### GetGarageIdOk + +`func (o *DeploymentExperience) GetGarageIdOk() (*string, bool)` + +GetGarageIdOk returns a tuple with the GarageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGarageId + +`func (o *DeploymentExperience) SetGarageId(v string)` + +SetGarageId sets GarageId field to given value. + +### HasGarageId + +`func (o *DeploymentExperience) HasGarageId() bool` + +HasGarageId returns a boolean if a field has been set. + +### GetGcBranch + +`func (o *DeploymentExperience) GetGcBranch() string` + +GetGcBranch returns the GcBranch field if non-nil, zero value otherwise. + +### GetGcBranchOk + +`func (o *DeploymentExperience) GetGcBranchOk() (*string, bool)` + +GetGcBranchOk returns a tuple with the GcBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcBranch + +`func (o *DeploymentExperience) SetGcBranch(v string)` + +SetGcBranch sets GcBranch field to given value. + +### HasGcBranch + +`func (o *DeploymentExperience) HasGcBranch() bool` + +HasGcBranch returns a boolean if a field has been set. + +### GetGpuCount + +`func (o *DeploymentExperience) GetGpuCount() int32` + +GetGpuCount returns the GpuCount field if non-nil, zero value otherwise. + +### GetGpuCountOk + +`func (o *DeploymentExperience) GetGpuCountOk() (*int32, bool)` + +GetGpuCountOk returns a tuple with the GpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuCount + +`func (o *DeploymentExperience) SetGpuCount(v int32)` + +SetGpuCount sets GpuCount field to given value. + +### HasGpuCount + +`func (o *DeploymentExperience) HasGpuCount() bool` + +HasGpuCount returns a boolean if a field has been set. + +### GetGpuOs + +`func (o *DeploymentExperience) GetGpuOs() GpuOs` + +GetGpuOs returns the GpuOs field if non-nil, zero value otherwise. + +### GetGpuOsOk + +`func (o *DeploymentExperience) GetGpuOsOk() (*GpuOs, bool)` + +GetGpuOsOk returns a tuple with the GpuOs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOs + +`func (o *DeploymentExperience) SetGpuOs(v GpuOs)` + +SetGpuOs sets GpuOs field to given value. + + +### GetId + +`func (o *DeploymentExperience) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DeploymentExperience) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DeploymentExperience) SetId(v string)` + +SetId sets Id field to given value. + + +### GetInactivityMax + +`func (o *DeploymentExperience) GetInactivityMax() int32` + +GetInactivityMax returns the InactivityMax field if non-nil, zero value otherwise. + +### GetInactivityMaxOk + +`func (o *DeploymentExperience) GetInactivityMaxOk() (*int32, bool)` + +GetInactivityMaxOk returns a tuple with the InactivityMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInactivityMax + +`func (o *DeploymentExperience) SetInactivityMax(v int32)` + +SetInactivityMax sets InactivityMax field to given value. + +### HasInactivityMax + +`func (o *DeploymentExperience) HasInactivityMax() bool` + +HasInactivityMax returns a boolean if a field has been set. + +### GetLifetime + +`func (o *DeploymentExperience) GetLifetime() int32` + +GetLifetime returns the Lifetime field if non-nil, zero value otherwise. + +### GetLifetimeOk + +`func (o *DeploymentExperience) GetLifetimeOk() (*int32, bool)` + +GetLifetimeOk returns a tuple with the Lifetime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifetime + +`func (o *DeploymentExperience) SetLifetime(v int32)` + +SetLifetime sets Lifetime field to given value. + +### HasLifetime + +`func (o *DeploymentExperience) HasLifetime() bool` + +HasLifetime returns a boolean if a field has been set. + +### GetModified + +`func (o *DeploymentExperience) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *DeploymentExperience) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *DeploymentExperience) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNodeCount + +`func (o *DeploymentExperience) GetNodeCount() int32` + +GetNodeCount returns the NodeCount field if non-nil, zero value otherwise. + +### GetNodeCountOk + +`func (o *DeploymentExperience) 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 *DeploymentExperience) SetNodeCount(v int32)` + +SetNodeCount sets NodeCount field to given value. + +### HasNodeCount + +`func (o *DeploymentExperience) HasNodeCount() bool` + +HasNodeCount returns a boolean if a field has been set. + +### GetPersona + +`func (o *DeploymentExperience) GetPersona() string` + +GetPersona returns the Persona field if non-nil, zero value otherwise. + +### GetPersonaOk + +`func (o *DeploymentExperience) GetPersonaOk() (*string, bool)` + +GetPersonaOk returns a tuple with the Persona field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersona + +`func (o *DeploymentExperience) SetPersona(v string)` + +SetPersona sets Persona field to given value. + + +### GetPipeline + +`func (o *DeploymentExperience) GetPipeline() int64` + +GetPipeline returns the Pipeline field if non-nil, zero value otherwise. + +### GetPipelineOk + +`func (o *DeploymentExperience) GetPipelineOk() (*int64, bool)` + +GetPipelineOk returns a tuple with the Pipeline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipeline + +`func (o *DeploymentExperience) SetPipeline(v int64)` + +SetPipeline sets Pipeline field to given value. + + +### GetPlatform + +`func (o *DeploymentExperience) GetPlatform() PlatformEnum` + +GetPlatform returns the Platform field if non-nil, zero value otherwise. + +### GetPlatformOk + +`func (o *DeploymentExperience) GetPlatformOk() (*PlatformEnum, bool)` + +GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatform + +`func (o *DeploymentExperience) SetPlatform(v PlatformEnum)` + +SetPlatform sets Platform field to given value. + + +### GetProvider + +`func (o *DeploymentExperience) GetProvider() string` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *DeploymentExperience) GetProviderOk() (*string, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *DeploymentExperience) SetProvider(v string)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *DeploymentExperience) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + +### GetPublished + +`func (o *DeploymentExperience) GetPublished() PublishedEnum` + +GetPublished returns the Published field if non-nil, zero value otherwise. + +### GetPublishedOk + +`func (o *DeploymentExperience) GetPublishedOk() (*PublishedEnum, bool)` + +GetPublishedOk returns a tuple with the Published field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublished + +`func (o *DeploymentExperience) SetPublished(v PublishedEnum)` + +SetPublished sets Published field to given value. + +### HasPublished + +`func (o *DeploymentExperience) HasPublished() bool` + +HasPublished returns a boolean if a field has been set. + +### GetRepo + +`func (o *DeploymentExperience) GetRepo() string` + +GetRepo returns the Repo field if non-nil, zero value otherwise. + +### GetRepoOk + +`func (o *DeploymentExperience) GetRepoOk() (*string, bool)` + +GetRepoOk returns a tuple with the Repo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepo + +`func (o *DeploymentExperience) SetRepo(v string)` + +SetRepo sets Repo field to given value. + +### HasRepo + +`func (o *DeploymentExperience) HasRepo() bool` + +HasRepo returns a boolean if a field has been set. + +### GetRequiredGpus + +`func (o *DeploymentExperience) GetRequiredGpus() []string` + +GetRequiredGpus returns the RequiredGpus field if non-nil, zero value otherwise. + +### GetRequiredGpusOk + +`func (o *DeploymentExperience) GetRequiredGpusOk() (*[]string, bool)` + +GetRequiredGpusOk returns a tuple with the RequiredGpus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredGpus + +`func (o *DeploymentExperience) SetRequiredGpus(v []string)` + +SetRequiredGpus sets RequiredGpus field to given value. + +### HasRequiredGpus + +`func (o *DeploymentExperience) HasRequiredGpus() bool` + +HasRequiredGpus returns a boolean if a field has been set. + +### GetSaLab + +`func (o *DeploymentExperience) GetSaLab() bool` + +GetSaLab returns the SaLab field if non-nil, zero value otherwise. + +### GetSaLabOk + +`func (o *DeploymentExperience) GetSaLabOk() (*bool, bool)` + +GetSaLabOk returns a tuple with the SaLab field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaLab + +`func (o *DeploymentExperience) SetSaLab(v bool)` + +SetSaLab sets SaLab field to given value. + +### HasSaLab + +`func (o *DeploymentExperience) HasSaLab() bool` + +HasSaLab returns a boolean if a field has been set. + +### GetSystemArch + +`func (o *DeploymentExperience) GetSystemArch() SystemArchEnum` + +GetSystemArch returns the SystemArch field if non-nil, zero value otherwise. + +### GetSystemArchOk + +`func (o *DeploymentExperience) GetSystemArchOk() (*SystemArchEnum, bool)` + +GetSystemArchOk returns a tuple with the SystemArch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemArch + +`func (o *DeploymentExperience) SetSystemArch(v SystemArchEnum)` + +SetSystemArch sets SystemArch field to given value. + + +### GetTitle + +`func (o *DeploymentExperience) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *DeploymentExperience) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *DeploymentExperience) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetVgpuProfile + +`func (o *DeploymentExperience) GetVgpuProfile() VgpuProfileEnum` + +GetVgpuProfile returns the VgpuProfile field if non-nil, zero value otherwise. + +### GetVgpuProfileOk + +`func (o *DeploymentExperience) GetVgpuProfileOk() (*VgpuProfileEnum, bool)` + +GetVgpuProfileOk returns a tuple with the VgpuProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVgpuProfile + +`func (o *DeploymentExperience) SetVgpuProfile(v VgpuProfileEnum)` + +SetVgpuProfile sets VgpuProfile field to given value. + +### HasVgpuProfile + +`func (o *DeploymentExperience) HasVgpuProfile() bool` + +HasVgpuProfile 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) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/DeploymentInstance.md b/v1/providers/launchpad/gen/launchpad/docs/DeploymentInstance.md new file mode 100644 index 0000000..b8d5e88 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/DeploymentInstance.md @@ -0,0 +1,208 @@ +# DeploymentInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Id** | **string** | | [readonly] +**InstanceId** | **string** | Unique ID for this instance assigned by its provider | [readonly] +**Name** | **NullableString** | User-friendly name of this instance | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**State** | [**InstanceState**](InstanceState.md) | Current lifecycle state of this instance * `running` - Instance is running * `starting` - Instance is starting * `stopped` - Instance is stopped * `stopping` - Instance is stopping * `unknown` - Instance state is currently unknown | [readonly] +**StateModified** | **time.Time** | | [readonly] +**Tags** | **[]string** | Tags associated with this instance | + +## Methods + +### NewDeploymentInstance + +`func NewDeploymentInstance(created time.Time, id string, instanceId string, name NullableString, modified time.Time, state InstanceState, stateModified time.Time, tags []string, ) *DeploymentInstance` + +NewDeploymentInstance instantiates a new DeploymentInstance 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 + +### NewDeploymentInstanceWithDefaults + +`func NewDeploymentInstanceWithDefaults() *DeploymentInstance` + +NewDeploymentInstanceWithDefaults instantiates a new DeploymentInstance 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 + +### GetCreated + +`func (o *DeploymentInstance) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeploymentInstance) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeploymentInstance) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetId + +`func (o *DeploymentInstance) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DeploymentInstance) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DeploymentInstance) SetId(v string)` + +SetId sets Id field to given value. + + +### GetInstanceId + +`func (o *DeploymentInstance) GetInstanceId() string` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *DeploymentInstance) GetInstanceIdOk() (*string, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *DeploymentInstance) SetInstanceId(v string)` + +SetInstanceId sets InstanceId field to given value. + + +### GetName + +`func (o *DeploymentInstance) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DeploymentInstance) 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 *DeploymentInstance) SetName(v string)` + +SetName sets Name field to given value. + + +### SetNameNil + +`func (o *DeploymentInstance) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *DeploymentInstance) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetModified + +`func (o *DeploymentInstance) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *DeploymentInstance) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *DeploymentInstance) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetState + +`func (o *DeploymentInstance) GetState() InstanceState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *DeploymentInstance) GetStateOk() (*InstanceState, 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 *DeploymentInstance) SetState(v InstanceState)` + +SetState sets State field to given value. + + +### GetStateModified + +`func (o *DeploymentInstance) GetStateModified() time.Time` + +GetStateModified returns the StateModified field if non-nil, zero value otherwise. + +### GetStateModifiedOk + +`func (o *DeploymentInstance) GetStateModifiedOk() (*time.Time, bool)` + +GetStateModifiedOk returns a tuple with the StateModified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateModified + +`func (o *DeploymentInstance) SetStateModified(v time.Time)` + +SetStateModified sets StateModified field to given value. + + +### GetTags + +`func (o *DeploymentInstance) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeploymentInstance) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *DeploymentInstance) SetTags(v []string)` + +SetTags sets Tags field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/DeploymentKey.md b/v1/providers/launchpad/gen/launchpad/docs/DeploymentKey.md new file mode 100644 index 0000000..90fc506 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/DeploymentKey.md @@ -0,0 +1,156 @@ +# DeploymentKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Deployment** | [**ClusterDeployment**](ClusterDeployment.md) | | +**Id** | **string** | | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**Name** | **string** | Descriptive name for the SSH public key | +**PublicKey** | **string** | An SSH public key that should be authorized to access the deployment | + +## Methods + +### NewDeploymentKey + +`func NewDeploymentKey(created time.Time, deployment ClusterDeployment, id string, modified time.Time, name string, publicKey string, ) *DeploymentKey` + +NewDeploymentKey instantiates a new DeploymentKey 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 + +### NewDeploymentKeyWithDefaults + +`func NewDeploymentKeyWithDefaults() *DeploymentKey` + +NewDeploymentKeyWithDefaults instantiates a new DeploymentKey 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 + +### GetCreated + +`func (o *DeploymentKey) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeploymentKey) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeploymentKey) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetDeployment + +`func (o *DeploymentKey) GetDeployment() ClusterDeployment` + +GetDeployment returns the Deployment field if non-nil, zero value otherwise. + +### GetDeploymentOk + +`func (o *DeploymentKey) GetDeploymentOk() (*ClusterDeployment, bool)` + +GetDeploymentOk returns a tuple with the Deployment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployment + +`func (o *DeploymentKey) SetDeployment(v ClusterDeployment)` + +SetDeployment sets Deployment field to given value. + + +### GetId + +`func (o *DeploymentKey) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DeploymentKey) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DeploymentKey) SetId(v string)` + +SetId sets Id field to given value. + + +### GetModified + +`func (o *DeploymentKey) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *DeploymentKey) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *DeploymentKey) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetName + +`func (o *DeploymentKey) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DeploymentKey) 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 *DeploymentKey) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPublicKey + +`func (o *DeploymentKey) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *DeploymentKey) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *DeploymentKey) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/DeploymentNote.md b/v1/providers/launchpad/gen/launchpad/docs/DeploymentNote.md new file mode 100644 index 0000000..2d74e4a --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/DeploymentNote.md @@ -0,0 +1,182 @@ +# DeploymentNote + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | Pointer to **string** | Text content of the note | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**CreatedBy** | **string** | | [readonly] +**Deployment** | [**ClusterDeployment**](ClusterDeployment.md) | | +**Id** | **string** | | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**ModifiedBy** | **string** | | [readonly] + +## Methods + +### NewDeploymentNote + +`func NewDeploymentNote(created time.Time, createdBy string, deployment ClusterDeployment, id string, modified time.Time, modifiedBy string, ) *DeploymentNote` + +NewDeploymentNote instantiates a new DeploymentNote 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 + +### NewDeploymentNoteWithDefaults + +`func NewDeploymentNoteWithDefaults() *DeploymentNote` + +NewDeploymentNoteWithDefaults instantiates a new DeploymentNote 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 + +### GetContent + +`func (o *DeploymentNote) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *DeploymentNote) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *DeploymentNote) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *DeploymentNote) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetCreated + +`func (o *DeploymentNote) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeploymentNote) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeploymentNote) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetCreatedBy + +`func (o *DeploymentNote) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *DeploymentNote) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *DeploymentNote) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + + +### GetDeployment + +`func (o *DeploymentNote) GetDeployment() ClusterDeployment` + +GetDeployment returns the Deployment field if non-nil, zero value otherwise. + +### GetDeploymentOk + +`func (o *DeploymentNote) GetDeploymentOk() (*ClusterDeployment, bool)` + +GetDeploymentOk returns a tuple with the Deployment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployment + +`func (o *DeploymentNote) SetDeployment(v ClusterDeployment)` + +SetDeployment sets Deployment field to given value. + + +### GetId + +`func (o *DeploymentNote) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DeploymentNote) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DeploymentNote) SetId(v string)` + +SetId sets Id field to given value. + + +### GetModified + +`func (o *DeploymentNote) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *DeploymentNote) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *DeploymentNote) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetModifiedBy + +`func (o *DeploymentNote) GetModifiedBy() string` + +GetModifiedBy returns the ModifiedBy field if non-nil, zero value otherwise. + +### GetModifiedByOk + +`func (o *DeploymentNote) GetModifiedByOk() (*string, bool)` + +GetModifiedByOk returns a tuple with the ModifiedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedBy + +`func (o *DeploymentNote) SetModifiedBy(v string)` + +SetModifiedBy sets ModifiedBy field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/DeploymentPipeline.md b/v1/providers/launchpad/gen/launchpad/docs/DeploymentPipeline.md new file mode 100644 index 0000000..a1cff86 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/DeploymentPipeline.md @@ -0,0 +1,177 @@ +# DeploymentPipeline + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | [**DeploymentPipelineActionEnum**](DeploymentPipelineActionEnum.md) | Action for the pipeline to run * `apply` - apply * `destroy` - destroy | +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Deployment** | [**ClusterDeployment**](ClusterDeployment.md) | | +**Id** | **string** | | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**PipelineId** | **int64** | GitLab pipeline ID | +**Url** | **string** | URL for the pipeline details | + +## Methods + +### NewDeploymentPipeline + +`func NewDeploymentPipeline(action DeploymentPipelineActionEnum, created time.Time, deployment ClusterDeployment, id string, modified time.Time, pipelineId int64, url string, ) *DeploymentPipeline` + +NewDeploymentPipeline instantiates a new DeploymentPipeline 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 + +### NewDeploymentPipelineWithDefaults + +`func NewDeploymentPipelineWithDefaults() *DeploymentPipeline` + +NewDeploymentPipelineWithDefaults instantiates a new DeploymentPipeline 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 + +### GetAction + +`func (o *DeploymentPipeline) GetAction() DeploymentPipelineActionEnum` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *DeploymentPipeline) GetActionOk() (*DeploymentPipelineActionEnum, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *DeploymentPipeline) SetAction(v DeploymentPipelineActionEnum)` + +SetAction sets Action field to given value. + + +### GetCreated + +`func (o *DeploymentPipeline) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeploymentPipeline) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeploymentPipeline) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetDeployment + +`func (o *DeploymentPipeline) GetDeployment() ClusterDeployment` + +GetDeployment returns the Deployment field if non-nil, zero value otherwise. + +### GetDeploymentOk + +`func (o *DeploymentPipeline) GetDeploymentOk() (*ClusterDeployment, bool)` + +GetDeploymentOk returns a tuple with the Deployment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployment + +`func (o *DeploymentPipeline) SetDeployment(v ClusterDeployment)` + +SetDeployment sets Deployment field to given value. + + +### GetId + +`func (o *DeploymentPipeline) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DeploymentPipeline) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DeploymentPipeline) SetId(v string)` + +SetId sets Id field to given value. + + +### GetModified + +`func (o *DeploymentPipeline) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *DeploymentPipeline) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *DeploymentPipeline) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetPipelineId + +`func (o *DeploymentPipeline) GetPipelineId() int64` + +GetPipelineId returns the PipelineId field if non-nil, zero value otherwise. + +### GetPipelineIdOk + +`func (o *DeploymentPipeline) GetPipelineIdOk() (*int64, bool)` + +GetPipelineIdOk returns a tuple with the PipelineId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipelineId + +`func (o *DeploymentPipeline) SetPipelineId(v int64)` + +SetPipelineId sets PipelineId field to given value. + + +### GetUrl + +`func (o *DeploymentPipeline) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *DeploymentPipeline) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *DeploymentPipeline) SetUrl(v string)` + +SetUrl sets Url field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/DeploymentPipelineActionEnum.md b/v1/providers/launchpad/gen/launchpad/docs/DeploymentPipelineActionEnum.md new file mode 100644 index 0000000..3d773ed --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/DeploymentPipelineActionEnum.md @@ -0,0 +1,13 @@ +# DeploymentPipelineActionEnum + +## Enum + + +* `DeploymentPipelineActionApply` (value: `"apply"`) + +* `DeploymentPipelineActionDestroy` (value: `"destroy"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/DeploymentService.md b/v1/providers/launchpad/gen/launchpad/docs/DeploymentService.md new file mode 100644 index 0000000..0a0f5f6 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/DeploymentService.md @@ -0,0 +1,156 @@ +# DeploymentService + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Deployment** | [**ClusterDeployment**](ClusterDeployment.md) | | +**Id** | **string** | | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**Name** | **string** | Name of the service | +**Url** | **string** | URL used to reach the service | + +## Methods + +### NewDeploymentService + +`func NewDeploymentService(created time.Time, deployment ClusterDeployment, id string, modified time.Time, name string, url string, ) *DeploymentService` + +NewDeploymentService instantiates a new DeploymentService 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 + +### NewDeploymentServiceWithDefaults + +`func NewDeploymentServiceWithDefaults() *DeploymentService` + +NewDeploymentServiceWithDefaults instantiates a new DeploymentService 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 + +### GetCreated + +`func (o *DeploymentService) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeploymentService) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeploymentService) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetDeployment + +`func (o *DeploymentService) GetDeployment() ClusterDeployment` + +GetDeployment returns the Deployment field if non-nil, zero value otherwise. + +### GetDeploymentOk + +`func (o *DeploymentService) GetDeploymentOk() (*ClusterDeployment, bool)` + +GetDeploymentOk returns a tuple with the Deployment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployment + +`func (o *DeploymentService) SetDeployment(v ClusterDeployment)` + +SetDeployment sets Deployment field to given value. + + +### GetId + +`func (o *DeploymentService) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DeploymentService) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DeploymentService) SetId(v string)` + +SetId sets Id field to given value. + + +### GetModified + +`func (o *DeploymentService) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *DeploymentService) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *DeploymentService) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetName + +`func (o *DeploymentService) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DeploymentService) 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 *DeploymentService) SetName(v string)` + +SetName sets Name field to given value. + + +### GetUrl + +`func (o *DeploymentService) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *DeploymentService) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *DeploymentService) SetUrl(v string)` + +SetUrl sets Url field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/DeploymentState.md b/v1/providers/launchpad/gen/launchpad/docs/DeploymentState.md new file mode 100644 index 0000000..4722b3c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/DeploymentState.md @@ -0,0 +1,31 @@ +# DeploymentState + +## Enum + + +* `DeploymentStateDestroyed` (value: `"destroyed"`) + +* `DeploymentStateDestroying` (value: `"destroying"`) + +* `DeploymentStateError` (value: `"error"`) + +* `DeploymentStateFailed` (value: `"failed"`) + +* `DeploymentStatePaused` (value: `"paused"`) + +* `DeploymentStateReady` (value: `"ready"`) + +* `DeploymentStateRetrying` (value: `"retrying"`) + +* `DeploymentStateStarting` (value: `"starting"`) + +* `DeploymentStateStopped` (value: `"stopped"`) + +* `DeploymentStateStopping` (value: `"stopping"`) + +* `DeploymentStateWaiting` (value: `"waiting"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/DeploymentTask.md b/v1/providers/launchpad/gen/launchpad/docs/DeploymentTask.md new file mode 100644 index 0000000..cfac3ec --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/DeploymentTask.md @@ -0,0 +1,198 @@ +# DeploymentTask + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | [**DeploymentTaskActionEnum**](DeploymentTaskActionEnum.md) | The action the task will perform * `start_instances` - Start all instances in the deployment * `stop_instances` - Stop all instances in the deployment | +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Deployment** | [**ClusterDeployment**](ClusterDeployment.md) | | +**Id** | **string** | | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**Retries** | **int32** | Number of times the task has been retried | [readonly] +**Status** | [**StatusEnum**](StatusEnum.md) | Current status of the task * `completed` - completed * `failed` - failed * `pending` - pending * `processing` - processing * `retrying` - retrying | [readonly] +**StatusText** | **string** | Messages related to the current task status | [readonly] + +## Methods + +### NewDeploymentTask + +`func NewDeploymentTask(action DeploymentTaskActionEnum, created time.Time, deployment ClusterDeployment, id string, modified time.Time, retries int32, status StatusEnum, statusText string, ) *DeploymentTask` + +NewDeploymentTask instantiates a new DeploymentTask 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 + +### NewDeploymentTaskWithDefaults + +`func NewDeploymentTaskWithDefaults() *DeploymentTask` + +NewDeploymentTaskWithDefaults instantiates a new DeploymentTask 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 + +### GetAction + +`func (o *DeploymentTask) GetAction() DeploymentTaskActionEnum` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *DeploymentTask) GetActionOk() (*DeploymentTaskActionEnum, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *DeploymentTask) SetAction(v DeploymentTaskActionEnum)` + +SetAction sets Action field to given value. + + +### GetCreated + +`func (o *DeploymentTask) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeploymentTask) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeploymentTask) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetDeployment + +`func (o *DeploymentTask) GetDeployment() ClusterDeployment` + +GetDeployment returns the Deployment field if non-nil, zero value otherwise. + +### GetDeploymentOk + +`func (o *DeploymentTask) GetDeploymentOk() (*ClusterDeployment, bool)` + +GetDeploymentOk returns a tuple with the Deployment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployment + +`func (o *DeploymentTask) SetDeployment(v ClusterDeployment)` + +SetDeployment sets Deployment field to given value. + + +### GetId + +`func (o *DeploymentTask) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DeploymentTask) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DeploymentTask) SetId(v string)` + +SetId sets Id field to given value. + + +### GetModified + +`func (o *DeploymentTask) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *DeploymentTask) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *DeploymentTask) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetRetries + +`func (o *DeploymentTask) GetRetries() int32` + +GetRetries returns the Retries field if non-nil, zero value otherwise. + +### GetRetriesOk + +`func (o *DeploymentTask) GetRetriesOk() (*int32, bool)` + +GetRetriesOk returns a tuple with the Retries field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetries + +`func (o *DeploymentTask) SetRetries(v int32)` + +SetRetries sets Retries field to given value. + + +### GetStatus + +`func (o *DeploymentTask) GetStatus() StatusEnum` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DeploymentTask) GetStatusOk() (*StatusEnum, 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 *DeploymentTask) SetStatus(v StatusEnum)` + +SetStatus sets Status field to given value. + + +### GetStatusText + +`func (o *DeploymentTask) GetStatusText() string` + +GetStatusText returns the StatusText field if non-nil, zero value otherwise. + +### GetStatusTextOk + +`func (o *DeploymentTask) GetStatusTextOk() (*string, bool)` + +GetStatusTextOk returns a tuple with the StatusText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusText + +`func (o *DeploymentTask) SetStatusText(v string)` + +SetStatusText sets StatusText field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/DeploymentTaskActionEnum.md b/v1/providers/launchpad/gen/launchpad/docs/DeploymentTaskActionEnum.md new file mode 100644 index 0000000..9ce8fd6 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/DeploymentTaskActionEnum.md @@ -0,0 +1,13 @@ +# DeploymentTaskActionEnum + +## Enum + + +* `DeploymentTaskActionStartInstances` (value: `"start_instances"`) + +* `DeploymentTaskActionStopInstances` (value: `"stop_instances"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/DeploymentUpdate.md b/v1/providers/launchpad/gen/launchpad/docs/DeploymentUpdate.md new file mode 100644 index 0000000..81bc4ad --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/DeploymentUpdate.md @@ -0,0 +1,1504 @@ +# DeploymentUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BastionOperatingSystem** | **NullableString** | Override bastion operating system provisioned and/or configured by Liftoff | [readonly] +**Cluster** | **NullableString** | The cluster where the experience has been deployed | [readonly] +**CollectionBranch** | Pointer to **NullableString** | Override the Ansible collection branch initialized within the pipeline | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Experience** | [**DeploymentExperience**](DeploymentExperience.md) | | +**ExperienceBranch** | Pointer to **NullableString** | Override the experience branch | [optional] +**ExpiresAt** | Pointer to **NullableTime** | | [optional] +**FlightcontrolRelease** | Pointer to **NullableString** | Override the image tag used for Flight Control | [optional] +**GarageId** | **NullableString** | Require a cluster with nodes in the given garage | [readonly] +**GcBranch** | Pointer to **NullableString** | Override the default Ground Control branch | [optional] +**GpuAlias** | **NullableString** | Require a cluster with the given GPU alias | [readonly] +**GpuCount** | **NullableInt32** | Require a cluster with the given number of GPUs | [readonly] +**GpuModel** | **NullableString** | Require a cluster with the given GPU model | [readonly] +**GpuOsName** | **NullableString** | Override the GPU node operating system name | [readonly] +**GpuOsRelease** | **NullableString** | Override the GPU node operating system release | [readonly] +**GpuOsVersion** | **NullableString** | Override the GPU node operating system version | [readonly] +**Id** | **string** | | [readonly] +**IpAllowlist** | Pointer to **[]string** | Host IP addresses that should be allowed to access the deployment | [optional] +**Lifetime** | **NullableInt32** | Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. | [readonly] +**MinGpuCount** | **NullableInt32** | Require a cluster whose GPU count is greater than or equal to the given number | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**NodeCount** | **NullableInt32** | Require a cluster with the given number of nodes | [readonly] +**OemName** | **NullableString** | Require a cluster manufactured by the given OEM name | [readonly] +**OrgName** | Pointer to **string** | Requester's organization name | [optional] +**Overrides** | **interface{}** | | +**PersistOnFailure** | Pointer to **NullableBool** | Override the default cleanup/destroy behavior when a provisioning failure occurs | [optional] +**Persona** | Pointer to **NullableString** | Override the defined persona in the experience | [optional] +**Pipeline** | Pointer to **NullableInt64** | Override the pipeline ID that will be triggered for request fulfillment | [optional] +**PipelineBranch** | Pointer to **NullableString** | Override the default pipeline branch ref used when triggering a Fuselage pipeline | [optional] +**Pipelines** | **[]string** | | +**Platform** | Pointer to [**NullablePlatformEnum**](PlatformEnum.md) | | [optional] +**Priority** | [**PriorityEnum**](PriorityEnum.md) | Priority level for the request * `p0` - p0 * `p1` - p1 * `p2` - p2 * `p3` - p3 | [readonly] +**ProviderName** | **NullableString** | Require a cluster from the given provider name | [readonly] +**PublicKey** | **NullableString** | The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. | [readonly] +**Region** | **NullableString** | Require a cluster located in the given region | [readonly] +**RequestId** | **string** | Trial request ID (ex: TRY-1234) | [readonly] +**RequesterEmail** | Pointer to **string** | Email address of the user requesting the experience | [optional] +**RequesterName** | Pointer to **string** | Name of the user requesting the experience | [optional] +**RetryCount** | Pointer to **int32** | Number of times the deployment has been retried | [optional] +**SalesCreatedDate** | **NullableTime** | Timestamp when the requester's sales relationship was created | [readonly] +**SalesId** | **NullableString** | Unique identifier for the requester's sales relationship | [readonly] +**SalesOwnerEmail** | Pointer to **NullableString** | Email address of the sales contact associated with the requester | [optional] +**SalesOwnerName** | Pointer to **NullableString** | Name of the sales contact associated with the requester | [optional] +**Services** | **[]string** | | +**State** | Pointer to [**DeploymentState**](DeploymentState.md) | Current state of the deployment * `destroyed` - Deployment has been fully destroyed * `destroying` - Deployment is being destroyed * `error` - Deployment has encountered a fatal error and will not be retried * `failed` - Deployment has failed but may be retried * `paused` - Deployment is paused but may be retried later * `ready` - Deployment is ready and all instances are running * `retrying` - Deployment is retrying * `starting` - Deployment instances are starting * `stopped` - Deployment instances are stopped * `stopping` - Deployment instances are stopping * `waiting` - Waiting for deployment to be ready | [optional] +**Tags** | Pointer to **interface{}** | | [optional] +**Workshop** | **NullableBool** | Require a cluster whose workshop flag is set | [readonly] +**WorkshopId** | **NullableString** | Require a cluster with the given workshop ID | [readonly] +**WorkshopOverridePassword** | **NullableString** | Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) | [readonly] + +## Methods + +### NewDeploymentUpdate + +`func NewDeploymentUpdate(bastionOperatingSystem NullableString, cluster NullableString, created time.Time, experience DeploymentExperience, garageId NullableString, gpuAlias NullableString, gpuCount NullableInt32, gpuModel NullableString, gpuOsName NullableString, gpuOsRelease NullableString, gpuOsVersion NullableString, id string, lifetime NullableInt32, minGpuCount NullableInt32, modified time.Time, nodeCount NullableInt32, oemName NullableString, overrides interface{}, pipelines []string, priority PriorityEnum, providerName NullableString, publicKey NullableString, region NullableString, requestId string, salesCreatedDate NullableTime, salesId NullableString, services []string, workshop NullableBool, workshopId NullableString, workshopOverridePassword NullableString, ) *DeploymentUpdate` + +NewDeploymentUpdate instantiates a new DeploymentUpdate 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 + +### NewDeploymentUpdateWithDefaults + +`func NewDeploymentUpdateWithDefaults() *DeploymentUpdate` + +NewDeploymentUpdateWithDefaults instantiates a new DeploymentUpdate 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 + +### GetBastionOperatingSystem + +`func (o *DeploymentUpdate) GetBastionOperatingSystem() string` + +GetBastionOperatingSystem returns the BastionOperatingSystem field if non-nil, zero value otherwise. + +### GetBastionOperatingSystemOk + +`func (o *DeploymentUpdate) GetBastionOperatingSystemOk() (*string, bool)` + +GetBastionOperatingSystemOk returns a tuple with the BastionOperatingSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBastionOperatingSystem + +`func (o *DeploymentUpdate) SetBastionOperatingSystem(v string)` + +SetBastionOperatingSystem sets BastionOperatingSystem field to given value. + + +### SetBastionOperatingSystemNil + +`func (o *DeploymentUpdate) SetBastionOperatingSystemNil(b bool)` + + SetBastionOperatingSystemNil sets the value for BastionOperatingSystem to be an explicit nil + +### UnsetBastionOperatingSystem +`func (o *DeploymentUpdate) UnsetBastionOperatingSystem()` + +UnsetBastionOperatingSystem ensures that no value is present for BastionOperatingSystem, not even an explicit nil +### GetCluster + +`func (o *DeploymentUpdate) GetCluster() string` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *DeploymentUpdate) GetClusterOk() (*string, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *DeploymentUpdate) SetCluster(v string)` + +SetCluster sets Cluster field to given value. + + +### SetClusterNil + +`func (o *DeploymentUpdate) SetClusterNil(b bool)` + + SetClusterNil sets the value for Cluster to be an explicit nil + +### UnsetCluster +`func (o *DeploymentUpdate) UnsetCluster()` + +UnsetCluster ensures that no value is present for Cluster, not even an explicit nil +### GetCollectionBranch + +`func (o *DeploymentUpdate) GetCollectionBranch() string` + +GetCollectionBranch returns the CollectionBranch field if non-nil, zero value otherwise. + +### GetCollectionBranchOk + +`func (o *DeploymentUpdate) GetCollectionBranchOk() (*string, bool)` + +GetCollectionBranchOk returns a tuple with the CollectionBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionBranch + +`func (o *DeploymentUpdate) SetCollectionBranch(v string)` + +SetCollectionBranch sets CollectionBranch field to given value. + +### HasCollectionBranch + +`func (o *DeploymentUpdate) HasCollectionBranch() bool` + +HasCollectionBranch returns a boolean if a field has been set. + +### SetCollectionBranchNil + +`func (o *DeploymentUpdate) SetCollectionBranchNil(b bool)` + + SetCollectionBranchNil sets the value for CollectionBranch to be an explicit nil + +### UnsetCollectionBranch +`func (o *DeploymentUpdate) UnsetCollectionBranch()` + +UnsetCollectionBranch ensures that no value is present for CollectionBranch, not even an explicit nil +### GetCreated + +`func (o *DeploymentUpdate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeploymentUpdate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeploymentUpdate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetExperience + +`func (o *DeploymentUpdate) GetExperience() DeploymentExperience` + +GetExperience returns the Experience field if non-nil, zero value otherwise. + +### GetExperienceOk + +`func (o *DeploymentUpdate) GetExperienceOk() (*DeploymentExperience, bool)` + +GetExperienceOk returns a tuple with the Experience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperience + +`func (o *DeploymentUpdate) SetExperience(v DeploymentExperience)` + +SetExperience sets Experience field to given value. + + +### GetExperienceBranch + +`func (o *DeploymentUpdate) GetExperienceBranch() string` + +GetExperienceBranch returns the ExperienceBranch field if non-nil, zero value otherwise. + +### GetExperienceBranchOk + +`func (o *DeploymentUpdate) GetExperienceBranchOk() (*string, bool)` + +GetExperienceBranchOk returns a tuple with the ExperienceBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperienceBranch + +`func (o *DeploymentUpdate) SetExperienceBranch(v string)` + +SetExperienceBranch sets ExperienceBranch field to given value. + +### HasExperienceBranch + +`func (o *DeploymentUpdate) HasExperienceBranch() bool` + +HasExperienceBranch returns a boolean if a field has been set. + +### SetExperienceBranchNil + +`func (o *DeploymentUpdate) SetExperienceBranchNil(b bool)` + + SetExperienceBranchNil sets the value for ExperienceBranch to be an explicit nil + +### UnsetExperienceBranch +`func (o *DeploymentUpdate) UnsetExperienceBranch()` + +UnsetExperienceBranch ensures that no value is present for ExperienceBranch, not even an explicit nil +### GetExpiresAt + +`func (o *DeploymentUpdate) GetExpiresAt() time.Time` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *DeploymentUpdate) GetExpiresAtOk() (*time.Time, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *DeploymentUpdate) SetExpiresAt(v time.Time)` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *DeploymentUpdate) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *DeploymentUpdate) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *DeploymentUpdate) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetFlightcontrolRelease + +`func (o *DeploymentUpdate) GetFlightcontrolRelease() string` + +GetFlightcontrolRelease returns the FlightcontrolRelease field if non-nil, zero value otherwise. + +### GetFlightcontrolReleaseOk + +`func (o *DeploymentUpdate) GetFlightcontrolReleaseOk() (*string, bool)` + +GetFlightcontrolReleaseOk returns a tuple with the FlightcontrolRelease field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlightcontrolRelease + +`func (o *DeploymentUpdate) SetFlightcontrolRelease(v string)` + +SetFlightcontrolRelease sets FlightcontrolRelease field to given value. + +### HasFlightcontrolRelease + +`func (o *DeploymentUpdate) HasFlightcontrolRelease() bool` + +HasFlightcontrolRelease returns a boolean if a field has been set. + +### SetFlightcontrolReleaseNil + +`func (o *DeploymentUpdate) SetFlightcontrolReleaseNil(b bool)` + + SetFlightcontrolReleaseNil sets the value for FlightcontrolRelease to be an explicit nil + +### UnsetFlightcontrolRelease +`func (o *DeploymentUpdate) UnsetFlightcontrolRelease()` + +UnsetFlightcontrolRelease ensures that no value is present for FlightcontrolRelease, not even an explicit nil +### GetGarageId + +`func (o *DeploymentUpdate) GetGarageId() string` + +GetGarageId returns the GarageId field if non-nil, zero value otherwise. + +### GetGarageIdOk + +`func (o *DeploymentUpdate) GetGarageIdOk() (*string, bool)` + +GetGarageIdOk returns a tuple with the GarageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGarageId + +`func (o *DeploymentUpdate) SetGarageId(v string)` + +SetGarageId sets GarageId field to given value. + + +### SetGarageIdNil + +`func (o *DeploymentUpdate) SetGarageIdNil(b bool)` + + SetGarageIdNil sets the value for GarageId to be an explicit nil + +### UnsetGarageId +`func (o *DeploymentUpdate) UnsetGarageId()` + +UnsetGarageId ensures that no value is present for GarageId, not even an explicit nil +### GetGcBranch + +`func (o *DeploymentUpdate) GetGcBranch() string` + +GetGcBranch returns the GcBranch field if non-nil, zero value otherwise. + +### GetGcBranchOk + +`func (o *DeploymentUpdate) GetGcBranchOk() (*string, bool)` + +GetGcBranchOk returns a tuple with the GcBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcBranch + +`func (o *DeploymentUpdate) SetGcBranch(v string)` + +SetGcBranch sets GcBranch field to given value. + +### HasGcBranch + +`func (o *DeploymentUpdate) HasGcBranch() bool` + +HasGcBranch returns a boolean if a field has been set. + +### SetGcBranchNil + +`func (o *DeploymentUpdate) SetGcBranchNil(b bool)` + + SetGcBranchNil sets the value for GcBranch to be an explicit nil + +### UnsetGcBranch +`func (o *DeploymentUpdate) UnsetGcBranch()` + +UnsetGcBranch ensures that no value is present for GcBranch, not even an explicit nil +### GetGpuAlias + +`func (o *DeploymentUpdate) GetGpuAlias() string` + +GetGpuAlias returns the GpuAlias field if non-nil, zero value otherwise. + +### GetGpuAliasOk + +`func (o *DeploymentUpdate) GetGpuAliasOk() (*string, bool)` + +GetGpuAliasOk returns a tuple with the GpuAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuAlias + +`func (o *DeploymentUpdate) SetGpuAlias(v string)` + +SetGpuAlias sets GpuAlias field to given value. + + +### SetGpuAliasNil + +`func (o *DeploymentUpdate) SetGpuAliasNil(b bool)` + + SetGpuAliasNil sets the value for GpuAlias to be an explicit nil + +### UnsetGpuAlias +`func (o *DeploymentUpdate) UnsetGpuAlias()` + +UnsetGpuAlias ensures that no value is present for GpuAlias, not even an explicit nil +### GetGpuCount + +`func (o *DeploymentUpdate) GetGpuCount() int32` + +GetGpuCount returns the GpuCount field if non-nil, zero value otherwise. + +### GetGpuCountOk + +`func (o *DeploymentUpdate) GetGpuCountOk() (*int32, bool)` + +GetGpuCountOk returns a tuple with the GpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuCount + +`func (o *DeploymentUpdate) SetGpuCount(v int32)` + +SetGpuCount sets GpuCount field to given value. + + +### SetGpuCountNil + +`func (o *DeploymentUpdate) SetGpuCountNil(b bool)` + + SetGpuCountNil sets the value for GpuCount to be an explicit nil + +### UnsetGpuCount +`func (o *DeploymentUpdate) UnsetGpuCount()` + +UnsetGpuCount ensures that no value is present for GpuCount, not even an explicit nil +### GetGpuModel + +`func (o *DeploymentUpdate) GetGpuModel() string` + +GetGpuModel returns the GpuModel field if non-nil, zero value otherwise. + +### GetGpuModelOk + +`func (o *DeploymentUpdate) GetGpuModelOk() (*string, bool)` + +GetGpuModelOk returns a tuple with the GpuModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuModel + +`func (o *DeploymentUpdate) SetGpuModel(v string)` + +SetGpuModel sets GpuModel field to given value. + + +### SetGpuModelNil + +`func (o *DeploymentUpdate) SetGpuModelNil(b bool)` + + SetGpuModelNil sets the value for GpuModel to be an explicit nil + +### UnsetGpuModel +`func (o *DeploymentUpdate) UnsetGpuModel()` + +UnsetGpuModel ensures that no value is present for GpuModel, not even an explicit nil +### GetGpuOsName + +`func (o *DeploymentUpdate) GetGpuOsName() string` + +GetGpuOsName returns the GpuOsName field if non-nil, zero value otherwise. + +### GetGpuOsNameOk + +`func (o *DeploymentUpdate) GetGpuOsNameOk() (*string, bool)` + +GetGpuOsNameOk returns a tuple with the GpuOsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsName + +`func (o *DeploymentUpdate) SetGpuOsName(v string)` + +SetGpuOsName sets GpuOsName field to given value. + + +### SetGpuOsNameNil + +`func (o *DeploymentUpdate) SetGpuOsNameNil(b bool)` + + SetGpuOsNameNil sets the value for GpuOsName to be an explicit nil + +### UnsetGpuOsName +`func (o *DeploymentUpdate) UnsetGpuOsName()` + +UnsetGpuOsName ensures that no value is present for GpuOsName, not even an explicit nil +### GetGpuOsRelease + +`func (o *DeploymentUpdate) GetGpuOsRelease() string` + +GetGpuOsRelease returns the GpuOsRelease field if non-nil, zero value otherwise. + +### GetGpuOsReleaseOk + +`func (o *DeploymentUpdate) GetGpuOsReleaseOk() (*string, bool)` + +GetGpuOsReleaseOk returns a tuple with the GpuOsRelease field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsRelease + +`func (o *DeploymentUpdate) SetGpuOsRelease(v string)` + +SetGpuOsRelease sets GpuOsRelease field to given value. + + +### SetGpuOsReleaseNil + +`func (o *DeploymentUpdate) SetGpuOsReleaseNil(b bool)` + + SetGpuOsReleaseNil sets the value for GpuOsRelease to be an explicit nil + +### UnsetGpuOsRelease +`func (o *DeploymentUpdate) UnsetGpuOsRelease()` + +UnsetGpuOsRelease ensures that no value is present for GpuOsRelease, not even an explicit nil +### GetGpuOsVersion + +`func (o *DeploymentUpdate) GetGpuOsVersion() string` + +GetGpuOsVersion returns the GpuOsVersion field if non-nil, zero value otherwise. + +### GetGpuOsVersionOk + +`func (o *DeploymentUpdate) GetGpuOsVersionOk() (*string, bool)` + +GetGpuOsVersionOk returns a tuple with the GpuOsVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsVersion + +`func (o *DeploymentUpdate) SetGpuOsVersion(v string)` + +SetGpuOsVersion sets GpuOsVersion field to given value. + + +### SetGpuOsVersionNil + +`func (o *DeploymentUpdate) SetGpuOsVersionNil(b bool)` + + SetGpuOsVersionNil sets the value for GpuOsVersion to be an explicit nil + +### UnsetGpuOsVersion +`func (o *DeploymentUpdate) UnsetGpuOsVersion()` + +UnsetGpuOsVersion ensures that no value is present for GpuOsVersion, not even an explicit nil +### GetId + +`func (o *DeploymentUpdate) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DeploymentUpdate) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DeploymentUpdate) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIpAllowlist + +`func (o *DeploymentUpdate) GetIpAllowlist() []string` + +GetIpAllowlist returns the IpAllowlist field if non-nil, zero value otherwise. + +### GetIpAllowlistOk + +`func (o *DeploymentUpdate) GetIpAllowlistOk() (*[]string, bool)` + +GetIpAllowlistOk returns a tuple with the IpAllowlist field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAllowlist + +`func (o *DeploymentUpdate) SetIpAllowlist(v []string)` + +SetIpAllowlist sets IpAllowlist field to given value. + +### HasIpAllowlist + +`func (o *DeploymentUpdate) HasIpAllowlist() bool` + +HasIpAllowlist returns a boolean if a field has been set. + +### GetLifetime + +`func (o *DeploymentUpdate) GetLifetime() int32` + +GetLifetime returns the Lifetime field if non-nil, zero value otherwise. + +### GetLifetimeOk + +`func (o *DeploymentUpdate) GetLifetimeOk() (*int32, bool)` + +GetLifetimeOk returns a tuple with the Lifetime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifetime + +`func (o *DeploymentUpdate) SetLifetime(v int32)` + +SetLifetime sets Lifetime field to given value. + + +### SetLifetimeNil + +`func (o *DeploymentUpdate) SetLifetimeNil(b bool)` + + SetLifetimeNil sets the value for Lifetime to be an explicit nil + +### UnsetLifetime +`func (o *DeploymentUpdate) UnsetLifetime()` + +UnsetLifetime ensures that no value is present for Lifetime, not even an explicit nil +### GetMinGpuCount + +`func (o *DeploymentUpdate) GetMinGpuCount() int32` + +GetMinGpuCount returns the MinGpuCount field if non-nil, zero value otherwise. + +### GetMinGpuCountOk + +`func (o *DeploymentUpdate) GetMinGpuCountOk() (*int32, bool)` + +GetMinGpuCountOk returns a tuple with the MinGpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinGpuCount + +`func (o *DeploymentUpdate) SetMinGpuCount(v int32)` + +SetMinGpuCount sets MinGpuCount field to given value. + + +### SetMinGpuCountNil + +`func (o *DeploymentUpdate) SetMinGpuCountNil(b bool)` + + SetMinGpuCountNil sets the value for MinGpuCount to be an explicit nil + +### UnsetMinGpuCount +`func (o *DeploymentUpdate) UnsetMinGpuCount()` + +UnsetMinGpuCount ensures that no value is present for MinGpuCount, not even an explicit nil +### GetModified + +`func (o *DeploymentUpdate) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *DeploymentUpdate) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *DeploymentUpdate) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNodeCount + +`func (o *DeploymentUpdate) GetNodeCount() int32` + +GetNodeCount returns the NodeCount field if non-nil, zero value otherwise. + +### GetNodeCountOk + +`func (o *DeploymentUpdate) 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 *DeploymentUpdate) SetNodeCount(v int32)` + +SetNodeCount sets NodeCount field to given value. + + +### SetNodeCountNil + +`func (o *DeploymentUpdate) SetNodeCountNil(b bool)` + + SetNodeCountNil sets the value for NodeCount to be an explicit nil + +### UnsetNodeCount +`func (o *DeploymentUpdate) UnsetNodeCount()` + +UnsetNodeCount ensures that no value is present for NodeCount, not even an explicit nil +### GetOemName + +`func (o *DeploymentUpdate) GetOemName() string` + +GetOemName returns the OemName field if non-nil, zero value otherwise. + +### GetOemNameOk + +`func (o *DeploymentUpdate) GetOemNameOk() (*string, bool)` + +GetOemNameOk returns a tuple with the OemName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOemName + +`func (o *DeploymentUpdate) SetOemName(v string)` + +SetOemName sets OemName field to given value. + + +### SetOemNameNil + +`func (o *DeploymentUpdate) SetOemNameNil(b bool)` + + SetOemNameNil sets the value for OemName to be an explicit nil + +### UnsetOemName +`func (o *DeploymentUpdate) UnsetOemName()` + +UnsetOemName ensures that no value is present for OemName, not even an explicit nil +### GetOrgName + +`func (o *DeploymentUpdate) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *DeploymentUpdate) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *DeploymentUpdate) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *DeploymentUpdate) HasOrgName() bool` + +HasOrgName returns a boolean if a field has been set. + +### GetOverrides + +`func (o *DeploymentUpdate) GetOverrides() interface{}` + +GetOverrides returns the Overrides field if non-nil, zero value otherwise. + +### GetOverridesOk + +`func (o *DeploymentUpdate) GetOverridesOk() (*interface{}, bool)` + +GetOverridesOk returns a tuple with the Overrides field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverrides + +`func (o *DeploymentUpdate) SetOverrides(v interface{})` + +SetOverrides sets Overrides field to given value. + + +### SetOverridesNil + +`func (o *DeploymentUpdate) SetOverridesNil(b bool)` + + SetOverridesNil sets the value for Overrides to be an explicit nil + +### UnsetOverrides +`func (o *DeploymentUpdate) UnsetOverrides()` + +UnsetOverrides ensures that no value is present for Overrides, not even an explicit nil +### GetPersistOnFailure + +`func (o *DeploymentUpdate) GetPersistOnFailure() bool` + +GetPersistOnFailure returns the PersistOnFailure field if non-nil, zero value otherwise. + +### GetPersistOnFailureOk + +`func (o *DeploymentUpdate) GetPersistOnFailureOk() (*bool, bool)` + +GetPersistOnFailureOk returns a tuple with the PersistOnFailure field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersistOnFailure + +`func (o *DeploymentUpdate) SetPersistOnFailure(v bool)` + +SetPersistOnFailure sets PersistOnFailure field to given value. + +### HasPersistOnFailure + +`func (o *DeploymentUpdate) HasPersistOnFailure() bool` + +HasPersistOnFailure returns a boolean if a field has been set. + +### SetPersistOnFailureNil + +`func (o *DeploymentUpdate) SetPersistOnFailureNil(b bool)` + + SetPersistOnFailureNil sets the value for PersistOnFailure to be an explicit nil + +### UnsetPersistOnFailure +`func (o *DeploymentUpdate) UnsetPersistOnFailure()` + +UnsetPersistOnFailure ensures that no value is present for PersistOnFailure, not even an explicit nil +### GetPersona + +`func (o *DeploymentUpdate) GetPersona() string` + +GetPersona returns the Persona field if non-nil, zero value otherwise. + +### GetPersonaOk + +`func (o *DeploymentUpdate) GetPersonaOk() (*string, bool)` + +GetPersonaOk returns a tuple with the Persona field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersona + +`func (o *DeploymentUpdate) SetPersona(v string)` + +SetPersona sets Persona field to given value. + +### HasPersona + +`func (o *DeploymentUpdate) HasPersona() bool` + +HasPersona returns a boolean if a field has been set. + +### SetPersonaNil + +`func (o *DeploymentUpdate) SetPersonaNil(b bool)` + + SetPersonaNil sets the value for Persona to be an explicit nil + +### UnsetPersona +`func (o *DeploymentUpdate) UnsetPersona()` + +UnsetPersona ensures that no value is present for Persona, not even an explicit nil +### GetPipeline + +`func (o *DeploymentUpdate) GetPipeline() int64` + +GetPipeline returns the Pipeline field if non-nil, zero value otherwise. + +### GetPipelineOk + +`func (o *DeploymentUpdate) GetPipelineOk() (*int64, bool)` + +GetPipelineOk returns a tuple with the Pipeline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipeline + +`func (o *DeploymentUpdate) SetPipeline(v int64)` + +SetPipeline sets Pipeline field to given value. + +### HasPipeline + +`func (o *DeploymentUpdate) HasPipeline() bool` + +HasPipeline returns a boolean if a field has been set. + +### SetPipelineNil + +`func (o *DeploymentUpdate) SetPipelineNil(b bool)` + + SetPipelineNil sets the value for Pipeline to be an explicit nil + +### UnsetPipeline +`func (o *DeploymentUpdate) UnsetPipeline()` + +UnsetPipeline ensures that no value is present for Pipeline, not even an explicit nil +### GetPipelineBranch + +`func (o *DeploymentUpdate) GetPipelineBranch() string` + +GetPipelineBranch returns the PipelineBranch field if non-nil, zero value otherwise. + +### GetPipelineBranchOk + +`func (o *DeploymentUpdate) GetPipelineBranchOk() (*string, bool)` + +GetPipelineBranchOk returns a tuple with the PipelineBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipelineBranch + +`func (o *DeploymentUpdate) SetPipelineBranch(v string)` + +SetPipelineBranch sets PipelineBranch field to given value. + +### HasPipelineBranch + +`func (o *DeploymentUpdate) HasPipelineBranch() bool` + +HasPipelineBranch returns a boolean if a field has been set. + +### SetPipelineBranchNil + +`func (o *DeploymentUpdate) SetPipelineBranchNil(b bool)` + + SetPipelineBranchNil sets the value for PipelineBranch to be an explicit nil + +### UnsetPipelineBranch +`func (o *DeploymentUpdate) UnsetPipelineBranch()` + +UnsetPipelineBranch ensures that no value is present for PipelineBranch, not even an explicit nil +### GetPipelines + +`func (o *DeploymentUpdate) GetPipelines() []string` + +GetPipelines returns the Pipelines field if non-nil, zero value otherwise. + +### GetPipelinesOk + +`func (o *DeploymentUpdate) GetPipelinesOk() (*[]string, bool)` + +GetPipelinesOk returns a tuple with the Pipelines field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipelines + +`func (o *DeploymentUpdate) SetPipelines(v []string)` + +SetPipelines sets Pipelines field to given value. + + +### GetPlatform + +`func (o *DeploymentUpdate) GetPlatform() PlatformEnum` + +GetPlatform returns the Platform field if non-nil, zero value otherwise. + +### GetPlatformOk + +`func (o *DeploymentUpdate) GetPlatformOk() (*PlatformEnum, bool)` + +GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatform + +`func (o *DeploymentUpdate) SetPlatform(v PlatformEnum)` + +SetPlatform sets Platform field to given value. + +### HasPlatform + +`func (o *DeploymentUpdate) HasPlatform() bool` + +HasPlatform returns a boolean if a field has been set. + +### SetPlatformNil + +`func (o *DeploymentUpdate) SetPlatformNil(b bool)` + + SetPlatformNil sets the value for Platform to be an explicit nil + +### UnsetPlatform +`func (o *DeploymentUpdate) UnsetPlatform()` + +UnsetPlatform ensures that no value is present for Platform, not even an explicit nil +### GetPriority + +`func (o *DeploymentUpdate) GetPriority() PriorityEnum` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *DeploymentUpdate) GetPriorityOk() (*PriorityEnum, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *DeploymentUpdate) SetPriority(v PriorityEnum)` + +SetPriority sets Priority field to given value. + + +### GetProviderName + +`func (o *DeploymentUpdate) GetProviderName() string` + +GetProviderName returns the ProviderName field if non-nil, zero value otherwise. + +### GetProviderNameOk + +`func (o *DeploymentUpdate) GetProviderNameOk() (*string, bool)` + +GetProviderNameOk returns a tuple with the ProviderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderName + +`func (o *DeploymentUpdate) SetProviderName(v string)` + +SetProviderName sets ProviderName field to given value. + + +### SetProviderNameNil + +`func (o *DeploymentUpdate) SetProviderNameNil(b bool)` + + SetProviderNameNil sets the value for ProviderName to be an explicit nil + +### UnsetProviderName +`func (o *DeploymentUpdate) UnsetProviderName()` + +UnsetProviderName ensures that no value is present for ProviderName, not even an explicit nil +### GetPublicKey + +`func (o *DeploymentUpdate) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *DeploymentUpdate) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *DeploymentUpdate) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + + +### SetPublicKeyNil + +`func (o *DeploymentUpdate) SetPublicKeyNil(b bool)` + + SetPublicKeyNil sets the value for PublicKey to be an explicit nil + +### UnsetPublicKey +`func (o *DeploymentUpdate) UnsetPublicKey()` + +UnsetPublicKey ensures that no value is present for PublicKey, not even an explicit nil +### GetRegion + +`func (o *DeploymentUpdate) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *DeploymentUpdate) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *DeploymentUpdate) SetRegion(v string)` + +SetRegion sets Region field to given value. + + +### SetRegionNil + +`func (o *DeploymentUpdate) SetRegionNil(b bool)` + + SetRegionNil sets the value for Region to be an explicit nil + +### UnsetRegion +`func (o *DeploymentUpdate) UnsetRegion()` + +UnsetRegion ensures that no value is present for Region, not even an explicit nil +### GetRequestId + +`func (o *DeploymentUpdate) GetRequestId() string` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *DeploymentUpdate) GetRequestIdOk() (*string, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *DeploymentUpdate) SetRequestId(v string)` + +SetRequestId sets RequestId field to given value. + + +### GetRequesterEmail + +`func (o *DeploymentUpdate) GetRequesterEmail() string` + +GetRequesterEmail returns the RequesterEmail field if non-nil, zero value otherwise. + +### GetRequesterEmailOk + +`func (o *DeploymentUpdate) GetRequesterEmailOk() (*string, bool)` + +GetRequesterEmailOk returns a tuple with the RequesterEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterEmail + +`func (o *DeploymentUpdate) SetRequesterEmail(v string)` + +SetRequesterEmail sets RequesterEmail field to given value. + +### HasRequesterEmail + +`func (o *DeploymentUpdate) HasRequesterEmail() bool` + +HasRequesterEmail returns a boolean if a field has been set. + +### GetRequesterName + +`func (o *DeploymentUpdate) GetRequesterName() string` + +GetRequesterName returns the RequesterName field if non-nil, zero value otherwise. + +### GetRequesterNameOk + +`func (o *DeploymentUpdate) GetRequesterNameOk() (*string, bool)` + +GetRequesterNameOk returns a tuple with the RequesterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterName + +`func (o *DeploymentUpdate) SetRequesterName(v string)` + +SetRequesterName sets RequesterName field to given value. + +### HasRequesterName + +`func (o *DeploymentUpdate) HasRequesterName() bool` + +HasRequesterName returns a boolean if a field has been set. + +### GetRetryCount + +`func (o *DeploymentUpdate) GetRetryCount() int32` + +GetRetryCount returns the RetryCount field if non-nil, zero value otherwise. + +### GetRetryCountOk + +`func (o *DeploymentUpdate) GetRetryCountOk() (*int32, bool)` + +GetRetryCountOk returns a tuple with the RetryCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetryCount + +`func (o *DeploymentUpdate) SetRetryCount(v int32)` + +SetRetryCount sets RetryCount field to given value. + +### HasRetryCount + +`func (o *DeploymentUpdate) HasRetryCount() bool` + +HasRetryCount returns a boolean if a field has been set. + +### GetSalesCreatedDate + +`func (o *DeploymentUpdate) GetSalesCreatedDate() time.Time` + +GetSalesCreatedDate returns the SalesCreatedDate field if non-nil, zero value otherwise. + +### GetSalesCreatedDateOk + +`func (o *DeploymentUpdate) GetSalesCreatedDateOk() (*time.Time, bool)` + +GetSalesCreatedDateOk returns a tuple with the SalesCreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesCreatedDate + +`func (o *DeploymentUpdate) SetSalesCreatedDate(v time.Time)` + +SetSalesCreatedDate sets SalesCreatedDate field to given value. + + +### SetSalesCreatedDateNil + +`func (o *DeploymentUpdate) SetSalesCreatedDateNil(b bool)` + + SetSalesCreatedDateNil sets the value for SalesCreatedDate to be an explicit nil + +### UnsetSalesCreatedDate +`func (o *DeploymentUpdate) UnsetSalesCreatedDate()` + +UnsetSalesCreatedDate ensures that no value is present for SalesCreatedDate, not even an explicit nil +### GetSalesId + +`func (o *DeploymentUpdate) GetSalesId() string` + +GetSalesId returns the SalesId field if non-nil, zero value otherwise. + +### GetSalesIdOk + +`func (o *DeploymentUpdate) GetSalesIdOk() (*string, bool)` + +GetSalesIdOk returns a tuple with the SalesId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesId + +`func (o *DeploymentUpdate) SetSalesId(v string)` + +SetSalesId sets SalesId field to given value. + + +### SetSalesIdNil + +`func (o *DeploymentUpdate) SetSalesIdNil(b bool)` + + SetSalesIdNil sets the value for SalesId to be an explicit nil + +### UnsetSalesId +`func (o *DeploymentUpdate) UnsetSalesId()` + +UnsetSalesId ensures that no value is present for SalesId, not even an explicit nil +### GetSalesOwnerEmail + +`func (o *DeploymentUpdate) GetSalesOwnerEmail() string` + +GetSalesOwnerEmail returns the SalesOwnerEmail field if non-nil, zero value otherwise. + +### GetSalesOwnerEmailOk + +`func (o *DeploymentUpdate) GetSalesOwnerEmailOk() (*string, bool)` + +GetSalesOwnerEmailOk returns a tuple with the SalesOwnerEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesOwnerEmail + +`func (o *DeploymentUpdate) SetSalesOwnerEmail(v string)` + +SetSalesOwnerEmail sets SalesOwnerEmail field to given value. + +### HasSalesOwnerEmail + +`func (o *DeploymentUpdate) HasSalesOwnerEmail() bool` + +HasSalesOwnerEmail returns a boolean if a field has been set. + +### SetSalesOwnerEmailNil + +`func (o *DeploymentUpdate) SetSalesOwnerEmailNil(b bool)` + + SetSalesOwnerEmailNil sets the value for SalesOwnerEmail to be an explicit nil + +### UnsetSalesOwnerEmail +`func (o *DeploymentUpdate) UnsetSalesOwnerEmail()` + +UnsetSalesOwnerEmail ensures that no value is present for SalesOwnerEmail, not even an explicit nil +### GetSalesOwnerName + +`func (o *DeploymentUpdate) GetSalesOwnerName() string` + +GetSalesOwnerName returns the SalesOwnerName field if non-nil, zero value otherwise. + +### GetSalesOwnerNameOk + +`func (o *DeploymentUpdate) GetSalesOwnerNameOk() (*string, bool)` + +GetSalesOwnerNameOk returns a tuple with the SalesOwnerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesOwnerName + +`func (o *DeploymentUpdate) SetSalesOwnerName(v string)` + +SetSalesOwnerName sets SalesOwnerName field to given value. + +### HasSalesOwnerName + +`func (o *DeploymentUpdate) HasSalesOwnerName() bool` + +HasSalesOwnerName returns a boolean if a field has been set. + +### SetSalesOwnerNameNil + +`func (o *DeploymentUpdate) SetSalesOwnerNameNil(b bool)` + + SetSalesOwnerNameNil sets the value for SalesOwnerName to be an explicit nil + +### UnsetSalesOwnerName +`func (o *DeploymentUpdate) UnsetSalesOwnerName()` + +UnsetSalesOwnerName ensures that no value is present for SalesOwnerName, not even an explicit nil +### GetServices + +`func (o *DeploymentUpdate) GetServices() []string` + +GetServices returns the Services field if non-nil, zero value otherwise. + +### GetServicesOk + +`func (o *DeploymentUpdate) GetServicesOk() (*[]string, bool)` + +GetServicesOk returns a tuple with the Services field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServices + +`func (o *DeploymentUpdate) SetServices(v []string)` + +SetServices sets Services field to given value. + + +### GetState + +`func (o *DeploymentUpdate) GetState() DeploymentState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *DeploymentUpdate) GetStateOk() (*DeploymentState, 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 *DeploymentUpdate) SetState(v DeploymentState)` + +SetState sets State field to given value. + +### HasState + +`func (o *DeploymentUpdate) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetTags + +`func (o *DeploymentUpdate) GetTags() interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeploymentUpdate) GetTagsOk() (*interface{}, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *DeploymentUpdate) SetTags(v interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DeploymentUpdate) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### SetTagsNil + +`func (o *DeploymentUpdate) SetTagsNil(b bool)` + + SetTagsNil sets the value for Tags to be an explicit nil + +### UnsetTags +`func (o *DeploymentUpdate) UnsetTags()` + +UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetWorkshop + +`func (o *DeploymentUpdate) GetWorkshop() bool` + +GetWorkshop returns the Workshop field if non-nil, zero value otherwise. + +### GetWorkshopOk + +`func (o *DeploymentUpdate) GetWorkshopOk() (*bool, bool)` + +GetWorkshopOk returns a tuple with the Workshop field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshop + +`func (o *DeploymentUpdate) SetWorkshop(v bool)` + +SetWorkshop sets Workshop field to given value. + + +### SetWorkshopNil + +`func (o *DeploymentUpdate) SetWorkshopNil(b bool)` + + SetWorkshopNil sets the value for Workshop to be an explicit nil + +### UnsetWorkshop +`func (o *DeploymentUpdate) UnsetWorkshop()` + +UnsetWorkshop ensures that no value is present for Workshop, not even an explicit nil +### GetWorkshopId + +`func (o *DeploymentUpdate) GetWorkshopId() string` + +GetWorkshopId returns the WorkshopId field if non-nil, zero value otherwise. + +### GetWorkshopIdOk + +`func (o *DeploymentUpdate) GetWorkshopIdOk() (*string, bool)` + +GetWorkshopIdOk returns a tuple with the WorkshopId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshopId + +`func (o *DeploymentUpdate) SetWorkshopId(v string)` + +SetWorkshopId sets WorkshopId field to given value. + + +### SetWorkshopIdNil + +`func (o *DeploymentUpdate) SetWorkshopIdNil(b bool)` + + SetWorkshopIdNil sets the value for WorkshopId to be an explicit nil + +### UnsetWorkshopId +`func (o *DeploymentUpdate) UnsetWorkshopId()` + +UnsetWorkshopId ensures that no value is present for WorkshopId, not even an explicit nil +### GetWorkshopOverridePassword + +`func (o *DeploymentUpdate) GetWorkshopOverridePassword() string` + +GetWorkshopOverridePassword returns the WorkshopOverridePassword field if non-nil, zero value otherwise. + +### GetWorkshopOverridePasswordOk + +`func (o *DeploymentUpdate) GetWorkshopOverridePasswordOk() (*string, bool)` + +GetWorkshopOverridePasswordOk returns a tuple with the WorkshopOverridePassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshopOverridePassword + +`func (o *DeploymentUpdate) SetWorkshopOverridePassword(v string)` + +SetWorkshopOverridePassword sets WorkshopOverridePassword field to given value. + + +### SetWorkshopOverridePasswordNil + +`func (o *DeploymentUpdate) SetWorkshopOverridePasswordNil(b bool)` + + SetWorkshopOverridePasswordNil sets the value for WorkshopOverridePassword to be an explicit nil + +### UnsetWorkshopOverridePassword +`func (o *DeploymentUpdate) UnsetWorkshopOverridePassword()` + +UnsetWorkshopOverridePassword ensures that no value is present for WorkshopOverridePassword, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/DocDeploymentDelete.md b/v1/providers/launchpad/gen/launchpad/docs/DocDeploymentDelete.md new file mode 100644 index 0000000..1003803 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/DocDeploymentDelete.md @@ -0,0 +1,1674 @@ +# DocDeploymentDelete + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BastionOperatingSystem** | Pointer to **NullableString** | Override bastion operating system provisioned and/or configured by Liftoff | [optional] +**CatalogId** | Pointer to **string** | Unique ID for this experience in the sales catalog. Must be unique. | [optional] +**CatalogIdAlias** | Pointer to **NullableString** | Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique. | [optional] +**Cluster** | Pointer to [**DeploymentCluster**](DeploymentCluster.md) | | [optional] +**CollectionBranch** | Pointer to **NullableString** | Override the Ansible collection branch initialized within the pipeline | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Experience** | [**DeploymentExperience**](DeploymentExperience.md) | | +**ExperienceBranch** | Pointer to **NullableString** | Override the experience branch | [optional] +**ExperienceId** | Pointer to **string** | | [optional] +**ExpiresAt** | Pointer to **NullableTime** | | [optional] +**FlightcontrolRelease** | Pointer to **NullableString** | Override the image tag used for Flight Control | [optional] +**GarageId** | Pointer to **NullableString** | Require a cluster with nodes in the given garage | [optional] +**GcBranch** | Pointer to **NullableString** | Override the default Ground Control branch | [optional] +**GpuAlias** | Pointer to **NullableString** | Require a cluster with the given GPU alias | [optional] +**GpuCount** | Pointer to **NullableInt32** | Require a cluster with the given number of GPUs | [optional] +**GpuModel** | Pointer to **NullableString** | Require a cluster with the given GPU model | [optional] +**GpuOsName** | Pointer to **string** | | [optional] +**GpuOsRelease** | Pointer to **string** | | [optional] +**GpuOsVersion** | Pointer to **string** | | [optional] +**Id** | **string** | | [readonly] +**IpAllowlist** | Pointer to **[]string** | Host IP addresses that should be allowed to access the deployment | [optional] +**Lifetime** | Pointer to **NullableInt32** | Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. | [optional] +**MinGpuCount** | Pointer to **NullableInt32** | Require a cluster whose GPU count is greater than or equal to the given number | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**NodeCount** | Pointer to **NullableInt32** | Require a cluster with the given number of nodes | [optional] +**OemName** | Pointer to **NullableString** | Require a cluster manufactured by the given OEM name | [optional] +**OrgName** | **string** | Requester's organization name | +**Overrides** | **interface{}** | | +**PersistOnFailure** | Pointer to **NullableBool** | Override the default cleanup/destroy behavior when a provisioning failure occurs | [optional] +**Persona** | Pointer to **string** | | [optional] +**Pipeline** | Pointer to **NullableInt64** | Override the pipeline ID that will be triggered for request fulfillment | [optional] +**PipelineBranch** | Pointer to **NullableString** | Override the default pipeline branch ref used when triggering a Fuselage pipeline | [optional] +**Pipelines** | **[]string** | | +**Platform** | Pointer to [**NullablePlatformEnum**](PlatformEnum.md) | | [optional] +**Priority** | Pointer to [**PriorityEnum**](PriorityEnum.md) | Priority level for the request * `p0` - p0 * `p1` - p1 * `p2` - p2 * `p3` - p3 | [optional] +**ProviderName** | Pointer to **NullableString** | Require a cluster from the given provider name | [optional] +**PublicKey** | Pointer to **NullableString** | The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. | [optional] +**Region** | Pointer to **NullableString** | Require a cluster located in the given region | [optional] +**RequestId** | Pointer to **string** | Trial request ID (ex: TRY-1234) | [optional] +**RequesterEmail** | **string** | Email address of the user requesting the experience | +**RequesterName** | **string** | Name of the user requesting the experience | +**RetryCount** | **int32** | Number of times the deployment has been retried | [readonly] +**SalesCreatedDate** | Pointer to **NullableTime** | | [optional] +**SalesId** | Pointer to **NullableString** | Unique identifier for the requester's sales relationship | [optional] +**SalesOwnerEmail** | Pointer to **NullableString** | Email address of the sales contact associated with the requester | [optional] +**SalesOwnerName** | Pointer to **NullableString** | Name of the sales contact associated with the requester | [optional] +**Services** | **[]string** | | +**SshPort** | **int32** | | [readonly] +**SshUser** | **string** | | [readonly] +**State** | [**DeploymentState**](DeploymentState.md) | Current state of the deployment * `destroyed` - Deployment has been fully destroyed * `destroying` - Deployment is being destroyed * `error` - Deployment has encountered a fatal error and will not be retried * `failed` - Deployment has failed but may be retried * `paused` - Deployment is paused but may be retried later * `ready` - Deployment is ready and all instances are running * `retrying` - Deployment is retrying * `starting` - Deployment instances are starting * `stopped` - Deployment instances are stopped * `stopping` - Deployment instances are stopping * `waiting` - Waiting for deployment to be ready | [readonly] +**Tags** | Pointer to **interface{}** | | [optional] +**Workshop** | Pointer to **NullableBool** | Require a cluster whose workshop flag is set | [optional] +**WorkshopId** | Pointer to **NullableString** | Require a cluster with the given workshop ID | [optional] +**WorkshopOverridePassword** | Pointer to **NullableString** | Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) | [optional] + +## Methods + +### NewDocDeploymentDelete + +`func NewDocDeploymentDelete(created time.Time, experience DeploymentExperience, id string, modified time.Time, orgName string, overrides interface{}, pipelines []string, requesterEmail string, requesterName string, retryCount int32, services []string, sshPort int32, sshUser string, state DeploymentState, ) *DocDeploymentDelete` + +NewDocDeploymentDelete instantiates a new DocDeploymentDelete 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 + +### NewDocDeploymentDeleteWithDefaults + +`func NewDocDeploymentDeleteWithDefaults() *DocDeploymentDelete` + +NewDocDeploymentDeleteWithDefaults instantiates a new DocDeploymentDelete 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 + +### GetBastionOperatingSystem + +`func (o *DocDeploymentDelete) GetBastionOperatingSystem() string` + +GetBastionOperatingSystem returns the BastionOperatingSystem field if non-nil, zero value otherwise. + +### GetBastionOperatingSystemOk + +`func (o *DocDeploymentDelete) GetBastionOperatingSystemOk() (*string, bool)` + +GetBastionOperatingSystemOk returns a tuple with the BastionOperatingSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBastionOperatingSystem + +`func (o *DocDeploymentDelete) SetBastionOperatingSystem(v string)` + +SetBastionOperatingSystem sets BastionOperatingSystem field to given value. + +### HasBastionOperatingSystem + +`func (o *DocDeploymentDelete) HasBastionOperatingSystem() bool` + +HasBastionOperatingSystem returns a boolean if a field has been set. + +### SetBastionOperatingSystemNil + +`func (o *DocDeploymentDelete) SetBastionOperatingSystemNil(b bool)` + + SetBastionOperatingSystemNil sets the value for BastionOperatingSystem to be an explicit nil + +### UnsetBastionOperatingSystem +`func (o *DocDeploymentDelete) UnsetBastionOperatingSystem()` + +UnsetBastionOperatingSystem ensures that no value is present for BastionOperatingSystem, not even an explicit nil +### GetCatalogId + +`func (o *DocDeploymentDelete) GetCatalogId() string` + +GetCatalogId returns the CatalogId field if non-nil, zero value otherwise. + +### GetCatalogIdOk + +`func (o *DocDeploymentDelete) GetCatalogIdOk() (*string, bool)` + +GetCatalogIdOk returns a tuple with the CatalogId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogId + +`func (o *DocDeploymentDelete) SetCatalogId(v string)` + +SetCatalogId sets CatalogId field to given value. + +### HasCatalogId + +`func (o *DocDeploymentDelete) HasCatalogId() bool` + +HasCatalogId returns a boolean if a field has been set. + +### GetCatalogIdAlias + +`func (o *DocDeploymentDelete) GetCatalogIdAlias() string` + +GetCatalogIdAlias returns the CatalogIdAlias field if non-nil, zero value otherwise. + +### GetCatalogIdAliasOk + +`func (o *DocDeploymentDelete) GetCatalogIdAliasOk() (*string, bool)` + +GetCatalogIdAliasOk returns a tuple with the CatalogIdAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogIdAlias + +`func (o *DocDeploymentDelete) SetCatalogIdAlias(v string)` + +SetCatalogIdAlias sets CatalogIdAlias field to given value. + +### HasCatalogIdAlias + +`func (o *DocDeploymentDelete) HasCatalogIdAlias() bool` + +HasCatalogIdAlias returns a boolean if a field has been set. + +### SetCatalogIdAliasNil + +`func (o *DocDeploymentDelete) SetCatalogIdAliasNil(b bool)` + + SetCatalogIdAliasNil sets the value for CatalogIdAlias to be an explicit nil + +### UnsetCatalogIdAlias +`func (o *DocDeploymentDelete) UnsetCatalogIdAlias()` + +UnsetCatalogIdAlias ensures that no value is present for CatalogIdAlias, not even an explicit nil +### GetCluster + +`func (o *DocDeploymentDelete) GetCluster() DeploymentCluster` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *DocDeploymentDelete) GetClusterOk() (*DeploymentCluster, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *DocDeploymentDelete) SetCluster(v DeploymentCluster)` + +SetCluster sets Cluster field to given value. + +### HasCluster + +`func (o *DocDeploymentDelete) HasCluster() bool` + +HasCluster returns a boolean if a field has been set. + +### GetCollectionBranch + +`func (o *DocDeploymentDelete) GetCollectionBranch() string` + +GetCollectionBranch returns the CollectionBranch field if non-nil, zero value otherwise. + +### GetCollectionBranchOk + +`func (o *DocDeploymentDelete) GetCollectionBranchOk() (*string, bool)` + +GetCollectionBranchOk returns a tuple with the CollectionBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionBranch + +`func (o *DocDeploymentDelete) SetCollectionBranch(v string)` + +SetCollectionBranch sets CollectionBranch field to given value. + +### HasCollectionBranch + +`func (o *DocDeploymentDelete) HasCollectionBranch() bool` + +HasCollectionBranch returns a boolean if a field has been set. + +### SetCollectionBranchNil + +`func (o *DocDeploymentDelete) SetCollectionBranchNil(b bool)` + + SetCollectionBranchNil sets the value for CollectionBranch to be an explicit nil + +### UnsetCollectionBranch +`func (o *DocDeploymentDelete) UnsetCollectionBranch()` + +UnsetCollectionBranch ensures that no value is present for CollectionBranch, not even an explicit nil +### GetCreated + +`func (o *DocDeploymentDelete) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DocDeploymentDelete) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DocDeploymentDelete) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetExperience + +`func (o *DocDeploymentDelete) GetExperience() DeploymentExperience` + +GetExperience returns the Experience field if non-nil, zero value otherwise. + +### GetExperienceOk + +`func (o *DocDeploymentDelete) GetExperienceOk() (*DeploymentExperience, bool)` + +GetExperienceOk returns a tuple with the Experience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperience + +`func (o *DocDeploymentDelete) SetExperience(v DeploymentExperience)` + +SetExperience sets Experience field to given value. + + +### GetExperienceBranch + +`func (o *DocDeploymentDelete) GetExperienceBranch() string` + +GetExperienceBranch returns the ExperienceBranch field if non-nil, zero value otherwise. + +### GetExperienceBranchOk + +`func (o *DocDeploymentDelete) GetExperienceBranchOk() (*string, bool)` + +GetExperienceBranchOk returns a tuple with the ExperienceBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperienceBranch + +`func (o *DocDeploymentDelete) SetExperienceBranch(v string)` + +SetExperienceBranch sets ExperienceBranch field to given value. + +### HasExperienceBranch + +`func (o *DocDeploymentDelete) HasExperienceBranch() bool` + +HasExperienceBranch returns a boolean if a field has been set. + +### SetExperienceBranchNil + +`func (o *DocDeploymentDelete) SetExperienceBranchNil(b bool)` + + SetExperienceBranchNil sets the value for ExperienceBranch to be an explicit nil + +### UnsetExperienceBranch +`func (o *DocDeploymentDelete) UnsetExperienceBranch()` + +UnsetExperienceBranch ensures that no value is present for ExperienceBranch, not even an explicit nil +### GetExperienceId + +`func (o *DocDeploymentDelete) GetExperienceId() string` + +GetExperienceId returns the ExperienceId field if non-nil, zero value otherwise. + +### GetExperienceIdOk + +`func (o *DocDeploymentDelete) GetExperienceIdOk() (*string, bool)` + +GetExperienceIdOk returns a tuple with the ExperienceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperienceId + +`func (o *DocDeploymentDelete) SetExperienceId(v string)` + +SetExperienceId sets ExperienceId field to given value. + +### HasExperienceId + +`func (o *DocDeploymentDelete) HasExperienceId() bool` + +HasExperienceId returns a boolean if a field has been set. + +### GetExpiresAt + +`func (o *DocDeploymentDelete) GetExpiresAt() time.Time` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *DocDeploymentDelete) GetExpiresAtOk() (*time.Time, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *DocDeploymentDelete) SetExpiresAt(v time.Time)` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *DocDeploymentDelete) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *DocDeploymentDelete) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *DocDeploymentDelete) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetFlightcontrolRelease + +`func (o *DocDeploymentDelete) GetFlightcontrolRelease() string` + +GetFlightcontrolRelease returns the FlightcontrolRelease field if non-nil, zero value otherwise. + +### GetFlightcontrolReleaseOk + +`func (o *DocDeploymentDelete) GetFlightcontrolReleaseOk() (*string, bool)` + +GetFlightcontrolReleaseOk returns a tuple with the FlightcontrolRelease field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlightcontrolRelease + +`func (o *DocDeploymentDelete) SetFlightcontrolRelease(v string)` + +SetFlightcontrolRelease sets FlightcontrolRelease field to given value. + +### HasFlightcontrolRelease + +`func (o *DocDeploymentDelete) HasFlightcontrolRelease() bool` + +HasFlightcontrolRelease returns a boolean if a field has been set. + +### SetFlightcontrolReleaseNil + +`func (o *DocDeploymentDelete) SetFlightcontrolReleaseNil(b bool)` + + SetFlightcontrolReleaseNil sets the value for FlightcontrolRelease to be an explicit nil + +### UnsetFlightcontrolRelease +`func (o *DocDeploymentDelete) UnsetFlightcontrolRelease()` + +UnsetFlightcontrolRelease ensures that no value is present for FlightcontrolRelease, not even an explicit nil +### GetGarageId + +`func (o *DocDeploymentDelete) GetGarageId() string` + +GetGarageId returns the GarageId field if non-nil, zero value otherwise. + +### GetGarageIdOk + +`func (o *DocDeploymentDelete) GetGarageIdOk() (*string, bool)` + +GetGarageIdOk returns a tuple with the GarageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGarageId + +`func (o *DocDeploymentDelete) SetGarageId(v string)` + +SetGarageId sets GarageId field to given value. + +### HasGarageId + +`func (o *DocDeploymentDelete) HasGarageId() bool` + +HasGarageId returns a boolean if a field has been set. + +### SetGarageIdNil + +`func (o *DocDeploymentDelete) SetGarageIdNil(b bool)` + + SetGarageIdNil sets the value for GarageId to be an explicit nil + +### UnsetGarageId +`func (o *DocDeploymentDelete) UnsetGarageId()` + +UnsetGarageId ensures that no value is present for GarageId, not even an explicit nil +### GetGcBranch + +`func (o *DocDeploymentDelete) GetGcBranch() string` + +GetGcBranch returns the GcBranch field if non-nil, zero value otherwise. + +### GetGcBranchOk + +`func (o *DocDeploymentDelete) GetGcBranchOk() (*string, bool)` + +GetGcBranchOk returns a tuple with the GcBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcBranch + +`func (o *DocDeploymentDelete) SetGcBranch(v string)` + +SetGcBranch sets GcBranch field to given value. + +### HasGcBranch + +`func (o *DocDeploymentDelete) HasGcBranch() bool` + +HasGcBranch returns a boolean if a field has been set. + +### SetGcBranchNil + +`func (o *DocDeploymentDelete) SetGcBranchNil(b bool)` + + SetGcBranchNil sets the value for GcBranch to be an explicit nil + +### UnsetGcBranch +`func (o *DocDeploymentDelete) UnsetGcBranch()` + +UnsetGcBranch ensures that no value is present for GcBranch, not even an explicit nil +### GetGpuAlias + +`func (o *DocDeploymentDelete) GetGpuAlias() string` + +GetGpuAlias returns the GpuAlias field if non-nil, zero value otherwise. + +### GetGpuAliasOk + +`func (o *DocDeploymentDelete) GetGpuAliasOk() (*string, bool)` + +GetGpuAliasOk returns a tuple with the GpuAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuAlias + +`func (o *DocDeploymentDelete) SetGpuAlias(v string)` + +SetGpuAlias sets GpuAlias field to given value. + +### HasGpuAlias + +`func (o *DocDeploymentDelete) HasGpuAlias() bool` + +HasGpuAlias returns a boolean if a field has been set. + +### SetGpuAliasNil + +`func (o *DocDeploymentDelete) SetGpuAliasNil(b bool)` + + SetGpuAliasNil sets the value for GpuAlias to be an explicit nil + +### UnsetGpuAlias +`func (o *DocDeploymentDelete) UnsetGpuAlias()` + +UnsetGpuAlias ensures that no value is present for GpuAlias, not even an explicit nil +### GetGpuCount + +`func (o *DocDeploymentDelete) GetGpuCount() int32` + +GetGpuCount returns the GpuCount field if non-nil, zero value otherwise. + +### GetGpuCountOk + +`func (o *DocDeploymentDelete) GetGpuCountOk() (*int32, bool)` + +GetGpuCountOk returns a tuple with the GpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuCount + +`func (o *DocDeploymentDelete) SetGpuCount(v int32)` + +SetGpuCount sets GpuCount field to given value. + +### HasGpuCount + +`func (o *DocDeploymentDelete) HasGpuCount() bool` + +HasGpuCount returns a boolean if a field has been set. + +### SetGpuCountNil + +`func (o *DocDeploymentDelete) SetGpuCountNil(b bool)` + + SetGpuCountNil sets the value for GpuCount to be an explicit nil + +### UnsetGpuCount +`func (o *DocDeploymentDelete) UnsetGpuCount()` + +UnsetGpuCount ensures that no value is present for GpuCount, not even an explicit nil +### GetGpuModel + +`func (o *DocDeploymentDelete) GetGpuModel() string` + +GetGpuModel returns the GpuModel field if non-nil, zero value otherwise. + +### GetGpuModelOk + +`func (o *DocDeploymentDelete) GetGpuModelOk() (*string, bool)` + +GetGpuModelOk returns a tuple with the GpuModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuModel + +`func (o *DocDeploymentDelete) SetGpuModel(v string)` + +SetGpuModel sets GpuModel field to given value. + +### HasGpuModel + +`func (o *DocDeploymentDelete) HasGpuModel() bool` + +HasGpuModel returns a boolean if a field has been set. + +### SetGpuModelNil + +`func (o *DocDeploymentDelete) SetGpuModelNil(b bool)` + + SetGpuModelNil sets the value for GpuModel to be an explicit nil + +### UnsetGpuModel +`func (o *DocDeploymentDelete) UnsetGpuModel()` + +UnsetGpuModel ensures that no value is present for GpuModel, not even an explicit nil +### GetGpuOsName + +`func (o *DocDeploymentDelete) GetGpuOsName() string` + +GetGpuOsName returns the GpuOsName field if non-nil, zero value otherwise. + +### GetGpuOsNameOk + +`func (o *DocDeploymentDelete) GetGpuOsNameOk() (*string, bool)` + +GetGpuOsNameOk returns a tuple with the GpuOsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsName + +`func (o *DocDeploymentDelete) SetGpuOsName(v string)` + +SetGpuOsName sets GpuOsName field to given value. + +### HasGpuOsName + +`func (o *DocDeploymentDelete) HasGpuOsName() bool` + +HasGpuOsName returns a boolean if a field has been set. + +### GetGpuOsRelease + +`func (o *DocDeploymentDelete) GetGpuOsRelease() string` + +GetGpuOsRelease returns the GpuOsRelease field if non-nil, zero value otherwise. + +### GetGpuOsReleaseOk + +`func (o *DocDeploymentDelete) GetGpuOsReleaseOk() (*string, bool)` + +GetGpuOsReleaseOk returns a tuple with the GpuOsRelease field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsRelease + +`func (o *DocDeploymentDelete) SetGpuOsRelease(v string)` + +SetGpuOsRelease sets GpuOsRelease field to given value. + +### HasGpuOsRelease + +`func (o *DocDeploymentDelete) HasGpuOsRelease() bool` + +HasGpuOsRelease returns a boolean if a field has been set. + +### GetGpuOsVersion + +`func (o *DocDeploymentDelete) GetGpuOsVersion() string` + +GetGpuOsVersion returns the GpuOsVersion field if non-nil, zero value otherwise. + +### GetGpuOsVersionOk + +`func (o *DocDeploymentDelete) GetGpuOsVersionOk() (*string, bool)` + +GetGpuOsVersionOk returns a tuple with the GpuOsVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOsVersion + +`func (o *DocDeploymentDelete) SetGpuOsVersion(v string)` + +SetGpuOsVersion sets GpuOsVersion field to given value. + +### HasGpuOsVersion + +`func (o *DocDeploymentDelete) HasGpuOsVersion() bool` + +HasGpuOsVersion returns a boolean if a field has been set. + +### GetId + +`func (o *DocDeploymentDelete) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DocDeploymentDelete) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DocDeploymentDelete) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIpAllowlist + +`func (o *DocDeploymentDelete) GetIpAllowlist() []string` + +GetIpAllowlist returns the IpAllowlist field if non-nil, zero value otherwise. + +### GetIpAllowlistOk + +`func (o *DocDeploymentDelete) GetIpAllowlistOk() (*[]string, bool)` + +GetIpAllowlistOk returns a tuple with the IpAllowlist field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAllowlist + +`func (o *DocDeploymentDelete) SetIpAllowlist(v []string)` + +SetIpAllowlist sets IpAllowlist field to given value. + +### HasIpAllowlist + +`func (o *DocDeploymentDelete) HasIpAllowlist() bool` + +HasIpAllowlist returns a boolean if a field has been set. + +### GetLifetime + +`func (o *DocDeploymentDelete) GetLifetime() int32` + +GetLifetime returns the Lifetime field if non-nil, zero value otherwise. + +### GetLifetimeOk + +`func (o *DocDeploymentDelete) GetLifetimeOk() (*int32, bool)` + +GetLifetimeOk returns a tuple with the Lifetime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifetime + +`func (o *DocDeploymentDelete) SetLifetime(v int32)` + +SetLifetime sets Lifetime field to given value. + +### HasLifetime + +`func (o *DocDeploymentDelete) HasLifetime() bool` + +HasLifetime returns a boolean if a field has been set. + +### SetLifetimeNil + +`func (o *DocDeploymentDelete) SetLifetimeNil(b bool)` + + SetLifetimeNil sets the value for Lifetime to be an explicit nil + +### UnsetLifetime +`func (o *DocDeploymentDelete) UnsetLifetime()` + +UnsetLifetime ensures that no value is present for Lifetime, not even an explicit nil +### GetMinGpuCount + +`func (o *DocDeploymentDelete) GetMinGpuCount() int32` + +GetMinGpuCount returns the MinGpuCount field if non-nil, zero value otherwise. + +### GetMinGpuCountOk + +`func (o *DocDeploymentDelete) GetMinGpuCountOk() (*int32, bool)` + +GetMinGpuCountOk returns a tuple with the MinGpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinGpuCount + +`func (o *DocDeploymentDelete) SetMinGpuCount(v int32)` + +SetMinGpuCount sets MinGpuCount field to given value. + +### HasMinGpuCount + +`func (o *DocDeploymentDelete) HasMinGpuCount() bool` + +HasMinGpuCount returns a boolean if a field has been set. + +### SetMinGpuCountNil + +`func (o *DocDeploymentDelete) SetMinGpuCountNil(b bool)` + + SetMinGpuCountNil sets the value for MinGpuCount to be an explicit nil + +### UnsetMinGpuCount +`func (o *DocDeploymentDelete) UnsetMinGpuCount()` + +UnsetMinGpuCount ensures that no value is present for MinGpuCount, not even an explicit nil +### GetModified + +`func (o *DocDeploymentDelete) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *DocDeploymentDelete) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *DocDeploymentDelete) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNodeCount + +`func (o *DocDeploymentDelete) GetNodeCount() int32` + +GetNodeCount returns the NodeCount field if non-nil, zero value otherwise. + +### GetNodeCountOk + +`func (o *DocDeploymentDelete) 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 *DocDeploymentDelete) SetNodeCount(v int32)` + +SetNodeCount sets NodeCount field to given value. + +### HasNodeCount + +`func (o *DocDeploymentDelete) HasNodeCount() bool` + +HasNodeCount returns a boolean if a field has been set. + +### SetNodeCountNil + +`func (o *DocDeploymentDelete) SetNodeCountNil(b bool)` + + SetNodeCountNil sets the value for NodeCount to be an explicit nil + +### UnsetNodeCount +`func (o *DocDeploymentDelete) UnsetNodeCount()` + +UnsetNodeCount ensures that no value is present for NodeCount, not even an explicit nil +### GetOemName + +`func (o *DocDeploymentDelete) GetOemName() string` + +GetOemName returns the OemName field if non-nil, zero value otherwise. + +### GetOemNameOk + +`func (o *DocDeploymentDelete) GetOemNameOk() (*string, bool)` + +GetOemNameOk returns a tuple with the OemName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOemName + +`func (o *DocDeploymentDelete) SetOemName(v string)` + +SetOemName sets OemName field to given value. + +### HasOemName + +`func (o *DocDeploymentDelete) HasOemName() bool` + +HasOemName returns a boolean if a field has been set. + +### SetOemNameNil + +`func (o *DocDeploymentDelete) SetOemNameNil(b bool)` + + SetOemNameNil sets the value for OemName to be an explicit nil + +### UnsetOemName +`func (o *DocDeploymentDelete) UnsetOemName()` + +UnsetOemName ensures that no value is present for OemName, not even an explicit nil +### GetOrgName + +`func (o *DocDeploymentDelete) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *DocDeploymentDelete) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *DocDeploymentDelete) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + + +### GetOverrides + +`func (o *DocDeploymentDelete) GetOverrides() interface{}` + +GetOverrides returns the Overrides field if non-nil, zero value otherwise. + +### GetOverridesOk + +`func (o *DocDeploymentDelete) GetOverridesOk() (*interface{}, bool)` + +GetOverridesOk returns a tuple with the Overrides field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverrides + +`func (o *DocDeploymentDelete) SetOverrides(v interface{})` + +SetOverrides sets Overrides field to given value. + + +### SetOverridesNil + +`func (o *DocDeploymentDelete) SetOverridesNil(b bool)` + + SetOverridesNil sets the value for Overrides to be an explicit nil + +### UnsetOverrides +`func (o *DocDeploymentDelete) UnsetOverrides()` + +UnsetOverrides ensures that no value is present for Overrides, not even an explicit nil +### GetPersistOnFailure + +`func (o *DocDeploymentDelete) GetPersistOnFailure() bool` + +GetPersistOnFailure returns the PersistOnFailure field if non-nil, zero value otherwise. + +### GetPersistOnFailureOk + +`func (o *DocDeploymentDelete) GetPersistOnFailureOk() (*bool, bool)` + +GetPersistOnFailureOk returns a tuple with the PersistOnFailure field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersistOnFailure + +`func (o *DocDeploymentDelete) SetPersistOnFailure(v bool)` + +SetPersistOnFailure sets PersistOnFailure field to given value. + +### HasPersistOnFailure + +`func (o *DocDeploymentDelete) HasPersistOnFailure() bool` + +HasPersistOnFailure returns a boolean if a field has been set. + +### SetPersistOnFailureNil + +`func (o *DocDeploymentDelete) SetPersistOnFailureNil(b bool)` + + SetPersistOnFailureNil sets the value for PersistOnFailure to be an explicit nil + +### UnsetPersistOnFailure +`func (o *DocDeploymentDelete) UnsetPersistOnFailure()` + +UnsetPersistOnFailure ensures that no value is present for PersistOnFailure, not even an explicit nil +### GetPersona + +`func (o *DocDeploymentDelete) GetPersona() string` + +GetPersona returns the Persona field if non-nil, zero value otherwise. + +### GetPersonaOk + +`func (o *DocDeploymentDelete) GetPersonaOk() (*string, bool)` + +GetPersonaOk returns a tuple with the Persona field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersona + +`func (o *DocDeploymentDelete) SetPersona(v string)` + +SetPersona sets Persona field to given value. + +### HasPersona + +`func (o *DocDeploymentDelete) HasPersona() bool` + +HasPersona returns a boolean if a field has been set. + +### GetPipeline + +`func (o *DocDeploymentDelete) GetPipeline() int64` + +GetPipeline returns the Pipeline field if non-nil, zero value otherwise. + +### GetPipelineOk + +`func (o *DocDeploymentDelete) GetPipelineOk() (*int64, bool)` + +GetPipelineOk returns a tuple with the Pipeline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipeline + +`func (o *DocDeploymentDelete) SetPipeline(v int64)` + +SetPipeline sets Pipeline field to given value. + +### HasPipeline + +`func (o *DocDeploymentDelete) HasPipeline() bool` + +HasPipeline returns a boolean if a field has been set. + +### SetPipelineNil + +`func (o *DocDeploymentDelete) SetPipelineNil(b bool)` + + SetPipelineNil sets the value for Pipeline to be an explicit nil + +### UnsetPipeline +`func (o *DocDeploymentDelete) UnsetPipeline()` + +UnsetPipeline ensures that no value is present for Pipeline, not even an explicit nil +### GetPipelineBranch + +`func (o *DocDeploymentDelete) GetPipelineBranch() string` + +GetPipelineBranch returns the PipelineBranch field if non-nil, zero value otherwise. + +### GetPipelineBranchOk + +`func (o *DocDeploymentDelete) GetPipelineBranchOk() (*string, bool)` + +GetPipelineBranchOk returns a tuple with the PipelineBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipelineBranch + +`func (o *DocDeploymentDelete) SetPipelineBranch(v string)` + +SetPipelineBranch sets PipelineBranch field to given value. + +### HasPipelineBranch + +`func (o *DocDeploymentDelete) HasPipelineBranch() bool` + +HasPipelineBranch returns a boolean if a field has been set. + +### SetPipelineBranchNil + +`func (o *DocDeploymentDelete) SetPipelineBranchNil(b bool)` + + SetPipelineBranchNil sets the value for PipelineBranch to be an explicit nil + +### UnsetPipelineBranch +`func (o *DocDeploymentDelete) UnsetPipelineBranch()` + +UnsetPipelineBranch ensures that no value is present for PipelineBranch, not even an explicit nil +### GetPipelines + +`func (o *DocDeploymentDelete) GetPipelines() []string` + +GetPipelines returns the Pipelines field if non-nil, zero value otherwise. + +### GetPipelinesOk + +`func (o *DocDeploymentDelete) GetPipelinesOk() (*[]string, bool)` + +GetPipelinesOk returns a tuple with the Pipelines field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipelines + +`func (o *DocDeploymentDelete) SetPipelines(v []string)` + +SetPipelines sets Pipelines field to given value. + + +### GetPlatform + +`func (o *DocDeploymentDelete) GetPlatform() PlatformEnum` + +GetPlatform returns the Platform field if non-nil, zero value otherwise. + +### GetPlatformOk + +`func (o *DocDeploymentDelete) GetPlatformOk() (*PlatformEnum, bool)` + +GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatform + +`func (o *DocDeploymentDelete) SetPlatform(v PlatformEnum)` + +SetPlatform sets Platform field to given value. + +### HasPlatform + +`func (o *DocDeploymentDelete) HasPlatform() bool` + +HasPlatform returns a boolean if a field has been set. + +### SetPlatformNil + +`func (o *DocDeploymentDelete) SetPlatformNil(b bool)` + + SetPlatformNil sets the value for Platform to be an explicit nil + +### UnsetPlatform +`func (o *DocDeploymentDelete) UnsetPlatform()` + +UnsetPlatform ensures that no value is present for Platform, not even an explicit nil +### GetPriority + +`func (o *DocDeploymentDelete) GetPriority() PriorityEnum` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *DocDeploymentDelete) GetPriorityOk() (*PriorityEnum, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *DocDeploymentDelete) SetPriority(v PriorityEnum)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *DocDeploymentDelete) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetProviderName + +`func (o *DocDeploymentDelete) GetProviderName() string` + +GetProviderName returns the ProviderName field if non-nil, zero value otherwise. + +### GetProviderNameOk + +`func (o *DocDeploymentDelete) GetProviderNameOk() (*string, bool)` + +GetProviderNameOk returns a tuple with the ProviderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderName + +`func (o *DocDeploymentDelete) SetProviderName(v string)` + +SetProviderName sets ProviderName field to given value. + +### HasProviderName + +`func (o *DocDeploymentDelete) HasProviderName() bool` + +HasProviderName returns a boolean if a field has been set. + +### SetProviderNameNil + +`func (o *DocDeploymentDelete) SetProviderNameNil(b bool)` + + SetProviderNameNil sets the value for ProviderName to be an explicit nil + +### UnsetProviderName +`func (o *DocDeploymentDelete) UnsetProviderName()` + +UnsetProviderName ensures that no value is present for ProviderName, not even an explicit nil +### GetPublicKey + +`func (o *DocDeploymentDelete) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *DocDeploymentDelete) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *DocDeploymentDelete) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + +### HasPublicKey + +`func (o *DocDeploymentDelete) HasPublicKey() bool` + +HasPublicKey returns a boolean if a field has been set. + +### SetPublicKeyNil + +`func (o *DocDeploymentDelete) SetPublicKeyNil(b bool)` + + SetPublicKeyNil sets the value for PublicKey to be an explicit nil + +### UnsetPublicKey +`func (o *DocDeploymentDelete) UnsetPublicKey()` + +UnsetPublicKey ensures that no value is present for PublicKey, not even an explicit nil +### GetRegion + +`func (o *DocDeploymentDelete) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *DocDeploymentDelete) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *DocDeploymentDelete) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *DocDeploymentDelete) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### SetRegionNil + +`func (o *DocDeploymentDelete) SetRegionNil(b bool)` + + SetRegionNil sets the value for Region to be an explicit nil + +### UnsetRegion +`func (o *DocDeploymentDelete) UnsetRegion()` + +UnsetRegion ensures that no value is present for Region, not even an explicit nil +### GetRequestId + +`func (o *DocDeploymentDelete) GetRequestId() string` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *DocDeploymentDelete) GetRequestIdOk() (*string, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *DocDeploymentDelete) SetRequestId(v string)` + +SetRequestId sets RequestId field to given value. + +### HasRequestId + +`func (o *DocDeploymentDelete) HasRequestId() bool` + +HasRequestId returns a boolean if a field has been set. + +### GetRequesterEmail + +`func (o *DocDeploymentDelete) GetRequesterEmail() string` + +GetRequesterEmail returns the RequesterEmail field if non-nil, zero value otherwise. + +### GetRequesterEmailOk + +`func (o *DocDeploymentDelete) GetRequesterEmailOk() (*string, bool)` + +GetRequesterEmailOk returns a tuple with the RequesterEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterEmail + +`func (o *DocDeploymentDelete) SetRequesterEmail(v string)` + +SetRequesterEmail sets RequesterEmail field to given value. + + +### GetRequesterName + +`func (o *DocDeploymentDelete) GetRequesterName() string` + +GetRequesterName returns the RequesterName field if non-nil, zero value otherwise. + +### GetRequesterNameOk + +`func (o *DocDeploymentDelete) GetRequesterNameOk() (*string, bool)` + +GetRequesterNameOk returns a tuple with the RequesterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterName + +`func (o *DocDeploymentDelete) SetRequesterName(v string)` + +SetRequesterName sets RequesterName field to given value. + + +### GetRetryCount + +`func (o *DocDeploymentDelete) GetRetryCount() int32` + +GetRetryCount returns the RetryCount field if non-nil, zero value otherwise. + +### GetRetryCountOk + +`func (o *DocDeploymentDelete) GetRetryCountOk() (*int32, bool)` + +GetRetryCountOk returns a tuple with the RetryCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetryCount + +`func (o *DocDeploymentDelete) SetRetryCount(v int32)` + +SetRetryCount sets RetryCount field to given value. + + +### GetSalesCreatedDate + +`func (o *DocDeploymentDelete) GetSalesCreatedDate() time.Time` + +GetSalesCreatedDate returns the SalesCreatedDate field if non-nil, zero value otherwise. + +### GetSalesCreatedDateOk + +`func (o *DocDeploymentDelete) GetSalesCreatedDateOk() (*time.Time, bool)` + +GetSalesCreatedDateOk returns a tuple with the SalesCreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesCreatedDate + +`func (o *DocDeploymentDelete) SetSalesCreatedDate(v time.Time)` + +SetSalesCreatedDate sets SalesCreatedDate field to given value. + +### HasSalesCreatedDate + +`func (o *DocDeploymentDelete) HasSalesCreatedDate() bool` + +HasSalesCreatedDate returns a boolean if a field has been set. + +### SetSalesCreatedDateNil + +`func (o *DocDeploymentDelete) SetSalesCreatedDateNil(b bool)` + + SetSalesCreatedDateNil sets the value for SalesCreatedDate to be an explicit nil + +### UnsetSalesCreatedDate +`func (o *DocDeploymentDelete) UnsetSalesCreatedDate()` + +UnsetSalesCreatedDate ensures that no value is present for SalesCreatedDate, not even an explicit nil +### GetSalesId + +`func (o *DocDeploymentDelete) GetSalesId() string` + +GetSalesId returns the SalesId field if non-nil, zero value otherwise. + +### GetSalesIdOk + +`func (o *DocDeploymentDelete) GetSalesIdOk() (*string, bool)` + +GetSalesIdOk returns a tuple with the SalesId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesId + +`func (o *DocDeploymentDelete) SetSalesId(v string)` + +SetSalesId sets SalesId field to given value. + +### HasSalesId + +`func (o *DocDeploymentDelete) HasSalesId() bool` + +HasSalesId returns a boolean if a field has been set. + +### SetSalesIdNil + +`func (o *DocDeploymentDelete) SetSalesIdNil(b bool)` + + SetSalesIdNil sets the value for SalesId to be an explicit nil + +### UnsetSalesId +`func (o *DocDeploymentDelete) UnsetSalesId()` + +UnsetSalesId ensures that no value is present for SalesId, not even an explicit nil +### GetSalesOwnerEmail + +`func (o *DocDeploymentDelete) GetSalesOwnerEmail() string` + +GetSalesOwnerEmail returns the SalesOwnerEmail field if non-nil, zero value otherwise. + +### GetSalesOwnerEmailOk + +`func (o *DocDeploymentDelete) GetSalesOwnerEmailOk() (*string, bool)` + +GetSalesOwnerEmailOk returns a tuple with the SalesOwnerEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesOwnerEmail + +`func (o *DocDeploymentDelete) SetSalesOwnerEmail(v string)` + +SetSalesOwnerEmail sets SalesOwnerEmail field to given value. + +### HasSalesOwnerEmail + +`func (o *DocDeploymentDelete) HasSalesOwnerEmail() bool` + +HasSalesOwnerEmail returns a boolean if a field has been set. + +### SetSalesOwnerEmailNil + +`func (o *DocDeploymentDelete) SetSalesOwnerEmailNil(b bool)` + + SetSalesOwnerEmailNil sets the value for SalesOwnerEmail to be an explicit nil + +### UnsetSalesOwnerEmail +`func (o *DocDeploymentDelete) UnsetSalesOwnerEmail()` + +UnsetSalesOwnerEmail ensures that no value is present for SalesOwnerEmail, not even an explicit nil +### GetSalesOwnerName + +`func (o *DocDeploymentDelete) GetSalesOwnerName() string` + +GetSalesOwnerName returns the SalesOwnerName field if non-nil, zero value otherwise. + +### GetSalesOwnerNameOk + +`func (o *DocDeploymentDelete) GetSalesOwnerNameOk() (*string, bool)` + +GetSalesOwnerNameOk returns a tuple with the SalesOwnerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSalesOwnerName + +`func (o *DocDeploymentDelete) SetSalesOwnerName(v string)` + +SetSalesOwnerName sets SalesOwnerName field to given value. + +### HasSalesOwnerName + +`func (o *DocDeploymentDelete) HasSalesOwnerName() bool` + +HasSalesOwnerName returns a boolean if a field has been set. + +### SetSalesOwnerNameNil + +`func (o *DocDeploymentDelete) SetSalesOwnerNameNil(b bool)` + + SetSalesOwnerNameNil sets the value for SalesOwnerName to be an explicit nil + +### UnsetSalesOwnerName +`func (o *DocDeploymentDelete) UnsetSalesOwnerName()` + +UnsetSalesOwnerName ensures that no value is present for SalesOwnerName, not even an explicit nil +### GetServices + +`func (o *DocDeploymentDelete) GetServices() []string` + +GetServices returns the Services field if non-nil, zero value otherwise. + +### GetServicesOk + +`func (o *DocDeploymentDelete) GetServicesOk() (*[]string, bool)` + +GetServicesOk returns a tuple with the Services field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServices + +`func (o *DocDeploymentDelete) SetServices(v []string)` + +SetServices sets Services field to given value. + + +### GetSshPort + +`func (o *DocDeploymentDelete) GetSshPort() int32` + +GetSshPort returns the SshPort field if non-nil, zero value otherwise. + +### GetSshPortOk + +`func (o *DocDeploymentDelete) GetSshPortOk() (*int32, bool)` + +GetSshPortOk returns a tuple with the SshPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshPort + +`func (o *DocDeploymentDelete) SetSshPort(v int32)` + +SetSshPort sets SshPort field to given value. + + +### GetSshUser + +`func (o *DocDeploymentDelete) GetSshUser() string` + +GetSshUser returns the SshUser field if non-nil, zero value otherwise. + +### GetSshUserOk + +`func (o *DocDeploymentDelete) GetSshUserOk() (*string, bool)` + +GetSshUserOk returns a tuple with the SshUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshUser + +`func (o *DocDeploymentDelete) SetSshUser(v string)` + +SetSshUser sets SshUser field to given value. + + +### GetState + +`func (o *DocDeploymentDelete) GetState() DeploymentState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *DocDeploymentDelete) GetStateOk() (*DeploymentState, 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 *DocDeploymentDelete) SetState(v DeploymentState)` + +SetState sets State field to given value. + + +### GetTags + +`func (o *DocDeploymentDelete) GetTags() interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DocDeploymentDelete) GetTagsOk() (*interface{}, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *DocDeploymentDelete) SetTags(v interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DocDeploymentDelete) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### SetTagsNil + +`func (o *DocDeploymentDelete) SetTagsNil(b bool)` + + SetTagsNil sets the value for Tags to be an explicit nil + +### UnsetTags +`func (o *DocDeploymentDelete) UnsetTags()` + +UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetWorkshop + +`func (o *DocDeploymentDelete) GetWorkshop() bool` + +GetWorkshop returns the Workshop field if non-nil, zero value otherwise. + +### GetWorkshopOk + +`func (o *DocDeploymentDelete) GetWorkshopOk() (*bool, bool)` + +GetWorkshopOk returns a tuple with the Workshop field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshop + +`func (o *DocDeploymentDelete) SetWorkshop(v bool)` + +SetWorkshop sets Workshop field to given value. + +### HasWorkshop + +`func (o *DocDeploymentDelete) HasWorkshop() bool` + +HasWorkshop returns a boolean if a field has been set. + +### SetWorkshopNil + +`func (o *DocDeploymentDelete) SetWorkshopNil(b bool)` + + SetWorkshopNil sets the value for Workshop to be an explicit nil + +### UnsetWorkshop +`func (o *DocDeploymentDelete) UnsetWorkshop()` + +UnsetWorkshop ensures that no value is present for Workshop, not even an explicit nil +### GetWorkshopId + +`func (o *DocDeploymentDelete) GetWorkshopId() string` + +GetWorkshopId returns the WorkshopId field if non-nil, zero value otherwise. + +### GetWorkshopIdOk + +`func (o *DocDeploymentDelete) GetWorkshopIdOk() (*string, bool)` + +GetWorkshopIdOk returns a tuple with the WorkshopId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshopId + +`func (o *DocDeploymentDelete) SetWorkshopId(v string)` + +SetWorkshopId sets WorkshopId field to given value. + +### HasWorkshopId + +`func (o *DocDeploymentDelete) HasWorkshopId() bool` + +HasWorkshopId returns a boolean if a field has been set. + +### SetWorkshopIdNil + +`func (o *DocDeploymentDelete) SetWorkshopIdNil(b bool)` + + SetWorkshopIdNil sets the value for WorkshopId to be an explicit nil + +### UnsetWorkshopId +`func (o *DocDeploymentDelete) UnsetWorkshopId()` + +UnsetWorkshopId ensures that no value is present for WorkshopId, not even an explicit nil +### GetWorkshopOverridePassword + +`func (o *DocDeploymentDelete) GetWorkshopOverridePassword() string` + +GetWorkshopOverridePassword returns the WorkshopOverridePassword field if non-nil, zero value otherwise. + +### GetWorkshopOverridePasswordOk + +`func (o *DocDeploymentDelete) GetWorkshopOverridePasswordOk() (*string, bool)` + +GetWorkshopOverridePasswordOk returns a tuple with the WorkshopOverridePassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshopOverridePassword + +`func (o *DocDeploymentDelete) SetWorkshopOverridePassword(v string)` + +SetWorkshopOverridePassword sets WorkshopOverridePassword field to given value. + +### HasWorkshopOverridePassword + +`func (o *DocDeploymentDelete) HasWorkshopOverridePassword() bool` + +HasWorkshopOverridePassword returns a boolean if a field has been set. + +### SetWorkshopOverridePasswordNil + +`func (o *DocDeploymentDelete) SetWorkshopOverridePasswordNil(b bool)` + + SetWorkshopOverridePasswordNil sets the value for WorkshopOverridePassword to be an explicit nil + +### UnsetWorkshopOverridePassword +`func (o *DocDeploymentDelete) UnsetWorkshopOverridePassword()` + +UnsetWorkshopOverridePassword ensures that no value is present for WorkshopOverridePassword, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/Experience.md b/v1/providers/launchpad/gen/launchpad/docs/Experience.md new file mode 100644 index 0000000..c35794b --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/Experience.md @@ -0,0 +1,944 @@ +# Experience + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Assignee** | Pointer to **NullableString** | User ID who is responsible for manual provisioning | [optional] +**Autoapprove** | Pointer to **bool** | Can the experience be provisioned without human approval? | [optional] +**Autoprovision** | Pointer to **bool** | Can the experience be provisioned without human intervention? | [optional] +**Bootstrap** | Pointer to **bool** | Can this experience be used to bootstrap another compatible experience? | [optional] +**CatalogId** | **string** | Unique ID for this experience in the sales catalog. Must be unique. | +**CatalogIdAlias** | Pointer to **NullableString** | Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique. | [optional] +**Category** | [**CategoryEnum**](CategoryEnum.md) | Functional group that this experience is targetting * `AI` - AI * `Clara` - Clara * `Data Science` - Data Science * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation * `Developer` - Developer * `Infrastructure Optimization` - Infrastructure Optimization | +**CollectionBranch** | Pointer to **string** | Ansible collection branch initialized within the pipeline | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Description** | Pointer to **NullableString** | | [optional] +**Experience** | **string** | Experience name slug | +**ExperienceBranch** | Pointer to **string** | Experience branch name used during deployment (default: origin/main) | [optional] +**FcPlatform** | Pointer to [**NullableFcPlatformEnum**](FcPlatformEnum.md) | | [optional] +**FcSupport** | Pointer to **bool** | Does the experience support Flight Control? | [optional] +**GarageId** | Pointer to **NullableString** | ID of the garage where nodes for this experience should be selected from | [optional] +**GcBranch** | Pointer to **string** | Ground Control branch name (default: main) | [optional] +**GpuCount** | Pointer to **int32** | Number of GPUs used | [optional] +**GpuOs** | [**GpuOs**](GpuOs.md) | | +**Id** | **string** | | [readonly] +**InactivityMax** | Pointer to **int32** | Number of days without user interaction before the experience is torn down (default: 3) | [optional] +**Lifetime** | Pointer to **NullableInt32** | Default number of days a provisioned experience should remain active (default: 3). A null lifetime will cause a deployment to remain active indefinitely. | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**NodeCount** | Pointer to **int32** | Number of Nodes used | [optional] +**Persona** | **string** | | +**Pipeline** | **int64** | Pipeline ID used for provisioning | +**Platform** | [**PlatformEnum**](PlatformEnum.md) | Base platform that the experience will be provisioned onto * `air` - NVIDIA Air * `flight_deck` - Flight Deck * `kvm_bastion` - KVM Bastion * `lp-vmware-platform` - lp-vmware-platform * `minimal` - minimal * `openshift` - OpenShift * `vsphere` - vSphere * `vsphere_horizon` - VMware Horizon * `vsphere7` - vSphere 7 * `vsphere8` - vSphere 8 | +**Provider** | Pointer to **NullableString** | If set, the experience must be provisioned to the given provider | [optional] +**Published** | Pointer to [**PublishedEnum**](PublishedEnum.md) | Is the experience published for use? * `draft` - draft * `no` - no * `yes` - yes | [optional] +**Repo** | Pointer to **NullableString** | URL of the repository for provisioning automation | [optional] +**RequiredGpus** | Pointer to **[]string** | If set, the experience must be provisioned using one of the given GPU types. GPU requirements are evaluated in the order they are set (ex: [\"{l40s_gpu_uuid}\", \"{a100_gpu_uuid}\"] will prefer an l40s). | [optional] +**SaLab** | Pointer to **bool** | Is this a persistent experience for SAs? | [optional] +**SystemArch** | [**SystemArchEnum**](SystemArchEnum.md) | Required CPU architecture * `amd64` - amd64 * `arm64` - arm64 | +**Title** | **string** | | +**VgpuProfile** | Pointer to [**NullableVgpuProfileEnum**](VgpuProfileEnum.md) | | [optional] + +## Methods + +### NewExperience + +`func NewExperience(catalogId string, category CategoryEnum, created time.Time, experience string, gpuOs GpuOs, id string, modified time.Time, persona string, pipeline int64, platform PlatformEnum, systemArch SystemArchEnum, title string, ) *Experience` + +NewExperience instantiates a new Experience 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 + +### NewExperienceWithDefaults + +`func NewExperienceWithDefaults() *Experience` + +NewExperienceWithDefaults instantiates a new Experience 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 + +### GetAssignee + +`func (o *Experience) GetAssignee() string` + +GetAssignee returns the Assignee field if non-nil, zero value otherwise. + +### GetAssigneeOk + +`func (o *Experience) GetAssigneeOk() (*string, bool)` + +GetAssigneeOk returns a tuple with the Assignee field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignee + +`func (o *Experience) SetAssignee(v string)` + +SetAssignee sets Assignee field to given value. + +### HasAssignee + +`func (o *Experience) HasAssignee() bool` + +HasAssignee returns a boolean if a field has been set. + +### SetAssigneeNil + +`func (o *Experience) SetAssigneeNil(b bool)` + + SetAssigneeNil sets the value for Assignee to be an explicit nil + +### UnsetAssignee +`func (o *Experience) UnsetAssignee()` + +UnsetAssignee ensures that no value is present for Assignee, not even an explicit nil +### GetAutoapprove + +`func (o *Experience) GetAutoapprove() bool` + +GetAutoapprove returns the Autoapprove field if non-nil, zero value otherwise. + +### GetAutoapproveOk + +`func (o *Experience) GetAutoapproveOk() (*bool, bool)` + +GetAutoapproveOk returns a tuple with the Autoapprove field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoapprove + +`func (o *Experience) SetAutoapprove(v bool)` + +SetAutoapprove sets Autoapprove field to given value. + +### HasAutoapprove + +`func (o *Experience) HasAutoapprove() bool` + +HasAutoapprove returns a boolean if a field has been set. + +### GetAutoprovision + +`func (o *Experience) GetAutoprovision() bool` + +GetAutoprovision returns the Autoprovision field if non-nil, zero value otherwise. + +### GetAutoprovisionOk + +`func (o *Experience) GetAutoprovisionOk() (*bool, bool)` + +GetAutoprovisionOk returns a tuple with the Autoprovision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoprovision + +`func (o *Experience) SetAutoprovision(v bool)` + +SetAutoprovision sets Autoprovision field to given value. + +### HasAutoprovision + +`func (o *Experience) HasAutoprovision() bool` + +HasAutoprovision returns a boolean if a field has been set. + +### GetBootstrap + +`func (o *Experience) GetBootstrap() bool` + +GetBootstrap returns the Bootstrap field if non-nil, zero value otherwise. + +### GetBootstrapOk + +`func (o *Experience) GetBootstrapOk() (*bool, bool)` + +GetBootstrapOk returns a tuple with the Bootstrap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBootstrap + +`func (o *Experience) SetBootstrap(v bool)` + +SetBootstrap sets Bootstrap field to given value. + +### HasBootstrap + +`func (o *Experience) HasBootstrap() bool` + +HasBootstrap returns a boolean if a field has been set. + +### GetCatalogId + +`func (o *Experience) GetCatalogId() string` + +GetCatalogId returns the CatalogId field if non-nil, zero value otherwise. + +### GetCatalogIdOk + +`func (o *Experience) GetCatalogIdOk() (*string, bool)` + +GetCatalogIdOk returns a tuple with the CatalogId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogId + +`func (o *Experience) SetCatalogId(v string)` + +SetCatalogId sets CatalogId field to given value. + + +### GetCatalogIdAlias + +`func (o *Experience) GetCatalogIdAlias() string` + +GetCatalogIdAlias returns the CatalogIdAlias field if non-nil, zero value otherwise. + +### GetCatalogIdAliasOk + +`func (o *Experience) GetCatalogIdAliasOk() (*string, bool)` + +GetCatalogIdAliasOk returns a tuple with the CatalogIdAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogIdAlias + +`func (o *Experience) SetCatalogIdAlias(v string)` + +SetCatalogIdAlias sets CatalogIdAlias field to given value. + +### HasCatalogIdAlias + +`func (o *Experience) HasCatalogIdAlias() bool` + +HasCatalogIdAlias returns a boolean if a field has been set. + +### SetCatalogIdAliasNil + +`func (o *Experience) SetCatalogIdAliasNil(b bool)` + + SetCatalogIdAliasNil sets the value for CatalogIdAlias to be an explicit nil + +### UnsetCatalogIdAlias +`func (o *Experience) UnsetCatalogIdAlias()` + +UnsetCatalogIdAlias ensures that no value is present for CatalogIdAlias, not even an explicit nil +### GetCategory + +`func (o *Experience) GetCategory() CategoryEnum` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *Experience) GetCategoryOk() (*CategoryEnum, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *Experience) SetCategory(v CategoryEnum)` + +SetCategory sets Category field to given value. + + +### GetCollectionBranch + +`func (o *Experience) GetCollectionBranch() string` + +GetCollectionBranch returns the CollectionBranch field if non-nil, zero value otherwise. + +### GetCollectionBranchOk + +`func (o *Experience) GetCollectionBranchOk() (*string, bool)` + +GetCollectionBranchOk returns a tuple with the CollectionBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionBranch + +`func (o *Experience) SetCollectionBranch(v string)` + +SetCollectionBranch sets CollectionBranch field to given value. + +### HasCollectionBranch + +`func (o *Experience) HasCollectionBranch() bool` + +HasCollectionBranch returns a boolean if a field has been set. + +### GetCreated + +`func (o *Experience) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Experience) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Experience) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetDescription + +`func (o *Experience) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Experience) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Experience) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Experience) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *Experience) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *Experience) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetExperience + +`func (o *Experience) GetExperience() string` + +GetExperience returns the Experience field if non-nil, zero value otherwise. + +### GetExperienceOk + +`func (o *Experience) GetExperienceOk() (*string, bool)` + +GetExperienceOk returns a tuple with the Experience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperience + +`func (o *Experience) SetExperience(v string)` + +SetExperience sets Experience field to given value. + + +### GetExperienceBranch + +`func (o *Experience) GetExperienceBranch() string` + +GetExperienceBranch returns the ExperienceBranch field if non-nil, zero value otherwise. + +### GetExperienceBranchOk + +`func (o *Experience) GetExperienceBranchOk() (*string, bool)` + +GetExperienceBranchOk returns a tuple with the ExperienceBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperienceBranch + +`func (o *Experience) SetExperienceBranch(v string)` + +SetExperienceBranch sets ExperienceBranch field to given value. + +### HasExperienceBranch + +`func (o *Experience) HasExperienceBranch() bool` + +HasExperienceBranch returns a boolean if a field has been set. + +### GetFcPlatform + +`func (o *Experience) GetFcPlatform() FcPlatformEnum` + +GetFcPlatform returns the FcPlatform field if non-nil, zero value otherwise. + +### GetFcPlatformOk + +`func (o *Experience) GetFcPlatformOk() (*FcPlatformEnum, bool)` + +GetFcPlatformOk returns a tuple with the FcPlatform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFcPlatform + +`func (o *Experience) SetFcPlatform(v FcPlatformEnum)` + +SetFcPlatform sets FcPlatform field to given value. + +### HasFcPlatform + +`func (o *Experience) HasFcPlatform() bool` + +HasFcPlatform returns a boolean if a field has been set. + +### SetFcPlatformNil + +`func (o *Experience) SetFcPlatformNil(b bool)` + + SetFcPlatformNil sets the value for FcPlatform to be an explicit nil + +### UnsetFcPlatform +`func (o *Experience) UnsetFcPlatform()` + +UnsetFcPlatform ensures that no value is present for FcPlatform, not even an explicit nil +### GetFcSupport + +`func (o *Experience) GetFcSupport() bool` + +GetFcSupport returns the FcSupport field if non-nil, zero value otherwise. + +### GetFcSupportOk + +`func (o *Experience) GetFcSupportOk() (*bool, bool)` + +GetFcSupportOk returns a tuple with the FcSupport field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFcSupport + +`func (o *Experience) SetFcSupport(v bool)` + +SetFcSupport sets FcSupport field to given value. + +### HasFcSupport + +`func (o *Experience) HasFcSupport() bool` + +HasFcSupport returns a boolean if a field has been set. + +### GetGarageId + +`func (o *Experience) GetGarageId() string` + +GetGarageId returns the GarageId field if non-nil, zero value otherwise. + +### GetGarageIdOk + +`func (o *Experience) GetGarageIdOk() (*string, bool)` + +GetGarageIdOk returns a tuple with the GarageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGarageId + +`func (o *Experience) SetGarageId(v string)` + +SetGarageId sets GarageId field to given value. + +### HasGarageId + +`func (o *Experience) HasGarageId() bool` + +HasGarageId returns a boolean if a field has been set. + +### SetGarageIdNil + +`func (o *Experience) SetGarageIdNil(b bool)` + + SetGarageIdNil sets the value for GarageId to be an explicit nil + +### UnsetGarageId +`func (o *Experience) UnsetGarageId()` + +UnsetGarageId ensures that no value is present for GarageId, not even an explicit nil +### GetGcBranch + +`func (o *Experience) GetGcBranch() string` + +GetGcBranch returns the GcBranch field if non-nil, zero value otherwise. + +### GetGcBranchOk + +`func (o *Experience) GetGcBranchOk() (*string, bool)` + +GetGcBranchOk returns a tuple with the GcBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcBranch + +`func (o *Experience) SetGcBranch(v string)` + +SetGcBranch sets GcBranch field to given value. + +### HasGcBranch + +`func (o *Experience) HasGcBranch() bool` + +HasGcBranch returns a boolean if a field has been set. + +### GetGpuCount + +`func (o *Experience) GetGpuCount() int32` + +GetGpuCount returns the GpuCount field if non-nil, zero value otherwise. + +### GetGpuCountOk + +`func (o *Experience) GetGpuCountOk() (*int32, bool)` + +GetGpuCountOk returns a tuple with the GpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuCount + +`func (o *Experience) SetGpuCount(v int32)` + +SetGpuCount sets GpuCount field to given value. + +### HasGpuCount + +`func (o *Experience) HasGpuCount() bool` + +HasGpuCount returns a boolean if a field has been set. + +### GetGpuOs + +`func (o *Experience) GetGpuOs() GpuOs` + +GetGpuOs returns the GpuOs field if non-nil, zero value otherwise. + +### GetGpuOsOk + +`func (o *Experience) GetGpuOsOk() (*GpuOs, bool)` + +GetGpuOsOk returns a tuple with the GpuOs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOs + +`func (o *Experience) SetGpuOs(v GpuOs)` + +SetGpuOs sets GpuOs field to given value. + + +### GetId + +`func (o *Experience) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Experience) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Experience) SetId(v string)` + +SetId sets Id field to given value. + + +### GetInactivityMax + +`func (o *Experience) GetInactivityMax() int32` + +GetInactivityMax returns the InactivityMax field if non-nil, zero value otherwise. + +### GetInactivityMaxOk + +`func (o *Experience) GetInactivityMaxOk() (*int32, bool)` + +GetInactivityMaxOk returns a tuple with the InactivityMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInactivityMax + +`func (o *Experience) SetInactivityMax(v int32)` + +SetInactivityMax sets InactivityMax field to given value. + +### HasInactivityMax + +`func (o *Experience) HasInactivityMax() bool` + +HasInactivityMax returns a boolean if a field has been set. + +### GetLifetime + +`func (o *Experience) GetLifetime() int32` + +GetLifetime returns the Lifetime field if non-nil, zero value otherwise. + +### GetLifetimeOk + +`func (o *Experience) GetLifetimeOk() (*int32, bool)` + +GetLifetimeOk returns a tuple with the Lifetime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifetime + +`func (o *Experience) SetLifetime(v int32)` + +SetLifetime sets Lifetime field to given value. + +### HasLifetime + +`func (o *Experience) HasLifetime() bool` + +HasLifetime returns a boolean if a field has been set. + +### SetLifetimeNil + +`func (o *Experience) SetLifetimeNil(b bool)` + + SetLifetimeNil sets the value for Lifetime to be an explicit nil + +### UnsetLifetime +`func (o *Experience) UnsetLifetime()` + +UnsetLifetime ensures that no value is present for Lifetime, not even an explicit nil +### GetModified + +`func (o *Experience) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *Experience) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *Experience) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNodeCount + +`func (o *Experience) GetNodeCount() int32` + +GetNodeCount returns the NodeCount field if non-nil, zero value otherwise. + +### GetNodeCountOk + +`func (o *Experience) 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 *Experience) SetNodeCount(v int32)` + +SetNodeCount sets NodeCount field to given value. + +### HasNodeCount + +`func (o *Experience) HasNodeCount() bool` + +HasNodeCount returns a boolean if a field has been set. + +### GetPersona + +`func (o *Experience) GetPersona() string` + +GetPersona returns the Persona field if non-nil, zero value otherwise. + +### GetPersonaOk + +`func (o *Experience) GetPersonaOk() (*string, bool)` + +GetPersonaOk returns a tuple with the Persona field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersona + +`func (o *Experience) SetPersona(v string)` + +SetPersona sets Persona field to given value. + + +### GetPipeline + +`func (o *Experience) GetPipeline() int64` + +GetPipeline returns the Pipeline field if non-nil, zero value otherwise. + +### GetPipelineOk + +`func (o *Experience) GetPipelineOk() (*int64, bool)` + +GetPipelineOk returns a tuple with the Pipeline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipeline + +`func (o *Experience) SetPipeline(v int64)` + +SetPipeline sets Pipeline field to given value. + + +### GetPlatform + +`func (o *Experience) GetPlatform() PlatformEnum` + +GetPlatform returns the Platform field if non-nil, zero value otherwise. + +### GetPlatformOk + +`func (o *Experience) GetPlatformOk() (*PlatformEnum, bool)` + +GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatform + +`func (o *Experience) SetPlatform(v PlatformEnum)` + +SetPlatform sets Platform field to given value. + + +### GetProvider + +`func (o *Experience) GetProvider() string` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *Experience) GetProviderOk() (*string, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *Experience) SetProvider(v string)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *Experience) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + +### SetProviderNil + +`func (o *Experience) SetProviderNil(b bool)` + + SetProviderNil sets the value for Provider to be an explicit nil + +### UnsetProvider +`func (o *Experience) UnsetProvider()` + +UnsetProvider ensures that no value is present for Provider, not even an explicit nil +### GetPublished + +`func (o *Experience) GetPublished() PublishedEnum` + +GetPublished returns the Published field if non-nil, zero value otherwise. + +### GetPublishedOk + +`func (o *Experience) GetPublishedOk() (*PublishedEnum, bool)` + +GetPublishedOk returns a tuple with the Published field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublished + +`func (o *Experience) SetPublished(v PublishedEnum)` + +SetPublished sets Published field to given value. + +### HasPublished + +`func (o *Experience) HasPublished() bool` + +HasPublished returns a boolean if a field has been set. + +### GetRepo + +`func (o *Experience) GetRepo() string` + +GetRepo returns the Repo field if non-nil, zero value otherwise. + +### GetRepoOk + +`func (o *Experience) GetRepoOk() (*string, bool)` + +GetRepoOk returns a tuple with the Repo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepo + +`func (o *Experience) SetRepo(v string)` + +SetRepo sets Repo field to given value. + +### HasRepo + +`func (o *Experience) HasRepo() bool` + +HasRepo returns a boolean if a field has been set. + +### SetRepoNil + +`func (o *Experience) SetRepoNil(b bool)` + + SetRepoNil sets the value for Repo to be an explicit nil + +### UnsetRepo +`func (o *Experience) UnsetRepo()` + +UnsetRepo ensures that no value is present for Repo, not even an explicit nil +### GetRequiredGpus + +`func (o *Experience) GetRequiredGpus() []string` + +GetRequiredGpus returns the RequiredGpus field if non-nil, zero value otherwise. + +### GetRequiredGpusOk + +`func (o *Experience) GetRequiredGpusOk() (*[]string, bool)` + +GetRequiredGpusOk returns a tuple with the RequiredGpus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredGpus + +`func (o *Experience) SetRequiredGpus(v []string)` + +SetRequiredGpus sets RequiredGpus field to given value. + +### HasRequiredGpus + +`func (o *Experience) HasRequiredGpus() bool` + +HasRequiredGpus returns a boolean if a field has been set. + +### GetSaLab + +`func (o *Experience) GetSaLab() bool` + +GetSaLab returns the SaLab field if non-nil, zero value otherwise. + +### GetSaLabOk + +`func (o *Experience) GetSaLabOk() (*bool, bool)` + +GetSaLabOk returns a tuple with the SaLab field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaLab + +`func (o *Experience) SetSaLab(v bool)` + +SetSaLab sets SaLab field to given value. + +### HasSaLab + +`func (o *Experience) HasSaLab() bool` + +HasSaLab returns a boolean if a field has been set. + +### GetSystemArch + +`func (o *Experience) GetSystemArch() SystemArchEnum` + +GetSystemArch returns the SystemArch field if non-nil, zero value otherwise. + +### GetSystemArchOk + +`func (o *Experience) GetSystemArchOk() (*SystemArchEnum, bool)` + +GetSystemArchOk returns a tuple with the SystemArch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemArch + +`func (o *Experience) SetSystemArch(v SystemArchEnum)` + +SetSystemArch sets SystemArch field to given value. + + +### GetTitle + +`func (o *Experience) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *Experience) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *Experience) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetVgpuProfile + +`func (o *Experience) GetVgpuProfile() VgpuProfileEnum` + +GetVgpuProfile returns the VgpuProfile field if non-nil, zero value otherwise. + +### GetVgpuProfileOk + +`func (o *Experience) GetVgpuProfileOk() (*VgpuProfileEnum, bool)` + +GetVgpuProfileOk returns a tuple with the VgpuProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVgpuProfile + +`func (o *Experience) SetVgpuProfile(v VgpuProfileEnum)` + +SetVgpuProfile sets VgpuProfile field to given value. + +### HasVgpuProfile + +`func (o *Experience) HasVgpuProfile() bool` + +HasVgpuProfile returns a boolean if a field has been set. + +### SetVgpuProfileNil + +`func (o *Experience) SetVgpuProfileNil(b bool)` + + SetVgpuProfileNil sets the value for VgpuProfile to be an explicit nil + +### UnsetVgpuProfile +`func (o *Experience) UnsetVgpuProfile()` + +UnsetVgpuProfile ensures that no value is present for VgpuProfile, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/ExperienceBulk.md b/v1/providers/launchpad/gen/launchpad/docs/ExperienceBulk.md new file mode 100644 index 0000000..f3b3c59 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/ExperienceBulk.md @@ -0,0 +1,72 @@ +# ExperienceBulk + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CsvFile** | **string** | | +**Experiences** | [**[]Experience**](Experience.md) | | + +## Methods + +### NewExperienceBulk + +`func NewExperienceBulk(csvFile string, experiences []Experience, ) *ExperienceBulk` + +NewExperienceBulk instantiates a new ExperienceBulk 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 + +### NewExperienceBulkWithDefaults + +`func NewExperienceBulkWithDefaults() *ExperienceBulk` + +NewExperienceBulkWithDefaults instantiates a new ExperienceBulk 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 + +### GetCsvFile + +`func (o *ExperienceBulk) GetCsvFile() string` + +GetCsvFile returns the CsvFile field if non-nil, zero value otherwise. + +### GetCsvFileOk + +`func (o *ExperienceBulk) GetCsvFileOk() (*string, bool)` + +GetCsvFileOk returns a tuple with the CsvFile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCsvFile + +`func (o *ExperienceBulk) SetCsvFile(v string)` + +SetCsvFile sets CsvFile field to given value. + + +### GetExperiences + +`func (o *ExperienceBulk) GetExperiences() []Experience` + +GetExperiences returns the Experiences field if non-nil, zero value otherwise. + +### GetExperiencesOk + +`func (o *ExperienceBulk) GetExperiencesOk() (*[]Experience, bool)` + +GetExperiencesOk returns a tuple with the Experiences field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperiences + +`func (o *ExperienceBulk) SetExperiences(v []Experience)` + +SetExperiences sets Experiences field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/ExperienceBulkUpdate.md b/v1/providers/launchpad/gen/launchpad/docs/ExperienceBulkUpdate.md new file mode 100644 index 0000000..cf63470 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/ExperienceBulkUpdate.md @@ -0,0 +1,1002 @@ +# ExperienceBulkUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Assignee** | Pointer to **NullableString** | User ID who is responsible for manual provisioning | [optional] +**Autoapprove** | Pointer to **bool** | Can the experience be provisioned without human approval? | [optional] +**Autoprovision** | Pointer to **bool** | Can the experience be provisioned without human intervention? | [optional] +**Bootstrap** | Pointer to **bool** | Can this experience be used to bootstrap another compatible experience? | [optional] +**CatalogId** | **string** | Unique ID for this experience in the sales catalog. Must be unique. | [readonly] +**CatalogIdAlias** | **NullableString** | Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique. | [readonly] +**Category** | [**CategoryEnum**](CategoryEnum.md) | Functional group that this experience is targetting * `AI` - AI * `Clara` - Clara * `Data Science` - Data Science * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation * `Developer` - Developer * `Infrastructure Optimization` - Infrastructure Optimization | +**CollectionBranch** | Pointer to **string** | Ansible collection branch initialized within the pipeline | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Description** | Pointer to **NullableString** | | [optional] +**Experience** | **string** | Experience name slug | +**ExperienceBranch** | Pointer to **string** | Experience branch name used during deployment (default: origin/main) | [optional] +**FcPlatform** | Pointer to [**NullableFcPlatformEnum**](FcPlatformEnum.md) | | [optional] +**FcSupport** | Pointer to **bool** | Does the experience support Flight Control? | [optional] +**GarageId** | Pointer to **NullableString** | ID of the garage where nodes for this experience should be selected from | [optional] +**GcBranch** | Pointer to **string** | Ground Control branch name (default: main) | [optional] +**GpuCount** | Pointer to **int32** | Number of GPUs used | [optional] +**GpuOs** | [**GpuOs**](GpuOs.md) | | +**Id** | **string** | | [readonly] +**InactivityMax** | Pointer to **int32** | Number of days without user interaction before the experience is torn down (default: 3) | [optional] +**Lifetime** | Pointer to **NullableInt32** | Default number of days a provisioned experience should remain active (default: 3). A null lifetime will cause a deployment to remain active indefinitely. | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**NodeCount** | Pointer to **int32** | Number of Nodes used | [optional] +**Persona** | **string** | | +**Pipeline** | **int64** | Pipeline ID used for provisioning | +**Platform** | [**PlatformEnum**](PlatformEnum.md) | Base platform that the experience will be provisioned onto * `air` - NVIDIA Air * `flight_deck` - Flight Deck * `kvm_bastion` - KVM Bastion * `lp-vmware-platform` - lp-vmware-platform * `minimal` - minimal * `openshift` - OpenShift * `vsphere` - vSphere * `vsphere_horizon` - VMware Horizon * `vsphere7` - vSphere 7 * `vsphere8` - vSphere 8 | +**Provider** | Pointer to **NullableString** | If set, the experience must be provisioned to the given provider | [optional] +**Published** | Pointer to [**PublishedEnum**](PublishedEnum.md) | Is the experience published for use? * `draft` - draft * `no` - no * `yes` - yes | [optional] +**Repo** | Pointer to **NullableString** | URL of the repository for provisioning automation | [optional] +**RequiredGpus** | Pointer to **[]string** | If set, the experience must be provisioned using one of the given GPU types. GPU requirements are evaluated in the order they are set (ex: [\"{l40s_gpu_uuid}\", \"{a100_gpu_uuid}\"] will prefer an l40s). | [optional] +**SaLab** | Pointer to **bool** | Is this a persistent experience for SAs? | [optional] +**SystemArch** | [**SystemArchEnum**](SystemArchEnum.md) | Required CPU architecture * `amd64` - amd64 * `arm64` - arm64 | +**Title** | **string** | | +**VgpuProfile** | Pointer to [**NullableVgpuProfileEnum**](VgpuProfileEnum.md) | | [optional] +**Count** | **int32** | | [readonly] +**Ids** | **[]string** | | +**Result** | **string** | | [readonly] + +## Methods + +### NewExperienceBulkUpdate + +`func NewExperienceBulkUpdate(catalogId string, catalogIdAlias NullableString, category CategoryEnum, created time.Time, experience string, gpuOs GpuOs, id string, modified time.Time, persona string, pipeline int64, platform PlatformEnum, systemArch SystemArchEnum, title string, count int32, ids []string, result string, ) *ExperienceBulkUpdate` + +NewExperienceBulkUpdate instantiates a new ExperienceBulkUpdate 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 + +### NewExperienceBulkUpdateWithDefaults + +`func NewExperienceBulkUpdateWithDefaults() *ExperienceBulkUpdate` + +NewExperienceBulkUpdateWithDefaults instantiates a new ExperienceBulkUpdate 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 + +### GetAssignee + +`func (o *ExperienceBulkUpdate) GetAssignee() string` + +GetAssignee returns the Assignee field if non-nil, zero value otherwise. + +### GetAssigneeOk + +`func (o *ExperienceBulkUpdate) GetAssigneeOk() (*string, bool)` + +GetAssigneeOk returns a tuple with the Assignee field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignee + +`func (o *ExperienceBulkUpdate) SetAssignee(v string)` + +SetAssignee sets Assignee field to given value. + +### HasAssignee + +`func (o *ExperienceBulkUpdate) HasAssignee() bool` + +HasAssignee returns a boolean if a field has been set. + +### SetAssigneeNil + +`func (o *ExperienceBulkUpdate) SetAssigneeNil(b bool)` + + SetAssigneeNil sets the value for Assignee to be an explicit nil + +### UnsetAssignee +`func (o *ExperienceBulkUpdate) UnsetAssignee()` + +UnsetAssignee ensures that no value is present for Assignee, not even an explicit nil +### GetAutoapprove + +`func (o *ExperienceBulkUpdate) GetAutoapprove() bool` + +GetAutoapprove returns the Autoapprove field if non-nil, zero value otherwise. + +### GetAutoapproveOk + +`func (o *ExperienceBulkUpdate) GetAutoapproveOk() (*bool, bool)` + +GetAutoapproveOk returns a tuple with the Autoapprove field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoapprove + +`func (o *ExperienceBulkUpdate) SetAutoapprove(v bool)` + +SetAutoapprove sets Autoapprove field to given value. + +### HasAutoapprove + +`func (o *ExperienceBulkUpdate) HasAutoapprove() bool` + +HasAutoapprove returns a boolean if a field has been set. + +### GetAutoprovision + +`func (o *ExperienceBulkUpdate) GetAutoprovision() bool` + +GetAutoprovision returns the Autoprovision field if non-nil, zero value otherwise. + +### GetAutoprovisionOk + +`func (o *ExperienceBulkUpdate) GetAutoprovisionOk() (*bool, bool)` + +GetAutoprovisionOk returns a tuple with the Autoprovision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoprovision + +`func (o *ExperienceBulkUpdate) SetAutoprovision(v bool)` + +SetAutoprovision sets Autoprovision field to given value. + +### HasAutoprovision + +`func (o *ExperienceBulkUpdate) HasAutoprovision() bool` + +HasAutoprovision returns a boolean if a field has been set. + +### GetBootstrap + +`func (o *ExperienceBulkUpdate) GetBootstrap() bool` + +GetBootstrap returns the Bootstrap field if non-nil, zero value otherwise. + +### GetBootstrapOk + +`func (o *ExperienceBulkUpdate) GetBootstrapOk() (*bool, bool)` + +GetBootstrapOk returns a tuple with the Bootstrap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBootstrap + +`func (o *ExperienceBulkUpdate) SetBootstrap(v bool)` + +SetBootstrap sets Bootstrap field to given value. + +### HasBootstrap + +`func (o *ExperienceBulkUpdate) HasBootstrap() bool` + +HasBootstrap returns a boolean if a field has been set. + +### GetCatalogId + +`func (o *ExperienceBulkUpdate) GetCatalogId() string` + +GetCatalogId returns the CatalogId field if non-nil, zero value otherwise. + +### GetCatalogIdOk + +`func (o *ExperienceBulkUpdate) GetCatalogIdOk() (*string, bool)` + +GetCatalogIdOk returns a tuple with the CatalogId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogId + +`func (o *ExperienceBulkUpdate) SetCatalogId(v string)` + +SetCatalogId sets CatalogId field to given value. + + +### GetCatalogIdAlias + +`func (o *ExperienceBulkUpdate) GetCatalogIdAlias() string` + +GetCatalogIdAlias returns the CatalogIdAlias field if non-nil, zero value otherwise. + +### GetCatalogIdAliasOk + +`func (o *ExperienceBulkUpdate) GetCatalogIdAliasOk() (*string, bool)` + +GetCatalogIdAliasOk returns a tuple with the CatalogIdAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogIdAlias + +`func (o *ExperienceBulkUpdate) SetCatalogIdAlias(v string)` + +SetCatalogIdAlias sets CatalogIdAlias field to given value. + + +### SetCatalogIdAliasNil + +`func (o *ExperienceBulkUpdate) SetCatalogIdAliasNil(b bool)` + + SetCatalogIdAliasNil sets the value for CatalogIdAlias to be an explicit nil + +### UnsetCatalogIdAlias +`func (o *ExperienceBulkUpdate) UnsetCatalogIdAlias()` + +UnsetCatalogIdAlias ensures that no value is present for CatalogIdAlias, not even an explicit nil +### GetCategory + +`func (o *ExperienceBulkUpdate) GetCategory() CategoryEnum` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *ExperienceBulkUpdate) GetCategoryOk() (*CategoryEnum, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *ExperienceBulkUpdate) SetCategory(v CategoryEnum)` + +SetCategory sets Category field to given value. + + +### GetCollectionBranch + +`func (o *ExperienceBulkUpdate) GetCollectionBranch() string` + +GetCollectionBranch returns the CollectionBranch field if non-nil, zero value otherwise. + +### GetCollectionBranchOk + +`func (o *ExperienceBulkUpdate) GetCollectionBranchOk() (*string, bool)` + +GetCollectionBranchOk returns a tuple with the CollectionBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionBranch + +`func (o *ExperienceBulkUpdate) SetCollectionBranch(v string)` + +SetCollectionBranch sets CollectionBranch field to given value. + +### HasCollectionBranch + +`func (o *ExperienceBulkUpdate) HasCollectionBranch() bool` + +HasCollectionBranch returns a boolean if a field has been set. + +### GetCreated + +`func (o *ExperienceBulkUpdate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ExperienceBulkUpdate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ExperienceBulkUpdate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetDescription + +`func (o *ExperienceBulkUpdate) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ExperienceBulkUpdate) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ExperienceBulkUpdate) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ExperienceBulkUpdate) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *ExperienceBulkUpdate) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *ExperienceBulkUpdate) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetExperience + +`func (o *ExperienceBulkUpdate) GetExperience() string` + +GetExperience returns the Experience field if non-nil, zero value otherwise. + +### GetExperienceOk + +`func (o *ExperienceBulkUpdate) GetExperienceOk() (*string, bool)` + +GetExperienceOk returns a tuple with the Experience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperience + +`func (o *ExperienceBulkUpdate) SetExperience(v string)` + +SetExperience sets Experience field to given value. + + +### GetExperienceBranch + +`func (o *ExperienceBulkUpdate) GetExperienceBranch() string` + +GetExperienceBranch returns the ExperienceBranch field if non-nil, zero value otherwise. + +### GetExperienceBranchOk + +`func (o *ExperienceBulkUpdate) GetExperienceBranchOk() (*string, bool)` + +GetExperienceBranchOk returns a tuple with the ExperienceBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperienceBranch + +`func (o *ExperienceBulkUpdate) SetExperienceBranch(v string)` + +SetExperienceBranch sets ExperienceBranch field to given value. + +### HasExperienceBranch + +`func (o *ExperienceBulkUpdate) HasExperienceBranch() bool` + +HasExperienceBranch returns a boolean if a field has been set. + +### GetFcPlatform + +`func (o *ExperienceBulkUpdate) GetFcPlatform() FcPlatformEnum` + +GetFcPlatform returns the FcPlatform field if non-nil, zero value otherwise. + +### GetFcPlatformOk + +`func (o *ExperienceBulkUpdate) GetFcPlatformOk() (*FcPlatformEnum, bool)` + +GetFcPlatformOk returns a tuple with the FcPlatform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFcPlatform + +`func (o *ExperienceBulkUpdate) SetFcPlatform(v FcPlatformEnum)` + +SetFcPlatform sets FcPlatform field to given value. + +### HasFcPlatform + +`func (o *ExperienceBulkUpdate) HasFcPlatform() bool` + +HasFcPlatform returns a boolean if a field has been set. + +### SetFcPlatformNil + +`func (o *ExperienceBulkUpdate) SetFcPlatformNil(b bool)` + + SetFcPlatformNil sets the value for FcPlatform to be an explicit nil + +### UnsetFcPlatform +`func (o *ExperienceBulkUpdate) UnsetFcPlatform()` + +UnsetFcPlatform ensures that no value is present for FcPlatform, not even an explicit nil +### GetFcSupport + +`func (o *ExperienceBulkUpdate) GetFcSupport() bool` + +GetFcSupport returns the FcSupport field if non-nil, zero value otherwise. + +### GetFcSupportOk + +`func (o *ExperienceBulkUpdate) GetFcSupportOk() (*bool, bool)` + +GetFcSupportOk returns a tuple with the FcSupport field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFcSupport + +`func (o *ExperienceBulkUpdate) SetFcSupport(v bool)` + +SetFcSupport sets FcSupport field to given value. + +### HasFcSupport + +`func (o *ExperienceBulkUpdate) HasFcSupport() bool` + +HasFcSupport returns a boolean if a field has been set. + +### GetGarageId + +`func (o *ExperienceBulkUpdate) GetGarageId() string` + +GetGarageId returns the GarageId field if non-nil, zero value otherwise. + +### GetGarageIdOk + +`func (o *ExperienceBulkUpdate) GetGarageIdOk() (*string, bool)` + +GetGarageIdOk returns a tuple with the GarageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGarageId + +`func (o *ExperienceBulkUpdate) SetGarageId(v string)` + +SetGarageId sets GarageId field to given value. + +### HasGarageId + +`func (o *ExperienceBulkUpdate) HasGarageId() bool` + +HasGarageId returns a boolean if a field has been set. + +### SetGarageIdNil + +`func (o *ExperienceBulkUpdate) SetGarageIdNil(b bool)` + + SetGarageIdNil sets the value for GarageId to be an explicit nil + +### UnsetGarageId +`func (o *ExperienceBulkUpdate) UnsetGarageId()` + +UnsetGarageId ensures that no value is present for GarageId, not even an explicit nil +### GetGcBranch + +`func (o *ExperienceBulkUpdate) GetGcBranch() string` + +GetGcBranch returns the GcBranch field if non-nil, zero value otherwise. + +### GetGcBranchOk + +`func (o *ExperienceBulkUpdate) GetGcBranchOk() (*string, bool)` + +GetGcBranchOk returns a tuple with the GcBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcBranch + +`func (o *ExperienceBulkUpdate) SetGcBranch(v string)` + +SetGcBranch sets GcBranch field to given value. + +### HasGcBranch + +`func (o *ExperienceBulkUpdate) HasGcBranch() bool` + +HasGcBranch returns a boolean if a field has been set. + +### GetGpuCount + +`func (o *ExperienceBulkUpdate) GetGpuCount() int32` + +GetGpuCount returns the GpuCount field if non-nil, zero value otherwise. + +### GetGpuCountOk + +`func (o *ExperienceBulkUpdate) GetGpuCountOk() (*int32, bool)` + +GetGpuCountOk returns a tuple with the GpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuCount + +`func (o *ExperienceBulkUpdate) SetGpuCount(v int32)` + +SetGpuCount sets GpuCount field to given value. + +### HasGpuCount + +`func (o *ExperienceBulkUpdate) HasGpuCount() bool` + +HasGpuCount returns a boolean if a field has been set. + +### GetGpuOs + +`func (o *ExperienceBulkUpdate) GetGpuOs() GpuOs` + +GetGpuOs returns the GpuOs field if non-nil, zero value otherwise. + +### GetGpuOsOk + +`func (o *ExperienceBulkUpdate) GetGpuOsOk() (*GpuOs, bool)` + +GetGpuOsOk returns a tuple with the GpuOs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuOs + +`func (o *ExperienceBulkUpdate) SetGpuOs(v GpuOs)` + +SetGpuOs sets GpuOs field to given value. + + +### GetId + +`func (o *ExperienceBulkUpdate) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ExperienceBulkUpdate) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ExperienceBulkUpdate) SetId(v string)` + +SetId sets Id field to given value. + + +### GetInactivityMax + +`func (o *ExperienceBulkUpdate) GetInactivityMax() int32` + +GetInactivityMax returns the InactivityMax field if non-nil, zero value otherwise. + +### GetInactivityMaxOk + +`func (o *ExperienceBulkUpdate) GetInactivityMaxOk() (*int32, bool)` + +GetInactivityMaxOk returns a tuple with the InactivityMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInactivityMax + +`func (o *ExperienceBulkUpdate) SetInactivityMax(v int32)` + +SetInactivityMax sets InactivityMax field to given value. + +### HasInactivityMax + +`func (o *ExperienceBulkUpdate) HasInactivityMax() bool` + +HasInactivityMax returns a boolean if a field has been set. + +### GetLifetime + +`func (o *ExperienceBulkUpdate) GetLifetime() int32` + +GetLifetime returns the Lifetime field if non-nil, zero value otherwise. + +### GetLifetimeOk + +`func (o *ExperienceBulkUpdate) GetLifetimeOk() (*int32, bool)` + +GetLifetimeOk returns a tuple with the Lifetime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifetime + +`func (o *ExperienceBulkUpdate) SetLifetime(v int32)` + +SetLifetime sets Lifetime field to given value. + +### HasLifetime + +`func (o *ExperienceBulkUpdate) HasLifetime() bool` + +HasLifetime returns a boolean if a field has been set. + +### SetLifetimeNil + +`func (o *ExperienceBulkUpdate) SetLifetimeNil(b bool)` + + SetLifetimeNil sets the value for Lifetime to be an explicit nil + +### UnsetLifetime +`func (o *ExperienceBulkUpdate) UnsetLifetime()` + +UnsetLifetime ensures that no value is present for Lifetime, not even an explicit nil +### GetModified + +`func (o *ExperienceBulkUpdate) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *ExperienceBulkUpdate) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *ExperienceBulkUpdate) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNodeCount + +`func (o *ExperienceBulkUpdate) GetNodeCount() int32` + +GetNodeCount returns the NodeCount field if non-nil, zero value otherwise. + +### GetNodeCountOk + +`func (o *ExperienceBulkUpdate) 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 *ExperienceBulkUpdate) SetNodeCount(v int32)` + +SetNodeCount sets NodeCount field to given value. + +### HasNodeCount + +`func (o *ExperienceBulkUpdate) HasNodeCount() bool` + +HasNodeCount returns a boolean if a field has been set. + +### GetPersona + +`func (o *ExperienceBulkUpdate) GetPersona() string` + +GetPersona returns the Persona field if non-nil, zero value otherwise. + +### GetPersonaOk + +`func (o *ExperienceBulkUpdate) GetPersonaOk() (*string, bool)` + +GetPersonaOk returns a tuple with the Persona field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersona + +`func (o *ExperienceBulkUpdate) SetPersona(v string)` + +SetPersona sets Persona field to given value. + + +### GetPipeline + +`func (o *ExperienceBulkUpdate) GetPipeline() int64` + +GetPipeline returns the Pipeline field if non-nil, zero value otherwise. + +### GetPipelineOk + +`func (o *ExperienceBulkUpdate) GetPipelineOk() (*int64, bool)` + +GetPipelineOk returns a tuple with the Pipeline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipeline + +`func (o *ExperienceBulkUpdate) SetPipeline(v int64)` + +SetPipeline sets Pipeline field to given value. + + +### GetPlatform + +`func (o *ExperienceBulkUpdate) GetPlatform() PlatformEnum` + +GetPlatform returns the Platform field if non-nil, zero value otherwise. + +### GetPlatformOk + +`func (o *ExperienceBulkUpdate) GetPlatformOk() (*PlatformEnum, bool)` + +GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatform + +`func (o *ExperienceBulkUpdate) SetPlatform(v PlatformEnum)` + +SetPlatform sets Platform field to given value. + + +### GetProvider + +`func (o *ExperienceBulkUpdate) GetProvider() string` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ExperienceBulkUpdate) GetProviderOk() (*string, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *ExperienceBulkUpdate) SetProvider(v string)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *ExperienceBulkUpdate) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + +### SetProviderNil + +`func (o *ExperienceBulkUpdate) SetProviderNil(b bool)` + + SetProviderNil sets the value for Provider to be an explicit nil + +### UnsetProvider +`func (o *ExperienceBulkUpdate) UnsetProvider()` + +UnsetProvider ensures that no value is present for Provider, not even an explicit nil +### GetPublished + +`func (o *ExperienceBulkUpdate) GetPublished() PublishedEnum` + +GetPublished returns the Published field if non-nil, zero value otherwise. + +### GetPublishedOk + +`func (o *ExperienceBulkUpdate) GetPublishedOk() (*PublishedEnum, bool)` + +GetPublishedOk returns a tuple with the Published field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublished + +`func (o *ExperienceBulkUpdate) SetPublished(v PublishedEnum)` + +SetPublished sets Published field to given value. + +### HasPublished + +`func (o *ExperienceBulkUpdate) HasPublished() bool` + +HasPublished returns a boolean if a field has been set. + +### GetRepo + +`func (o *ExperienceBulkUpdate) GetRepo() string` + +GetRepo returns the Repo field if non-nil, zero value otherwise. + +### GetRepoOk + +`func (o *ExperienceBulkUpdate) GetRepoOk() (*string, bool)` + +GetRepoOk returns a tuple with the Repo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepo + +`func (o *ExperienceBulkUpdate) SetRepo(v string)` + +SetRepo sets Repo field to given value. + +### HasRepo + +`func (o *ExperienceBulkUpdate) HasRepo() bool` + +HasRepo returns a boolean if a field has been set. + +### SetRepoNil + +`func (o *ExperienceBulkUpdate) SetRepoNil(b bool)` + + SetRepoNil sets the value for Repo to be an explicit nil + +### UnsetRepo +`func (o *ExperienceBulkUpdate) UnsetRepo()` + +UnsetRepo ensures that no value is present for Repo, not even an explicit nil +### GetRequiredGpus + +`func (o *ExperienceBulkUpdate) GetRequiredGpus() []string` + +GetRequiredGpus returns the RequiredGpus field if non-nil, zero value otherwise. + +### GetRequiredGpusOk + +`func (o *ExperienceBulkUpdate) GetRequiredGpusOk() (*[]string, bool)` + +GetRequiredGpusOk returns a tuple with the RequiredGpus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredGpus + +`func (o *ExperienceBulkUpdate) SetRequiredGpus(v []string)` + +SetRequiredGpus sets RequiredGpus field to given value. + +### HasRequiredGpus + +`func (o *ExperienceBulkUpdate) HasRequiredGpus() bool` + +HasRequiredGpus returns a boolean if a field has been set. + +### GetSaLab + +`func (o *ExperienceBulkUpdate) GetSaLab() bool` + +GetSaLab returns the SaLab field if non-nil, zero value otherwise. + +### GetSaLabOk + +`func (o *ExperienceBulkUpdate) GetSaLabOk() (*bool, bool)` + +GetSaLabOk returns a tuple with the SaLab field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaLab + +`func (o *ExperienceBulkUpdate) SetSaLab(v bool)` + +SetSaLab sets SaLab field to given value. + +### HasSaLab + +`func (o *ExperienceBulkUpdate) HasSaLab() bool` + +HasSaLab returns a boolean if a field has been set. + +### GetSystemArch + +`func (o *ExperienceBulkUpdate) GetSystemArch() SystemArchEnum` + +GetSystemArch returns the SystemArch field if non-nil, zero value otherwise. + +### GetSystemArchOk + +`func (o *ExperienceBulkUpdate) GetSystemArchOk() (*SystemArchEnum, bool)` + +GetSystemArchOk returns a tuple with the SystemArch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemArch + +`func (o *ExperienceBulkUpdate) SetSystemArch(v SystemArchEnum)` + +SetSystemArch sets SystemArch field to given value. + + +### GetTitle + +`func (o *ExperienceBulkUpdate) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ExperienceBulkUpdate) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ExperienceBulkUpdate) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetVgpuProfile + +`func (o *ExperienceBulkUpdate) GetVgpuProfile() VgpuProfileEnum` + +GetVgpuProfile returns the VgpuProfile field if non-nil, zero value otherwise. + +### GetVgpuProfileOk + +`func (o *ExperienceBulkUpdate) GetVgpuProfileOk() (*VgpuProfileEnum, bool)` + +GetVgpuProfileOk returns a tuple with the VgpuProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVgpuProfile + +`func (o *ExperienceBulkUpdate) SetVgpuProfile(v VgpuProfileEnum)` + +SetVgpuProfile sets VgpuProfile field to given value. + +### HasVgpuProfile + +`func (o *ExperienceBulkUpdate) HasVgpuProfile() bool` + +HasVgpuProfile returns a boolean if a field has been set. + +### SetVgpuProfileNil + +`func (o *ExperienceBulkUpdate) SetVgpuProfileNil(b bool)` + + SetVgpuProfileNil sets the value for VgpuProfile to be an explicit nil + +### UnsetVgpuProfile +`func (o *ExperienceBulkUpdate) UnsetVgpuProfile()` + +UnsetVgpuProfile ensures that no value is present for VgpuProfile, not even an explicit nil +### GetCount + +`func (o *ExperienceBulkUpdate) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ExperienceBulkUpdate) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ExperienceBulkUpdate) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetIds + +`func (o *ExperienceBulkUpdate) GetIds() []string` + +GetIds returns the Ids field if non-nil, zero value otherwise. + +### GetIdsOk + +`func (o *ExperienceBulkUpdate) GetIdsOk() (*[]string, bool)` + +GetIdsOk returns a tuple with the Ids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIds + +`func (o *ExperienceBulkUpdate) SetIds(v []string)` + +SetIds sets Ids field to given value. + + +### GetResult + +`func (o *ExperienceBulkUpdate) GetResult() string` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *ExperienceBulkUpdate) GetResultOk() (*string, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *ExperienceBulkUpdate) SetResult(v string)` + +SetResult sets Result field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/ExperienceNote.md b/v1/providers/launchpad/gen/launchpad/docs/ExperienceNote.md new file mode 100644 index 0000000..09ff7a8 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/ExperienceNote.md @@ -0,0 +1,182 @@ +# ExperienceNote + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | Pointer to **string** | Text content of the note | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**CreatedBy** | **string** | | [readonly] +**Experience** | [**DeploymentExperience**](DeploymentExperience.md) | | +**Id** | **string** | | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**ModifiedBy** | **string** | | [readonly] + +## Methods + +### NewExperienceNote + +`func NewExperienceNote(created time.Time, createdBy string, experience DeploymentExperience, id string, modified time.Time, modifiedBy string, ) *ExperienceNote` + +NewExperienceNote instantiates a new ExperienceNote 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 + +### NewExperienceNoteWithDefaults + +`func NewExperienceNoteWithDefaults() *ExperienceNote` + +NewExperienceNoteWithDefaults instantiates a new ExperienceNote 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 + +### GetContent + +`func (o *ExperienceNote) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *ExperienceNote) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *ExperienceNote) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *ExperienceNote) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetCreated + +`func (o *ExperienceNote) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ExperienceNote) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ExperienceNote) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetCreatedBy + +`func (o *ExperienceNote) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *ExperienceNote) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *ExperienceNote) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + + +### GetExperience + +`func (o *ExperienceNote) GetExperience() DeploymentExperience` + +GetExperience returns the Experience field if non-nil, zero value otherwise. + +### GetExperienceOk + +`func (o *ExperienceNote) GetExperienceOk() (*DeploymentExperience, bool)` + +GetExperienceOk returns a tuple with the Experience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExperience + +`func (o *ExperienceNote) SetExperience(v DeploymentExperience)` + +SetExperience sets Experience field to given value. + + +### GetId + +`func (o *ExperienceNote) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ExperienceNote) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ExperienceNote) SetId(v string)` + +SetId sets Id field to given value. + + +### GetModified + +`func (o *ExperienceNote) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *ExperienceNote) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *ExperienceNote) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetModifiedBy + +`func (o *ExperienceNote) GetModifiedBy() string` + +GetModifiedBy returns the ModifiedBy field if non-nil, zero value otherwise. + +### GetModifiedByOk + +`func (o *ExperienceNote) GetModifiedByOk() (*string, bool)` + +GetModifiedByOk returns a tuple with the ModifiedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedBy + +`func (o *ExperienceNote) SetModifiedBy(v string)` + +SetModifiedBy sets ModifiedBy field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/FcPlatformEnum.md b/v1/providers/launchpad/gen/launchpad/docs/FcPlatformEnum.md new file mode 100644 index 0000000..9b0235c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/FcPlatformEnum.md @@ -0,0 +1,13 @@ +# FcPlatformEnum + +## Enum + + +* `FcPlatformDocker` (value: `"docker"`) + +* `FcPlatformK8s` (value: `"k8s"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/Gpu.md b/v1/providers/launchpad/gen/launchpad/docs/Gpu.md new file mode 100644 index 0000000..74683b7 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/Gpu.md @@ -0,0 +1,218 @@ +# Gpu + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**FormFactor** | Pointer to [**InterconnectionTypeEnum**](InterconnectionTypeEnum.md) | GPU form factor * `pcie` - PCIe * `sxm` - SXM | [optional] [default to InterconnectionTypePCIe] +**Id** | **string** | | [readonly] +**Memory** | Pointer to **int32** | Total GPU memory (in GB) | [optional] [default to 0] +**Model** | **string** | GPU model name | +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**NodeCount** | Pointer to **int32** | | [optional] [readonly] +**Priority** | Pointer to **int32** | Weighted preference to use in selecting a GPU for a deployment. A higher priority means the GPU is in higher demand. Lower priority values will be preferred over higher ones during cluster selection. | [optional] + +## Methods + +### NewGpu + +`func NewGpu(created time.Time, id string, model string, modified time.Time, ) *Gpu` + +NewGpu instantiates a new Gpu 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 + +### NewGpuWithDefaults + +`func NewGpuWithDefaults() *Gpu` + +NewGpuWithDefaults instantiates a new Gpu 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 + +### GetCreated + +`func (o *Gpu) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Gpu) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Gpu) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetFormFactor + +`func (o *Gpu) GetFormFactor() InterconnectionTypeEnum` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *Gpu) GetFormFactorOk() (*InterconnectionTypeEnum, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *Gpu) SetFormFactor(v InterconnectionTypeEnum)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *Gpu) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### GetId + +`func (o *Gpu) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Gpu) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Gpu) SetId(v string)` + +SetId sets Id field to given value. + + +### GetMemory + +`func (o *Gpu) GetMemory() int32` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *Gpu) 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 *Gpu) SetMemory(v int32)` + +SetMemory sets Memory field to given value. + +### HasMemory + +`func (o *Gpu) HasMemory() bool` + +HasMemory returns a boolean if a field has been set. + +### GetModel + +`func (o *Gpu) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *Gpu) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *Gpu) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetModified + +`func (o *Gpu) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *Gpu) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *Gpu) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNodeCount + +`func (o *Gpu) GetNodeCount() int32` + +GetNodeCount returns the NodeCount field if non-nil, zero value otherwise. + +### GetNodeCountOk + +`func (o *Gpu) 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 *Gpu) SetNodeCount(v int32)` + +SetNodeCount sets NodeCount field to given value. + +### HasNodeCount + +`func (o *Gpu) HasNodeCount() bool` + +HasNodeCount returns a boolean if a field has been set. + +### GetPriority + +`func (o *Gpu) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *Gpu) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *Gpu) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *Gpu) HasPriority() bool` + +HasPriority 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) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/GpuBulkUpdate.md b/v1/providers/launchpad/gen/launchpad/docs/GpuBulkUpdate.md new file mode 100644 index 0000000..e537f0c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/GpuBulkUpdate.md @@ -0,0 +1,276 @@ +# GpuBulkUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**FormFactor** | Pointer to [**InterconnectionTypeEnum**](InterconnectionTypeEnum.md) | GPU form factor * `pcie` - PCIe * `sxm` - SXM | [optional] [default to InterconnectionTypePCIe] +**Id** | **string** | | [readonly] +**Memory** | Pointer to **int32** | Total GPU memory (in GB) | [optional] [default to 0] +**Model** | **string** | GPU model name | +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**NodeCount** | **int32** | | [readonly] +**Priority** | Pointer to **int32** | Weighted preference to use in selecting a GPU for a deployment. A higher priority means the GPU is in higher demand. Lower priority values will be preferred over higher ones during cluster selection. | [optional] +**Count** | **int32** | | [readonly] +**Ids** | **[]string** | | +**Result** | **string** | | [readonly] + +## Methods + +### NewGpuBulkUpdate + +`func NewGpuBulkUpdate(created time.Time, id string, model string, modified time.Time, nodeCount int32, count int32, ids []string, result string, ) *GpuBulkUpdate` + +NewGpuBulkUpdate instantiates a new GpuBulkUpdate 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 + +### NewGpuBulkUpdateWithDefaults + +`func NewGpuBulkUpdateWithDefaults() *GpuBulkUpdate` + +NewGpuBulkUpdateWithDefaults instantiates a new GpuBulkUpdate 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 + +### GetCreated + +`func (o *GpuBulkUpdate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *GpuBulkUpdate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *GpuBulkUpdate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetFormFactor + +`func (o *GpuBulkUpdate) GetFormFactor() InterconnectionTypeEnum` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *GpuBulkUpdate) GetFormFactorOk() (*InterconnectionTypeEnum, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *GpuBulkUpdate) SetFormFactor(v InterconnectionTypeEnum)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *GpuBulkUpdate) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### GetId + +`func (o *GpuBulkUpdate) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GpuBulkUpdate) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GpuBulkUpdate) SetId(v string)` + +SetId sets Id field to given value. + + +### GetMemory + +`func (o *GpuBulkUpdate) GetMemory() int32` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *GpuBulkUpdate) 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 *GpuBulkUpdate) SetMemory(v int32)` + +SetMemory sets Memory field to given value. + +### HasMemory + +`func (o *GpuBulkUpdate) HasMemory() bool` + +HasMemory returns a boolean if a field has been set. + +### GetModel + +`func (o *GpuBulkUpdate) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *GpuBulkUpdate) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *GpuBulkUpdate) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetModified + +`func (o *GpuBulkUpdate) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *GpuBulkUpdate) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *GpuBulkUpdate) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNodeCount + +`func (o *GpuBulkUpdate) GetNodeCount() int32` + +GetNodeCount returns the NodeCount field if non-nil, zero value otherwise. + +### GetNodeCountOk + +`func (o *GpuBulkUpdate) 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 *GpuBulkUpdate) SetNodeCount(v int32)` + +SetNodeCount sets NodeCount field to given value. + + +### GetPriority + +`func (o *GpuBulkUpdate) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *GpuBulkUpdate) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *GpuBulkUpdate) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *GpuBulkUpdate) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetCount + +`func (o *GpuBulkUpdate) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *GpuBulkUpdate) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *GpuBulkUpdate) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetIds + +`func (o *GpuBulkUpdate) GetIds() []string` + +GetIds returns the Ids field if non-nil, zero value otherwise. + +### GetIdsOk + +`func (o *GpuBulkUpdate) GetIdsOk() (*[]string, bool)` + +GetIdsOk returns a tuple with the Ids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIds + +`func (o *GpuBulkUpdate) SetIds(v []string)` + +SetIds sets Ids field to given value. + + +### GetResult + +`func (o *GpuBulkUpdate) GetResult() string` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *GpuBulkUpdate) GetResultOk() (*string, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *GpuBulkUpdate) SetResult(v string)` + +SetResult sets Result field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/GpuOs.md b/v1/providers/launchpad/gen/launchpad/docs/GpuOs.md new file mode 100644 index 0000000..7417a54 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/GpuOs.md @@ -0,0 +1,93 @@ +# GpuOs + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Release** | **string** | | +**Version** | **string** | | + +## Methods + +### NewGpuOs + +`func NewGpuOs(name string, release string, version string, ) *GpuOs` + +NewGpuOs instantiates a new GpuOs 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 + +### NewGpuOsWithDefaults + +`func NewGpuOsWithDefaults() *GpuOs` + +NewGpuOsWithDefaults instantiates a new GpuOs 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 + +### GetName + +`func (o *GpuOs) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GpuOs) 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 *GpuOs) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRelease + +`func (o *GpuOs) GetRelease() string` + +GetRelease returns the Release field if non-nil, zero value otherwise. + +### GetReleaseOk + +`func (o *GpuOs) GetReleaseOk() (*string, bool)` + +GetReleaseOk returns a tuple with the Release field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelease + +`func (o *GpuOs) SetRelease(v string)` + +SetRelease sets Release field to given value. + + +### GetVersion + +`func (o *GpuOs) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *GpuOs) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *GpuOs) SetVersion(v string)` + +SetVersion sets Version field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/GpuOsChoice.md b/v1/providers/launchpad/gen/launchpad/docs/GpuOsChoice.md new file mode 100644 index 0000000..824684d --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/GpuOsChoice.md @@ -0,0 +1,156 @@ +# GpuOsChoice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Id** | **int32** | | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**Name** | **string** | Name of the OS to be provisioned onto GPU Node(s) (ex: ubuntu) | +**Release** | **string** | Release name of the OS to be provisioned onto GPU Node(s) (ex: jammy) | +**Version** | **string** | Version number of the OS to be provisioned onto GPU Node(s) (ex: 22.04) | + +## Methods + +### NewGpuOsChoice + +`func NewGpuOsChoice(created time.Time, id int32, modified time.Time, name string, release string, version string, ) *GpuOsChoice` + +NewGpuOsChoice instantiates a new GpuOsChoice 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 + +### NewGpuOsChoiceWithDefaults + +`func NewGpuOsChoiceWithDefaults() *GpuOsChoice` + +NewGpuOsChoiceWithDefaults instantiates a new GpuOsChoice 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 + +### GetCreated + +`func (o *GpuOsChoice) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *GpuOsChoice) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *GpuOsChoice) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetId + +`func (o *GpuOsChoice) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GpuOsChoice) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GpuOsChoice) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetModified + +`func (o *GpuOsChoice) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *GpuOsChoice) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *GpuOsChoice) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetName + +`func (o *GpuOsChoice) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GpuOsChoice) 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 *GpuOsChoice) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRelease + +`func (o *GpuOsChoice) GetRelease() string` + +GetRelease returns the Release field if non-nil, zero value otherwise. + +### GetReleaseOk + +`func (o *GpuOsChoice) GetReleaseOk() (*string, bool)` + +GetReleaseOk returns a tuple with the Release field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelease + +`func (o *GpuOsChoice) SetRelease(v string)` + +SetRelease sets Release field to given value. + + +### GetVersion + +`func (o *GpuOsChoice) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *GpuOsChoice) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *GpuOsChoice) SetVersion(v string)` + +SetVersion sets Version field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/IdentityProfileAPI.md b/v1/providers/launchpad/gen/launchpad/docs/IdentityProfileAPI.md new file mode 100644 index 0000000..3b671b4 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/IdentityProfileAPI.md @@ -0,0 +1,134 @@ +# \IdentityProfileAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**IdentityProfilePartialUpdate**](IdentityProfileAPI.md#IdentityProfilePartialUpdate) | **Patch** /v1/identity/profile/ | +[**IdentityProfileRetrieve**](IdentityProfileAPI.md#IdentityProfileRetrieve) | **Get** /v1/identity/profile/ | + + + +## IdentityProfilePartialUpdate + +> Profile IdentityProfilePartialUpdate(ctx).Profile(profile).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + profile := *openapiclient.NewProfile(time.Now(), []string{"Groups_example"}, "Id_example", time.Now(), "Username_example") // Profile | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProfileAPI.IdentityProfilePartialUpdate(context.Background()).Profile(profile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfileAPI.IdentityProfilePartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IdentityProfilePartialUpdate`: Profile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfileAPI.IdentityProfilePartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIdentityProfilePartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **profile** | [**Profile**](Profile.md) | | + +### Return type + +[**Profile**](Profile.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## IdentityProfileRetrieve + +> Profile IdentityProfileRetrieve(ctx).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProfileAPI.IdentityProfileRetrieve(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfileAPI.IdentityProfileRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IdentityProfileRetrieve`: Profile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfileAPI.IdentityProfileRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiIdentityProfileRetrieveRequest struct via the builder pattern + + +### Return type + +[**Profile**](Profile.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + diff --git a/v1/providers/launchpad/gen/launchpad/docs/Instance.md b/v1/providers/launchpad/gen/launchpad/docs/Instance.md new file mode 100644 index 0000000..5508519 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/Instance.md @@ -0,0 +1,244 @@ +# Instance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cluster** | [**DeploymentCluster**](DeploymentCluster.md) | | +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Id** | **string** | | [readonly] +**InstanceId** | **string** | Unique ID for this instance assigned by its provider | +**Name** | Pointer to **NullableString** | User-friendly name of this instance | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**State** | Pointer to [**InstanceState**](InstanceState.md) | Current lifecycle state of this instance * `running` - Instance is running * `starting` - Instance is starting * `stopped` - Instance is stopped * `stopping` - Instance is stopping * `unknown` - Instance state is currently unknown | [optional] +**StateModified** | **time.Time** | | [readonly] +**Tags** | Pointer to **[]string** | Tags associated with this instance | [optional] + +## Methods + +### NewInstance + +`func NewInstance(cluster DeploymentCluster, created time.Time, id string, instanceId string, modified time.Time, stateModified time.Time, ) *Instance` + +NewInstance instantiates a new Instance 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 + +### NewInstanceWithDefaults + +`func NewInstanceWithDefaults() *Instance` + +NewInstanceWithDefaults instantiates a new Instance 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 + +### GetCluster + +`func (o *Instance) GetCluster() DeploymentCluster` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *Instance) GetClusterOk() (*DeploymentCluster, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *Instance) SetCluster(v DeploymentCluster)` + +SetCluster sets Cluster field to given value. + + +### GetCreated + +`func (o *Instance) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Instance) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Instance) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetId + +`func (o *Instance) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Instance) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Instance) SetId(v string)` + +SetId sets Id field to given value. + + +### GetInstanceId + +`func (o *Instance) GetInstanceId() string` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *Instance) GetInstanceIdOk() (*string, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *Instance) SetInstanceId(v string)` + +SetInstanceId sets InstanceId field to given value. + + +### GetName + +`func (o *Instance) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Instance) 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 *Instance) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Instance) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *Instance) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *Instance) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetModified + +`func (o *Instance) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *Instance) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *Instance) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetState + +`func (o *Instance) GetState() InstanceState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *Instance) GetStateOk() (*InstanceState, 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 *Instance) SetState(v InstanceState)` + +SetState sets State field to given value. + +### HasState + +`func (o *Instance) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetStateModified + +`func (o *Instance) GetStateModified() time.Time` + +GetStateModified returns the StateModified field if non-nil, zero value otherwise. + +### GetStateModifiedOk + +`func (o *Instance) GetStateModifiedOk() (*time.Time, bool)` + +GetStateModifiedOk returns a tuple with the StateModified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateModified + +`func (o *Instance) SetStateModified(v time.Time)` + +SetStateModified sets StateModified field to given value. + + +### GetTags + +`func (o *Instance) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Instance) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Instance) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Instance) HasTags() bool` + +HasTags 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) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/InstanceBulkUpdate.md b/v1/providers/launchpad/gen/launchpad/docs/InstanceBulkUpdate.md new file mode 100644 index 0000000..b579cb1 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/InstanceBulkUpdate.md @@ -0,0 +1,307 @@ +# InstanceBulkUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cluster** | [**DeploymentCluster**](DeploymentCluster.md) | | +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Id** | **string** | | [readonly] +**InstanceId** | **string** | Unique ID for this instance assigned by its provider | [readonly] +**Name** | Pointer to **NullableString** | User-friendly name of this instance | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**State** | Pointer to [**InstanceState**](InstanceState.md) | Current lifecycle state of this instance * `running` - Instance is running * `starting` - Instance is starting * `stopped` - Instance is stopped * `stopping` - Instance is stopping * `unknown` - Instance state is currently unknown | [optional] +**StateModified** | **time.Time** | | [readonly] +**Tags** | Pointer to **[]string** | Tags associated with this instance | [optional] +**Count** | **int32** | | [readonly] +**Ids** | **[]string** | | +**Result** | **string** | | [readonly] + +## Methods + +### NewInstanceBulkUpdate + +`func NewInstanceBulkUpdate(cluster DeploymentCluster, created time.Time, id string, instanceId string, modified time.Time, stateModified time.Time, count int32, ids []string, result string, ) *InstanceBulkUpdate` + +NewInstanceBulkUpdate instantiates a new InstanceBulkUpdate 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 + +### NewInstanceBulkUpdateWithDefaults + +`func NewInstanceBulkUpdateWithDefaults() *InstanceBulkUpdate` + +NewInstanceBulkUpdateWithDefaults instantiates a new InstanceBulkUpdate 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 + +### GetCluster + +`func (o *InstanceBulkUpdate) GetCluster() DeploymentCluster` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *InstanceBulkUpdate) GetClusterOk() (*DeploymentCluster, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *InstanceBulkUpdate) SetCluster(v DeploymentCluster)` + +SetCluster sets Cluster field to given value. + + +### GetCreated + +`func (o *InstanceBulkUpdate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *InstanceBulkUpdate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *InstanceBulkUpdate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetId + +`func (o *InstanceBulkUpdate) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *InstanceBulkUpdate) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *InstanceBulkUpdate) SetId(v string)` + +SetId sets Id field to given value. + + +### GetInstanceId + +`func (o *InstanceBulkUpdate) GetInstanceId() string` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *InstanceBulkUpdate) GetInstanceIdOk() (*string, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *InstanceBulkUpdate) SetInstanceId(v string)` + +SetInstanceId sets InstanceId field to given value. + + +### GetName + +`func (o *InstanceBulkUpdate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *InstanceBulkUpdate) 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 *InstanceBulkUpdate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *InstanceBulkUpdate) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *InstanceBulkUpdate) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *InstanceBulkUpdate) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetModified + +`func (o *InstanceBulkUpdate) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *InstanceBulkUpdate) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *InstanceBulkUpdate) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetState + +`func (o *InstanceBulkUpdate) GetState() InstanceState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *InstanceBulkUpdate) GetStateOk() (*InstanceState, 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 *InstanceBulkUpdate) SetState(v InstanceState)` + +SetState sets State field to given value. + +### HasState + +`func (o *InstanceBulkUpdate) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetStateModified + +`func (o *InstanceBulkUpdate) GetStateModified() time.Time` + +GetStateModified returns the StateModified field if non-nil, zero value otherwise. + +### GetStateModifiedOk + +`func (o *InstanceBulkUpdate) GetStateModifiedOk() (*time.Time, bool)` + +GetStateModifiedOk returns a tuple with the StateModified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateModified + +`func (o *InstanceBulkUpdate) SetStateModified(v time.Time)` + +SetStateModified sets StateModified field to given value. + + +### GetTags + +`func (o *InstanceBulkUpdate) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *InstanceBulkUpdate) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *InstanceBulkUpdate) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *InstanceBulkUpdate) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCount + +`func (o *InstanceBulkUpdate) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *InstanceBulkUpdate) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *InstanceBulkUpdate) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetIds + +`func (o *InstanceBulkUpdate) GetIds() []string` + +GetIds returns the Ids field if non-nil, zero value otherwise. + +### GetIdsOk + +`func (o *InstanceBulkUpdate) GetIdsOk() (*[]string, bool)` + +GetIdsOk returns a tuple with the Ids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIds + +`func (o *InstanceBulkUpdate) SetIds(v []string)` + +SetIds sets Ids field to given value. + + +### GetResult + +`func (o *InstanceBulkUpdate) GetResult() string` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *InstanceBulkUpdate) GetResultOk() (*string, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *InstanceBulkUpdate) SetResult(v string)` + +SetResult sets Result field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/InstanceState.md b/v1/providers/launchpad/gen/launchpad/docs/InstanceState.md new file mode 100644 index 0000000..1a17d4b --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/InstanceState.md @@ -0,0 +1,19 @@ +# InstanceState + +## Enum + + +* `InstanceStateRunning` (value: `"running"`) + +* `InstanceStateStarting` (value: `"starting"`) + +* `InstanceStateStopped` (value: `"stopped"`) + +* `InstanceStateStopping` (value: `"stopping"`) + +* `InstanceStateUnknown` (value: `"unknown"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/InstanceType.md b/v1/providers/launchpad/gen/launchpad/docs/InstanceType.md new file mode 100644 index 0000000..c041e0e --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/InstanceType.md @@ -0,0 +1,240 @@ +# InstanceType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Capacity** | **map[string]int32** | Key/value pairs of region name and total available capacity for the instance type | +**Cloud** | **string** | Cloud provider name | +**Cpu** | **int32** | Total number of CPUs/vCPUs available | +**Gpu** | [**InstanceTypeGpu**](InstanceTypeGpu.md) | | +**MemoryGb** | **int32** | Total system memory (in GB) | +**Price** | [**InstanceTypePrice**](InstanceTypePrice.md) | | +**Regions** | **[]string** | List of regions names that have available capacity for the instance type | +**Storage** | [**[]InstanceTypeStorage**](InstanceTypeStorage.md) | | +**SystemArch** | [**SystemArchEnum**](SystemArchEnum.md) | CPU architecture * `amd64` - amd64 * `arm64` - arm64 | +**WorkshopId** | **string** | ID of the workshop this instance type is reserved for | + +## Methods + +### NewInstanceType + +`func NewInstanceType(capacity map[string]int32, cloud string, cpu int32, gpu InstanceTypeGpu, memoryGb int32, price InstanceTypePrice, regions []string, storage []InstanceTypeStorage, systemArch SystemArchEnum, workshopId string, ) *InstanceType` + +NewInstanceType instantiates a new InstanceType 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 + +### NewInstanceTypeWithDefaults + +`func NewInstanceTypeWithDefaults() *InstanceType` + +NewInstanceTypeWithDefaults instantiates a new InstanceType 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 + +### GetCapacity + +`func (o *InstanceType) GetCapacity() map[string]int32` + +GetCapacity returns the Capacity field if non-nil, zero value otherwise. + +### GetCapacityOk + +`func (o *InstanceType) GetCapacityOk() (*map[string]int32, bool)` + +GetCapacityOk returns a tuple with the Capacity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapacity + +`func (o *InstanceType) SetCapacity(v map[string]int32)` + +SetCapacity sets Capacity field to given value. + + +### GetCloud + +`func (o *InstanceType) GetCloud() string` + +GetCloud returns the Cloud field if non-nil, zero value otherwise. + +### GetCloudOk + +`func (o *InstanceType) GetCloudOk() (*string, bool)` + +GetCloudOk returns a tuple with the Cloud field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloud + +`func (o *InstanceType) SetCloud(v string)` + +SetCloud sets Cloud field to given value. + + +### GetCpu + +`func (o *InstanceType) GetCpu() int32` + +GetCpu returns the Cpu field if non-nil, zero value otherwise. + +### GetCpuOk + +`func (o *InstanceType) GetCpuOk() (*int32, bool)` + +GetCpuOk returns a tuple with the Cpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpu + +`func (o *InstanceType) SetCpu(v int32)` + +SetCpu sets Cpu field to given value. + + +### GetGpu + +`func (o *InstanceType) GetGpu() InstanceTypeGpu` + +GetGpu returns the Gpu field if non-nil, zero value otherwise. + +### GetGpuOk + +`func (o *InstanceType) GetGpuOk() (*InstanceTypeGpu, bool)` + +GetGpuOk returns a tuple with the Gpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpu + +`func (o *InstanceType) SetGpu(v InstanceTypeGpu)` + +SetGpu sets Gpu field to given value. + + +### GetMemoryGb + +`func (o *InstanceType) GetMemoryGb() int32` + +GetMemoryGb returns the MemoryGb field if non-nil, zero value otherwise. + +### GetMemoryGbOk + +`func (o *InstanceType) GetMemoryGbOk() (*int32, bool)` + +GetMemoryGbOk returns a tuple with the MemoryGb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryGb + +`func (o *InstanceType) SetMemoryGb(v int32)` + +SetMemoryGb sets MemoryGb field to given value. + + +### GetPrice + +`func (o *InstanceType) GetPrice() InstanceTypePrice` + +GetPrice returns the Price field if non-nil, zero value otherwise. + +### GetPriceOk + +`func (o *InstanceType) GetPriceOk() (*InstanceTypePrice, bool)` + +GetPriceOk returns a tuple with the Price field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrice + +`func (o *InstanceType) SetPrice(v InstanceTypePrice)` + +SetPrice sets Price field to given value. + + +### GetRegions + +`func (o *InstanceType) GetRegions() []string` + +GetRegions returns the Regions field if non-nil, zero value otherwise. + +### GetRegionsOk + +`func (o *InstanceType) GetRegionsOk() (*[]string, bool)` + +GetRegionsOk returns a tuple with the Regions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegions + +`func (o *InstanceType) SetRegions(v []string)` + +SetRegions sets Regions field to given value. + + +### GetStorage + +`func (o *InstanceType) GetStorage() []InstanceTypeStorage` + +GetStorage returns the Storage field if non-nil, zero value otherwise. + +### GetStorageOk + +`func (o *InstanceType) GetStorageOk() (*[]InstanceTypeStorage, bool)` + +GetStorageOk returns a tuple with the Storage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorage + +`func (o *InstanceType) SetStorage(v []InstanceTypeStorage)` + +SetStorage sets Storage field to given value. + + +### GetSystemArch + +`func (o *InstanceType) GetSystemArch() SystemArchEnum` + +GetSystemArch returns the SystemArch field if non-nil, zero value otherwise. + +### GetSystemArchOk + +`func (o *InstanceType) GetSystemArchOk() (*SystemArchEnum, bool)` + +GetSystemArchOk returns a tuple with the SystemArch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemArch + +`func (o *InstanceType) SetSystemArch(v SystemArchEnum)` + +SetSystemArch sets SystemArch field to given value. + + +### GetWorkshopId + +`func (o *InstanceType) GetWorkshopId() string` + +GetWorkshopId returns the WorkshopId field if non-nil, zero value otherwise. + +### GetWorkshopIdOk + +`func (o *InstanceType) GetWorkshopIdOk() (*string, bool)` + +GetWorkshopIdOk returns a tuple with the WorkshopId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkshopId + +`func (o *InstanceType) SetWorkshopId(v string)` + +SetWorkshopId sets WorkshopId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/InstanceTypeGpu.md b/v1/providers/launchpad/gen/launchpad/docs/InstanceTypeGpu.md new file mode 100644 index 0000000..c287983 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/InstanceTypeGpu.md @@ -0,0 +1,156 @@ +# InstanceTypeGpu + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | Total number of GPUs | +**Family** | **string** | GPU family name | +**InterconnectionType** | [**InterconnectionTypeEnum**](InterconnectionTypeEnum.md) | GPU form factor * `pcie` - PCIe * `sxm` - SXM | +**Manufacturer** | **string** | GPU manufacturer name | +**MemoryGb** | **int32** | Total GPU memory (in GB) | +**Model** | **string** | GPU model name | + +## Methods + +### NewInstanceTypeGpu + +`func NewInstanceTypeGpu(count int32, family string, interconnectionType InterconnectionTypeEnum, manufacturer string, memoryGb int32, model string, ) *InstanceTypeGpu` + +NewInstanceTypeGpu instantiates a new InstanceTypeGpu 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 + +### NewInstanceTypeGpuWithDefaults + +`func NewInstanceTypeGpuWithDefaults() *InstanceTypeGpu` + +NewInstanceTypeGpuWithDefaults instantiates a new InstanceTypeGpu 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 + +### GetCount + +`func (o *InstanceTypeGpu) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *InstanceTypeGpu) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *InstanceTypeGpu) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetFamily + +`func (o *InstanceTypeGpu) GetFamily() string` + +GetFamily returns the Family field if non-nil, zero value otherwise. + +### GetFamilyOk + +`func (o *InstanceTypeGpu) GetFamilyOk() (*string, bool)` + +GetFamilyOk returns a tuple with the Family field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFamily + +`func (o *InstanceTypeGpu) SetFamily(v string)` + +SetFamily sets Family field to given value. + + +### GetInterconnectionType + +`func (o *InstanceTypeGpu) GetInterconnectionType() InterconnectionTypeEnum` + +GetInterconnectionType returns the InterconnectionType field if non-nil, zero value otherwise. + +### GetInterconnectionTypeOk + +`func (o *InstanceTypeGpu) GetInterconnectionTypeOk() (*InterconnectionTypeEnum, bool)` + +GetInterconnectionTypeOk returns a tuple with the InterconnectionType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterconnectionType + +`func (o *InstanceTypeGpu) SetInterconnectionType(v InterconnectionTypeEnum)` + +SetInterconnectionType sets InterconnectionType field to given value. + + +### GetManufacturer + +`func (o *InstanceTypeGpu) GetManufacturer() string` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *InstanceTypeGpu) GetManufacturerOk() (*string, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *InstanceTypeGpu) SetManufacturer(v string)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetMemoryGb + +`func (o *InstanceTypeGpu) GetMemoryGb() int32` + +GetMemoryGb returns the MemoryGb field if non-nil, zero value otherwise. + +### GetMemoryGbOk + +`func (o *InstanceTypeGpu) GetMemoryGbOk() (*int32, bool)` + +GetMemoryGbOk returns a tuple with the MemoryGb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryGb + +`func (o *InstanceTypeGpu) SetMemoryGb(v int32)` + +SetMemoryGb sets MemoryGb field to given value. + + +### GetModel + +`func (o *InstanceTypeGpu) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *InstanceTypeGpu) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *InstanceTypeGpu) SetModel(v string)` + +SetModel sets Model field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/InstanceTypePrice.md b/v1/providers/launchpad/gen/launchpad/docs/InstanceTypePrice.md new file mode 100644 index 0000000..ec618d6 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/InstanceTypePrice.md @@ -0,0 +1,72 @@ +# InstanceTypePrice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Currency** | **string** | Currency code | +**OnDemandPerHour** | **float64** | Price per hour | + +## Methods + +### NewInstanceTypePrice + +`func NewInstanceTypePrice(currency string, onDemandPerHour float64, ) *InstanceTypePrice` + +NewInstanceTypePrice instantiates a new InstanceTypePrice 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 + +### NewInstanceTypePriceWithDefaults + +`func NewInstanceTypePriceWithDefaults() *InstanceTypePrice` + +NewInstanceTypePriceWithDefaults instantiates a new InstanceTypePrice 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 + +### GetCurrency + +`func (o *InstanceTypePrice) GetCurrency() string` + +GetCurrency returns the Currency field if non-nil, zero value otherwise. + +### GetCurrencyOk + +`func (o *InstanceTypePrice) GetCurrencyOk() (*string, bool)` + +GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrency + +`func (o *InstanceTypePrice) SetCurrency(v string)` + +SetCurrency sets Currency field to given value. + + +### GetOnDemandPerHour + +`func (o *InstanceTypePrice) GetOnDemandPerHour() float64` + +GetOnDemandPerHour returns the OnDemandPerHour field if non-nil, zero value otherwise. + +### GetOnDemandPerHourOk + +`func (o *InstanceTypePrice) GetOnDemandPerHourOk() (*float64, bool)` + +GetOnDemandPerHourOk returns a tuple with the OnDemandPerHour field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOnDemandPerHour + +`func (o *InstanceTypePrice) SetOnDemandPerHour(v float64)` + +SetOnDemandPerHour sets OnDemandPerHour field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/InstanceTypeStorage.md b/v1/providers/launchpad/gen/launchpad/docs/InstanceTypeStorage.md new file mode 100644 index 0000000..1dd37c0 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/InstanceTypeStorage.md @@ -0,0 +1,72 @@ +# InstanceTypeStorage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SizeGb** | **int32** | System storage size (in GB) | +**Type** | [**TypeEnum**](TypeEnum.md) | Disk type * `nvme` - NVMe * `ssd` - ssd | + +## Methods + +### NewInstanceTypeStorage + +`func NewInstanceTypeStorage(sizeGb int32, type_ TypeEnum, ) *InstanceTypeStorage` + +NewInstanceTypeStorage instantiates a new InstanceTypeStorage 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 + +### NewInstanceTypeStorageWithDefaults + +`func NewInstanceTypeStorageWithDefaults() *InstanceTypeStorage` + +NewInstanceTypeStorageWithDefaults instantiates a new InstanceTypeStorage 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 + +### GetSizeGb + +`func (o *InstanceTypeStorage) GetSizeGb() int32` + +GetSizeGb returns the SizeGb field if non-nil, zero value otherwise. + +### GetSizeGbOk + +`func (o *InstanceTypeStorage) GetSizeGbOk() (*int32, bool)` + +GetSizeGbOk returns a tuple with the SizeGb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSizeGb + +`func (o *InstanceTypeStorage) SetSizeGb(v int32)` + +SetSizeGb sets SizeGb field to given value. + + +### GetType + +`func (o *InstanceTypeStorage) GetType() TypeEnum` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *InstanceTypeStorage) GetTypeOk() (*TypeEnum, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *InstanceTypeStorage) SetType(v TypeEnum)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/InterconnectionTypeEnum.md b/v1/providers/launchpad/gen/launchpad/docs/InterconnectionTypeEnum.md new file mode 100644 index 0000000..e61f584 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/InterconnectionTypeEnum.md @@ -0,0 +1,13 @@ +# InterconnectionTypeEnum + +## Enum + + +* `InterconnectionTypePCIe` (value: `"pcie"`) + +* `InterconnectionTypeSXM` (value: `"sxm"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/InventoryClustersAPI.md b/v1/providers/launchpad/gen/launchpad/docs/InventoryClustersAPI.md new file mode 100644 index 0000000..ec53949 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/InventoryClustersAPI.md @@ -0,0 +1,863 @@ +# \InventoryClustersAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**InventoryClustersBulkPartialUpdate**](InventoryClustersAPI.md#InventoryClustersBulkPartialUpdate) | **Patch** /v1/inventory/clusters/bulk/ | +[**InventoryClustersCreate**](InventoryClustersAPI.md#InventoryClustersCreate) | **Post** /v1/inventory/clusters/ | +[**InventoryClustersDestroy**](InventoryClustersAPI.md#InventoryClustersDestroy) | **Delete** /v1/inventory/clusters/{id}/ | +[**InventoryClustersHistoryList**](InventoryClustersAPI.md#InventoryClustersHistoryList) | **Get** /v1/inventory/clusters/{id}/history/ | +[**InventoryClustersList**](InventoryClustersAPI.md#InventoryClustersList) | **Get** /v1/inventory/clusters/ | +[**InventoryClustersPartialUpdate**](InventoryClustersAPI.md#InventoryClustersPartialUpdate) | **Patch** /v1/inventory/clusters/{id}/ | +[**InventoryClustersRetrieve**](InventoryClustersAPI.md#InventoryClustersRetrieve) | **Get** /v1/inventory/clusters/{id}/ | +[**InventoryClustersStatsRetrieve**](InventoryClustersAPI.md#InventoryClustersStatsRetrieve) | **Get** /v1/inventory/clusters/stats/ | 🚧 [Beta Feature] +[**InventoryClustersTenantsCreate**](InventoryClustersAPI.md#InventoryClustersTenantsCreate) | **Post** /v1/inventory/clusters/{cluster_id}/tenants/ | +[**InventoryClustersTenantsDestroy**](InventoryClustersAPI.md#InventoryClustersTenantsDestroy) | **Delete** /v1/inventory/clusters/{cluster_id}/tenants/{id}/ | +[**InventoryClustersUpdate**](InventoryClustersAPI.md#InventoryClustersUpdate) | **Put** /v1/inventory/clusters/{id}/ | + + + +## InventoryClustersBulkPartialUpdate + +> ClusterBulkUpdate InventoryClustersBulkPartialUpdate(ctx).ClusterBulkUpdate(clusterBulkUpdate).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + clusterBulkUpdate := *openapiclient.NewClusterBulkUpdate(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "GpuAlias_example", int32(123), "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: }, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: }}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: }}, time.Now(), time.Now(), false, []string{"TenantIds_example"})}, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now())}}, time.Now(), time.Now(), false, []string{"TenantIds_example"})}, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now())}}, time.Now(), time.Now(), int32(123), false, "PublicAddress_example", "RequestId_example", []string{"TenantIds_example"}, int32(123), []string{"Ids_example"}, "Result_example") // ClusterBulkUpdate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryClustersAPI.InventoryClustersBulkPartialUpdate(context.Background()).ClusterBulkUpdate(clusterBulkUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryClustersAPI.InventoryClustersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryClustersBulkPartialUpdate`: ClusterBulkUpdate + fmt.Fprintf(os.Stdout, "Response from `InventoryClustersAPI.InventoryClustersBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryClustersBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterBulkUpdate** | [**ClusterBulkUpdate**](ClusterBulkUpdate.md) | | + +### Return type + +[**ClusterBulkUpdate**](ClusterBulkUpdate.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryClustersCreate + +> Cluster InventoryClustersCreate(ctx).Cluster(cluster).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + cluster := *openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: }, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now())}}, time.Now(), time.Now(), false, []string{"TenantIds_example"})}, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now())}}, time.Now(), time.Now(), false, []string{"TenantIds_example"}) // Cluster | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryClustersAPI.InventoryClustersCreate(context.Background()).Cluster(cluster).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryClustersAPI.InventoryClustersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryClustersCreate`: Cluster + fmt.Fprintf(os.Stdout, "Response from `InventoryClustersAPI.InventoryClustersCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryClustersCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | [**Cluster**](Cluster.md) | | + +### Return type + +[**Cluster**](Cluster.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryClustersDestroy + +> InventoryClustersDestroy(ctx, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this cluster. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.InventoryClustersAPI.InventoryClustersDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryClustersAPI.InventoryClustersDestroy``: %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. +**id** | **string** | A UUID string identifying this cluster. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryClustersDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## InventoryClustersHistoryList + +> PaginatedModelChangeList InventoryClustersHistoryList(ctx, id).Page(page).PageSize(pageSize).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryClustersAPI.InventoryClustersHistoryList(context.Background(), id).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryClustersAPI.InventoryClustersHistoryList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryClustersHistoryList`: PaginatedModelChangeList + fmt.Fprintf(os.Stdout, "Response from `InventoryClustersAPI.InventoryClustersHistoryList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryClustersHistoryListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + +### Return type + +[**PaginatedModelChangeList**](PaginatedModelChangeList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryClustersList + +> PaginatedClusterList InventoryClustersList(ctx).Available(available).BastionName(bastionName).Deployment(deployment).Enabled(enabled).Expand(expand).Experience(experience).Fields(fields).GarageId(garageId).Gpu(gpu).GpuAlias(gpuAlias).GpuCount(gpuCount).GpuModel(gpuModel).HasDeployment(hasDeployment).HasRequestId(hasRequestId).HasWorkshopId(hasWorkshopId).Id(id).Location(location).LocationName(locationName).LocationRegion(locationRegion).Maintenance(maintenance).MgmtIp(mgmtIp).MgmtMac(mgmtMac).MinGpuCount(minGpuCount).MinNodeCount(minNodeCount).MinProvisioningAttempts(minProvisioningAttempts).MinTenantCount(minTenantCount).Netmask(netmask).NodeCount(nodeCount).Oem(oem).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Persist(persist).Provider(provider).ProviderCapacity(providerCapacity).ProviderName(providerName).ProviderNodeId(providerNodeId).ProvisionUser(provisionUser).ProvisioningAttempts(provisioningAttempts).ProvisioningState(provisioningState).PublicAddress(publicAddress).Rack(rack).RequestId(requestId).Reservation(reservation).Search(search).SystemArch(systemArch).VlanId(vlanId).Workshop(workshop).WorkshopId(workshopId).WorkshopIdNot(workshopIdNot).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + available := true // bool | Is the cluster currently available for provisioning? (optional) + bastionName := "bastionName_example" // string | (optional) + deployment := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + enabled := true // bool | (optional) + expand := "expand_example" // string | Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: \"nodes.location\"). Separate multiple fields with a comma (ex: \"gpus,nodes\") (optional) + experience := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + garageId := "garageId_example" // string | Only include clusters whose nodes have the given garage ID (optional) + gpu := []string{"Inner_example"} // []string | Multiple values may be separated by commas. (optional) + gpuAlias := "gpuAlias_example" // string | Alias for GPU plan (i.e. installed GPU type and count) (optional) + gpuCount := float32(8.14) // float32 | Only include clusters with a physical GPU count equal to this value (optional) + gpuModel := "gpuModel_example" // string | Only include clusters with the given GPU model name (optional) + hasDeployment := true // bool | (optional) + hasRequestId := true // bool | (optional) + hasWorkshopId := true // bool | (optional) + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + location := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + locationName := "locationName_example" // string | Only include clusters whose nodes are in the location with the given name (optional) + locationRegion := "locationRegion_example" // string | Only include clusters whose nodes are in the location in the given region (optional) + maintenance := true // bool | (optional) + mgmtIp := "mgmtIp_example" // string | (optional) + mgmtMac := "mgmtMac_example" // string | (optional) + minGpuCount := float32(8.14) // float32 | Only include clusters that have a gpu_count greater than or equal to this value (optional) + minNodeCount := float32(8.14) // float32 | Only include clusters that have a node_count greater than or equal to this value (optional) + minProvisioningAttempts := int32(56) // int32 | Only include clusters that have a provisioning_attempts value greater than or equal to this value (optional) + minTenantCount := float32(8.14) // float32 | Only include clusters whose number of tenant_ids is greater than or equal to this value (optional) + netmask := int32(56) // int32 | (optional) + nodeCount := float32(8.14) // float32 | Only include clusters with a node count equal to this value (optional) + oem := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Only include clusters with nodes that have the given OEM ID (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + persist := true // bool | (optional) + provider := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + providerCapacity := true // bool | (optional) + providerName := "providerName_example" // string | Only include clusters whose nodes are from the provider with the given name (optional) + providerNodeId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + provisionUser := "provisionUser_example" // string | (optional) + provisioningAttempts := int32(56) // int32 | (optional) + provisioningState := []string{"ProvisioningState_example"} // []string | Multiple values may be separated by commas. * `deployed` - Cluster is in use by a deployment * `deploying` - Provisioning is in progress * `destroying` - Cluster is being destroyed * `pending` - Provisioning will begin soon * `ready` - Provisioning has completed and is ready for a deployment * `reserved` - Cluster is unprovisioned but reserved for later use * `unprovisioned` - Cluster has not yet been provisioned (optional) + publicAddress := "publicAddress_example" // string | (optional) + rack := "rack_example" // string | Only include clusters whose nodes are in the given rack (optional) + requestId := "requestId_example" // string | (optional) + reservation := true // bool | (optional) + search := "search_example" // string | Search for clusters by bastion_name, experience id, gpu_alias, gpus model, id, mgmt_ip, mgmt_mac, netmask, nodes garage_id, nodes location name, nodes location provider name, nodes oem name, nodes provider_node_id, nodes rack, notes, provision_user, provisioning_state, public_address, request_id, tenant_ids, workshop_id (optional) + systemArch := "systemArch_example" // string | Only include clusters whose nodes have the given CPU architecture (optional) + vlanId := int32(56) // int32 | (optional) + workshop := true // bool | (optional) + workshopId := "workshopId_example" // string | (optional) + workshopIdNot := "workshopIdNot_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryClustersAPI.InventoryClustersList(context.Background()).Available(available).BastionName(bastionName).Deployment(deployment).Enabled(enabled).Expand(expand).Experience(experience).Fields(fields).GarageId(garageId).Gpu(gpu).GpuAlias(gpuAlias).GpuCount(gpuCount).GpuModel(gpuModel).HasDeployment(hasDeployment).HasRequestId(hasRequestId).HasWorkshopId(hasWorkshopId).Id(id).Location(location).LocationName(locationName).LocationRegion(locationRegion).Maintenance(maintenance).MgmtIp(mgmtIp).MgmtMac(mgmtMac).MinGpuCount(minGpuCount).MinNodeCount(minNodeCount).MinProvisioningAttempts(minProvisioningAttempts).MinTenantCount(minTenantCount).Netmask(netmask).NodeCount(nodeCount).Oem(oem).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Persist(persist).Provider(provider).ProviderCapacity(providerCapacity).ProviderName(providerName).ProviderNodeId(providerNodeId).ProvisionUser(provisionUser).ProvisioningAttempts(provisioningAttempts).ProvisioningState(provisioningState).PublicAddress(publicAddress).Rack(rack).RequestId(requestId).Reservation(reservation).Search(search).SystemArch(systemArch).VlanId(vlanId).Workshop(workshop).WorkshopId(workshopId).WorkshopIdNot(workshopIdNot).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryClustersAPI.InventoryClustersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryClustersList`: PaginatedClusterList + fmt.Fprintf(os.Stdout, "Response from `InventoryClustersAPI.InventoryClustersList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryClustersListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **available** | **bool** | Is the cluster currently available for provisioning? | + **bastionName** | **string** | | + **deployment** | **string** | | + **enabled** | **bool** | | + **expand** | **string** | Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: \"nodes.location\"). Separate multiple fields with a comma (ex: \"gpus,nodes\") | + **experience** | **string** | | + **fields** | **string** | Include only the specified fields in the response | + **garageId** | **string** | Only include clusters whose nodes have the given garage ID | + **gpu** | **[]string** | Multiple values may be separated by commas. | + **gpuAlias** | **string** | Alias for GPU plan (i.e. installed GPU type and count) | + **gpuCount** | **float32** | Only include clusters with a physical GPU count equal to this value | + **gpuModel** | **string** | Only include clusters with the given GPU model name | + **hasDeployment** | **bool** | | + **hasRequestId** | **bool** | | + **hasWorkshopId** | **bool** | | + **id** | **string** | | + **location** | **string** | | + **locationName** | **string** | Only include clusters whose nodes are in the location with the given name | + **locationRegion** | **string** | Only include clusters whose nodes are in the location in the given region | + **maintenance** | **bool** | | + **mgmtIp** | **string** | | + **mgmtMac** | **string** | | + **minGpuCount** | **float32** | Only include clusters that have a gpu_count greater than or equal to this value | + **minNodeCount** | **float32** | Only include clusters that have a node_count greater than or equal to this value | + **minProvisioningAttempts** | **int32** | Only include clusters that have a provisioning_attempts value greater than or equal to this value | + **minTenantCount** | **float32** | Only include clusters whose number of tenant_ids is greater than or equal to this value | + **netmask** | **int32** | | + **nodeCount** | **float32** | Only include clusters with a node count equal to this value | + **oem** | **string** | Only include clusters with nodes that have the given OEM ID | + **omit** | **string** | Exclude the specified fields in the response | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **persist** | **bool** | | + **provider** | **string** | | + **providerCapacity** | **bool** | | + **providerName** | **string** | Only include clusters whose nodes are from the provider with the given name | + **providerNodeId** | **string** | | + **provisionUser** | **string** | | + **provisioningAttempts** | **int32** | | + **provisioningState** | **[]string** | Multiple values may be separated by commas. * `deployed` - Cluster is in use by a deployment * `deploying` - Provisioning is in progress * `destroying` - Cluster is being destroyed * `pending` - Provisioning will begin soon * `ready` - Provisioning has completed and is ready for a deployment * `reserved` - Cluster is unprovisioned but reserved for later use * `unprovisioned` - Cluster has not yet been provisioned | + **publicAddress** | **string** | | + **rack** | **string** | Only include clusters whose nodes are in the given rack | + **requestId** | **string** | | + **reservation** | **bool** | | + **search** | **string** | Search for clusters by bastion_name, experience id, gpu_alias, gpus model, id, mgmt_ip, mgmt_mac, netmask, nodes garage_id, nodes location name, nodes location provider name, nodes oem name, nodes provider_node_id, nodes rack, notes, provision_user, provisioning_state, public_address, request_id, tenant_ids, workshop_id | + **systemArch** | **string** | Only include clusters whose nodes have the given CPU architecture | + **vlanId** | **int32** | | + **workshop** | **bool** | | + **workshopId** | **string** | | + **workshopIdNot** | **string** | | + +### Return type + +[**PaginatedClusterList**](PaginatedClusterList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryClustersPartialUpdate + +> Cluster InventoryClustersPartialUpdate(ctx, id).Cluster(cluster).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this cluster. + cluster := *openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: }, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now())}}, time.Now(), time.Now(), false, []string{"TenantIds_example"})}, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now())}}, time.Now(), time.Now(), false, []string{"TenantIds_example"}) // Cluster | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryClustersAPI.InventoryClustersPartialUpdate(context.Background(), id).Cluster(cluster).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryClustersAPI.InventoryClustersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryClustersPartialUpdate`: Cluster + fmt.Fprintf(os.Stdout, "Response from `InventoryClustersAPI.InventoryClustersPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this cluster. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryClustersPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **cluster** | [**Cluster**](Cluster.md) | | + +### Return type + +[**Cluster**](Cluster.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryClustersRetrieve + +> Cluster InventoryClustersRetrieve(ctx, id).Expand(expand).Fields(fields).Omit(omit).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this cluster. + expand := "expand_example" // string | Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: \"nodes.location\"). Separate multiple fields with a comma (ex: \"gpus,nodes\") (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryClustersAPI.InventoryClustersRetrieve(context.Background(), id).Expand(expand).Fields(fields).Omit(omit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryClustersAPI.InventoryClustersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryClustersRetrieve`: Cluster + fmt.Fprintf(os.Stdout, "Response from `InventoryClustersAPI.InventoryClustersRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this cluster. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryClustersRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **expand** | **string** | Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: \"nodes.location\"). Separate multiple fields with a comma (ex: \"gpus,nodes\") | + **fields** | **string** | Include only the specified fields in the response | + **omit** | **string** | Exclude the specified fields in the response | + +### Return type + +[**Cluster**](Cluster.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryClustersStatsRetrieve + +> InventoryClustersStatsRetrieve(ctx).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.InventoryClustersAPI.InventoryClustersStatsRetrieve(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryClustersAPI.InventoryClustersStatsRetrieve``: %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 apiInventoryClustersStatsRetrieveRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## InventoryClustersTenantsCreate + +> Cluster InventoryClustersTenantsCreate(ctx, clusterId).Tenant(tenant).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + clusterId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + tenant := *openapiclient.NewTenant("Id_example") // Tenant | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryClustersAPI.InventoryClustersTenantsCreate(context.Background(), clusterId).Tenant(tenant).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryClustersAPI.InventoryClustersTenantsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryClustersTenantsCreate`: Cluster + fmt.Fprintf(os.Stdout, "Response from `InventoryClustersAPI.InventoryClustersTenantsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**clusterId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryClustersTenantsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **tenant** | [**Tenant**](Tenant.md) | | + +### Return type + +[**Cluster**](Cluster.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryClustersTenantsDestroy + +> InventoryClustersTenantsDestroy(ctx, clusterId, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + clusterId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.InventoryClustersAPI.InventoryClustersTenantsDestroy(context.Background(), clusterId, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryClustersAPI.InventoryClustersTenantsDestroy``: %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. +**clusterId** | **string** | | +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryClustersTenantsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## InventoryClustersUpdate + +> Cluster InventoryClustersUpdate(ctx, id).Cluster(cluster).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this cluster. + cluster := *openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: }, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now())}}, time.Now(), time.Now(), false, []string{"TenantIds_example"})}, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now())}}, time.Now(), time.Now(), false, []string{"TenantIds_example"}) // Cluster | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryClustersAPI.InventoryClustersUpdate(context.Background(), id).Cluster(cluster).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryClustersAPI.InventoryClustersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryClustersUpdate`: Cluster + fmt.Fprintf(os.Stdout, "Response from `InventoryClustersAPI.InventoryClustersUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this cluster. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryClustersUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **cluster** | [**Cluster**](Cluster.md) | | + +### Return type + +[**Cluster**](Cluster.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + diff --git a/v1/providers/launchpad/gen/launchpad/docs/InventoryGpusAPI.md b/v1/providers/launchpad/gen/launchpad/docs/InventoryGpusAPI.md new file mode 100644 index 0000000..bf68731 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/InventoryGpusAPI.md @@ -0,0 +1,638 @@ +# \InventoryGpusAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**InventoryGpusBulkPartialUpdate**](InventoryGpusAPI.md#InventoryGpusBulkPartialUpdate) | **Patch** /v1/inventory/gpus/bulk/ | +[**InventoryGpusCreate**](InventoryGpusAPI.md#InventoryGpusCreate) | **Post** /v1/inventory/gpus/ | +[**InventoryGpusDestroy**](InventoryGpusAPI.md#InventoryGpusDestroy) | **Delete** /v1/inventory/gpus/{id}/ | +[**InventoryGpusHistoryList**](InventoryGpusAPI.md#InventoryGpusHistoryList) | **Get** /v1/inventory/gpus/{id}/history/ | +[**InventoryGpusList**](InventoryGpusAPI.md#InventoryGpusList) | **Get** /v1/inventory/gpus/ | +[**InventoryGpusPartialUpdate**](InventoryGpusAPI.md#InventoryGpusPartialUpdate) | **Patch** /v1/inventory/gpus/{id}/ | +[**InventoryGpusRetrieve**](InventoryGpusAPI.md#InventoryGpusRetrieve) | **Get** /v1/inventory/gpus/{id}/ | +[**InventoryGpusStatsRetrieve**](InventoryGpusAPI.md#InventoryGpusStatsRetrieve) | **Get** /v1/inventory/gpus/stats/ | 🚧 [Beta Feature] +[**InventoryGpusUpdate**](InventoryGpusAPI.md#InventoryGpusUpdate) | **Put** /v1/inventory/gpus/{id}/ | + + + +## InventoryGpusBulkPartialUpdate + +> GpuBulkUpdate InventoryGpusBulkPartialUpdate(ctx).GpuBulkUpdate(gpuBulkUpdate).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + gpuBulkUpdate := *openapiclient.NewGpuBulkUpdate(time.Now(), "Id_example", "Model_example", time.Now(), int32(123), int32(123), []string{"Ids_example"}, "Result_example") // GpuBulkUpdate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryGpusAPI.InventoryGpusBulkPartialUpdate(context.Background()).GpuBulkUpdate(gpuBulkUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryGpusAPI.InventoryGpusBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryGpusBulkPartialUpdate`: GpuBulkUpdate + fmt.Fprintf(os.Stdout, "Response from `InventoryGpusAPI.InventoryGpusBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryGpusBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **gpuBulkUpdate** | [**GpuBulkUpdate**](GpuBulkUpdate.md) | | + +### Return type + +[**GpuBulkUpdate**](GpuBulkUpdate.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryGpusCreate + +> Gpu InventoryGpusCreate(ctx).Gpu(gpu).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + gpu := *openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now()) // Gpu | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryGpusAPI.InventoryGpusCreate(context.Background()).Gpu(gpu).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryGpusAPI.InventoryGpusCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryGpusCreate`: Gpu + fmt.Fprintf(os.Stdout, "Response from `InventoryGpusAPI.InventoryGpusCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryGpusCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **gpu** | [**Gpu**](Gpu.md) | | + +### Return type + +[**Gpu**](Gpu.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryGpusDestroy + +> InventoryGpusDestroy(ctx, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this gpu. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.InventoryGpusAPI.InventoryGpusDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryGpusAPI.InventoryGpusDestroy``: %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. +**id** | **string** | A UUID string identifying this gpu. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryGpusDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## InventoryGpusHistoryList + +> PaginatedModelChangeList InventoryGpusHistoryList(ctx, id).Page(page).PageSize(pageSize).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryGpusAPI.InventoryGpusHistoryList(context.Background(), id).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryGpusAPI.InventoryGpusHistoryList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryGpusHistoryList`: PaginatedModelChangeList + fmt.Fprintf(os.Stdout, "Response from `InventoryGpusAPI.InventoryGpusHistoryList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryGpusHistoryListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + +### Return type + +[**PaginatedModelChangeList**](PaginatedModelChangeList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryGpusList + +> PaginatedGpuList InventoryGpusList(ctx).Fields(fields).FormFactor(formFactor).Id(id).Model(model).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Priority(priority).Search(search).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + fields := "fields_example" // string | Include only the specified fields in the response (optional) + formFactor := "formFactor_example" // string | GPU form factor * `pcie` - PCIe * `sxm` - SXM (optional) + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + model := []string{"Inner_example"} // []string | Multiple values may be separated by commas. (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + priority := int32(56) // int32 | (optional) + search := "search_example" // string | Search for gpus by form_factor, id, memory, model (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryGpusAPI.InventoryGpusList(context.Background()).Fields(fields).FormFactor(formFactor).Id(id).Model(model).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Priority(priority).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryGpusAPI.InventoryGpusList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryGpusList`: PaginatedGpuList + fmt.Fprintf(os.Stdout, "Response from `InventoryGpusAPI.InventoryGpusList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryGpusListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **string** | Include only the specified fields in the response | + **formFactor** | **string** | GPU form factor * `pcie` - PCIe * `sxm` - SXM | + **id** | **string** | | + **model** | **[]string** | Multiple values may be separated by commas. | + **omit** | **string** | Exclude the specified fields in the response | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **priority** | **int32** | | + **search** | **string** | Search for gpus by form_factor, id, memory, model | + +### Return type + +[**PaginatedGpuList**](PaginatedGpuList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryGpusPartialUpdate + +> Gpu InventoryGpusPartialUpdate(ctx, id).Gpu(gpu).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this gpu. + gpu := *openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now()) // Gpu | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryGpusAPI.InventoryGpusPartialUpdate(context.Background(), id).Gpu(gpu).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryGpusAPI.InventoryGpusPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryGpusPartialUpdate`: Gpu + fmt.Fprintf(os.Stdout, "Response from `InventoryGpusAPI.InventoryGpusPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this gpu. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryGpusPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **gpu** | [**Gpu**](Gpu.md) | | + +### Return type + +[**Gpu**](Gpu.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryGpusRetrieve + +> Gpu InventoryGpusRetrieve(ctx, id).Fields(fields).Omit(omit).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this gpu. + fields := "fields_example" // string | Include only the specified fields in the response (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryGpusAPI.InventoryGpusRetrieve(context.Background(), id).Fields(fields).Omit(omit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryGpusAPI.InventoryGpusRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryGpusRetrieve`: Gpu + fmt.Fprintf(os.Stdout, "Response from `InventoryGpusAPI.InventoryGpusRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this gpu. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryGpusRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **string** | Include only the specified fields in the response | + **omit** | **string** | Exclude the specified fields in the response | + +### Return type + +[**Gpu**](Gpu.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryGpusStatsRetrieve + +> InventoryGpusStatsRetrieve(ctx).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.InventoryGpusAPI.InventoryGpusStatsRetrieve(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryGpusAPI.InventoryGpusStatsRetrieve``: %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 apiInventoryGpusStatsRetrieveRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## InventoryGpusUpdate + +> Gpu InventoryGpusUpdate(ctx, id).Gpu(gpu).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this gpu. + gpu := *openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now()) // Gpu | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryGpusAPI.InventoryGpusUpdate(context.Background(), id).Gpu(gpu).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryGpusAPI.InventoryGpusUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryGpusUpdate`: Gpu + fmt.Fprintf(os.Stdout, "Response from `InventoryGpusAPI.InventoryGpusUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this gpu. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryGpusUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **gpu** | [**Gpu**](Gpu.md) | | + +### Return type + +[**Gpu**](Gpu.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + diff --git a/v1/providers/launchpad/gen/launchpad/docs/InventoryInstancesAPI.md b/v1/providers/launchpad/gen/launchpad/docs/InventoryInstancesAPI.md new file mode 100644 index 0000000..f83fe05 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/InventoryInstancesAPI.md @@ -0,0 +1,586 @@ +# \InventoryInstancesAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**InventoryInstancesBulkPartialUpdate**](InventoryInstancesAPI.md#InventoryInstancesBulkPartialUpdate) | **Patch** /v1/inventory/instances/bulk/ | 🚧 [Beta Feature] +[**InventoryInstancesCreate**](InventoryInstancesAPI.md#InventoryInstancesCreate) | **Post** /v1/inventory/instances/ | 🚧 [Beta Feature] +[**InventoryInstancesDestroy**](InventoryInstancesAPI.md#InventoryInstancesDestroy) | **Delete** /v1/inventory/instances/{id}/ | 🚧 [Beta Feature] +[**InventoryInstancesHistoryList**](InventoryInstancesAPI.md#InventoryInstancesHistoryList) | **Get** /v1/inventory/instances/{id}/history/ | 🚧 [Beta Feature] +[**InventoryInstancesList**](InventoryInstancesAPI.md#InventoryInstancesList) | **Get** /v1/inventory/instances/ | 🚧 [Beta Feature] +[**InventoryInstancesPartialUpdate**](InventoryInstancesAPI.md#InventoryInstancesPartialUpdate) | **Patch** /v1/inventory/instances/{id}/ | 🚧 [Beta Feature] +[**InventoryInstancesRetrieve**](InventoryInstancesAPI.md#InventoryInstancesRetrieve) | **Get** /v1/inventory/instances/{id}/ | 🚧 [Beta Feature] +[**InventoryInstancesUpdate**](InventoryInstancesAPI.md#InventoryInstancesUpdate) | **Put** /v1/inventory/instances/{id}/ | 🚧 [Beta Feature] + + + +## InventoryInstancesBulkPartialUpdate + +> InstanceBulkUpdate InventoryInstancesBulkPartialUpdate(ctx).InstanceBulkUpdate(instanceBulkUpdate).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + instanceBulkUpdate := *openapiclient.NewInstanceBulkUpdate(openapiclient.Deployment_cluster{Cluster: openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: }, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now())}}, time.Now(), time.Now(), false, []string{"TenantIds_example"})}, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now())}}, time.Now(), time.Now(), false, []string{"TenantIds_example"})}, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now(), int32(123), []string{"Ids_example"}, "Result_example") // InstanceBulkUpdate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryInstancesAPI.InventoryInstancesBulkPartialUpdate(context.Background()).InstanceBulkUpdate(instanceBulkUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryInstancesAPI.InventoryInstancesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryInstancesBulkPartialUpdate`: InstanceBulkUpdate + fmt.Fprintf(os.Stdout, "Response from `InventoryInstancesAPI.InventoryInstancesBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryInstancesBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceBulkUpdate** | [**InstanceBulkUpdate**](InstanceBulkUpdate.md) | | + +### Return type + +[**InstanceBulkUpdate**](InstanceBulkUpdate.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryInstancesCreate + +> Instance InventoryInstancesCreate(ctx).Instance(instance).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + instance := *openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: }}, time.Now(), time.Now(), false, []string{"TenantIds_example"})}, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now())}}, time.Now(), time.Now(), false, []string{"TenantIds_example"})}, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now()) // Instance | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryInstancesAPI.InventoryInstancesCreate(context.Background()).Instance(instance).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryInstancesAPI.InventoryInstancesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryInstancesCreate`: Instance + fmt.Fprintf(os.Stdout, "Response from `InventoryInstancesAPI.InventoryInstancesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryInstancesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instance** | [**Instance**](Instance.md) | | + +### Return type + +[**Instance**](Instance.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryInstancesDestroy + +> InventoryInstancesDestroy(ctx, id).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this instance. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.InventoryInstancesAPI.InventoryInstancesDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryInstancesAPI.InventoryInstancesDestroy``: %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. +**id** | **string** | A UUID string identifying this instance. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryInstancesDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## InventoryInstancesHistoryList + +> PaginatedModelChangeList InventoryInstancesHistoryList(ctx, id).Page(page).PageSize(pageSize).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryInstancesAPI.InventoryInstancesHistoryList(context.Background(), id).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryInstancesAPI.InventoryInstancesHistoryList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryInstancesHistoryList`: PaginatedModelChangeList + fmt.Fprintf(os.Stdout, "Response from `InventoryInstancesAPI.InventoryInstancesHistoryList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryInstancesHistoryListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + +### Return type + +[**PaginatedModelChangeList**](PaginatedModelChangeList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryInstancesList + +> PaginatedInstanceList InventoryInstancesList(ctx).Cluster(cluster).Expand(expand).Fields(fields).Id(id).InstanceId(instanceId).Name(name).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).State(state).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + cluster := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + expand := "expand_example" // string | Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + instanceId := "instanceId_example" // string | (optional) + name := "name_example" // string | (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + search := "search_example" // string | Search for instances by cluster, id, instance_id, name, state, tags (optional) + state := "state_example" // string | Current lifecycle state of this instance * `running` - Instance is running * `starting` - Instance is starting * `stopped` - Instance is stopped * `stopping` - Instance is stopping * `unknown` - Instance state is currently unknown (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryInstancesAPI.InventoryInstancesList(context.Background()).Cluster(cluster).Expand(expand).Fields(fields).Id(id).InstanceId(instanceId).Name(name).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).State(state).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryInstancesAPI.InventoryInstancesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryInstancesList`: PaginatedInstanceList + fmt.Fprintf(os.Stdout, "Response from `InventoryInstancesAPI.InventoryInstancesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryInstancesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **string** | | + **expand** | **string** | Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). | + **fields** | **string** | Include only the specified fields in the response | + **id** | **string** | | + **instanceId** | **string** | | + **name** | **string** | | + **omit** | **string** | Exclude the specified fields in the response | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **search** | **string** | Search for instances by cluster, id, instance_id, name, state, tags | + **state** | **string** | Current lifecycle state of this instance * `running` - Instance is running * `starting` - Instance is starting * `stopped` - Instance is stopped * `stopping` - Instance is stopping * `unknown` - Instance state is currently unknown | + +### Return type + +[**PaginatedInstanceList**](PaginatedInstanceList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryInstancesPartialUpdate + +> Instance InventoryInstancesPartialUpdate(ctx, id).Instance(instance).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this instance. + instance := *openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: }}, time.Now(), time.Now(), false, []string{"TenantIds_example"})}, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now())}}, time.Now(), time.Now(), false, []string{"TenantIds_example"})}, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now()) // Instance | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryInstancesAPI.InventoryInstancesPartialUpdate(context.Background(), id).Instance(instance).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryInstancesAPI.InventoryInstancesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryInstancesPartialUpdate`: Instance + fmt.Fprintf(os.Stdout, "Response from `InventoryInstancesAPI.InventoryInstancesPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this instance. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryInstancesPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **instance** | [**Instance**](Instance.md) | | + +### Return type + +[**Instance**](Instance.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryInstancesRetrieve + +> Instance InventoryInstancesRetrieve(ctx, id).Expand(expand).Fields(fields).Omit(omit).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this instance. + expand := "expand_example" // string | Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryInstancesAPI.InventoryInstancesRetrieve(context.Background(), id).Expand(expand).Fields(fields).Omit(omit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryInstancesAPI.InventoryInstancesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryInstancesRetrieve`: Instance + fmt.Fprintf(os.Stdout, "Response from `InventoryInstancesAPI.InventoryInstancesRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this instance. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryInstancesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **expand** | **string** | Expand related field(s) instead of only showing a UUID (ex: \"cluster\"). | + **fields** | **string** | Include only the specified fields in the response | + **omit** | **string** | Exclude the specified fields in the response | + +### Return type + +[**Instance**](Instance.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryInstancesUpdate + +> Instance InventoryInstancesUpdate(ctx, id).Instance(instance).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this instance. + instance := *openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: openapiclient.NewInstance(openapiclient.Deployment_cluster{Cluster: openapiclient.NewCluster(false, time.Now(), openapiclient.Cluster_deployment{Deployment: openapiclient.NewDeployment(time.Now(), "Id_example", time.Now(), "OrgName_example", interface{}(123), []string{"Pipelines_example"}, "RequesterEmail_example", "RequesterName_example", int32(123), []string{"Services_example"}, int32(123), "SshUser_example", openapiclient.DeploymentState("destroyed"))}, []openapiclient.ClusterGpusInner{openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}}, "Id_example", []openapiclient.ClusterInstancesInner{openapiclient.Cluster_instances_inner{Instance: }}, time.Now(), time.Now(), false, []string{"TenantIds_example"})}, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now())}}, time.Now(), time.Now(), false, []string{"TenantIds_example"})}, time.Now(), "Id_example", "InstanceId_example", time.Now(), time.Now()) // Instance | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryInstancesAPI.InventoryInstancesUpdate(context.Background(), id).Instance(instance).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryInstancesAPI.InventoryInstancesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryInstancesUpdate`: Instance + fmt.Fprintf(os.Stdout, "Response from `InventoryInstancesAPI.InventoryInstancesUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this instance. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryInstancesUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **instance** | [**Instance**](Instance.md) | | + +### Return type + +[**Instance**](Instance.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + diff --git a/v1/providers/launchpad/gen/launchpad/docs/InventoryLocationsAPI.md b/v1/providers/launchpad/gen/launchpad/docs/InventoryLocationsAPI.md new file mode 100644 index 0000000..ea44f72 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/InventoryLocationsAPI.md @@ -0,0 +1,518 @@ +# \InventoryLocationsAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**InventoryLocationsCreate**](InventoryLocationsAPI.md#InventoryLocationsCreate) | **Post** /v1/inventory/locations/ | +[**InventoryLocationsDestroy**](InventoryLocationsAPI.md#InventoryLocationsDestroy) | **Delete** /v1/inventory/locations/{id}/ | +[**InventoryLocationsHistoryList**](InventoryLocationsAPI.md#InventoryLocationsHistoryList) | **Get** /v1/inventory/locations/{id}/history/ | +[**InventoryLocationsList**](InventoryLocationsAPI.md#InventoryLocationsList) | **Get** /v1/inventory/locations/ | +[**InventoryLocationsPartialUpdate**](InventoryLocationsAPI.md#InventoryLocationsPartialUpdate) | **Patch** /v1/inventory/locations/{id}/ | +[**InventoryLocationsRetrieve**](InventoryLocationsAPI.md#InventoryLocationsRetrieve) | **Get** /v1/inventory/locations/{id}/ | +[**InventoryLocationsUpdate**](InventoryLocationsAPI.md#InventoryLocationsUpdate) | **Put** /v1/inventory/locations/{id}/ | + + + +## InventoryLocationsCreate + +> Location InventoryLocationsCreate(ctx).Location(location).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + location := *openapiclient.NewLocation(time.Now(), "Id_example", time.Now(), "Name_example", openapiclient.Location_provider{Provider: openapiclient.NewProvider(time.Now(), "Id_example", time.Now(), "Name_example")}) // Location | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryLocationsAPI.InventoryLocationsCreate(context.Background()).Location(location).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryLocationsAPI.InventoryLocationsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryLocationsCreate`: Location + fmt.Fprintf(os.Stdout, "Response from `InventoryLocationsAPI.InventoryLocationsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryLocationsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **location** | [**Location**](Location.md) | | + +### Return type + +[**Location**](Location.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryLocationsDestroy + +> InventoryLocationsDestroy(ctx, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this location. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.InventoryLocationsAPI.InventoryLocationsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryLocationsAPI.InventoryLocationsDestroy``: %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. +**id** | **string** | A UUID string identifying this location. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryLocationsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## InventoryLocationsHistoryList + +> PaginatedModelChangeList InventoryLocationsHistoryList(ctx, id).Page(page).PageSize(pageSize).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryLocationsAPI.InventoryLocationsHistoryList(context.Background(), id).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryLocationsAPI.InventoryLocationsHistoryList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryLocationsHistoryList`: PaginatedModelChangeList + fmt.Fprintf(os.Stdout, "Response from `InventoryLocationsAPI.InventoryLocationsHistoryList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryLocationsHistoryListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + +### Return type + +[**PaginatedModelChangeList**](PaginatedModelChangeList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryLocationsList + +> PaginatedLocationList InventoryLocationsList(ctx).Expand(expand).Fields(fields).Id(id).Name(name).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Provider(provider).Region(region).Search(search).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + expand := "expand_example" // string | Expand related field(s) instead of only showing a UUID (ex: \"provider\"). (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := "name_example" // string | (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + provider := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + region := "region_example" // string | (optional) + search := "search_example" // string | Search for locations by id, name, provider name, region (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryLocationsAPI.InventoryLocationsList(context.Background()).Expand(expand).Fields(fields).Id(id).Name(name).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Provider(provider).Region(region).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryLocationsAPI.InventoryLocationsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryLocationsList`: PaginatedLocationList + fmt.Fprintf(os.Stdout, "Response from `InventoryLocationsAPI.InventoryLocationsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryLocationsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **expand** | **string** | Expand related field(s) instead of only showing a UUID (ex: \"provider\"). | + **fields** | **string** | Include only the specified fields in the response | + **id** | **string** | | + **name** | **string** | | + **omit** | **string** | Exclude the specified fields in the response | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **provider** | **string** | | + **region** | **string** | | + **search** | **string** | Search for locations by id, name, provider name, region | + +### Return type + +[**PaginatedLocationList**](PaginatedLocationList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryLocationsPartialUpdate + +> Location InventoryLocationsPartialUpdate(ctx, id).Location(location).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this location. + location := *openapiclient.NewLocation(time.Now(), "Id_example", time.Now(), "Name_example", openapiclient.Location_provider{Provider: openapiclient.NewProvider(time.Now(), "Id_example", time.Now(), "Name_example")}) // Location | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryLocationsAPI.InventoryLocationsPartialUpdate(context.Background(), id).Location(location).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryLocationsAPI.InventoryLocationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryLocationsPartialUpdate`: Location + fmt.Fprintf(os.Stdout, "Response from `InventoryLocationsAPI.InventoryLocationsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this location. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryLocationsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **location** | [**Location**](Location.md) | | + +### Return type + +[**Location**](Location.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryLocationsRetrieve + +> Location InventoryLocationsRetrieve(ctx, id).Expand(expand).Fields(fields).Omit(omit).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this location. + expand := "expand_example" // string | Expand related field(s) instead of only showing a UUID (ex: \"provider\"). (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryLocationsAPI.InventoryLocationsRetrieve(context.Background(), id).Expand(expand).Fields(fields).Omit(omit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryLocationsAPI.InventoryLocationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryLocationsRetrieve`: Location + fmt.Fprintf(os.Stdout, "Response from `InventoryLocationsAPI.InventoryLocationsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this location. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryLocationsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **expand** | **string** | Expand related field(s) instead of only showing a UUID (ex: \"provider\"). | + **fields** | **string** | Include only the specified fields in the response | + **omit** | **string** | Exclude the specified fields in the response | + +### Return type + +[**Location**](Location.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryLocationsUpdate + +> Location InventoryLocationsUpdate(ctx, id).Location(location).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this location. + location := *openapiclient.NewLocation(time.Now(), "Id_example", time.Now(), "Name_example", openapiclient.Location_provider{Provider: openapiclient.NewProvider(time.Now(), "Id_example", time.Now(), "Name_example")}) // Location | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryLocationsAPI.InventoryLocationsUpdate(context.Background(), id).Location(location).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryLocationsAPI.InventoryLocationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryLocationsUpdate`: Location + fmt.Fprintf(os.Stdout, "Response from `InventoryLocationsAPI.InventoryLocationsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this location. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryLocationsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **location** | [**Location**](Location.md) | | + +### Return type + +[**Location**](Location.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + diff --git a/v1/providers/launchpad/gen/launchpad/docs/InventoryNodesAPI.md b/v1/providers/launchpad/gen/launchpad/docs/InventoryNodesAPI.md new file mode 100644 index 0000000..7d43baf --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/InventoryNodesAPI.md @@ -0,0 +1,703 @@ +# \InventoryNodesAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**InventoryNodesBulkCreate**](InventoryNodesAPI.md#InventoryNodesBulkCreate) | **Post** /v1/inventory/nodes/bulk/ | +[**InventoryNodesBulkPartialUpdate**](InventoryNodesAPI.md#InventoryNodesBulkPartialUpdate) | **Patch** /v1/inventory/nodes/bulk/ | +[**InventoryNodesCreate**](InventoryNodesAPI.md#InventoryNodesCreate) | **Post** /v1/inventory/nodes/ | +[**InventoryNodesDestroy**](InventoryNodesAPI.md#InventoryNodesDestroy) | **Delete** /v1/inventory/nodes/{id}/ | +[**InventoryNodesHistoryList**](InventoryNodesAPI.md#InventoryNodesHistoryList) | **Get** /v1/inventory/nodes/{id}/history/ | +[**InventoryNodesList**](InventoryNodesAPI.md#InventoryNodesList) | **Get** /v1/inventory/nodes/ | +[**InventoryNodesPartialUpdate**](InventoryNodesAPI.md#InventoryNodesPartialUpdate) | **Patch** /v1/inventory/nodes/{id}/ | +[**InventoryNodesRetrieve**](InventoryNodesAPI.md#InventoryNodesRetrieve) | **Get** /v1/inventory/nodes/{id}/ | +[**InventoryNodesUpdate**](InventoryNodesAPI.md#InventoryNodesUpdate) | **Put** /v1/inventory/nodes/{id}/ | + + + +## InventoryNodesBulkCreate + +> NodeBulk InventoryNodesBulkCreate(ctx).CsvFile(csvFile).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + csvFile := os.NewFile(1234, "some_file") // *os.File | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryNodesAPI.InventoryNodesBulkCreate(context.Background()).CsvFile(csvFile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryNodesAPI.InventoryNodesBulkCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryNodesBulkCreate`: NodeBulk + fmt.Fprintf(os.Stdout, "Response from `InventoryNodesAPI.InventoryNodesBulkCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryNodesBulkCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **csvFile** | ***os.File** | | + +### Return type + +[**NodeBulk**](NodeBulk.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryNodesBulkPartialUpdate + +> NodeBulkUpdate InventoryNodesBulkPartialUpdate(ctx).NodeBulkUpdate(nodeBulkUpdate).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + nodeBulkUpdate := *openapiclient.NewNodeBulkUpdate(time.Now(), openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}, "GpuAlias_example", "GpuModel_example", "Id_example", openapiclient.Node_location{Location: openapiclient.NewLocation(time.Now(), "Id_example", time.Now(), "Name_example", openapiclient.Location_provider{Provider: openapiclient.NewProvider(time.Now(), "Id_example", time.Now(), "Name_example")})}, time.Now(), "SerialNumber_example", []openapiclient.NodeStorage{*openapiclient.NewNodeStorage(openapiclient.TypeEnum("nvme"))}, openapiclient.SystemArchEnum("amd64"), int32(123), []string{"Ids_example"}, "Result_example") // NodeBulkUpdate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryNodesAPI.InventoryNodesBulkPartialUpdate(context.Background()).NodeBulkUpdate(nodeBulkUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryNodesAPI.InventoryNodesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryNodesBulkPartialUpdate`: NodeBulkUpdate + fmt.Fprintf(os.Stdout, "Response from `InventoryNodesAPI.InventoryNodesBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryNodesBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nodeBulkUpdate** | [**NodeBulkUpdate**](NodeBulkUpdate.md) | | + +### Return type + +[**NodeBulkUpdate**](NodeBulkUpdate.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[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) + + +## InventoryNodesCreate + +> Node InventoryNodesCreate(ctx).Node(node).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + node := *openapiclient.NewNode(time.Now(), openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}, "GpuAlias_example", "GpuModel_example", "Id_example", openapiclient.Node_location{Location: openapiclient.NewLocation(time.Now(), "Id_example", time.Now(), "Name_example", openapiclient.Location_provider{Provider: openapiclient.NewProvider(time.Now(), "Id_example", time.Now(), "Name_example")})}, time.Now(), []openapiclient.NodeStorage{*openapiclient.NewNodeStorage(openapiclient.TypeEnum("nvme"))}, openapiclient.SystemArchEnum("amd64")) // Node | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryNodesAPI.InventoryNodesCreate(context.Background()).Node(node).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryNodesAPI.InventoryNodesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryNodesCreate`: Node + fmt.Fprintf(os.Stdout, "Response from `InventoryNodesAPI.InventoryNodesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryNodesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node** | [**Node**](Node.md) | | + +### Return type + +[**Node**](Node.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryNodesDestroy + +> InventoryNodesDestroy(ctx, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this node. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.InventoryNodesAPI.InventoryNodesDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryNodesAPI.InventoryNodesDestroy``: %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. +**id** | **string** | A UUID string identifying this node. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryNodesDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## InventoryNodesHistoryList + +> PaginatedModelChangeList InventoryNodesHistoryList(ctx, id).Page(page).PageSize(pageSize).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryNodesAPI.InventoryNodesHistoryList(context.Background(), id).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryNodesAPI.InventoryNodesHistoryList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryNodesHistoryList`: PaginatedModelChangeList + fmt.Fprintf(os.Stdout, "Response from `InventoryNodesAPI.InventoryNodesHistoryList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryNodesHistoryListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + +### Return type + +[**PaginatedModelChangeList**](PaginatedModelChangeList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryNodesList + +> PaginatedNodeList InventoryNodesList(ctx).BmcIp(bmcIp).BmcMac(bmcMac).BmcPassword(bmcPassword).BmcUser(bmcUser).Cluster(cluster).Cpu(cpu).CpuManufacturer(cpuManufacturer).CpuModel(cpuModel).Expand(expand).Fields(fields).GarageId(garageId).Gpu(gpu).GpuAlias(gpuAlias).GpuCount(gpuCount).GpuModel(gpuModel).GpuVbios(gpuVbios).Id(id).Location(location).Memory(memory).MgmtIp(mgmtIp).MgmtMac(mgmtMac).MinGpuCount(minGpuCount).Model(model).NetworkType(networkType).Oem(oem).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Provider(provider).ProviderNodeId(providerNodeId).Rack(rack).RackUnit(rackUnit).Search(search).SerialNumber(serialNumber).SystemArch(systemArch).Tee(tee).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + bmcIp := "bmcIp_example" // string | (optional) + bmcMac := "bmcMac_example" // string | (optional) + bmcPassword := "bmcPassword_example" // string | (optional) + bmcUser := "bmcUser_example" // string | (optional) + cluster := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + cpu := int32(56) // int32 | (optional) + cpuManufacturer := "cpuManufacturer_example" // string | Manufacturer of the node's CPU * `amd` - AMD * `arm` - ARM * `intel` - Intel (optional) + cpuModel := "cpuModel_example" // string | (optional) + expand := "expand_example" // string | Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: \"location.provider\"). Separate multiple fields with a comma (ex: \"location,oem\") (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + garageId := "garageId_example" // string | (optional) + gpu := []string{"Inner_example"} // []string | Multiple values may be separated by commas. (optional) + gpuAlias := "gpuAlias_example" // string | Alias for GPU plan (i.e. installed GPU type and count) (optional) + gpuCount := int32(56) // int32 | (optional) + gpuModel := "gpuModel_example" // string | Model of GPU(s) installed (optional) + gpuVbios := "gpuVbios_example" // string | (optional) + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + location := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + memory := int32(56) // int32 | (optional) + mgmtIp := "mgmtIp_example" // string | (optional) + mgmtMac := "mgmtMac_example" // string | (optional) + minGpuCount := int32(56) // int32 | Only include nodes that have a gpu_count greater than or equal to this value (optional) + model := "model_example" // string | (optional) + networkType := "networkType_example" // string | Type of networking technology used * `ethernet` - Ethernet * `infiniband` - InfiniBand (optional) + oem := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + provider := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + providerNodeId := "providerNodeId_example" // string | (optional) + rack := "rack_example" // string | (optional) + rackUnit := int32(56) // int32 | (optional) + search := "search_example" // string | Search for nodes by bmc_ip, bmc_mac, bmc_password, bmc_user, cpu_manufacturer, cpu_model, garage_id, gpu_alias, gpu model, gpu_vbios, id, location name, location provider name, memory, mgmt_ip, mgmt_mac, model, network_type, nic_prefixes, notes, oem name, provider_node_id, rack, rack_unit, serial_number, storage, system_arch (optional) + serialNumber := "serialNumber_example" // string | (optional) + systemArch := "systemArch_example" // string | CPU architecture * `amd64` - amd64 * `arm64` - arm64 (optional) + tee := true // bool | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryNodesAPI.InventoryNodesList(context.Background()).BmcIp(bmcIp).BmcMac(bmcMac).BmcPassword(bmcPassword).BmcUser(bmcUser).Cluster(cluster).Cpu(cpu).CpuManufacturer(cpuManufacturer).CpuModel(cpuModel).Expand(expand).Fields(fields).GarageId(garageId).Gpu(gpu).GpuAlias(gpuAlias).GpuCount(gpuCount).GpuModel(gpuModel).GpuVbios(gpuVbios).Id(id).Location(location).Memory(memory).MgmtIp(mgmtIp).MgmtMac(mgmtMac).MinGpuCount(minGpuCount).Model(model).NetworkType(networkType).Oem(oem).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Provider(provider).ProviderNodeId(providerNodeId).Rack(rack).RackUnit(rackUnit).Search(search).SerialNumber(serialNumber).SystemArch(systemArch).Tee(tee).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryNodesAPI.InventoryNodesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryNodesList`: PaginatedNodeList + fmt.Fprintf(os.Stdout, "Response from `InventoryNodesAPI.InventoryNodesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryNodesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bmcIp** | **string** | | + **bmcMac** | **string** | | + **bmcPassword** | **string** | | + **bmcUser** | **string** | | + **cluster** | **string** | | + **cpu** | **int32** | | + **cpuManufacturer** | **string** | Manufacturer of the node's CPU * `amd` - AMD * `arm` - ARM * `intel` - Intel | + **cpuModel** | **string** | | + **expand** | **string** | Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: \"location.provider\"). Separate multiple fields with a comma (ex: \"location,oem\") | + **fields** | **string** | Include only the specified fields in the response | + **garageId** | **string** | | + **gpu** | **[]string** | Multiple values may be separated by commas. | + **gpuAlias** | **string** | Alias for GPU plan (i.e. installed GPU type and count) | + **gpuCount** | **int32** | | + **gpuModel** | **string** | Model of GPU(s) installed | + **gpuVbios** | **string** | | + **id** | **string** | | + **location** | **string** | | + **memory** | **int32** | | + **mgmtIp** | **string** | | + **mgmtMac** | **string** | | + **minGpuCount** | **int32** | Only include nodes that have a gpu_count greater than or equal to this value | + **model** | **string** | | + **networkType** | **string** | Type of networking technology used * `ethernet` - Ethernet * `infiniband` - InfiniBand | + **oem** | **string** | | + **omit** | **string** | Exclude the specified fields in the response | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **provider** | **string** | | + **providerNodeId** | **string** | | + **rack** | **string** | | + **rackUnit** | **int32** | | + **search** | **string** | Search for nodes by bmc_ip, bmc_mac, bmc_password, bmc_user, cpu_manufacturer, cpu_model, garage_id, gpu_alias, gpu model, gpu_vbios, id, location name, location provider name, memory, mgmt_ip, mgmt_mac, model, network_type, nic_prefixes, notes, oem name, provider_node_id, rack, rack_unit, serial_number, storage, system_arch | + **serialNumber** | **string** | | + **systemArch** | **string** | CPU architecture * `amd64` - amd64 * `arm64` - arm64 | + **tee** | **bool** | | + +### Return type + +[**PaginatedNodeList**](PaginatedNodeList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryNodesPartialUpdate + +> Node InventoryNodesPartialUpdate(ctx, id).Node(node).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this node. + node := *openapiclient.NewNode(time.Now(), openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}, "GpuAlias_example", "GpuModel_example", "Id_example", openapiclient.Node_location{Location: openapiclient.NewLocation(time.Now(), "Id_example", time.Now(), "Name_example", openapiclient.Location_provider{Provider: openapiclient.NewProvider(time.Now(), "Id_example", time.Now(), "Name_example")})}, time.Now(), []openapiclient.NodeStorage{*openapiclient.NewNodeStorage(openapiclient.TypeEnum("nvme"))}, openapiclient.SystemArchEnum("amd64")) // Node | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryNodesAPI.InventoryNodesPartialUpdate(context.Background(), id).Node(node).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryNodesAPI.InventoryNodesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryNodesPartialUpdate`: Node + fmt.Fprintf(os.Stdout, "Response from `InventoryNodesAPI.InventoryNodesPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this node. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryNodesPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **node** | [**Node**](Node.md) | | + +### Return type + +[**Node**](Node.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryNodesRetrieve + +> Node InventoryNodesRetrieve(ctx, id).Expand(expand).Fields(fields).Omit(omit).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this node. + expand := "expand_example" // string | Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: \"location.provider\"). Separate multiple fields with a comma (ex: \"location,oem\") (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryNodesAPI.InventoryNodesRetrieve(context.Background(), id).Expand(expand).Fields(fields).Omit(omit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryNodesAPI.InventoryNodesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryNodesRetrieve`: Node + fmt.Fprintf(os.Stdout, "Response from `InventoryNodesAPI.InventoryNodesRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this node. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryNodesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **expand** | **string** | Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: \"location.provider\"). Separate multiple fields with a comma (ex: \"location,oem\") | + **fields** | **string** | Include only the specified fields in the response | + **omit** | **string** | Exclude the specified fields in the response | + +### Return type + +[**Node**](Node.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryNodesUpdate + +> Node InventoryNodesUpdate(ctx, id).Node(node).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this node. + node := *openapiclient.NewNode(time.Now(), openapiclient.Cluster_gpus_inner{Gpu: openapiclient.NewGpu(time.Now(), "Id_example", "Model_example", time.Now())}, "GpuAlias_example", "GpuModel_example", "Id_example", openapiclient.Node_location{Location: openapiclient.NewLocation(time.Now(), "Id_example", time.Now(), "Name_example", openapiclient.Location_provider{Provider: openapiclient.NewProvider(time.Now(), "Id_example", time.Now(), "Name_example")})}, time.Now(), []openapiclient.NodeStorage{*openapiclient.NewNodeStorage(openapiclient.TypeEnum("nvme"))}, openapiclient.SystemArchEnum("amd64")) // Node | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryNodesAPI.InventoryNodesUpdate(context.Background(), id).Node(node).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryNodesAPI.InventoryNodesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryNodesUpdate`: Node + fmt.Fprintf(os.Stdout, "Response from `InventoryNodesAPI.InventoryNodesUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this node. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryNodesUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **node** | [**Node**](Node.md) | | + +### Return type + +[**Node**](Node.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + diff --git a/v1/providers/launchpad/gen/launchpad/docs/InventoryOemsAPI.md b/v1/providers/launchpad/gen/launchpad/docs/InventoryOemsAPI.md new file mode 100644 index 0000000..7bbc987 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/InventoryOemsAPI.md @@ -0,0 +1,502 @@ +# \InventoryOemsAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**InventoryOemsCreate**](InventoryOemsAPI.md#InventoryOemsCreate) | **Post** /v1/inventory/oems/ | +[**InventoryOemsDestroy**](InventoryOemsAPI.md#InventoryOemsDestroy) | **Delete** /v1/inventory/oems/{id}/ | +[**InventoryOemsHistoryList**](InventoryOemsAPI.md#InventoryOemsHistoryList) | **Get** /v1/inventory/oems/{id}/history/ | +[**InventoryOemsList**](InventoryOemsAPI.md#InventoryOemsList) | **Get** /v1/inventory/oems/ | +[**InventoryOemsPartialUpdate**](InventoryOemsAPI.md#InventoryOemsPartialUpdate) | **Patch** /v1/inventory/oems/{id}/ | +[**InventoryOemsRetrieve**](InventoryOemsAPI.md#InventoryOemsRetrieve) | **Get** /v1/inventory/oems/{id}/ | +[**InventoryOemsUpdate**](InventoryOemsAPI.md#InventoryOemsUpdate) | **Put** /v1/inventory/oems/{id}/ | + + + +## InventoryOemsCreate + +> OEM InventoryOemsCreate(ctx).OEM(oEM).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + oEM := *openapiclient.NewOEM(time.Now(), "Id_example", time.Now(), "Name_example") // OEM | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryOemsAPI.InventoryOemsCreate(context.Background()).OEM(oEM).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryOemsAPI.InventoryOemsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryOemsCreate`: OEM + fmt.Fprintf(os.Stdout, "Response from `InventoryOemsAPI.InventoryOemsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryOemsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oEM** | [**OEM**](OEM.md) | | + +### Return type + +[**OEM**](OEM.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryOemsDestroy + +> InventoryOemsDestroy(ctx, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this oem. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.InventoryOemsAPI.InventoryOemsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryOemsAPI.InventoryOemsDestroy``: %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. +**id** | **string** | A UUID string identifying this oem. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryOemsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## InventoryOemsHistoryList + +> PaginatedModelChangeList InventoryOemsHistoryList(ctx, id).Page(page).PageSize(pageSize).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryOemsAPI.InventoryOemsHistoryList(context.Background(), id).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryOemsAPI.InventoryOemsHistoryList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryOemsHistoryList`: PaginatedModelChangeList + fmt.Fprintf(os.Stdout, "Response from `InventoryOemsAPI.InventoryOemsHistoryList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryOemsHistoryListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + +### Return type + +[**PaginatedModelChangeList**](PaginatedModelChangeList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryOemsList + +> PaginatedOEMList InventoryOemsList(ctx).Id(id).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := "name_example" // string | (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + search := "search_example" // string | Search for oems by id, name (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryOemsAPI.InventoryOemsList(context.Background()).Id(id).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryOemsAPI.InventoryOemsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryOemsList`: PaginatedOEMList + fmt.Fprintf(os.Stdout, "Response from `InventoryOemsAPI.InventoryOemsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryOemsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string** | | + **name** | **string** | | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **search** | **string** | Search for oems by id, name | + +### Return type + +[**PaginatedOEMList**](PaginatedOEMList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryOemsPartialUpdate + +> OEM InventoryOemsPartialUpdate(ctx, id).OEM(oEM).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this oem. + oEM := *openapiclient.NewOEM(time.Now(), "Id_example", time.Now(), "Name_example") // OEM | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryOemsAPI.InventoryOemsPartialUpdate(context.Background(), id).OEM(oEM).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryOemsAPI.InventoryOemsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryOemsPartialUpdate`: OEM + fmt.Fprintf(os.Stdout, "Response from `InventoryOemsAPI.InventoryOemsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this oem. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryOemsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **oEM** | [**OEM**](OEM.md) | | + +### Return type + +[**OEM**](OEM.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryOemsRetrieve + +> OEM InventoryOemsRetrieve(ctx, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this oem. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryOemsAPI.InventoryOemsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryOemsAPI.InventoryOemsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryOemsRetrieve`: OEM + fmt.Fprintf(os.Stdout, "Response from `InventoryOemsAPI.InventoryOemsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this oem. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryOemsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**OEM**](OEM.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryOemsUpdate + +> OEM InventoryOemsUpdate(ctx, id).OEM(oEM).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this oem. + oEM := *openapiclient.NewOEM(time.Now(), "Id_example", time.Now(), "Name_example") // OEM | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryOemsAPI.InventoryOemsUpdate(context.Background(), id).OEM(oEM).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryOemsAPI.InventoryOemsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryOemsUpdate`: OEM + fmt.Fprintf(os.Stdout, "Response from `InventoryOemsAPI.InventoryOemsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this oem. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryOemsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **oEM** | [**OEM**](OEM.md) | | + +### Return type + +[**OEM**](OEM.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + diff --git a/v1/providers/launchpad/gen/launchpad/docs/InventoryProvidersAPI.md b/v1/providers/launchpad/gen/launchpad/docs/InventoryProvidersAPI.md new file mode 100644 index 0000000..7b58637 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/InventoryProvidersAPI.md @@ -0,0 +1,640 @@ +# \InventoryProvidersAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**InventoryProvidersBulkPartialUpdate**](InventoryProvidersAPI.md#InventoryProvidersBulkPartialUpdate) | **Patch** /v1/inventory/providers/bulk/ | +[**InventoryProvidersCreate**](InventoryProvidersAPI.md#InventoryProvidersCreate) | **Post** /v1/inventory/providers/ | +[**InventoryProvidersDestroy**](InventoryProvidersAPI.md#InventoryProvidersDestroy) | **Delete** /v1/inventory/providers/{id}/ | +[**InventoryProvidersHistoryList**](InventoryProvidersAPI.md#InventoryProvidersHistoryList) | **Get** /v1/inventory/providers/{id}/history/ | +[**InventoryProvidersList**](InventoryProvidersAPI.md#InventoryProvidersList) | **Get** /v1/inventory/providers/ | +[**InventoryProvidersPartialUpdate**](InventoryProvidersAPI.md#InventoryProvidersPartialUpdate) | **Patch** /v1/inventory/providers/{id}/ | +[**InventoryProvidersRetrieve**](InventoryProvidersAPI.md#InventoryProvidersRetrieve) | **Get** /v1/inventory/providers/{id}/ | +[**InventoryProvidersStatsRetrieve**](InventoryProvidersAPI.md#InventoryProvidersStatsRetrieve) | **Get** /v1/inventory/providers/stats/ | 🚧 [Beta Feature] +[**InventoryProvidersUpdate**](InventoryProvidersAPI.md#InventoryProvidersUpdate) | **Put** /v1/inventory/providers/{id}/ | + + + +## InventoryProvidersBulkPartialUpdate + +> ProviderBulkUpdate InventoryProvidersBulkPartialUpdate(ctx).ProviderBulkUpdate(providerBulkUpdate).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + providerBulkUpdate := *openapiclient.NewProviderBulkUpdate(time.Now(), "Id_example", time.Now(), "Name_example", int32(123), []string{"Ids_example"}, "Result_example") // ProviderBulkUpdate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryProvidersAPI.InventoryProvidersBulkPartialUpdate(context.Background()).ProviderBulkUpdate(providerBulkUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryProvidersAPI.InventoryProvidersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryProvidersBulkPartialUpdate`: ProviderBulkUpdate + fmt.Fprintf(os.Stdout, "Response from `InventoryProvidersAPI.InventoryProvidersBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryProvidersBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providerBulkUpdate** | [**ProviderBulkUpdate**](ProviderBulkUpdate.md) | | + +### Return type + +[**ProviderBulkUpdate**](ProviderBulkUpdate.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryProvidersCreate + +> Provider InventoryProvidersCreate(ctx).Provider(provider).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + provider := *openapiclient.NewProvider(time.Now(), "Id_example", time.Now(), "Name_example") // Provider | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryProvidersAPI.InventoryProvidersCreate(context.Background()).Provider(provider).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryProvidersAPI.InventoryProvidersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryProvidersCreate`: Provider + fmt.Fprintf(os.Stdout, "Response from `InventoryProvidersAPI.InventoryProvidersCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryProvidersCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **provider** | [**Provider**](Provider.md) | | + +### Return type + +[**Provider**](Provider.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryProvidersDestroy + +> InventoryProvidersDestroy(ctx, id).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this provider. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.InventoryProvidersAPI.InventoryProvidersDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryProvidersAPI.InventoryProvidersDestroy``: %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. +**id** | **string** | A UUID string identifying this provider. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryProvidersDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## InventoryProvidersHistoryList + +> PaginatedModelChangeList InventoryProvidersHistoryList(ctx, id).Page(page).PageSize(pageSize).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryProvidersAPI.InventoryProvidersHistoryList(context.Background(), id).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryProvidersAPI.InventoryProvidersHistoryList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryProvidersHistoryList`: PaginatedModelChangeList + fmt.Fprintf(os.Stdout, "Response from `InventoryProvidersAPI.InventoryProvidersHistoryList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryProvidersHistoryListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + +### Return type + +[**PaginatedModelChangeList**](PaginatedModelChangeList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryProvidersList + +> PaginatedProviderList InventoryProvidersList(ctx).DisplayName(displayName).Fields(fields).Id(id).InstanceLimit(instanceLimit).Name(name).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Priority(priority).Search(search).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + displayName := "displayName_example" // string | (optional) + fields := "fields_example" // string | Include only the specified fields in the response (optional) + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + instanceLimit := int32(56) // int32 | (optional) + name := "name_example" // string | (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + priority := int32(56) // int32 | (optional) + search := "search_example" // string | Search for providers by display_name, id, name (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryProvidersAPI.InventoryProvidersList(context.Background()).DisplayName(displayName).Fields(fields).Id(id).InstanceLimit(instanceLimit).Name(name).Omit(omit).Ordering(ordering).Page(page).PageSize(pageSize).Priority(priority).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryProvidersAPI.InventoryProvidersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryProvidersList`: PaginatedProviderList + fmt.Fprintf(os.Stdout, "Response from `InventoryProvidersAPI.InventoryProvidersList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryProvidersListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **displayName** | **string** | | + **fields** | **string** | Include only the specified fields in the response | + **id** | **string** | | + **instanceLimit** | **int32** | | + **name** | **string** | | + **omit** | **string** | Exclude the specified fields in the response | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **priority** | **int32** | | + **search** | **string** | Search for providers by display_name, id, name | + +### Return type + +[**PaginatedProviderList**](PaginatedProviderList.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryProvidersPartialUpdate + +> Provider InventoryProvidersPartialUpdate(ctx, id).Provider(provider).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this provider. + provider := *openapiclient.NewProvider(time.Now(), "Id_example", time.Now(), "Name_example") // Provider | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryProvidersAPI.InventoryProvidersPartialUpdate(context.Background(), id).Provider(provider).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryProvidersAPI.InventoryProvidersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryProvidersPartialUpdate`: Provider + fmt.Fprintf(os.Stdout, "Response from `InventoryProvidersAPI.InventoryProvidersPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this provider. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryProvidersPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **provider** | [**Provider**](Provider.md) | | + +### Return type + +[**Provider**](Provider.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + + +## InventoryProvidersRetrieve + +> Provider InventoryProvidersRetrieve(ctx, id).Fields(fields).Omit(omit).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this provider. + fields := "fields_example" // string | Include only the specified fields in the response (optional) + omit := "omit_example" // string | Exclude the specified fields in the response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryProvidersAPI.InventoryProvidersRetrieve(context.Background(), id).Fields(fields).Omit(omit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryProvidersAPI.InventoryProvidersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryProvidersRetrieve`: Provider + fmt.Fprintf(os.Stdout, "Response from `InventoryProvidersAPI.InventoryProvidersRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this provider. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryProvidersRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **string** | Include only the specified fields in the response | + **omit** | **string** | Exclude the specified fields in the response | + +### Return type + +[**Provider**](Provider.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## InventoryProvidersStatsRetrieve + +> InventoryProvidersStatsRetrieve(ctx).Execute() + +🚧 [Beta Feature] + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.InventoryProvidersAPI.InventoryProvidersStatsRetrieve(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryProvidersAPI.InventoryProvidersStatsRetrieve``: %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 apiInventoryProvidersStatsRetrieveRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### 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) + + +## InventoryProvidersUpdate + +> Provider InventoryProvidersUpdate(ctx, id).Provider(provider).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/brevdev/cloud" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this provider. + provider := *openapiclient.NewProvider(time.Now(), "Id_example", time.Now(), "Name_example") // Provider | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InventoryProvidersAPI.InventoryProvidersUpdate(context.Background(), id).Provider(provider).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryProvidersAPI.InventoryProvidersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InventoryProvidersUpdate`: Provider + fmt.Fprintf(os.Stdout, "Response from `InventoryProvidersAPI.InventoryProvidersUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A UUID string identifying this provider. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInventoryProvidersUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **provider** | [**Provider**](Provider.md) | | + +### Return type + +[**Provider**](Provider.md) + +### Authorization + +[TokenAuthentication](../README.md#TokenAuthentication) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[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) + diff --git a/v1/providers/launchpad/gen/launchpad/docs/Location.md b/v1/providers/launchpad/gen/launchpad/docs/Location.md new file mode 100644 index 0000000..39bb9e8 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/Location.md @@ -0,0 +1,171 @@ +# Location + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Id** | **string** | | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**Name** | **string** | | +**Provider** | [**LocationProvider**](LocationProvider.md) | | +**Region** | Pointer to **NullableString** | Name of the region the location is in | [optional] + +## Methods + +### NewLocation + +`func NewLocation(created time.Time, id string, modified time.Time, name string, provider LocationProvider, ) *Location` + +NewLocation instantiates a new Location 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 + +### NewLocationWithDefaults + +`func NewLocationWithDefaults() *Location` + +NewLocationWithDefaults instantiates a new Location 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 + +### GetCreated + +`func (o *Location) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Location) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Location) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetId + +`func (o *Location) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Location) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Location) SetId(v string)` + +SetId sets Id field to given value. + + +### GetModified + +`func (o *Location) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *Location) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *Location) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetName + +`func (o *Location) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Location) 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 *Location) SetName(v string)` + +SetName sets Name field to given value. + + +### GetProvider + +`func (o *Location) GetProvider() LocationProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *Location) GetProviderOk() (*LocationProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *Location) SetProvider(v LocationProvider)` + +SetProvider sets Provider field to given value. + + +### GetRegion + +`func (o *Location) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *Location) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *Location) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *Location) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### SetRegionNil + +`func (o *Location) SetRegionNil(b bool)` + + SetRegionNil sets the value for Region to be an explicit nil + +### UnsetRegion +`func (o *Location) UnsetRegion()` + +UnsetRegion ensures that no value is present for Region, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/LocationProvider.md b/v1/providers/launchpad/gen/launchpad/docs/LocationProvider.md new file mode 100644 index 0000000..f7a41eb --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/LocationProvider.md @@ -0,0 +1,192 @@ +# LocationProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**DisplayName** | Pointer to **string** | Human-friendly version of name. Used for display purposes. | [optional] +**Id** | **string** | | [readonly] +**InstanceLimit** | Pointer to **int32** | The maximum number of provisionined instances allowed globally for the provider (0 = unlimited) | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**Name** | **string** | | +**Priority** | Pointer to **int32** | Weighted preference to use in selecting a provider for a deployment. Higher priority values will be preferred over lower ones. | [optional] + +## Methods + +### NewLocationProvider + +`func NewLocationProvider(created time.Time, id string, modified time.Time, name string, ) *LocationProvider` + +NewLocationProvider instantiates a new LocationProvider 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 + +### NewLocationProviderWithDefaults + +`func NewLocationProviderWithDefaults() *LocationProvider` + +NewLocationProviderWithDefaults instantiates a new LocationProvider 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 + +### GetCreated + +`func (o *LocationProvider) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *LocationProvider) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *LocationProvider) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetDisplayName + +`func (o *LocationProvider) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *LocationProvider) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *LocationProvider) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *LocationProvider) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetId + +`func (o *LocationProvider) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *LocationProvider) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *LocationProvider) SetId(v string)` + +SetId sets Id field to given value. + + +### GetInstanceLimit + +`func (o *LocationProvider) GetInstanceLimit() int32` + +GetInstanceLimit returns the InstanceLimit field if non-nil, zero value otherwise. + +### GetInstanceLimitOk + +`func (o *LocationProvider) GetInstanceLimitOk() (*int32, bool)` + +GetInstanceLimitOk returns a tuple with the InstanceLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceLimit + +`func (o *LocationProvider) SetInstanceLimit(v int32)` + +SetInstanceLimit sets InstanceLimit field to given value. + +### HasInstanceLimit + +`func (o *LocationProvider) HasInstanceLimit() bool` + +HasInstanceLimit returns a boolean if a field has been set. + +### GetModified + +`func (o *LocationProvider) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *LocationProvider) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *LocationProvider) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetName + +`func (o *LocationProvider) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LocationProvider) 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 *LocationProvider) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPriority + +`func (o *LocationProvider) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *LocationProvider) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *LocationProvider) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *LocationProvider) HasPriority() bool` + +HasPriority 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) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/Logout.md b/v1/providers/launchpad/gen/launchpad/docs/Logout.md new file mode 100644 index 0000000..f576d4b --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/Logout.md @@ -0,0 +1,51 @@ +# Logout + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | **string** | | [readonly] [default to "Successfully logged out."] + +## Methods + +### NewLogout + +`func NewLogout(result string, ) *Logout` + +NewLogout instantiates a new Logout 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 + +### NewLogoutWithDefaults + +`func NewLogoutWithDefaults() *Logout` + +NewLogoutWithDefaults instantiates a new Logout 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 + +### GetResult + +`func (o *Logout) GetResult() string` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *Logout) GetResultOk() (*string, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *Logout) SetResult(v string)` + +SetResult sets Result field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/ModelChange.md b/v1/providers/launchpad/gen/launchpad/docs/ModelChange.md new file mode 100644 index 0000000..4318ded --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/ModelChange.md @@ -0,0 +1,135 @@ +# ModelChange + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChangeType** | **string** | | [readonly] +**Changes** | [**[]ModelChangeChangesInner**](ModelChangeChangesInner.md) | | +**Created** | **time.Time** | | +**Id** | **int32** | | +**Username** | **string** | | + +## Methods + +### NewModelChange + +`func NewModelChange(changeType string, changes []ModelChangeChangesInner, created time.Time, id int32, username string, ) *ModelChange` + +NewModelChange instantiates a new ModelChange 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 + +### NewModelChangeWithDefaults + +`func NewModelChangeWithDefaults() *ModelChange` + +NewModelChangeWithDefaults instantiates a new ModelChange 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 + +### GetChangeType + +`func (o *ModelChange) GetChangeType() string` + +GetChangeType returns the ChangeType field if non-nil, zero value otherwise. + +### GetChangeTypeOk + +`func (o *ModelChange) GetChangeTypeOk() (*string, bool)` + +GetChangeTypeOk returns a tuple with the ChangeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChangeType + +`func (o *ModelChange) SetChangeType(v string)` + +SetChangeType sets ChangeType field to given value. + + +### GetChanges + +`func (o *ModelChange) GetChanges() []ModelChangeChangesInner` + +GetChanges returns the Changes field if non-nil, zero value otherwise. + +### GetChangesOk + +`func (o *ModelChange) GetChangesOk() (*[]ModelChangeChangesInner, bool)` + +GetChangesOk returns a tuple with the Changes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChanges + +`func (o *ModelChange) SetChanges(v []ModelChangeChangesInner)` + +SetChanges sets Changes field to given value. + + +### GetCreated + +`func (o *ModelChange) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ModelChange) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ModelChange) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetId + +`func (o *ModelChange) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelChange) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelChange) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUsername + +`func (o *ModelChange) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ModelChange) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ModelChange) SetUsername(v string)` + +SetUsername sets Username field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/ModelChangeChangesInner.md b/v1/providers/launchpad/gen/launchpad/docs/ModelChangeChangesInner.md new file mode 100644 index 0000000..8a9d191 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/ModelChangeChangesInner.md @@ -0,0 +1,93 @@ +# ModelChangeChangesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Field** | **string** | | +**NewValue** | [**ModelChangeChangesInnerNewValue**](ModelChangeChangesInnerNewValue.md) | | +**OldValue** | [**ModelChangeChangesInnerNewValue**](ModelChangeChangesInnerNewValue.md) | | + +## Methods + +### NewModelChangeChangesInner + +`func NewModelChangeChangesInner(field string, newValue ModelChangeChangesInnerNewValue, oldValue ModelChangeChangesInnerNewValue, ) *ModelChangeChangesInner` + +NewModelChangeChangesInner instantiates a new ModelChangeChangesInner 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 + +### NewModelChangeChangesInnerWithDefaults + +`func NewModelChangeChangesInnerWithDefaults() *ModelChangeChangesInner` + +NewModelChangeChangesInnerWithDefaults instantiates a new ModelChangeChangesInner 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 + +### GetField + +`func (o *ModelChangeChangesInner) GetField() string` + +GetField returns the Field field if non-nil, zero value otherwise. + +### GetFieldOk + +`func (o *ModelChangeChangesInner) GetFieldOk() (*string, bool)` + +GetFieldOk returns a tuple with the Field field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetField + +`func (o *ModelChangeChangesInner) SetField(v string)` + +SetField sets Field field to given value. + + +### GetNewValue + +`func (o *ModelChangeChangesInner) GetNewValue() ModelChangeChangesInnerNewValue` + +GetNewValue returns the NewValue field if non-nil, zero value otherwise. + +### GetNewValueOk + +`func (o *ModelChangeChangesInner) GetNewValueOk() (*ModelChangeChangesInnerNewValue, bool)` + +GetNewValueOk returns a tuple with the NewValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewValue + +`func (o *ModelChangeChangesInner) SetNewValue(v ModelChangeChangesInnerNewValue)` + +SetNewValue sets NewValue field to given value. + + +### GetOldValue + +`func (o *ModelChangeChangesInner) GetOldValue() ModelChangeChangesInnerNewValue` + +GetOldValue returns the OldValue field if non-nil, zero value otherwise. + +### GetOldValueOk + +`func (o *ModelChangeChangesInner) GetOldValueOk() (*ModelChangeChangesInnerNewValue, bool)` + +GetOldValueOk returns a tuple with the OldValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOldValue + +`func (o *ModelChangeChangesInner) SetOldValue(v ModelChangeChangesInnerNewValue)` + +SetOldValue sets OldValue field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/ModelChangeChangesInnerNewValue.md b/v1/providers/launchpad/gen/launchpad/docs/ModelChangeChangesInnerNewValue.md new file mode 100644 index 0000000..0f2ec3f --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/ModelChangeChangesInnerNewValue.md @@ -0,0 +1,30 @@ +# ModelChangeChangesInnerNewValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewModelChangeChangesInnerNewValue + +`func NewModelChangeChangesInnerNewValue() *ModelChangeChangesInnerNewValue` + +NewModelChangeChangesInnerNewValue instantiates a new ModelChangeChangesInnerNewValue 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 + +### NewModelChangeChangesInnerNewValueWithDefaults + +`func NewModelChangeChangesInnerNewValueWithDefaults() *ModelChangeChangesInnerNewValue` + +NewModelChangeChangesInnerNewValueWithDefaults instantiates a new ModelChangeChangesInnerNewValue 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 + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/NetworkTypeEnum.md b/v1/providers/launchpad/gen/launchpad/docs/NetworkTypeEnum.md new file mode 100644 index 0000000..bfe1fae --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/NetworkTypeEnum.md @@ -0,0 +1,13 @@ +# NetworkTypeEnum + +## Enum + + +* `NetworkTypeEthernet` (value: `"ethernet"`) + +* `NetworkTypeInfiniband` (value: `"infiniband"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/Node.md b/v1/providers/launchpad/gen/launchpad/docs/Node.md new file mode 100644 index 0000000..1211fed --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/Node.md @@ -0,0 +1,1013 @@ +# Node + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BmcIp** | Pointer to **NullableString** | IP address of the BMC | [optional] +**BmcMac** | Pointer to **NullableString** | MAC address of the BMC | [optional] +**BmcPassword** | Pointer to **NullableString** | Password for the BMC | [optional] +**BmcUser** | Pointer to **NullableString** | Username for the BMC | [optional] +**Cluster** | Pointer to **NullableString** | UUID of the node's parent cluster | [optional] +**Cpu** | Pointer to **int32** | Number of CPU cores installed | [optional] +**CpuManufacturer** | Pointer to [**NullableCpuManufacturerEnum**](CpuManufacturerEnum.md) | | [optional] +**CpuModel** | Pointer to **NullableString** | Model information for the node's CPU | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**GarageId** | Pointer to **NullableString** | ID for the garage where a node is parked when unprovisioned | [optional] +**Gpu** | [**ClusterGpusInner**](ClusterGpusInner.md) | | +**GpuAlias** | **string** | Alias for GPU plan (i.e. installed GPU type and count) | [readonly] +**GpuCount** | Pointer to **int32** | Number of GPUs installed | [optional] +**GpuModel** | **string** | Model of GPU(s) installed | [readonly] +**GpuVbios** | Pointer to **NullableString** | VBIOS version used by installed GPU(s) | [optional] +**Id** | **string** | | [readonly] +**Location** | [**NodeLocation**](NodeLocation.md) | | +**Memory** | Pointer to **int32** | Amount of RAM installed (in GB) | [optional] +**MgmtIp** | Pointer to **string** | Management IP address | [optional] +**MgmtMac** | Pointer to **NullableString** | Management MAC address | [optional] +**Model** | Pointer to **NullableString** | Hardware model of the node | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**NetworkType** | Pointer to [**NetworkTypeEnum**](NetworkTypeEnum.md) | Type of networking technology used * `ethernet` - Ethernet * `infiniband` - InfiniBand | [optional] +**NicPrefixes** | Pointer to **[]string** | Prefixes for the node's network interface(s) | [optional] +**Notes** | Pointer to **NullableString** | Administrative comments about the node | [optional] +**Oem** | Pointer to **NullableString** | UUID of the node's OEM | [optional] +**ProviderNodeId** | Pointer to **NullableString** | Unique ID for this node assigned by its provider | [optional] +**Rack** | Pointer to **NullableString** | Physical rack identifier | [optional] +**RackUnit** | Pointer to **NullableInt32** | The rack unit (RU) within the rack where the node is installed | [optional] +**SerialNumber** | Pointer to **NullableString** | Serial number of the node | [optional] +**Storage** | [**[]NodeStorage**](NodeStorage.md) | | +**SystemArch** | [**SystemArchEnum**](SystemArchEnum.md) | CPU architecture * `amd64` - amd64 * `arm64` - arm64 | +**Tee** | Pointer to **bool** | Does the node support Trusted Execution Environment (TEE)? | [optional] + +## Methods + +### NewNode + +`func NewNode(created time.Time, gpu ClusterGpusInner, gpuAlias string, gpuModel string, id string, location NodeLocation, modified time.Time, storage []NodeStorage, systemArch SystemArchEnum, ) *Node` + +NewNode instantiates a new Node 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 + +### NewNodeWithDefaults + +`func NewNodeWithDefaults() *Node` + +NewNodeWithDefaults instantiates a new Node 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 + +### GetBmcIp + +`func (o *Node) GetBmcIp() string` + +GetBmcIp returns the BmcIp field if non-nil, zero value otherwise. + +### GetBmcIpOk + +`func (o *Node) GetBmcIpOk() (*string, bool)` + +GetBmcIpOk returns a tuple with the BmcIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBmcIp + +`func (o *Node) SetBmcIp(v string)` + +SetBmcIp sets BmcIp field to given value. + +### HasBmcIp + +`func (o *Node) HasBmcIp() bool` + +HasBmcIp returns a boolean if a field has been set. + +### SetBmcIpNil + +`func (o *Node) SetBmcIpNil(b bool)` + + SetBmcIpNil sets the value for BmcIp to be an explicit nil + +### UnsetBmcIp +`func (o *Node) UnsetBmcIp()` + +UnsetBmcIp ensures that no value is present for BmcIp, not even an explicit nil +### GetBmcMac + +`func (o *Node) GetBmcMac() string` + +GetBmcMac returns the BmcMac field if non-nil, zero value otherwise. + +### GetBmcMacOk + +`func (o *Node) GetBmcMacOk() (*string, bool)` + +GetBmcMacOk returns a tuple with the BmcMac field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBmcMac + +`func (o *Node) SetBmcMac(v string)` + +SetBmcMac sets BmcMac field to given value. + +### HasBmcMac + +`func (o *Node) HasBmcMac() bool` + +HasBmcMac returns a boolean if a field has been set. + +### SetBmcMacNil + +`func (o *Node) SetBmcMacNil(b bool)` + + SetBmcMacNil sets the value for BmcMac to be an explicit nil + +### UnsetBmcMac +`func (o *Node) UnsetBmcMac()` + +UnsetBmcMac ensures that no value is present for BmcMac, not even an explicit nil +### GetBmcPassword + +`func (o *Node) GetBmcPassword() string` + +GetBmcPassword returns the BmcPassword field if non-nil, zero value otherwise. + +### GetBmcPasswordOk + +`func (o *Node) GetBmcPasswordOk() (*string, bool)` + +GetBmcPasswordOk returns a tuple with the BmcPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBmcPassword + +`func (o *Node) SetBmcPassword(v string)` + +SetBmcPassword sets BmcPassword field to given value. + +### HasBmcPassword + +`func (o *Node) HasBmcPassword() bool` + +HasBmcPassword returns a boolean if a field has been set. + +### SetBmcPasswordNil + +`func (o *Node) SetBmcPasswordNil(b bool)` + + SetBmcPasswordNil sets the value for BmcPassword to be an explicit nil + +### UnsetBmcPassword +`func (o *Node) UnsetBmcPassword()` + +UnsetBmcPassword ensures that no value is present for BmcPassword, not even an explicit nil +### GetBmcUser + +`func (o *Node) GetBmcUser() string` + +GetBmcUser returns the BmcUser field if non-nil, zero value otherwise. + +### GetBmcUserOk + +`func (o *Node) GetBmcUserOk() (*string, bool)` + +GetBmcUserOk returns a tuple with the BmcUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBmcUser + +`func (o *Node) SetBmcUser(v string)` + +SetBmcUser sets BmcUser field to given value. + +### HasBmcUser + +`func (o *Node) HasBmcUser() bool` + +HasBmcUser returns a boolean if a field has been set. + +### SetBmcUserNil + +`func (o *Node) SetBmcUserNil(b bool)` + + SetBmcUserNil sets the value for BmcUser to be an explicit nil + +### UnsetBmcUser +`func (o *Node) UnsetBmcUser()` + +UnsetBmcUser ensures that no value is present for BmcUser, not even an explicit nil +### GetCluster + +`func (o *Node) GetCluster() string` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *Node) GetClusterOk() (*string, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *Node) SetCluster(v string)` + +SetCluster sets Cluster field to given value. + +### HasCluster + +`func (o *Node) HasCluster() bool` + +HasCluster returns a boolean if a field has been set. + +### SetClusterNil + +`func (o *Node) SetClusterNil(b bool)` + + SetClusterNil sets the value for Cluster to be an explicit nil + +### UnsetCluster +`func (o *Node) UnsetCluster()` + +UnsetCluster ensures that no value is present for Cluster, not even an explicit nil +### GetCpu + +`func (o *Node) GetCpu() int32` + +GetCpu returns the Cpu field if non-nil, zero value otherwise. + +### GetCpuOk + +`func (o *Node) GetCpuOk() (*int32, bool)` + +GetCpuOk returns a tuple with the Cpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpu + +`func (o *Node) SetCpu(v int32)` + +SetCpu sets Cpu field to given value. + +### HasCpu + +`func (o *Node) HasCpu() bool` + +HasCpu returns a boolean if a field has been set. + +### GetCpuManufacturer + +`func (o *Node) GetCpuManufacturer() CpuManufacturerEnum` + +GetCpuManufacturer returns the CpuManufacturer field if non-nil, zero value otherwise. + +### GetCpuManufacturerOk + +`func (o *Node) GetCpuManufacturerOk() (*CpuManufacturerEnum, bool)` + +GetCpuManufacturerOk returns a tuple with the CpuManufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuManufacturer + +`func (o *Node) SetCpuManufacturer(v CpuManufacturerEnum)` + +SetCpuManufacturer sets CpuManufacturer field to given value. + +### HasCpuManufacturer + +`func (o *Node) HasCpuManufacturer() bool` + +HasCpuManufacturer returns a boolean if a field has been set. + +### SetCpuManufacturerNil + +`func (o *Node) SetCpuManufacturerNil(b bool)` + + SetCpuManufacturerNil sets the value for CpuManufacturer to be an explicit nil + +### UnsetCpuManufacturer +`func (o *Node) UnsetCpuManufacturer()` + +UnsetCpuManufacturer ensures that no value is present for CpuManufacturer, not even an explicit nil +### GetCpuModel + +`func (o *Node) GetCpuModel() string` + +GetCpuModel returns the CpuModel field if non-nil, zero value otherwise. + +### GetCpuModelOk + +`func (o *Node) GetCpuModelOk() (*string, bool)` + +GetCpuModelOk returns a tuple with the CpuModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuModel + +`func (o *Node) SetCpuModel(v string)` + +SetCpuModel sets CpuModel field to given value. + +### HasCpuModel + +`func (o *Node) HasCpuModel() bool` + +HasCpuModel returns a boolean if a field has been set. + +### SetCpuModelNil + +`func (o *Node) SetCpuModelNil(b bool)` + + SetCpuModelNil sets the value for CpuModel to be an explicit nil + +### UnsetCpuModel +`func (o *Node) UnsetCpuModel()` + +UnsetCpuModel ensures that no value is present for CpuModel, not even an explicit nil +### GetCreated + +`func (o *Node) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Node) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Node) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetGarageId + +`func (o *Node) GetGarageId() string` + +GetGarageId returns the GarageId field if non-nil, zero value otherwise. + +### GetGarageIdOk + +`func (o *Node) GetGarageIdOk() (*string, bool)` + +GetGarageIdOk returns a tuple with the GarageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGarageId + +`func (o *Node) SetGarageId(v string)` + +SetGarageId sets GarageId field to given value. + +### HasGarageId + +`func (o *Node) HasGarageId() bool` + +HasGarageId returns a boolean if a field has been set. + +### SetGarageIdNil + +`func (o *Node) SetGarageIdNil(b bool)` + + SetGarageIdNil sets the value for GarageId to be an explicit nil + +### UnsetGarageId +`func (o *Node) UnsetGarageId()` + +UnsetGarageId ensures that no value is present for GarageId, not even an explicit nil +### GetGpu + +`func (o *Node) GetGpu() ClusterGpusInner` + +GetGpu returns the Gpu field if non-nil, zero value otherwise. + +### GetGpuOk + +`func (o *Node) GetGpuOk() (*ClusterGpusInner, bool)` + +GetGpuOk returns a tuple with the Gpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpu + +`func (o *Node) SetGpu(v ClusterGpusInner)` + +SetGpu sets Gpu field to given value. + + +### GetGpuAlias + +`func (o *Node) GetGpuAlias() string` + +GetGpuAlias returns the GpuAlias field if non-nil, zero value otherwise. + +### GetGpuAliasOk + +`func (o *Node) GetGpuAliasOk() (*string, bool)` + +GetGpuAliasOk returns a tuple with the GpuAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuAlias + +`func (o *Node) SetGpuAlias(v string)` + +SetGpuAlias sets GpuAlias field to given value. + + +### GetGpuCount + +`func (o *Node) GetGpuCount() int32` + +GetGpuCount returns the GpuCount field if non-nil, zero value otherwise. + +### GetGpuCountOk + +`func (o *Node) GetGpuCountOk() (*int32, bool)` + +GetGpuCountOk returns a tuple with the GpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuCount + +`func (o *Node) SetGpuCount(v int32)` + +SetGpuCount sets GpuCount field to given value. + +### HasGpuCount + +`func (o *Node) HasGpuCount() bool` + +HasGpuCount returns a boolean if a field has been set. + +### GetGpuModel + +`func (o *Node) GetGpuModel() string` + +GetGpuModel returns the GpuModel field if non-nil, zero value otherwise. + +### GetGpuModelOk + +`func (o *Node) GetGpuModelOk() (*string, bool)` + +GetGpuModelOk returns a tuple with the GpuModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuModel + +`func (o *Node) SetGpuModel(v string)` + +SetGpuModel sets GpuModel field to given value. + + +### GetGpuVbios + +`func (o *Node) GetGpuVbios() string` + +GetGpuVbios returns the GpuVbios field if non-nil, zero value otherwise. + +### GetGpuVbiosOk + +`func (o *Node) GetGpuVbiosOk() (*string, bool)` + +GetGpuVbiosOk returns a tuple with the GpuVbios field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuVbios + +`func (o *Node) SetGpuVbios(v string)` + +SetGpuVbios sets GpuVbios field to given value. + +### HasGpuVbios + +`func (o *Node) HasGpuVbios() bool` + +HasGpuVbios returns a boolean if a field has been set. + +### SetGpuVbiosNil + +`func (o *Node) SetGpuVbiosNil(b bool)` + + SetGpuVbiosNil sets the value for GpuVbios to be an explicit nil + +### UnsetGpuVbios +`func (o *Node) UnsetGpuVbios()` + +UnsetGpuVbios ensures that no value is present for GpuVbios, not even an explicit nil +### GetId + +`func (o *Node) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Node) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Node) SetId(v string)` + +SetId sets Id field to given value. + + +### GetLocation + +`func (o *Node) GetLocation() NodeLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *Node) GetLocationOk() (*NodeLocation, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *Node) SetLocation(v NodeLocation)` + +SetLocation sets Location field to given value. + + +### GetMemory + +`func (o *Node) GetMemory() int32` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *Node) 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 *Node) SetMemory(v int32)` + +SetMemory sets Memory field to given value. + +### HasMemory + +`func (o *Node) HasMemory() bool` + +HasMemory returns a boolean if a field has been set. + +### GetMgmtIp + +`func (o *Node) GetMgmtIp() string` + +GetMgmtIp returns the MgmtIp field if non-nil, zero value otherwise. + +### GetMgmtIpOk + +`func (o *Node) GetMgmtIpOk() (*string, bool)` + +GetMgmtIpOk returns a tuple with the MgmtIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMgmtIp + +`func (o *Node) SetMgmtIp(v string)` + +SetMgmtIp sets MgmtIp field to given value. + +### HasMgmtIp + +`func (o *Node) HasMgmtIp() bool` + +HasMgmtIp returns a boolean if a field has been set. + +### GetMgmtMac + +`func (o *Node) GetMgmtMac() string` + +GetMgmtMac returns the MgmtMac field if non-nil, zero value otherwise. + +### GetMgmtMacOk + +`func (o *Node) GetMgmtMacOk() (*string, bool)` + +GetMgmtMacOk returns a tuple with the MgmtMac field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMgmtMac + +`func (o *Node) SetMgmtMac(v string)` + +SetMgmtMac sets MgmtMac field to given value. + +### HasMgmtMac + +`func (o *Node) HasMgmtMac() bool` + +HasMgmtMac returns a boolean if a field has been set. + +### SetMgmtMacNil + +`func (o *Node) SetMgmtMacNil(b bool)` + + SetMgmtMacNil sets the value for MgmtMac to be an explicit nil + +### UnsetMgmtMac +`func (o *Node) UnsetMgmtMac()` + +UnsetMgmtMac ensures that no value is present for MgmtMac, not even an explicit nil +### GetModel + +`func (o *Node) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *Node) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *Node) SetModel(v string)` + +SetModel sets Model field to given value. + +### HasModel + +`func (o *Node) HasModel() bool` + +HasModel returns a boolean if a field has been set. + +### SetModelNil + +`func (o *Node) SetModelNil(b bool)` + + SetModelNil sets the value for Model to be an explicit nil + +### UnsetModel +`func (o *Node) UnsetModel()` + +UnsetModel ensures that no value is present for Model, not even an explicit nil +### GetModified + +`func (o *Node) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *Node) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *Node) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNetworkType + +`func (o *Node) GetNetworkType() NetworkTypeEnum` + +GetNetworkType returns the NetworkType field if non-nil, zero value otherwise. + +### GetNetworkTypeOk + +`func (o *Node) GetNetworkTypeOk() (*NetworkTypeEnum, bool)` + +GetNetworkTypeOk returns a tuple with the NetworkType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkType + +`func (o *Node) SetNetworkType(v NetworkTypeEnum)` + +SetNetworkType sets NetworkType field to given value. + +### HasNetworkType + +`func (o *Node) HasNetworkType() bool` + +HasNetworkType returns a boolean if a field has been set. + +### GetNicPrefixes + +`func (o *Node) GetNicPrefixes() []string` + +GetNicPrefixes returns the NicPrefixes field if non-nil, zero value otherwise. + +### GetNicPrefixesOk + +`func (o *Node) GetNicPrefixesOk() (*[]string, bool)` + +GetNicPrefixesOk returns a tuple with the NicPrefixes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNicPrefixes + +`func (o *Node) SetNicPrefixes(v []string)` + +SetNicPrefixes sets NicPrefixes field to given value. + +### HasNicPrefixes + +`func (o *Node) HasNicPrefixes() bool` + +HasNicPrefixes returns a boolean if a field has been set. + +### GetNotes + +`func (o *Node) GetNotes() string` + +GetNotes returns the Notes field if non-nil, zero value otherwise. + +### GetNotesOk + +`func (o *Node) GetNotesOk() (*string, bool)` + +GetNotesOk returns a tuple with the Notes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotes + +`func (o *Node) SetNotes(v string)` + +SetNotes sets Notes field to given value. + +### HasNotes + +`func (o *Node) HasNotes() bool` + +HasNotes returns a boolean if a field has been set. + +### SetNotesNil + +`func (o *Node) SetNotesNil(b bool)` + + SetNotesNil sets the value for Notes to be an explicit nil + +### UnsetNotes +`func (o *Node) UnsetNotes()` + +UnsetNotes ensures that no value is present for Notes, not even an explicit nil +### GetOem + +`func (o *Node) GetOem() string` + +GetOem returns the Oem field if non-nil, zero value otherwise. + +### GetOemOk + +`func (o *Node) GetOemOk() (*string, bool)` + +GetOemOk returns a tuple with the Oem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOem + +`func (o *Node) SetOem(v string)` + +SetOem sets Oem field to given value. + +### HasOem + +`func (o *Node) HasOem() bool` + +HasOem returns a boolean if a field has been set. + +### SetOemNil + +`func (o *Node) SetOemNil(b bool)` + + SetOemNil sets the value for Oem to be an explicit nil + +### UnsetOem +`func (o *Node) UnsetOem()` + +UnsetOem ensures that no value is present for Oem, not even an explicit nil +### GetProviderNodeId + +`func (o *Node) GetProviderNodeId() string` + +GetProviderNodeId returns the ProviderNodeId field if non-nil, zero value otherwise. + +### GetProviderNodeIdOk + +`func (o *Node) GetProviderNodeIdOk() (*string, bool)` + +GetProviderNodeIdOk returns a tuple with the ProviderNodeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderNodeId + +`func (o *Node) SetProviderNodeId(v string)` + +SetProviderNodeId sets ProviderNodeId field to given value. + +### HasProviderNodeId + +`func (o *Node) HasProviderNodeId() bool` + +HasProviderNodeId returns a boolean if a field has been set. + +### SetProviderNodeIdNil + +`func (o *Node) SetProviderNodeIdNil(b bool)` + + SetProviderNodeIdNil sets the value for ProviderNodeId to be an explicit nil + +### UnsetProviderNodeId +`func (o *Node) UnsetProviderNodeId()` + +UnsetProviderNodeId ensures that no value is present for ProviderNodeId, not even an explicit nil +### GetRack + +`func (o *Node) GetRack() string` + +GetRack returns the Rack field if non-nil, zero value otherwise. + +### GetRackOk + +`func (o *Node) GetRackOk() (*string, bool)` + +GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRack + +`func (o *Node) SetRack(v string)` + +SetRack sets Rack field to given value. + +### HasRack + +`func (o *Node) HasRack() bool` + +HasRack returns a boolean if a field has been set. + +### SetRackNil + +`func (o *Node) SetRackNil(b bool)` + + SetRackNil sets the value for Rack to be an explicit nil + +### UnsetRack +`func (o *Node) UnsetRack()` + +UnsetRack ensures that no value is present for Rack, not even an explicit nil +### GetRackUnit + +`func (o *Node) GetRackUnit() int32` + +GetRackUnit returns the RackUnit field if non-nil, zero value otherwise. + +### GetRackUnitOk + +`func (o *Node) GetRackUnitOk() (*int32, bool)` + +GetRackUnitOk returns a tuple with the RackUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackUnit + +`func (o *Node) SetRackUnit(v int32)` + +SetRackUnit sets RackUnit field to given value. + +### HasRackUnit + +`func (o *Node) HasRackUnit() bool` + +HasRackUnit returns a boolean if a field has been set. + +### SetRackUnitNil + +`func (o *Node) SetRackUnitNil(b bool)` + + SetRackUnitNil sets the value for RackUnit to be an explicit nil + +### UnsetRackUnit +`func (o *Node) UnsetRackUnit()` + +UnsetRackUnit ensures that no value is present for RackUnit, not even an explicit nil +### GetSerialNumber + +`func (o *Node) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *Node) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *Node) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *Node) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### SetSerialNumberNil + +`func (o *Node) SetSerialNumberNil(b bool)` + + SetSerialNumberNil sets the value for SerialNumber to be an explicit nil + +### UnsetSerialNumber +`func (o *Node) UnsetSerialNumber()` + +UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +### GetStorage + +`func (o *Node) GetStorage() []NodeStorage` + +GetStorage returns the Storage field if non-nil, zero value otherwise. + +### GetStorageOk + +`func (o *Node) GetStorageOk() (*[]NodeStorage, bool)` + +GetStorageOk returns a tuple with the Storage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorage + +`func (o *Node) SetStorage(v []NodeStorage)` + +SetStorage sets Storage field to given value. + + +### GetSystemArch + +`func (o *Node) GetSystemArch() SystemArchEnum` + +GetSystemArch returns the SystemArch field if non-nil, zero value otherwise. + +### GetSystemArchOk + +`func (o *Node) GetSystemArchOk() (*SystemArchEnum, bool)` + +GetSystemArchOk returns a tuple with the SystemArch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemArch + +`func (o *Node) SetSystemArch(v SystemArchEnum)` + +SetSystemArch sets SystemArch field to given value. + + +### GetTee + +`func (o *Node) GetTee() bool` + +GetTee returns the Tee field if non-nil, zero value otherwise. + +### GetTeeOk + +`func (o *Node) GetTeeOk() (*bool, bool)` + +GetTeeOk returns a tuple with the Tee field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTee + +`func (o *Node) SetTee(v bool)` + +SetTee sets Tee field to given value. + +### HasTee + +`func (o *Node) HasTee() bool` + +HasTee 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) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/NodeBulk.md b/v1/providers/launchpad/gen/launchpad/docs/NodeBulk.md new file mode 100644 index 0000000..80e62e4 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/NodeBulk.md @@ -0,0 +1,72 @@ +# NodeBulk + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CsvFile** | **string** | | +**Nodes** | [**[]Node**](Node.md) | | + +## Methods + +### NewNodeBulk + +`func NewNodeBulk(csvFile string, nodes []Node, ) *NodeBulk` + +NewNodeBulk instantiates a new NodeBulk 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 + +### NewNodeBulkWithDefaults + +`func NewNodeBulkWithDefaults() *NodeBulk` + +NewNodeBulkWithDefaults instantiates a new NodeBulk 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 + +### GetCsvFile + +`func (o *NodeBulk) GetCsvFile() string` + +GetCsvFile returns the CsvFile field if non-nil, zero value otherwise. + +### GetCsvFileOk + +`func (o *NodeBulk) GetCsvFileOk() (*string, bool)` + +GetCsvFileOk returns a tuple with the CsvFile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCsvFile + +`func (o *NodeBulk) SetCsvFile(v string)` + +SetCsvFile sets CsvFile field to given value. + + +### GetNodes + +`func (o *NodeBulk) GetNodes() []Node` + +GetNodes returns the Nodes field if non-nil, zero value otherwise. + +### GetNodesOk + +`func (o *NodeBulk) GetNodesOk() (*[]Node, 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 *NodeBulk) SetNodes(v []Node)` + +SetNodes sets Nodes field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/NodeBulkUpdate.md b/v1/providers/launchpad/gen/launchpad/docs/NodeBulkUpdate.md new file mode 100644 index 0000000..c6989b9 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/NodeBulkUpdate.md @@ -0,0 +1,1071 @@ +# NodeBulkUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BmcIp** | Pointer to **NullableString** | IP address of the BMC | [optional] +**BmcMac** | Pointer to **NullableString** | MAC address of the BMC | [optional] +**BmcPassword** | Pointer to **NullableString** | Password for the BMC | [optional] +**BmcUser** | Pointer to **NullableString** | Username for the BMC | [optional] +**Cluster** | Pointer to **NullableString** | UUID of the node's parent cluster | [optional] +**Cpu** | Pointer to **int32** | Number of CPU cores installed | [optional] +**CpuManufacturer** | Pointer to [**NullableCpuManufacturerEnum**](CpuManufacturerEnum.md) | | [optional] +**CpuModel** | Pointer to **NullableString** | Model information for the node's CPU | [optional] +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**GarageId** | Pointer to **NullableString** | ID for the garage where a node is parked when unprovisioned | [optional] +**Gpu** | [**ClusterGpusInner**](ClusterGpusInner.md) | | +**GpuAlias** | **string** | Alias for GPU plan (i.e. installed GPU type and count) | [readonly] +**GpuCount** | Pointer to **int32** | Number of GPUs installed | [optional] +**GpuModel** | **string** | Model of GPU(s) installed | [readonly] +**GpuVbios** | Pointer to **NullableString** | VBIOS version used by installed GPU(s) | [optional] +**Id** | **string** | | [readonly] +**Location** | [**NodeLocation**](NodeLocation.md) | | +**Memory** | Pointer to **int32** | Amount of RAM installed (in GB) | [optional] +**MgmtIp** | Pointer to **string** | Management IP address | [optional] +**MgmtMac** | Pointer to **NullableString** | Management MAC address | [optional] +**Model** | Pointer to **NullableString** | Hardware model of the node | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**NetworkType** | Pointer to [**NetworkTypeEnum**](NetworkTypeEnum.md) | Type of networking technology used * `ethernet` - Ethernet * `infiniband` - InfiniBand | [optional] +**NicPrefixes** | Pointer to **[]string** | Prefixes for the node's network interface(s) | [optional] +**Notes** | Pointer to **NullableString** | Administrative comments about the node | [optional] +**Oem** | Pointer to **NullableString** | UUID of the node's OEM | [optional] +**ProviderNodeId** | Pointer to **NullableString** | Unique ID for this node assigned by its provider | [optional] +**Rack** | Pointer to **NullableString** | Physical rack identifier | [optional] +**RackUnit** | Pointer to **NullableInt32** | The rack unit (RU) within the rack where the node is installed | [optional] +**SerialNumber** | **NullableString** | Serial number of the node | [readonly] +**Storage** | [**[]NodeStorage**](NodeStorage.md) | | +**SystemArch** | [**SystemArchEnum**](SystemArchEnum.md) | CPU architecture * `amd64` - amd64 * `arm64` - arm64 | +**Tee** | Pointer to **bool** | Does the node support Trusted Execution Environment (TEE)? | [optional] +**Count** | **int32** | | [readonly] +**Ids** | **[]string** | | +**Result** | **string** | | [readonly] + +## Methods + +### NewNodeBulkUpdate + +`func NewNodeBulkUpdate(created time.Time, gpu ClusterGpusInner, gpuAlias string, gpuModel string, id string, location NodeLocation, modified time.Time, serialNumber NullableString, storage []NodeStorage, systemArch SystemArchEnum, count int32, ids []string, result string, ) *NodeBulkUpdate` + +NewNodeBulkUpdate instantiates a new NodeBulkUpdate 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 + +### NewNodeBulkUpdateWithDefaults + +`func NewNodeBulkUpdateWithDefaults() *NodeBulkUpdate` + +NewNodeBulkUpdateWithDefaults instantiates a new NodeBulkUpdate 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 + +### GetBmcIp + +`func (o *NodeBulkUpdate) GetBmcIp() string` + +GetBmcIp returns the BmcIp field if non-nil, zero value otherwise. + +### GetBmcIpOk + +`func (o *NodeBulkUpdate) GetBmcIpOk() (*string, bool)` + +GetBmcIpOk returns a tuple with the BmcIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBmcIp + +`func (o *NodeBulkUpdate) SetBmcIp(v string)` + +SetBmcIp sets BmcIp field to given value. + +### HasBmcIp + +`func (o *NodeBulkUpdate) HasBmcIp() bool` + +HasBmcIp returns a boolean if a field has been set. + +### SetBmcIpNil + +`func (o *NodeBulkUpdate) SetBmcIpNil(b bool)` + + SetBmcIpNil sets the value for BmcIp to be an explicit nil + +### UnsetBmcIp +`func (o *NodeBulkUpdate) UnsetBmcIp()` + +UnsetBmcIp ensures that no value is present for BmcIp, not even an explicit nil +### GetBmcMac + +`func (o *NodeBulkUpdate) GetBmcMac() string` + +GetBmcMac returns the BmcMac field if non-nil, zero value otherwise. + +### GetBmcMacOk + +`func (o *NodeBulkUpdate) GetBmcMacOk() (*string, bool)` + +GetBmcMacOk returns a tuple with the BmcMac field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBmcMac + +`func (o *NodeBulkUpdate) SetBmcMac(v string)` + +SetBmcMac sets BmcMac field to given value. + +### HasBmcMac + +`func (o *NodeBulkUpdate) HasBmcMac() bool` + +HasBmcMac returns a boolean if a field has been set. + +### SetBmcMacNil + +`func (o *NodeBulkUpdate) SetBmcMacNil(b bool)` + + SetBmcMacNil sets the value for BmcMac to be an explicit nil + +### UnsetBmcMac +`func (o *NodeBulkUpdate) UnsetBmcMac()` + +UnsetBmcMac ensures that no value is present for BmcMac, not even an explicit nil +### GetBmcPassword + +`func (o *NodeBulkUpdate) GetBmcPassword() string` + +GetBmcPassword returns the BmcPassword field if non-nil, zero value otherwise. + +### GetBmcPasswordOk + +`func (o *NodeBulkUpdate) GetBmcPasswordOk() (*string, bool)` + +GetBmcPasswordOk returns a tuple with the BmcPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBmcPassword + +`func (o *NodeBulkUpdate) SetBmcPassword(v string)` + +SetBmcPassword sets BmcPassword field to given value. + +### HasBmcPassword + +`func (o *NodeBulkUpdate) HasBmcPassword() bool` + +HasBmcPassword returns a boolean if a field has been set. + +### SetBmcPasswordNil + +`func (o *NodeBulkUpdate) SetBmcPasswordNil(b bool)` + + SetBmcPasswordNil sets the value for BmcPassword to be an explicit nil + +### UnsetBmcPassword +`func (o *NodeBulkUpdate) UnsetBmcPassword()` + +UnsetBmcPassword ensures that no value is present for BmcPassword, not even an explicit nil +### GetBmcUser + +`func (o *NodeBulkUpdate) GetBmcUser() string` + +GetBmcUser returns the BmcUser field if non-nil, zero value otherwise. + +### GetBmcUserOk + +`func (o *NodeBulkUpdate) GetBmcUserOk() (*string, bool)` + +GetBmcUserOk returns a tuple with the BmcUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBmcUser + +`func (o *NodeBulkUpdate) SetBmcUser(v string)` + +SetBmcUser sets BmcUser field to given value. + +### HasBmcUser + +`func (o *NodeBulkUpdate) HasBmcUser() bool` + +HasBmcUser returns a boolean if a field has been set. + +### SetBmcUserNil + +`func (o *NodeBulkUpdate) SetBmcUserNil(b bool)` + + SetBmcUserNil sets the value for BmcUser to be an explicit nil + +### UnsetBmcUser +`func (o *NodeBulkUpdate) UnsetBmcUser()` + +UnsetBmcUser ensures that no value is present for BmcUser, not even an explicit nil +### GetCluster + +`func (o *NodeBulkUpdate) GetCluster() string` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *NodeBulkUpdate) GetClusterOk() (*string, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *NodeBulkUpdate) SetCluster(v string)` + +SetCluster sets Cluster field to given value. + +### HasCluster + +`func (o *NodeBulkUpdate) HasCluster() bool` + +HasCluster returns a boolean if a field has been set. + +### SetClusterNil + +`func (o *NodeBulkUpdate) SetClusterNil(b bool)` + + SetClusterNil sets the value for Cluster to be an explicit nil + +### UnsetCluster +`func (o *NodeBulkUpdate) UnsetCluster()` + +UnsetCluster ensures that no value is present for Cluster, not even an explicit nil +### GetCpu + +`func (o *NodeBulkUpdate) GetCpu() int32` + +GetCpu returns the Cpu field if non-nil, zero value otherwise. + +### GetCpuOk + +`func (o *NodeBulkUpdate) GetCpuOk() (*int32, bool)` + +GetCpuOk returns a tuple with the Cpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpu + +`func (o *NodeBulkUpdate) SetCpu(v int32)` + +SetCpu sets Cpu field to given value. + +### HasCpu + +`func (o *NodeBulkUpdate) HasCpu() bool` + +HasCpu returns a boolean if a field has been set. + +### GetCpuManufacturer + +`func (o *NodeBulkUpdate) GetCpuManufacturer() CpuManufacturerEnum` + +GetCpuManufacturer returns the CpuManufacturer field if non-nil, zero value otherwise. + +### GetCpuManufacturerOk + +`func (o *NodeBulkUpdate) GetCpuManufacturerOk() (*CpuManufacturerEnum, bool)` + +GetCpuManufacturerOk returns a tuple with the CpuManufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuManufacturer + +`func (o *NodeBulkUpdate) SetCpuManufacturer(v CpuManufacturerEnum)` + +SetCpuManufacturer sets CpuManufacturer field to given value. + +### HasCpuManufacturer + +`func (o *NodeBulkUpdate) HasCpuManufacturer() bool` + +HasCpuManufacturer returns a boolean if a field has been set. + +### SetCpuManufacturerNil + +`func (o *NodeBulkUpdate) SetCpuManufacturerNil(b bool)` + + SetCpuManufacturerNil sets the value for CpuManufacturer to be an explicit nil + +### UnsetCpuManufacturer +`func (o *NodeBulkUpdate) UnsetCpuManufacturer()` + +UnsetCpuManufacturer ensures that no value is present for CpuManufacturer, not even an explicit nil +### GetCpuModel + +`func (o *NodeBulkUpdate) GetCpuModel() string` + +GetCpuModel returns the CpuModel field if non-nil, zero value otherwise. + +### GetCpuModelOk + +`func (o *NodeBulkUpdate) GetCpuModelOk() (*string, bool)` + +GetCpuModelOk returns a tuple with the CpuModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuModel + +`func (o *NodeBulkUpdate) SetCpuModel(v string)` + +SetCpuModel sets CpuModel field to given value. + +### HasCpuModel + +`func (o *NodeBulkUpdate) HasCpuModel() bool` + +HasCpuModel returns a boolean if a field has been set. + +### SetCpuModelNil + +`func (o *NodeBulkUpdate) SetCpuModelNil(b bool)` + + SetCpuModelNil sets the value for CpuModel to be an explicit nil + +### UnsetCpuModel +`func (o *NodeBulkUpdate) UnsetCpuModel()` + +UnsetCpuModel ensures that no value is present for CpuModel, not even an explicit nil +### GetCreated + +`func (o *NodeBulkUpdate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *NodeBulkUpdate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *NodeBulkUpdate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetGarageId + +`func (o *NodeBulkUpdate) GetGarageId() string` + +GetGarageId returns the GarageId field if non-nil, zero value otherwise. + +### GetGarageIdOk + +`func (o *NodeBulkUpdate) GetGarageIdOk() (*string, bool)` + +GetGarageIdOk returns a tuple with the GarageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGarageId + +`func (o *NodeBulkUpdate) SetGarageId(v string)` + +SetGarageId sets GarageId field to given value. + +### HasGarageId + +`func (o *NodeBulkUpdate) HasGarageId() bool` + +HasGarageId returns a boolean if a field has been set. + +### SetGarageIdNil + +`func (o *NodeBulkUpdate) SetGarageIdNil(b bool)` + + SetGarageIdNil sets the value for GarageId to be an explicit nil + +### UnsetGarageId +`func (o *NodeBulkUpdate) UnsetGarageId()` + +UnsetGarageId ensures that no value is present for GarageId, not even an explicit nil +### GetGpu + +`func (o *NodeBulkUpdate) GetGpu() ClusterGpusInner` + +GetGpu returns the Gpu field if non-nil, zero value otherwise. + +### GetGpuOk + +`func (o *NodeBulkUpdate) GetGpuOk() (*ClusterGpusInner, bool)` + +GetGpuOk returns a tuple with the Gpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpu + +`func (o *NodeBulkUpdate) SetGpu(v ClusterGpusInner)` + +SetGpu sets Gpu field to given value. + + +### GetGpuAlias + +`func (o *NodeBulkUpdate) GetGpuAlias() string` + +GetGpuAlias returns the GpuAlias field if non-nil, zero value otherwise. + +### GetGpuAliasOk + +`func (o *NodeBulkUpdate) GetGpuAliasOk() (*string, bool)` + +GetGpuAliasOk returns a tuple with the GpuAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuAlias + +`func (o *NodeBulkUpdate) SetGpuAlias(v string)` + +SetGpuAlias sets GpuAlias field to given value. + + +### GetGpuCount + +`func (o *NodeBulkUpdate) GetGpuCount() int32` + +GetGpuCount returns the GpuCount field if non-nil, zero value otherwise. + +### GetGpuCountOk + +`func (o *NodeBulkUpdate) GetGpuCountOk() (*int32, bool)` + +GetGpuCountOk returns a tuple with the GpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuCount + +`func (o *NodeBulkUpdate) SetGpuCount(v int32)` + +SetGpuCount sets GpuCount field to given value. + +### HasGpuCount + +`func (o *NodeBulkUpdate) HasGpuCount() bool` + +HasGpuCount returns a boolean if a field has been set. + +### GetGpuModel + +`func (o *NodeBulkUpdate) GetGpuModel() string` + +GetGpuModel returns the GpuModel field if non-nil, zero value otherwise. + +### GetGpuModelOk + +`func (o *NodeBulkUpdate) GetGpuModelOk() (*string, bool)` + +GetGpuModelOk returns a tuple with the GpuModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuModel + +`func (o *NodeBulkUpdate) SetGpuModel(v string)` + +SetGpuModel sets GpuModel field to given value. + + +### GetGpuVbios + +`func (o *NodeBulkUpdate) GetGpuVbios() string` + +GetGpuVbios returns the GpuVbios field if non-nil, zero value otherwise. + +### GetGpuVbiosOk + +`func (o *NodeBulkUpdate) GetGpuVbiosOk() (*string, bool)` + +GetGpuVbiosOk returns a tuple with the GpuVbios field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpuVbios + +`func (o *NodeBulkUpdate) SetGpuVbios(v string)` + +SetGpuVbios sets GpuVbios field to given value. + +### HasGpuVbios + +`func (o *NodeBulkUpdate) HasGpuVbios() bool` + +HasGpuVbios returns a boolean if a field has been set. + +### SetGpuVbiosNil + +`func (o *NodeBulkUpdate) SetGpuVbiosNil(b bool)` + + SetGpuVbiosNil sets the value for GpuVbios to be an explicit nil + +### UnsetGpuVbios +`func (o *NodeBulkUpdate) UnsetGpuVbios()` + +UnsetGpuVbios ensures that no value is present for GpuVbios, not even an explicit nil +### GetId + +`func (o *NodeBulkUpdate) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NodeBulkUpdate) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *NodeBulkUpdate) SetId(v string)` + +SetId sets Id field to given value. + + +### GetLocation + +`func (o *NodeBulkUpdate) GetLocation() NodeLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *NodeBulkUpdate) GetLocationOk() (*NodeLocation, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *NodeBulkUpdate) SetLocation(v NodeLocation)` + +SetLocation sets Location field to given value. + + +### GetMemory + +`func (o *NodeBulkUpdate) GetMemory() int32` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *NodeBulkUpdate) 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 *NodeBulkUpdate) SetMemory(v int32)` + +SetMemory sets Memory field to given value. + +### HasMemory + +`func (o *NodeBulkUpdate) HasMemory() bool` + +HasMemory returns a boolean if a field has been set. + +### GetMgmtIp + +`func (o *NodeBulkUpdate) GetMgmtIp() string` + +GetMgmtIp returns the MgmtIp field if non-nil, zero value otherwise. + +### GetMgmtIpOk + +`func (o *NodeBulkUpdate) GetMgmtIpOk() (*string, bool)` + +GetMgmtIpOk returns a tuple with the MgmtIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMgmtIp + +`func (o *NodeBulkUpdate) SetMgmtIp(v string)` + +SetMgmtIp sets MgmtIp field to given value. + +### HasMgmtIp + +`func (o *NodeBulkUpdate) HasMgmtIp() bool` + +HasMgmtIp returns a boolean if a field has been set. + +### GetMgmtMac + +`func (o *NodeBulkUpdate) GetMgmtMac() string` + +GetMgmtMac returns the MgmtMac field if non-nil, zero value otherwise. + +### GetMgmtMacOk + +`func (o *NodeBulkUpdate) GetMgmtMacOk() (*string, bool)` + +GetMgmtMacOk returns a tuple with the MgmtMac field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMgmtMac + +`func (o *NodeBulkUpdate) SetMgmtMac(v string)` + +SetMgmtMac sets MgmtMac field to given value. + +### HasMgmtMac + +`func (o *NodeBulkUpdate) HasMgmtMac() bool` + +HasMgmtMac returns a boolean if a field has been set. + +### SetMgmtMacNil + +`func (o *NodeBulkUpdate) SetMgmtMacNil(b bool)` + + SetMgmtMacNil sets the value for MgmtMac to be an explicit nil + +### UnsetMgmtMac +`func (o *NodeBulkUpdate) UnsetMgmtMac()` + +UnsetMgmtMac ensures that no value is present for MgmtMac, not even an explicit nil +### GetModel + +`func (o *NodeBulkUpdate) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *NodeBulkUpdate) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *NodeBulkUpdate) SetModel(v string)` + +SetModel sets Model field to given value. + +### HasModel + +`func (o *NodeBulkUpdate) HasModel() bool` + +HasModel returns a boolean if a field has been set. + +### SetModelNil + +`func (o *NodeBulkUpdate) SetModelNil(b bool)` + + SetModelNil sets the value for Model to be an explicit nil + +### UnsetModel +`func (o *NodeBulkUpdate) UnsetModel()` + +UnsetModel ensures that no value is present for Model, not even an explicit nil +### GetModified + +`func (o *NodeBulkUpdate) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *NodeBulkUpdate) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *NodeBulkUpdate) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetNetworkType + +`func (o *NodeBulkUpdate) GetNetworkType() NetworkTypeEnum` + +GetNetworkType returns the NetworkType field if non-nil, zero value otherwise. + +### GetNetworkTypeOk + +`func (o *NodeBulkUpdate) GetNetworkTypeOk() (*NetworkTypeEnum, bool)` + +GetNetworkTypeOk returns a tuple with the NetworkType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkType + +`func (o *NodeBulkUpdate) SetNetworkType(v NetworkTypeEnum)` + +SetNetworkType sets NetworkType field to given value. + +### HasNetworkType + +`func (o *NodeBulkUpdate) HasNetworkType() bool` + +HasNetworkType returns a boolean if a field has been set. + +### GetNicPrefixes + +`func (o *NodeBulkUpdate) GetNicPrefixes() []string` + +GetNicPrefixes returns the NicPrefixes field if non-nil, zero value otherwise. + +### GetNicPrefixesOk + +`func (o *NodeBulkUpdate) GetNicPrefixesOk() (*[]string, bool)` + +GetNicPrefixesOk returns a tuple with the NicPrefixes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNicPrefixes + +`func (o *NodeBulkUpdate) SetNicPrefixes(v []string)` + +SetNicPrefixes sets NicPrefixes field to given value. + +### HasNicPrefixes + +`func (o *NodeBulkUpdate) HasNicPrefixes() bool` + +HasNicPrefixes returns a boolean if a field has been set. + +### GetNotes + +`func (o *NodeBulkUpdate) GetNotes() string` + +GetNotes returns the Notes field if non-nil, zero value otherwise. + +### GetNotesOk + +`func (o *NodeBulkUpdate) GetNotesOk() (*string, bool)` + +GetNotesOk returns a tuple with the Notes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotes + +`func (o *NodeBulkUpdate) SetNotes(v string)` + +SetNotes sets Notes field to given value. + +### HasNotes + +`func (o *NodeBulkUpdate) HasNotes() bool` + +HasNotes returns a boolean if a field has been set. + +### SetNotesNil + +`func (o *NodeBulkUpdate) SetNotesNil(b bool)` + + SetNotesNil sets the value for Notes to be an explicit nil + +### UnsetNotes +`func (o *NodeBulkUpdate) UnsetNotes()` + +UnsetNotes ensures that no value is present for Notes, not even an explicit nil +### GetOem + +`func (o *NodeBulkUpdate) GetOem() string` + +GetOem returns the Oem field if non-nil, zero value otherwise. + +### GetOemOk + +`func (o *NodeBulkUpdate) GetOemOk() (*string, bool)` + +GetOemOk returns a tuple with the Oem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOem + +`func (o *NodeBulkUpdate) SetOem(v string)` + +SetOem sets Oem field to given value. + +### HasOem + +`func (o *NodeBulkUpdate) HasOem() bool` + +HasOem returns a boolean if a field has been set. + +### SetOemNil + +`func (o *NodeBulkUpdate) SetOemNil(b bool)` + + SetOemNil sets the value for Oem to be an explicit nil + +### UnsetOem +`func (o *NodeBulkUpdate) UnsetOem()` + +UnsetOem ensures that no value is present for Oem, not even an explicit nil +### GetProviderNodeId + +`func (o *NodeBulkUpdate) GetProviderNodeId() string` + +GetProviderNodeId returns the ProviderNodeId field if non-nil, zero value otherwise. + +### GetProviderNodeIdOk + +`func (o *NodeBulkUpdate) GetProviderNodeIdOk() (*string, bool)` + +GetProviderNodeIdOk returns a tuple with the ProviderNodeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderNodeId + +`func (o *NodeBulkUpdate) SetProviderNodeId(v string)` + +SetProviderNodeId sets ProviderNodeId field to given value. + +### HasProviderNodeId + +`func (o *NodeBulkUpdate) HasProviderNodeId() bool` + +HasProviderNodeId returns a boolean if a field has been set. + +### SetProviderNodeIdNil + +`func (o *NodeBulkUpdate) SetProviderNodeIdNil(b bool)` + + SetProviderNodeIdNil sets the value for ProviderNodeId to be an explicit nil + +### UnsetProviderNodeId +`func (o *NodeBulkUpdate) UnsetProviderNodeId()` + +UnsetProviderNodeId ensures that no value is present for ProviderNodeId, not even an explicit nil +### GetRack + +`func (o *NodeBulkUpdate) GetRack() string` + +GetRack returns the Rack field if non-nil, zero value otherwise. + +### GetRackOk + +`func (o *NodeBulkUpdate) GetRackOk() (*string, bool)` + +GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRack + +`func (o *NodeBulkUpdate) SetRack(v string)` + +SetRack sets Rack field to given value. + +### HasRack + +`func (o *NodeBulkUpdate) HasRack() bool` + +HasRack returns a boolean if a field has been set. + +### SetRackNil + +`func (o *NodeBulkUpdate) SetRackNil(b bool)` + + SetRackNil sets the value for Rack to be an explicit nil + +### UnsetRack +`func (o *NodeBulkUpdate) UnsetRack()` + +UnsetRack ensures that no value is present for Rack, not even an explicit nil +### GetRackUnit + +`func (o *NodeBulkUpdate) GetRackUnit() int32` + +GetRackUnit returns the RackUnit field if non-nil, zero value otherwise. + +### GetRackUnitOk + +`func (o *NodeBulkUpdate) GetRackUnitOk() (*int32, bool)` + +GetRackUnitOk returns a tuple with the RackUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackUnit + +`func (o *NodeBulkUpdate) SetRackUnit(v int32)` + +SetRackUnit sets RackUnit field to given value. + +### HasRackUnit + +`func (o *NodeBulkUpdate) HasRackUnit() bool` + +HasRackUnit returns a boolean if a field has been set. + +### SetRackUnitNil + +`func (o *NodeBulkUpdate) SetRackUnitNil(b bool)` + + SetRackUnitNil sets the value for RackUnit to be an explicit nil + +### UnsetRackUnit +`func (o *NodeBulkUpdate) UnsetRackUnit()` + +UnsetRackUnit ensures that no value is present for RackUnit, not even an explicit nil +### GetSerialNumber + +`func (o *NodeBulkUpdate) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *NodeBulkUpdate) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *NodeBulkUpdate) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + + +### SetSerialNumberNil + +`func (o *NodeBulkUpdate) SetSerialNumberNil(b bool)` + + SetSerialNumberNil sets the value for SerialNumber to be an explicit nil + +### UnsetSerialNumber +`func (o *NodeBulkUpdate) UnsetSerialNumber()` + +UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +### GetStorage + +`func (o *NodeBulkUpdate) GetStorage() []NodeStorage` + +GetStorage returns the Storage field if non-nil, zero value otherwise. + +### GetStorageOk + +`func (o *NodeBulkUpdate) GetStorageOk() (*[]NodeStorage, bool)` + +GetStorageOk returns a tuple with the Storage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorage + +`func (o *NodeBulkUpdate) SetStorage(v []NodeStorage)` + +SetStorage sets Storage field to given value. + + +### GetSystemArch + +`func (o *NodeBulkUpdate) GetSystemArch() SystemArchEnum` + +GetSystemArch returns the SystemArch field if non-nil, zero value otherwise. + +### GetSystemArchOk + +`func (o *NodeBulkUpdate) GetSystemArchOk() (*SystemArchEnum, bool)` + +GetSystemArchOk returns a tuple with the SystemArch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemArch + +`func (o *NodeBulkUpdate) SetSystemArch(v SystemArchEnum)` + +SetSystemArch sets SystemArch field to given value. + + +### GetTee + +`func (o *NodeBulkUpdate) GetTee() bool` + +GetTee returns the Tee field if non-nil, zero value otherwise. + +### GetTeeOk + +`func (o *NodeBulkUpdate) GetTeeOk() (*bool, bool)` + +GetTeeOk returns a tuple with the Tee field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTee + +`func (o *NodeBulkUpdate) SetTee(v bool)` + +SetTee sets Tee field to given value. + +### HasTee + +`func (o *NodeBulkUpdate) HasTee() bool` + +HasTee returns a boolean if a field has been set. + +### GetCount + +`func (o *NodeBulkUpdate) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *NodeBulkUpdate) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *NodeBulkUpdate) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetIds + +`func (o *NodeBulkUpdate) GetIds() []string` + +GetIds returns the Ids field if non-nil, zero value otherwise. + +### GetIdsOk + +`func (o *NodeBulkUpdate) GetIdsOk() (*[]string, bool)` + +GetIdsOk returns a tuple with the Ids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIds + +`func (o *NodeBulkUpdate) SetIds(v []string)` + +SetIds sets Ids field to given value. + + +### GetResult + +`func (o *NodeBulkUpdate) GetResult() string` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *NodeBulkUpdate) GetResultOk() (*string, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *NodeBulkUpdate) SetResult(v string)` + +SetResult sets Result field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/NodeLocation.md b/v1/providers/launchpad/gen/launchpad/docs/NodeLocation.md new file mode 100644 index 0000000..8c2b556 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/NodeLocation.md @@ -0,0 +1,161 @@ +# NodeLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Id** | **string** | | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**Name** | **string** | | +**Provider** | [**LocationProvider**](LocationProvider.md) | | +**Region** | Pointer to **string** | Name of the region the location is in | [optional] + +## Methods + +### NewNodeLocation + +`func NewNodeLocation(created time.Time, id string, modified time.Time, name string, provider LocationProvider, ) *NodeLocation` + +NewNodeLocation instantiates a new NodeLocation 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 + +### NewNodeLocationWithDefaults + +`func NewNodeLocationWithDefaults() *NodeLocation` + +NewNodeLocationWithDefaults instantiates a new NodeLocation 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 + +### GetCreated + +`func (o *NodeLocation) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *NodeLocation) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *NodeLocation) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetId + +`func (o *NodeLocation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NodeLocation) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *NodeLocation) SetId(v string)` + +SetId sets Id field to given value. + + +### GetModified + +`func (o *NodeLocation) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *NodeLocation) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *NodeLocation) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetName + +`func (o *NodeLocation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NodeLocation) 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 *NodeLocation) SetName(v string)` + +SetName sets Name field to given value. + + +### GetProvider + +`func (o *NodeLocation) GetProvider() LocationProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *NodeLocation) GetProviderOk() (*LocationProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *NodeLocation) SetProvider(v LocationProvider)` + +SetProvider sets Provider field to given value. + + +### GetRegion + +`func (o *NodeLocation) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *NodeLocation) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *NodeLocation) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *NodeLocation) HasRegion() bool` + +HasRegion 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) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/NodeStorage.md b/v1/providers/launchpad/gen/launchpad/docs/NodeStorage.md new file mode 100644 index 0000000..a8f66eb --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/NodeStorage.md @@ -0,0 +1,77 @@ +# NodeStorage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Size** | Pointer to **int32** | Disk size (in GB) | [optional] [default to 0] +**Type** | [**TypeEnum**](TypeEnum.md) | Disk type * `nvme` - NVMe * `ssd` - ssd | + +## Methods + +### NewNodeStorage + +`func NewNodeStorage(type_ TypeEnum, ) *NodeStorage` + +NewNodeStorage instantiates a new NodeStorage 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 + +### NewNodeStorageWithDefaults + +`func NewNodeStorageWithDefaults() *NodeStorage` + +NewNodeStorageWithDefaults instantiates a new NodeStorage 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 + +### GetSize + +`func (o *NodeStorage) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *NodeStorage) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *NodeStorage) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *NodeStorage) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetType + +`func (o *NodeStorage) GetType() TypeEnum` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *NodeStorage) GetTypeOk() (*TypeEnum, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *NodeStorage) SetType(v TypeEnum)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/OEM.md b/v1/providers/launchpad/gen/launchpad/docs/OEM.md new file mode 100644 index 0000000..f6b04f4 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/OEM.md @@ -0,0 +1,114 @@ +# OEM + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Id** | **string** | | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**Name** | **string** | | + +## Methods + +### NewOEM + +`func NewOEM(created time.Time, id string, modified time.Time, name string, ) *OEM` + +NewOEM instantiates a new OEM 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 + +### NewOEMWithDefaults + +`func NewOEMWithDefaults() *OEM` + +NewOEMWithDefaults instantiates a new OEM 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 + +### GetCreated + +`func (o *OEM) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *OEM) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *OEM) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetId + +`func (o *OEM) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *OEM) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *OEM) SetId(v string)` + +SetId sets Id field to given value. + + +### GetModified + +`func (o *OEM) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *OEM) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *OEM) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetName + +`func (o *OEM) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OEM) 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 *OEM) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedClusterList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedClusterList.md new file mode 100644 index 0000000..56ba523 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedClusterList.md @@ -0,0 +1,124 @@ +# PaginatedClusterList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]Cluster**](Cluster.md) | | + +## Methods + +### NewPaginatedClusterList + +`func NewPaginatedClusterList(count int32, results []Cluster, ) *PaginatedClusterList` + +NewPaginatedClusterList instantiates a new PaginatedClusterList 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 + +### NewPaginatedClusterListWithDefaults + +`func NewPaginatedClusterListWithDefaults() *PaginatedClusterList` + +NewPaginatedClusterListWithDefaults instantiates a new PaginatedClusterList 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 + +### GetCount + +`func (o *PaginatedClusterList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedClusterList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedClusterList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedClusterList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedClusterList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedClusterList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedClusterList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedClusterList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedClusterList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedClusterList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedClusterList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedClusterList) GetResults() []Cluster` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedClusterList) GetResultsOk() (*[]Cluster, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedClusterList) SetResults(v []Cluster)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentInstanceList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentInstanceList.md new file mode 100644 index 0000000..2d87a44 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentInstanceList.md @@ -0,0 +1,124 @@ +# PaginatedDeploymentInstanceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]DeploymentInstance**](DeploymentInstance.md) | | + +## Methods + +### NewPaginatedDeploymentInstanceList + +`func NewPaginatedDeploymentInstanceList(count int32, results []DeploymentInstance, ) *PaginatedDeploymentInstanceList` + +NewPaginatedDeploymentInstanceList instantiates a new PaginatedDeploymentInstanceList 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 + +### NewPaginatedDeploymentInstanceListWithDefaults + +`func NewPaginatedDeploymentInstanceListWithDefaults() *PaginatedDeploymentInstanceList` + +NewPaginatedDeploymentInstanceListWithDefaults instantiates a new PaginatedDeploymentInstanceList 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 + +### GetCount + +`func (o *PaginatedDeploymentInstanceList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedDeploymentInstanceList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedDeploymentInstanceList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedDeploymentInstanceList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedDeploymentInstanceList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedDeploymentInstanceList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedDeploymentInstanceList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedDeploymentInstanceList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedDeploymentInstanceList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedDeploymentInstanceList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedDeploymentInstanceList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedDeploymentInstanceList) GetResults() []DeploymentInstance` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedDeploymentInstanceList) GetResultsOk() (*[]DeploymentInstance, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedDeploymentInstanceList) SetResults(v []DeploymentInstance)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentKeyList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentKeyList.md new file mode 100644 index 0000000..b49cf1c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentKeyList.md @@ -0,0 +1,124 @@ +# PaginatedDeploymentKeyList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]DeploymentKey**](DeploymentKey.md) | | + +## Methods + +### NewPaginatedDeploymentKeyList + +`func NewPaginatedDeploymentKeyList(count int32, results []DeploymentKey, ) *PaginatedDeploymentKeyList` + +NewPaginatedDeploymentKeyList instantiates a new PaginatedDeploymentKeyList 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 + +### NewPaginatedDeploymentKeyListWithDefaults + +`func NewPaginatedDeploymentKeyListWithDefaults() *PaginatedDeploymentKeyList` + +NewPaginatedDeploymentKeyListWithDefaults instantiates a new PaginatedDeploymentKeyList 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 + +### GetCount + +`func (o *PaginatedDeploymentKeyList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedDeploymentKeyList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedDeploymentKeyList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedDeploymentKeyList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedDeploymentKeyList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedDeploymentKeyList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedDeploymentKeyList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedDeploymentKeyList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedDeploymentKeyList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedDeploymentKeyList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedDeploymentKeyList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedDeploymentKeyList) GetResults() []DeploymentKey` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedDeploymentKeyList) GetResultsOk() (*[]DeploymentKey, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedDeploymentKeyList) SetResults(v []DeploymentKey)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentList.md new file mode 100644 index 0000000..e982b4c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentList.md @@ -0,0 +1,124 @@ +# PaginatedDeploymentList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]Deployment**](Deployment.md) | | + +## Methods + +### NewPaginatedDeploymentList + +`func NewPaginatedDeploymentList(count int32, results []Deployment, ) *PaginatedDeploymentList` + +NewPaginatedDeploymentList instantiates a new PaginatedDeploymentList 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 + +### NewPaginatedDeploymentListWithDefaults + +`func NewPaginatedDeploymentListWithDefaults() *PaginatedDeploymentList` + +NewPaginatedDeploymentListWithDefaults instantiates a new PaginatedDeploymentList 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 + +### GetCount + +`func (o *PaginatedDeploymentList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedDeploymentList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedDeploymentList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedDeploymentList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedDeploymentList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedDeploymentList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedDeploymentList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedDeploymentList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedDeploymentList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedDeploymentList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedDeploymentList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedDeploymentList) GetResults() []Deployment` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedDeploymentList) GetResultsOk() (*[]Deployment, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedDeploymentList) SetResults(v []Deployment)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentNoteList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentNoteList.md new file mode 100644 index 0000000..0d24772 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentNoteList.md @@ -0,0 +1,124 @@ +# PaginatedDeploymentNoteList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]DeploymentNote**](DeploymentNote.md) | | + +## Methods + +### NewPaginatedDeploymentNoteList + +`func NewPaginatedDeploymentNoteList(count int32, results []DeploymentNote, ) *PaginatedDeploymentNoteList` + +NewPaginatedDeploymentNoteList instantiates a new PaginatedDeploymentNoteList 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 + +### NewPaginatedDeploymentNoteListWithDefaults + +`func NewPaginatedDeploymentNoteListWithDefaults() *PaginatedDeploymentNoteList` + +NewPaginatedDeploymentNoteListWithDefaults instantiates a new PaginatedDeploymentNoteList 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 + +### GetCount + +`func (o *PaginatedDeploymentNoteList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedDeploymentNoteList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedDeploymentNoteList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedDeploymentNoteList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedDeploymentNoteList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedDeploymentNoteList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedDeploymentNoteList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedDeploymentNoteList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedDeploymentNoteList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedDeploymentNoteList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedDeploymentNoteList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedDeploymentNoteList) GetResults() []DeploymentNote` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedDeploymentNoteList) GetResultsOk() (*[]DeploymentNote, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedDeploymentNoteList) SetResults(v []DeploymentNote)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentPipelineList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentPipelineList.md new file mode 100644 index 0000000..8e6c75b --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentPipelineList.md @@ -0,0 +1,124 @@ +# PaginatedDeploymentPipelineList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]DeploymentPipeline**](DeploymentPipeline.md) | | + +## Methods + +### NewPaginatedDeploymentPipelineList + +`func NewPaginatedDeploymentPipelineList(count int32, results []DeploymentPipeline, ) *PaginatedDeploymentPipelineList` + +NewPaginatedDeploymentPipelineList instantiates a new PaginatedDeploymentPipelineList 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 + +### NewPaginatedDeploymentPipelineListWithDefaults + +`func NewPaginatedDeploymentPipelineListWithDefaults() *PaginatedDeploymentPipelineList` + +NewPaginatedDeploymentPipelineListWithDefaults instantiates a new PaginatedDeploymentPipelineList 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 + +### GetCount + +`func (o *PaginatedDeploymentPipelineList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedDeploymentPipelineList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedDeploymentPipelineList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedDeploymentPipelineList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedDeploymentPipelineList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedDeploymentPipelineList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedDeploymentPipelineList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedDeploymentPipelineList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedDeploymentPipelineList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedDeploymentPipelineList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedDeploymentPipelineList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedDeploymentPipelineList) GetResults() []DeploymentPipeline` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedDeploymentPipelineList) GetResultsOk() (*[]DeploymentPipeline, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedDeploymentPipelineList) SetResults(v []DeploymentPipeline)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentServiceList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentServiceList.md new file mode 100644 index 0000000..82876b8 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentServiceList.md @@ -0,0 +1,124 @@ +# PaginatedDeploymentServiceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]DeploymentService**](DeploymentService.md) | | + +## Methods + +### NewPaginatedDeploymentServiceList + +`func NewPaginatedDeploymentServiceList(count int32, results []DeploymentService, ) *PaginatedDeploymentServiceList` + +NewPaginatedDeploymentServiceList instantiates a new PaginatedDeploymentServiceList 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 + +### NewPaginatedDeploymentServiceListWithDefaults + +`func NewPaginatedDeploymentServiceListWithDefaults() *PaginatedDeploymentServiceList` + +NewPaginatedDeploymentServiceListWithDefaults instantiates a new PaginatedDeploymentServiceList 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 + +### GetCount + +`func (o *PaginatedDeploymentServiceList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedDeploymentServiceList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedDeploymentServiceList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedDeploymentServiceList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedDeploymentServiceList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedDeploymentServiceList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedDeploymentServiceList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedDeploymentServiceList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedDeploymentServiceList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedDeploymentServiceList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedDeploymentServiceList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedDeploymentServiceList) GetResults() []DeploymentService` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedDeploymentServiceList) GetResultsOk() (*[]DeploymentService, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedDeploymentServiceList) SetResults(v []DeploymentService)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentTaskList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentTaskList.md new file mode 100644 index 0000000..1dd0bdc --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedDeploymentTaskList.md @@ -0,0 +1,124 @@ +# PaginatedDeploymentTaskList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]DeploymentTask**](DeploymentTask.md) | | + +## Methods + +### NewPaginatedDeploymentTaskList + +`func NewPaginatedDeploymentTaskList(count int32, results []DeploymentTask, ) *PaginatedDeploymentTaskList` + +NewPaginatedDeploymentTaskList instantiates a new PaginatedDeploymentTaskList 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 + +### NewPaginatedDeploymentTaskListWithDefaults + +`func NewPaginatedDeploymentTaskListWithDefaults() *PaginatedDeploymentTaskList` + +NewPaginatedDeploymentTaskListWithDefaults instantiates a new PaginatedDeploymentTaskList 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 + +### GetCount + +`func (o *PaginatedDeploymentTaskList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedDeploymentTaskList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedDeploymentTaskList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedDeploymentTaskList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedDeploymentTaskList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedDeploymentTaskList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedDeploymentTaskList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedDeploymentTaskList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedDeploymentTaskList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedDeploymentTaskList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedDeploymentTaskList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedDeploymentTaskList) GetResults() []DeploymentTask` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedDeploymentTaskList) GetResultsOk() (*[]DeploymentTask, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedDeploymentTaskList) SetResults(v []DeploymentTask)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedExperienceList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedExperienceList.md new file mode 100644 index 0000000..f84e824 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedExperienceList.md @@ -0,0 +1,124 @@ +# PaginatedExperienceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]Experience**](Experience.md) | | + +## Methods + +### NewPaginatedExperienceList + +`func NewPaginatedExperienceList(count int32, results []Experience, ) *PaginatedExperienceList` + +NewPaginatedExperienceList instantiates a new PaginatedExperienceList 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 + +### NewPaginatedExperienceListWithDefaults + +`func NewPaginatedExperienceListWithDefaults() *PaginatedExperienceList` + +NewPaginatedExperienceListWithDefaults instantiates a new PaginatedExperienceList 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 + +### GetCount + +`func (o *PaginatedExperienceList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedExperienceList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedExperienceList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedExperienceList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedExperienceList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedExperienceList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedExperienceList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedExperienceList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedExperienceList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedExperienceList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedExperienceList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedExperienceList) GetResults() []Experience` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedExperienceList) GetResultsOk() (*[]Experience, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedExperienceList) SetResults(v []Experience)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedExperienceNoteList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedExperienceNoteList.md new file mode 100644 index 0000000..bc9aa52 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedExperienceNoteList.md @@ -0,0 +1,124 @@ +# PaginatedExperienceNoteList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]ExperienceNote**](ExperienceNote.md) | | + +## Methods + +### NewPaginatedExperienceNoteList + +`func NewPaginatedExperienceNoteList(count int32, results []ExperienceNote, ) *PaginatedExperienceNoteList` + +NewPaginatedExperienceNoteList instantiates a new PaginatedExperienceNoteList 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 + +### NewPaginatedExperienceNoteListWithDefaults + +`func NewPaginatedExperienceNoteListWithDefaults() *PaginatedExperienceNoteList` + +NewPaginatedExperienceNoteListWithDefaults instantiates a new PaginatedExperienceNoteList 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 + +### GetCount + +`func (o *PaginatedExperienceNoteList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedExperienceNoteList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedExperienceNoteList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedExperienceNoteList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedExperienceNoteList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedExperienceNoteList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedExperienceNoteList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedExperienceNoteList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedExperienceNoteList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedExperienceNoteList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedExperienceNoteList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedExperienceNoteList) GetResults() []ExperienceNote` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedExperienceNoteList) GetResultsOk() (*[]ExperienceNote, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedExperienceNoteList) SetResults(v []ExperienceNote)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedGpuList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedGpuList.md new file mode 100644 index 0000000..98b4e80 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedGpuList.md @@ -0,0 +1,124 @@ +# PaginatedGpuList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]Gpu**](Gpu.md) | | + +## Methods + +### NewPaginatedGpuList + +`func NewPaginatedGpuList(count int32, results []Gpu, ) *PaginatedGpuList` + +NewPaginatedGpuList instantiates a new PaginatedGpuList 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 + +### NewPaginatedGpuListWithDefaults + +`func NewPaginatedGpuListWithDefaults() *PaginatedGpuList` + +NewPaginatedGpuListWithDefaults instantiates a new PaginatedGpuList 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 + +### GetCount + +`func (o *PaginatedGpuList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedGpuList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedGpuList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedGpuList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedGpuList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedGpuList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedGpuList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedGpuList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedGpuList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedGpuList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedGpuList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedGpuList) GetResults() []Gpu` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedGpuList) GetResultsOk() (*[]Gpu, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedGpuList) SetResults(v []Gpu)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedGpuOsChoiceList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedGpuOsChoiceList.md new file mode 100644 index 0000000..58c8bd4 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedGpuOsChoiceList.md @@ -0,0 +1,124 @@ +# PaginatedGpuOsChoiceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]GpuOsChoice**](GpuOsChoice.md) | | + +## Methods + +### NewPaginatedGpuOsChoiceList + +`func NewPaginatedGpuOsChoiceList(count int32, results []GpuOsChoice, ) *PaginatedGpuOsChoiceList` + +NewPaginatedGpuOsChoiceList instantiates a new PaginatedGpuOsChoiceList 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 + +### NewPaginatedGpuOsChoiceListWithDefaults + +`func NewPaginatedGpuOsChoiceListWithDefaults() *PaginatedGpuOsChoiceList` + +NewPaginatedGpuOsChoiceListWithDefaults instantiates a new PaginatedGpuOsChoiceList 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 + +### GetCount + +`func (o *PaginatedGpuOsChoiceList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedGpuOsChoiceList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedGpuOsChoiceList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedGpuOsChoiceList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedGpuOsChoiceList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedGpuOsChoiceList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedGpuOsChoiceList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedGpuOsChoiceList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedGpuOsChoiceList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedGpuOsChoiceList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedGpuOsChoiceList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedGpuOsChoiceList) GetResults() []GpuOsChoice` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedGpuOsChoiceList) GetResultsOk() (*[]GpuOsChoice, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedGpuOsChoiceList) SetResults(v []GpuOsChoice)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedInstanceList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedInstanceList.md new file mode 100644 index 0000000..b20a10d --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedInstanceList.md @@ -0,0 +1,124 @@ +# PaginatedInstanceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]Instance**](Instance.md) | | + +## Methods + +### NewPaginatedInstanceList + +`func NewPaginatedInstanceList(count int32, results []Instance, ) *PaginatedInstanceList` + +NewPaginatedInstanceList instantiates a new PaginatedInstanceList 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 + +### NewPaginatedInstanceListWithDefaults + +`func NewPaginatedInstanceListWithDefaults() *PaginatedInstanceList` + +NewPaginatedInstanceListWithDefaults instantiates a new PaginatedInstanceList 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 + +### GetCount + +`func (o *PaginatedInstanceList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedInstanceList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedInstanceList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedInstanceList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedInstanceList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedInstanceList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedInstanceList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedInstanceList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedInstanceList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedInstanceList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedInstanceList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedInstanceList) GetResults() []Instance` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedInstanceList) GetResultsOk() (*[]Instance, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedInstanceList) SetResults(v []Instance)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedInstanceTypeList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedInstanceTypeList.md new file mode 100644 index 0000000..b99d961 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedInstanceTypeList.md @@ -0,0 +1,124 @@ +# PaginatedInstanceTypeList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]InstanceType**](InstanceType.md) | | + +## Methods + +### NewPaginatedInstanceTypeList + +`func NewPaginatedInstanceTypeList(count int32, results []InstanceType, ) *PaginatedInstanceTypeList` + +NewPaginatedInstanceTypeList instantiates a new PaginatedInstanceTypeList 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 + +### NewPaginatedInstanceTypeListWithDefaults + +`func NewPaginatedInstanceTypeListWithDefaults() *PaginatedInstanceTypeList` + +NewPaginatedInstanceTypeListWithDefaults instantiates a new PaginatedInstanceTypeList 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 + +### GetCount + +`func (o *PaginatedInstanceTypeList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedInstanceTypeList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedInstanceTypeList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedInstanceTypeList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedInstanceTypeList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedInstanceTypeList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedInstanceTypeList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedInstanceTypeList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedInstanceTypeList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedInstanceTypeList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedInstanceTypeList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedInstanceTypeList) GetResults() []InstanceType` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedInstanceTypeList) GetResultsOk() (*[]InstanceType, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedInstanceTypeList) SetResults(v []InstanceType)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedLocationList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedLocationList.md new file mode 100644 index 0000000..dfd3b29 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedLocationList.md @@ -0,0 +1,124 @@ +# PaginatedLocationList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]Location**](Location.md) | | + +## Methods + +### NewPaginatedLocationList + +`func NewPaginatedLocationList(count int32, results []Location, ) *PaginatedLocationList` + +NewPaginatedLocationList instantiates a new PaginatedLocationList 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 + +### NewPaginatedLocationListWithDefaults + +`func NewPaginatedLocationListWithDefaults() *PaginatedLocationList` + +NewPaginatedLocationListWithDefaults instantiates a new PaginatedLocationList 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 + +### GetCount + +`func (o *PaginatedLocationList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedLocationList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedLocationList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedLocationList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedLocationList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedLocationList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedLocationList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedLocationList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedLocationList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedLocationList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedLocationList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedLocationList) GetResults() []Location` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedLocationList) GetResultsOk() (*[]Location, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedLocationList) SetResults(v []Location)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedModelChangeList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedModelChangeList.md new file mode 100644 index 0000000..02fa1b5 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedModelChangeList.md @@ -0,0 +1,124 @@ +# PaginatedModelChangeList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]ModelChange**](ModelChange.md) | | + +## Methods + +### NewPaginatedModelChangeList + +`func NewPaginatedModelChangeList(count int32, results []ModelChange, ) *PaginatedModelChangeList` + +NewPaginatedModelChangeList instantiates a new PaginatedModelChangeList 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 + +### NewPaginatedModelChangeListWithDefaults + +`func NewPaginatedModelChangeListWithDefaults() *PaginatedModelChangeList` + +NewPaginatedModelChangeListWithDefaults instantiates a new PaginatedModelChangeList 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 + +### GetCount + +`func (o *PaginatedModelChangeList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedModelChangeList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedModelChangeList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedModelChangeList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedModelChangeList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedModelChangeList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedModelChangeList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedModelChangeList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedModelChangeList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedModelChangeList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedModelChangeList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedModelChangeList) GetResults() []ModelChange` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedModelChangeList) GetResultsOk() (*[]ModelChange, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedModelChangeList) SetResults(v []ModelChange)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedNodeList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedNodeList.md new file mode 100644 index 0000000..bc60a23 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedNodeList.md @@ -0,0 +1,124 @@ +# PaginatedNodeList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]Node**](Node.md) | | + +## Methods + +### NewPaginatedNodeList + +`func NewPaginatedNodeList(count int32, results []Node, ) *PaginatedNodeList` + +NewPaginatedNodeList instantiates a new PaginatedNodeList 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 + +### NewPaginatedNodeListWithDefaults + +`func NewPaginatedNodeListWithDefaults() *PaginatedNodeList` + +NewPaginatedNodeListWithDefaults instantiates a new PaginatedNodeList 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 + +### GetCount + +`func (o *PaginatedNodeList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedNodeList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedNodeList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedNodeList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedNodeList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedNodeList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedNodeList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedNodeList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedNodeList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedNodeList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedNodeList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedNodeList) GetResults() []Node` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedNodeList) GetResultsOk() (*[]Node, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedNodeList) SetResults(v []Node)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedOEMList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedOEMList.md new file mode 100644 index 0000000..f15850b --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedOEMList.md @@ -0,0 +1,124 @@ +# PaginatedOEMList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]OEM**](OEM.md) | | + +## Methods + +### NewPaginatedOEMList + +`func NewPaginatedOEMList(count int32, results []OEM, ) *PaginatedOEMList` + +NewPaginatedOEMList instantiates a new PaginatedOEMList 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 + +### NewPaginatedOEMListWithDefaults + +`func NewPaginatedOEMListWithDefaults() *PaginatedOEMList` + +NewPaginatedOEMListWithDefaults instantiates a new PaginatedOEMList 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 + +### GetCount + +`func (o *PaginatedOEMList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedOEMList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedOEMList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedOEMList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedOEMList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedOEMList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedOEMList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedOEMList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedOEMList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedOEMList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedOEMList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedOEMList) GetResults() []OEM` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedOEMList) GetResultsOk() (*[]OEM, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedOEMList) SetResults(v []OEM)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedPersonaChoiceList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedPersonaChoiceList.md new file mode 100644 index 0000000..ec52685 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedPersonaChoiceList.md @@ -0,0 +1,124 @@ +# PaginatedPersonaChoiceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]PersonaChoice**](PersonaChoice.md) | | + +## Methods + +### NewPaginatedPersonaChoiceList + +`func NewPaginatedPersonaChoiceList(count int32, results []PersonaChoice, ) *PaginatedPersonaChoiceList` + +NewPaginatedPersonaChoiceList instantiates a new PaginatedPersonaChoiceList 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 + +### NewPaginatedPersonaChoiceListWithDefaults + +`func NewPaginatedPersonaChoiceListWithDefaults() *PaginatedPersonaChoiceList` + +NewPaginatedPersonaChoiceListWithDefaults instantiates a new PaginatedPersonaChoiceList 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 + +### GetCount + +`func (o *PaginatedPersonaChoiceList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedPersonaChoiceList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedPersonaChoiceList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedPersonaChoiceList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedPersonaChoiceList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedPersonaChoiceList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedPersonaChoiceList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedPersonaChoiceList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedPersonaChoiceList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedPersonaChoiceList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedPersonaChoiceList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedPersonaChoiceList) GetResults() []PersonaChoice` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedPersonaChoiceList) GetResultsOk() (*[]PersonaChoice, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedPersonaChoiceList) SetResults(v []PersonaChoice)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PaginatedProviderList.md b/v1/providers/launchpad/gen/launchpad/docs/PaginatedProviderList.md new file mode 100644 index 0000000..d3b9ddb --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PaginatedProviderList.md @@ -0,0 +1,124 @@ +# PaginatedProviderList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **string** | | [optional] +**Previous** | Pointer to **string** | | [optional] +**Results** | [**[]Provider**](Provider.md) | | + +## Methods + +### NewPaginatedProviderList + +`func NewPaginatedProviderList(count int32, results []Provider, ) *PaginatedProviderList` + +NewPaginatedProviderList instantiates a new PaginatedProviderList 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 + +### NewPaginatedProviderListWithDefaults + +`func NewPaginatedProviderListWithDefaults() *PaginatedProviderList` + +NewPaginatedProviderListWithDefaults instantiates a new PaginatedProviderList 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 + +### GetCount + +`func (o *PaginatedProviderList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedProviderList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedProviderList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedProviderList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedProviderList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedProviderList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedProviderList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedProviderList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedProviderList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedProviderList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedProviderList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedProviderList) GetResults() []Provider` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedProviderList) GetResultsOk() (*[]Provider, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedProviderList) SetResults(v []Provider)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PasswordChange.md b/v1/providers/launchpad/gen/launchpad/docs/PasswordChange.md new file mode 100644 index 0000000..25920f9 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PasswordChange.md @@ -0,0 +1,114 @@ +# PasswordChange + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | | +**Password** | **string** | | +**NewPassword** | **string** | | +**Result** | **string** | | [readonly] [default to "Password changed successfully."] + +## Methods + +### NewPasswordChange + +`func NewPasswordChange(username string, password string, newPassword string, result string, ) *PasswordChange` + +NewPasswordChange instantiates a new PasswordChange 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 + +### NewPasswordChangeWithDefaults + +`func NewPasswordChangeWithDefaults() *PasswordChange` + +NewPasswordChangeWithDefaults instantiates a new PasswordChange 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 + +### GetUsername + +`func (o *PasswordChange) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *PasswordChange) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *PasswordChange) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetPassword + +`func (o *PasswordChange) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *PasswordChange) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *PasswordChange) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetNewPassword + +`func (o *PasswordChange) GetNewPassword() string` + +GetNewPassword returns the NewPassword field if non-nil, zero value otherwise. + +### GetNewPasswordOk + +`func (o *PasswordChange) GetNewPasswordOk() (*string, bool)` + +GetNewPasswordOk returns a tuple with the NewPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewPassword + +`func (o *PasswordChange) SetNewPassword(v string)` + +SetNewPassword sets NewPassword field to given value. + + +### GetResult + +`func (o *PasswordChange) GetResult() string` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *PasswordChange) GetResultOk() (*string, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *PasswordChange) SetResult(v string)` + +SetResult sets Result field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PersonaChoice.md b/v1/providers/launchpad/gen/launchpad/docs/PersonaChoice.md new file mode 100644 index 0000000..d5145b1 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PersonaChoice.md @@ -0,0 +1,114 @@ +# PersonaChoice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Id** | **int32** | | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**Name** | **string** | | + +## Methods + +### NewPersonaChoice + +`func NewPersonaChoice(created time.Time, id int32, modified time.Time, name string, ) *PersonaChoice` + +NewPersonaChoice instantiates a new PersonaChoice 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 + +### NewPersonaChoiceWithDefaults + +`func NewPersonaChoiceWithDefaults() *PersonaChoice` + +NewPersonaChoiceWithDefaults instantiates a new PersonaChoice 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 + +### GetCreated + +`func (o *PersonaChoice) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PersonaChoice) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *PersonaChoice) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetId + +`func (o *PersonaChoice) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PersonaChoice) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PersonaChoice) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetModified + +`func (o *PersonaChoice) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *PersonaChoice) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *PersonaChoice) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetName + +`func (o *PersonaChoice) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PersonaChoice) 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 *PersonaChoice) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PlatformEnum.md b/v1/providers/launchpad/gen/launchpad/docs/PlatformEnum.md new file mode 100644 index 0000000..7f6bf20 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PlatformEnum.md @@ -0,0 +1,29 @@ +# PlatformEnum + +## Enum + + +* `PlatformAir` (value: `"air"`) + +* `PlatformFlightDeck` (value: `"flight_deck"`) + +* `PlatformKvmBastion` (value: `"kvm_bastion"`) + +* `PlatformLpVmwarePlatformLegacy` (value: `"lp-vmware-platform"`) + +* `PlatformMinimal` (value: `"minimal"`) + +* `PlatformOpenshift` (value: `"openshift"`) + +* `PlatformVsphere` (value: `"vsphere"`) + +* `PlatformVsphereHorizon` (value: `"vsphere_horizon"`) + +* `PlatformVsphere7` (value: `"vsphere7"`) + +* `PlatformVsphere8` (value: `"vsphere8"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PreferredThemeEnum.md b/v1/providers/launchpad/gen/launchpad/docs/PreferredThemeEnum.md new file mode 100644 index 0000000..9f04c29 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PreferredThemeEnum.md @@ -0,0 +1,13 @@ +# PreferredThemeEnum + +## Enum + + +* `PreferredThemeLight` (value: `"light"`) + +* `PreferredThemeDark` (value: `"dark"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PriorityEnum.md b/v1/providers/launchpad/gen/launchpad/docs/PriorityEnum.md new file mode 100644 index 0000000..426db7c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PriorityEnum.md @@ -0,0 +1,17 @@ +# PriorityEnum + +## Enum + + +* `PriorityP0` (value: `"p0"`) + +* `PriorityP1` (value: `"p1"`) + +* `PriorityP2` (value: `"p2"`) + +* `PriorityP3` (value: `"p3"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/Profile.md b/v1/providers/launchpad/gen/launchpad/docs/Profile.md new file mode 100644 index 0000000..abc9daa --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/Profile.md @@ -0,0 +1,207 @@ +# Profile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**Groups** | **[]string** | | +**Id** | **string** | | [readonly] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**PreferredTheme** | Pointer to [**NullablePreferredThemeEnum**](PreferredThemeEnum.md) | | [optional] +**PreferredViewSettings** | Pointer to **interface{}** | | [optional] +**Username** | **string** | | + +## Methods + +### NewProfile + +`func NewProfile(created time.Time, groups []string, id string, modified time.Time, username string, ) *Profile` + +NewProfile instantiates a new Profile 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 + +### NewProfileWithDefaults + +`func NewProfileWithDefaults() *Profile` + +NewProfileWithDefaults instantiates a new Profile 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 + +### GetCreated + +`func (o *Profile) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Profile) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Profile) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetGroups + +`func (o *Profile) GetGroups() []string` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *Profile) 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 *Profile) SetGroups(v []string)` + +SetGroups sets Groups field to given value. + + +### GetId + +`func (o *Profile) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Profile) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Profile) SetId(v string)` + +SetId sets Id field to given value. + + +### GetModified + +`func (o *Profile) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *Profile) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *Profile) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetPreferredTheme + +`func (o *Profile) GetPreferredTheme() PreferredThemeEnum` + +GetPreferredTheme returns the PreferredTheme field if non-nil, zero value otherwise. + +### GetPreferredThemeOk + +`func (o *Profile) GetPreferredThemeOk() (*PreferredThemeEnum, bool)` + +GetPreferredThemeOk returns a tuple with the PreferredTheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreferredTheme + +`func (o *Profile) SetPreferredTheme(v PreferredThemeEnum)` + +SetPreferredTheme sets PreferredTheme field to given value. + +### HasPreferredTheme + +`func (o *Profile) HasPreferredTheme() bool` + +HasPreferredTheme returns a boolean if a field has been set. + +### SetPreferredThemeNil + +`func (o *Profile) SetPreferredThemeNil(b bool)` + + SetPreferredThemeNil sets the value for PreferredTheme to be an explicit nil + +### UnsetPreferredTheme +`func (o *Profile) UnsetPreferredTheme()` + +UnsetPreferredTheme ensures that no value is present for PreferredTheme, not even an explicit nil +### GetPreferredViewSettings + +`func (o *Profile) GetPreferredViewSettings() interface{}` + +GetPreferredViewSettings returns the PreferredViewSettings field if non-nil, zero value otherwise. + +### GetPreferredViewSettingsOk + +`func (o *Profile) GetPreferredViewSettingsOk() (*interface{}, bool)` + +GetPreferredViewSettingsOk returns a tuple with the PreferredViewSettings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreferredViewSettings + +`func (o *Profile) SetPreferredViewSettings(v interface{})` + +SetPreferredViewSettings sets PreferredViewSettings field to given value. + +### HasPreferredViewSettings + +`func (o *Profile) HasPreferredViewSettings() bool` + +HasPreferredViewSettings returns a boolean if a field has been set. + +### SetPreferredViewSettingsNil + +`func (o *Profile) SetPreferredViewSettingsNil(b bool)` + + SetPreferredViewSettingsNil sets the value for PreferredViewSettings to be an explicit nil + +### UnsetPreferredViewSettings +`func (o *Profile) UnsetPreferredViewSettings()` + +UnsetPreferredViewSettings ensures that no value is present for PreferredViewSettings, not even an explicit nil +### GetUsername + +`func (o *Profile) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *Profile) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *Profile) SetUsername(v string)` + +SetUsername sets Username field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/Provider.md b/v1/providers/launchpad/gen/launchpad/docs/Provider.md new file mode 100644 index 0000000..0c3354f --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/Provider.md @@ -0,0 +1,202 @@ +# Provider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**DisplayName** | Pointer to **NullableString** | Human-friendly version of name. Used for display purposes. | [optional] +**Id** | **string** | | [readonly] +**InstanceLimit** | Pointer to **int32** | The maximum number of provisionined instances allowed globally for the provider (0 = unlimited) | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**Name** | **string** | | +**Priority** | Pointer to **int32** | Weighted preference to use in selecting a provider for a deployment. Higher priority values will be preferred over lower ones. | [optional] + +## Methods + +### NewProvider + +`func NewProvider(created time.Time, id string, modified time.Time, name string, ) *Provider` + +NewProvider instantiates a new Provider 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 + +### NewProviderWithDefaults + +`func NewProviderWithDefaults() *Provider` + +NewProviderWithDefaults instantiates a new Provider 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 + +### GetCreated + +`func (o *Provider) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Provider) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Provider) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetDisplayName + +`func (o *Provider) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *Provider) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *Provider) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *Provider) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *Provider) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *Provider) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetId + +`func (o *Provider) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Provider) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Provider) SetId(v string)` + +SetId sets Id field to given value. + + +### GetInstanceLimit + +`func (o *Provider) GetInstanceLimit() int32` + +GetInstanceLimit returns the InstanceLimit field if non-nil, zero value otherwise. + +### GetInstanceLimitOk + +`func (o *Provider) GetInstanceLimitOk() (*int32, bool)` + +GetInstanceLimitOk returns a tuple with the InstanceLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceLimit + +`func (o *Provider) SetInstanceLimit(v int32)` + +SetInstanceLimit sets InstanceLimit field to given value. + +### HasInstanceLimit + +`func (o *Provider) HasInstanceLimit() bool` + +HasInstanceLimit returns a boolean if a field has been set. + +### GetModified + +`func (o *Provider) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *Provider) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *Provider) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetName + +`func (o *Provider) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Provider) 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 *Provider) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPriority + +`func (o *Provider) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *Provider) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *Provider) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *Provider) HasPriority() bool` + +HasPriority 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) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/ProviderBulkUpdate.md b/v1/providers/launchpad/gen/launchpad/docs/ProviderBulkUpdate.md new file mode 100644 index 0000000..f0eb80a --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/ProviderBulkUpdate.md @@ -0,0 +1,265 @@ +# ProviderBulkUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | Timestamp of when the object was created | [readonly] +**DisplayName** | Pointer to **NullableString** | Human-friendly version of name. Used for display purposes. | [optional] +**Id** | **string** | | [readonly] +**InstanceLimit** | Pointer to **int32** | The maximum number of provisionined instances allowed globally for the provider (0 = unlimited) | [optional] +**Modified** | **time.Time** | Timestamp of when the object was last modified | [readonly] +**Name** | **string** | | [readonly] +**Priority** | Pointer to **int32** | Weighted preference to use in selecting a provider for a deployment. Higher priority values will be preferred over lower ones. | [optional] +**Count** | **int32** | | [readonly] +**Ids** | **[]string** | | +**Result** | **string** | | [readonly] + +## Methods + +### NewProviderBulkUpdate + +`func NewProviderBulkUpdate(created time.Time, id string, modified time.Time, name string, count int32, ids []string, result string, ) *ProviderBulkUpdate` + +NewProviderBulkUpdate instantiates a new ProviderBulkUpdate 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 + +### NewProviderBulkUpdateWithDefaults + +`func NewProviderBulkUpdateWithDefaults() *ProviderBulkUpdate` + +NewProviderBulkUpdateWithDefaults instantiates a new ProviderBulkUpdate 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 + +### GetCreated + +`func (o *ProviderBulkUpdate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ProviderBulkUpdate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ProviderBulkUpdate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetDisplayName + +`func (o *ProviderBulkUpdate) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ProviderBulkUpdate) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ProviderBulkUpdate) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ProviderBulkUpdate) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *ProviderBulkUpdate) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *ProviderBulkUpdate) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetId + +`func (o *ProviderBulkUpdate) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ProviderBulkUpdate) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ProviderBulkUpdate) SetId(v string)` + +SetId sets Id field to given value. + + +### GetInstanceLimit + +`func (o *ProviderBulkUpdate) GetInstanceLimit() int32` + +GetInstanceLimit returns the InstanceLimit field if non-nil, zero value otherwise. + +### GetInstanceLimitOk + +`func (o *ProviderBulkUpdate) GetInstanceLimitOk() (*int32, bool)` + +GetInstanceLimitOk returns a tuple with the InstanceLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceLimit + +`func (o *ProviderBulkUpdate) SetInstanceLimit(v int32)` + +SetInstanceLimit sets InstanceLimit field to given value. + +### HasInstanceLimit + +`func (o *ProviderBulkUpdate) HasInstanceLimit() bool` + +HasInstanceLimit returns a boolean if a field has been set. + +### GetModified + +`func (o *ProviderBulkUpdate) GetModified() time.Time` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *ProviderBulkUpdate) GetModifiedOk() (*time.Time, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *ProviderBulkUpdate) SetModified(v time.Time)` + +SetModified sets Modified field to given value. + + +### GetName + +`func (o *ProviderBulkUpdate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ProviderBulkUpdate) 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 *ProviderBulkUpdate) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPriority + +`func (o *ProviderBulkUpdate) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *ProviderBulkUpdate) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *ProviderBulkUpdate) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *ProviderBulkUpdate) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetCount + +`func (o *ProviderBulkUpdate) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ProviderBulkUpdate) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ProviderBulkUpdate) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetIds + +`func (o *ProviderBulkUpdate) GetIds() []string` + +GetIds returns the Ids field if non-nil, zero value otherwise. + +### GetIdsOk + +`func (o *ProviderBulkUpdate) GetIdsOk() (*[]string, bool)` + +GetIdsOk returns a tuple with the Ids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIds + +`func (o *ProviderBulkUpdate) SetIds(v []string)` + +SetIds sets Ids field to given value. + + +### GetResult + +`func (o *ProviderBulkUpdate) GetResult() string` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *ProviderBulkUpdate) GetResultOk() (*string, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *ProviderBulkUpdate) SetResult(v string)` + +SetResult sets Result field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/ProvisioningStateEnum.md b/v1/providers/launchpad/gen/launchpad/docs/ProvisioningStateEnum.md new file mode 100644 index 0000000..29b9ae3 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/ProvisioningStateEnum.md @@ -0,0 +1,23 @@ +# ProvisioningStateEnum + +## Enum + + +* `ProvisioningStateDeployed` (value: `"deployed"`) + +* `ProvisioningStateDeploying` (value: `"deploying"`) + +* `ProvisioningStateDestroying` (value: `"destroying"`) + +* `ProvisioningStatePending` (value: `"pending"`) + +* `ProvisioningStateReady` (value: `"ready"`) + +* `ProvisioningStateReserved` (value: `"reserved"`) + +* `ProvisioningStateUnprovisioned` (value: `"unprovisioned"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/PublishedEnum.md b/v1/providers/launchpad/gen/launchpad/docs/PublishedEnum.md new file mode 100644 index 0000000..07a8b88 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/PublishedEnum.md @@ -0,0 +1,15 @@ +# PublishedEnum + +## Enum + + +* `PublishedDraft` (value: `"draft"`) + +* `PublishedNo` (value: `"no"`) + +* `PublishedYes` (value: `"yes"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/StatusEnum.md b/v1/providers/launchpad/gen/launchpad/docs/StatusEnum.md new file mode 100644 index 0000000..7a967db --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/StatusEnum.md @@ -0,0 +1,19 @@ +# StatusEnum + +## Enum + + +* `StatusCompleted` (value: `"completed"`) + +* `StatusFailed` (value: `"failed"`) + +* `StatusPending` (value: `"pending"`) + +* `StatusProcessing` (value: `"processing"`) + +* `StatusRetrying` (value: `"retrying"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/SystemArchEnum.md b/v1/providers/launchpad/gen/launchpad/docs/SystemArchEnum.md new file mode 100644 index 0000000..82c1c34 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/SystemArchEnum.md @@ -0,0 +1,13 @@ +# SystemArchEnum + +## Enum + + +* `SystemArchAMD64` (value: `"amd64"`) + +* `SystemArchARM64` (value: `"arm64"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/Tenant.md b/v1/providers/launchpad/gen/launchpad/docs/Tenant.md new file mode 100644 index 0000000..fcae00a --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/Tenant.md @@ -0,0 +1,51 @@ +# Tenant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | + +## Methods + +### NewTenant + +`func NewTenant(id string, ) *Tenant` + +NewTenant instantiates a new Tenant 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 + +### NewTenantWithDefaults + +`func NewTenantWithDefaults() *Tenant` + +NewTenantWithDefaults instantiates a new Tenant 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 + +### GetId + +`func (o *Tenant) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Tenant) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Tenant) SetId(v string)` + +SetId sets Id field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/TypeEnum.md b/v1/providers/launchpad/gen/launchpad/docs/TypeEnum.md new file mode 100644 index 0000000..19be9b6 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/TypeEnum.md @@ -0,0 +1,13 @@ +# TypeEnum + +## Enum + + +* `TypeNVMe` (value: `"nvme"`) + +* `TypeSSD` (value: `"ssd"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/docs/VgpuProfileEnum.md b/v1/providers/launchpad/gen/launchpad/docs/VgpuProfileEnum.md new file mode 100644 index 0000000..0b966e3 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/docs/VgpuProfileEnum.md @@ -0,0 +1,35 @@ +# VgpuProfileEnum + +## Enum + + +* `VgpuProfileAir` (value: `"air"`) + +* `VgpuProfileBrightCluster` (value: `"bright_cluster"`) + +* `VgpuProfileBrightClusterLegacy` (value: `"bright-cluster"`) + +* `VgpuProfileFlightDeck` (value: `"flight_deck"`) + +* `VgpuProfileFlightDeckLegacy` (value: `"flight-deck"`) + +* `VgpuProfileNvidiaA4048QLegacy` (value: `"nvidia_a40-48q"`) + +* `VgpuProfileNvidiaAiEnterpriseLegacy` (value: `"nvidia-ai-enterprise"`) + +* `VgpuProfileNvidiaL40s48QLegacy` (value: `"nvidia_l40s-48q"`) + +* `VgpuProfileNvidiaRtxPro6000BlackwellDc496QLegacy` (value: `"nvidia_rtx_pro_6000_blackwell_dc-4-96q"`) + +* `VgpuProfileNvidiaRtxPro6000BlackwellDc96QLegacy` (value: `"nvidia_rtx_pro_6000_blackwell_dc-96q"`) + +* `VgpuProfileOpenshift` (value: `"openshift"`) + +* `VgpuProfilePlatformOnly` (value: `"platform_only"`) + +* `VgpuProfileVmwareItadmin` (value: `"vmware_itadmin"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/providers/launchpad/gen/launchpad/git_push.sh b/v1/providers/launchpad/gen/launchpad/git_push.sh new file mode 100644 index 0000000..ccffd50 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/git_push.sh @@ -0,0 +1,57 @@ +#!/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="brevdev" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cloud" + 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' diff --git a/v1/providers/launchpad/gen/launchpad/model_auth_login.go b/v1/providers/launchpad/gen/launchpad/model_auth_login.go new file mode 100644 index 0000000..7ae6942 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_auth_login.go @@ -0,0 +1,227 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AuthLogin type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthLogin{} + +// AuthLogin struct for AuthLogin +type AuthLogin struct { + AuthCode *string `json:"auth_code,omitempty"` + Password *string `json:"password,omitempty"` + Username *string `json:"username,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AuthLogin AuthLogin + +// NewAuthLogin instantiates a new AuthLogin 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 NewAuthLogin() *AuthLogin { + this := AuthLogin{} + return &this +} + +// NewAuthLoginWithDefaults instantiates a new AuthLogin 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 NewAuthLoginWithDefaults() *AuthLogin { + this := AuthLogin{} + return &this +} + +// GetAuthCode returns the AuthCode field value if set, zero value otherwise. +func (o *AuthLogin) GetAuthCode() string { + if o == nil || IsNil(o.AuthCode) { + var ret string + return ret + } + return *o.AuthCode +} + +// GetAuthCodeOk returns a tuple with the AuthCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthLogin) GetAuthCodeOk() (*string, bool) { + if o == nil || IsNil(o.AuthCode) { + return nil, false + } + return o.AuthCode, true +} + +// HasAuthCode returns a boolean if a field has been set. +func (o *AuthLogin) HasAuthCode() bool { + if o != nil && !IsNil(o.AuthCode) { + return true + } + + return false +} + +// SetAuthCode gets a reference to the given string and assigns it to the AuthCode field. +func (o *AuthLogin) SetAuthCode(v string) { + o.AuthCode = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *AuthLogin) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthLogin) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *AuthLogin) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *AuthLogin) SetPassword(v string) { + o.Password = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *AuthLogin) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthLogin) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *AuthLogin) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *AuthLogin) SetUsername(v string) { + o.Username = &v +} + +func (o AuthLogin) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthLogin) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthCode) { + toSerialize["auth_code"] = o.AuthCode + } + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AuthLogin) UnmarshalJSON(data []byte) (err error) { + varAuthLogin := _AuthLogin{} + + err = json.Unmarshal(data, &varAuthLogin) + + if err != nil { + return err + } + + *o = AuthLogin(varAuthLogin) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "auth_code") + delete(additionalProperties, "password") + delete(additionalProperties, "username") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAuthLogin struct { + value *AuthLogin + isSet bool +} + +func (v NullableAuthLogin) Get() *AuthLogin { + return v.value +} + +func (v *NullableAuthLogin) Set(val *AuthLogin) { + v.value = val + v.isSet = true +} + +func (v NullableAuthLogin) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthLogin) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthLogin(val *AuthLogin) *NullableAuthLogin { + return &NullableAuthLogin{value: val, isSet: true} +} + +func (v NullableAuthLogin) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthLogin) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_auth_redirect.go b/v1/providers/launchpad/gen/launchpad/model_auth_redirect.go new file mode 100644 index 0000000..7106de7 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_auth_redirect.go @@ -0,0 +1,166 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the AuthRedirect type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthRedirect{} + +// AuthRedirect struct for AuthRedirect +type AuthRedirect struct { + Redirect string `json:"redirect"` + AdditionalProperties map[string]interface{} +} + +type _AuthRedirect AuthRedirect + +// NewAuthRedirect instantiates a new AuthRedirect 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 NewAuthRedirect(redirect string) *AuthRedirect { + this := AuthRedirect{} + this.Redirect = redirect + return &this +} + +// NewAuthRedirectWithDefaults instantiates a new AuthRedirect 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 NewAuthRedirectWithDefaults() *AuthRedirect { + this := AuthRedirect{} + return &this +} + +// GetRedirect returns the Redirect field value +func (o *AuthRedirect) GetRedirect() string { + if o == nil { + var ret string + return ret + } + + return o.Redirect +} + +// GetRedirectOk returns a tuple with the Redirect field value +// and a boolean to check if the value has been set. +func (o *AuthRedirect) GetRedirectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Redirect, true +} + +// SetRedirect sets field value +func (o *AuthRedirect) SetRedirect(v string) { + o.Redirect = v +} + +func (o AuthRedirect) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthRedirect) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["redirect"] = o.Redirect + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AuthRedirect) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "redirect", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAuthRedirect := _AuthRedirect{} + + err = json.Unmarshal(data, &varAuthRedirect) + + if err != nil { + return err + } + + *o = AuthRedirect(varAuthRedirect) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "redirect") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAuthRedirect struct { + value *AuthRedirect + isSet bool +} + +func (v NullableAuthRedirect) Get() *AuthRedirect { + return v.value +} + +func (v *NullableAuthRedirect) Set(val *AuthRedirect) { + v.value = val + v.isSet = true +} + +func (v NullableAuthRedirect) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthRedirect) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthRedirect(val *AuthRedirect) *NullableAuthRedirect { + return &NullableAuthRedirect{value: val, isSet: true} +} + +func (v NullableAuthRedirect) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthRedirect) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_auth_token.go b/v1/providers/launchpad/gen/launchpad/model_auth_token.go new file mode 100644 index 0000000..adb841c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_auth_token.go @@ -0,0 +1,195 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the AuthToken type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthToken{} + +// AuthToken struct for AuthToken +type AuthToken struct { + Token string `json:"token"` + Username string `json:"username"` + AdditionalProperties map[string]interface{} +} + +type _AuthToken AuthToken + +// NewAuthToken instantiates a new AuthToken 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 NewAuthToken(token string, username string) *AuthToken { + this := AuthToken{} + this.Token = token + this.Username = username + return &this +} + +// NewAuthTokenWithDefaults instantiates a new AuthToken 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 NewAuthTokenWithDefaults() *AuthToken { + this := AuthToken{} + return &this +} + +// GetToken returns the Token field value +func (o *AuthToken) GetToken() string { + if o == nil { + var ret string + return ret + } + + return o.Token +} + +// GetTokenOk returns a tuple with the Token field value +// and a boolean to check if the value has been set. +func (o *AuthToken) GetTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Token, true +} + +// SetToken sets field value +func (o *AuthToken) SetToken(v string) { + o.Token = v +} + +// GetUsername returns the Username field value +func (o *AuthToken) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *AuthToken) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *AuthToken) SetUsername(v string) { + o.Username = v +} + +func (o AuthToken) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthToken) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["token"] = o.Token + toSerialize["username"] = o.Username + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AuthToken) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "token", + "username", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAuthToken := _AuthToken{} + + err = json.Unmarshal(data, &varAuthToken) + + if err != nil { + return err + } + + *o = AuthToken(varAuthToken) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "token") + delete(additionalProperties, "username") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAuthToken struct { + value *AuthToken + isSet bool +} + +func (v NullableAuthToken) Get() *AuthToken { + return v.value +} + +func (v *NullableAuthToken) Set(val *AuthToken) { + v.value = val + v.isSet = true +} + +func (v NullableAuthToken) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthToken) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthToken(val *AuthToken) *NullableAuthToken { + return &NullableAuthToken{value: val, isSet: true} +} + +func (v NullableAuthToken) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthToken) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_blank_enum.go b/v1/providers/launchpad/gen/launchpad/model_blank_enum.go new file mode 100644 index 0000000..0ecfe18 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_blank_enum.go @@ -0,0 +1,108 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// BlankEnum the model 'BlankEnum' +type BlankEnum string + +// List of BlankEnum +const ( + Blank BlankEnum = "" +) + +// All allowed values of BlankEnum enum +var AllowedBlankEnumEnumValues = []BlankEnum{ + "", +} + +func (v *BlankEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BlankEnum(value) + for _, existing := range AllowedBlankEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BlankEnum", value) +} + +// NewBlankEnumFromValue returns a pointer to a valid BlankEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBlankEnumFromValue(v string) (*BlankEnum, error) { + ev := BlankEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BlankEnum: valid values are %v", v, AllowedBlankEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BlankEnum) IsValid() bool { + for _, existing := range AllowedBlankEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BlankEnum value +func (v BlankEnum) Ptr() *BlankEnum { + return &v +} + +type NullableBlankEnum struct { + value *BlankEnum + isSet bool +} + +func (v NullableBlankEnum) Get() *BlankEnum { + return v.value +} + +func (v *NullableBlankEnum) Set(val *BlankEnum) { + v.value = val + v.isSet = true +} + +func (v NullableBlankEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableBlankEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBlankEnum(val *BlankEnum) *NullableBlankEnum { + return &NullableBlankEnum{value: val, isSet: true} +} + +func (v NullableBlankEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBlankEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_category_enum.go b/v1/providers/launchpad/gen/launchpad/model_category_enum.go new file mode 100644 index 0000000..94cc45b --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_category_enum.go @@ -0,0 +1,118 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// CategoryEnum * `AI` - AI * `Clara` - Clara * `Data Science` - Data Science * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation * `Developer` - Developer * `Infrastructure Optimization` - Infrastructure Optimization +type CategoryEnum string + +// List of CategoryEnum +const ( + CategoryAI CategoryEnum = "AI" + CategoryClara CategoryEnum = "Clara" + CategoryDataScience CategoryEnum = "Data Science" + Category3DDesignCollaborationAndSimulation CategoryEnum = "3D Design Collaboration and Simulation" + CategoryDeveloper CategoryEnum = "Developer" + CategoryInfrastructureOptimization CategoryEnum = "Infrastructure Optimization" +) + +// All allowed values of CategoryEnum enum +var AllowedCategoryEnumEnumValues = []CategoryEnum{ + "AI", + "Clara", + "Data Science", + "3D Design Collaboration and Simulation", + "Developer", + "Infrastructure Optimization", +} + +func (v *CategoryEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CategoryEnum(value) + for _, existing := range AllowedCategoryEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CategoryEnum", value) +} + +// NewCategoryEnumFromValue returns a pointer to a valid CategoryEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCategoryEnumFromValue(v string) (*CategoryEnum, error) { + ev := CategoryEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CategoryEnum: valid values are %v", v, AllowedCategoryEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CategoryEnum) IsValid() bool { + for _, existing := range AllowedCategoryEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CategoryEnum value +func (v CategoryEnum) Ptr() *CategoryEnum { + return &v +} + +type NullableCategoryEnum struct { + value *CategoryEnum + isSet bool +} + +func (v NullableCategoryEnum) Get() *CategoryEnum { + return v.value +} + +func (v *NullableCategoryEnum) Set(val *CategoryEnum) { + v.value = val + v.isSet = true +} + +func (v NullableCategoryEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableCategoryEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCategoryEnum(val *CategoryEnum) *NullableCategoryEnum { + return &NullableCategoryEnum{value: val, isSet: true} +} + +func (v NullableCategoryEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCategoryEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_cluster.go b/v1/providers/launchpad/gen/launchpad/model_cluster.go new file mode 100644 index 0000000..80bdece --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_cluster.go @@ -0,0 +1,1416 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the Cluster type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Cluster{} + +// Cluster struct for Cluster +type Cluster struct { + // Is the cluster currently available for provisioning? + Available bool `json:"available"` + // Name of the bastion assigned to the cluster + BastionName NullableString `json:"bastion_name,omitempty"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + Deployment ClusterDeployment `json:"deployment"` + // Is the cluster administratively enabled? + Enabled *bool `json:"enabled,omitempty"` + // Experience provisioned onto this cluster + Experience NullableString `json:"experience,omitempty"` + FreeBy NullableTime `json:"free_by,omitempty"` + Gpus []ClusterGpusInner `json:"gpus"` + // Alias for GPU plan (i.e. installed GPU type and count) + GpuAlias *string `json:"gpu_alias,omitempty"` + GpuCount *int32 `json:"gpu_count,omitempty"` + Id string `json:"id"` + Instances []ClusterInstancesInner `json:"instances"` + // Timestamp of when the cluster was last in use + LastUsed NullableTime `json:"last_used"` + // Is the cluster in maintenance mode? + Maintenance *bool `json:"maintenance,omitempty"` + // Management IP address + MgmtIp *string `json:"mgmt_ip,omitempty"` + // Management MAC address + MgmtMac NullableString `json:"mgmt_mac,omitempty"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // The subnet mask of the cluster's public IP address in CIDR notation + Netmask NullableInt32 `json:"netmask,omitempty"` + NodeCount *int32 `json:"node_count,omitempty"` + Nodes []ClusterNodesInner `json:"nodes,omitempty"` + // Administrative comments about the cluster + Notes NullableString `json:"notes,omitempty"` + // Is the cluster exempt from provisioning_state timeouts? Can be used to ensure the cluster persists after a provisioning failure. + Persist *bool `json:"persist,omitempty"` + // Does the provider have capacity to provision this cluster? + ProviderCapacity bool `json:"provider_capacity"` + // Username used for provisioning this cluster + ProvisionUser NullableString `json:"provision_user,omitempty"` + // The number of attempts that have been made to provision this cluster. Automatically resets to 0 after successful provisioning. + ProvisioningAttempts *int32 `json:"provisioning_attempts,omitempty"` + // Is the cluster currently provisioned? * `deployed` - Cluster is in use by a deployment * `deploying` - Provisioning is in progress * `destroying` - Cluster is being destroyed * `pending` - Provisioning will begin soon * `ready` - Provisioning has completed and is ready for a deployment * `reserved` - Cluster is unprovisioned but reserved for later use * `unprovisioned` - Cluster has not yet been provisioned + ProvisioningState *ProvisioningStateEnum `json:"provisioning_state,omitempty"` + // Public IP address or fully-qualified domain name of this cluster + PublicAddress NullableString `json:"public_address,omitempty"` + // The request ID for the lab that is currently provisioned on this cluster (ex: TRY-1234) + RequestId NullableString `json:"request_id,omitempty"` + // Is the cluster a static reservation from its provider? + Reservation *bool `json:"reservation,omitempty"` + // Tenant UUID(s) that have been generated for this cluster during provisioning + TenantIds []string `json:"tenant_ids"` + // VLAN number + VlanId *int32 `json:"vlan_id,omitempty"` + // Is the cluster set aside for use in a workshop? + Workshop *bool `json:"workshop,omitempty"` + // Identifier of the workshop this cluster is set aside for + WorkshopId NullableString `json:"workshop_id,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Cluster Cluster + +// NewCluster instantiates a new Cluster 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 NewCluster(available bool, created time.Time, deployment ClusterDeployment, gpus []ClusterGpusInner, id string, instances []ClusterInstancesInner, lastUsed NullableTime, modified time.Time, providerCapacity bool, tenantIds []string) *Cluster { + this := Cluster{} + this.Available = available + this.Created = created + this.Deployment = deployment + this.Gpus = gpus + this.Id = id + this.Instances = instances + this.LastUsed = lastUsed + this.Modified = modified + this.ProviderCapacity = providerCapacity + this.TenantIds = tenantIds + return &this +} + +// NewClusterWithDefaults instantiates a new Cluster 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 NewClusterWithDefaults() *Cluster { + this := Cluster{} + return &this +} + +// GetAvailable returns the Available field value +func (o *Cluster) GetAvailable() bool { + if o == nil { + var ret bool + return ret + } + + return o.Available +} + +// GetAvailableOk returns a tuple with the Available field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetAvailableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Available, true +} + +// SetAvailable sets field value +func (o *Cluster) SetAvailable(v bool) { + o.Available = v +} + +// GetBastionName returns the BastionName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetBastionName() string { + if o == nil || IsNil(o.BastionName.Get()) { + var ret string + return ret + } + return *o.BastionName.Get() +} + +// GetBastionNameOk returns a tuple with the BastionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetBastionNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BastionName.Get(), o.BastionName.IsSet() +} + +// HasBastionName returns a boolean if a field has been set. +func (o *Cluster) HasBastionName() bool { + if o != nil && o.BastionName.IsSet() { + return true + } + + return false +} + +// SetBastionName gets a reference to the given NullableString and assigns it to the BastionName field. +func (o *Cluster) SetBastionName(v string) { + o.BastionName.Set(&v) +} + +// SetBastionNameNil sets the value for BastionName to be an explicit nil +func (o *Cluster) SetBastionNameNil() { + o.BastionName.Set(nil) +} + +// UnsetBastionName ensures that no value is present for BastionName, not even an explicit nil +func (o *Cluster) UnsetBastionName() { + o.BastionName.Unset() +} + +// GetCreated returns the Created field value +func (o *Cluster) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *Cluster) SetCreated(v time.Time) { + o.Created = v +} + +// GetDeployment returns the Deployment field value +func (o *Cluster) GetDeployment() ClusterDeployment { + if o == nil { + var ret ClusterDeployment + return ret + } + + return o.Deployment +} + +// GetDeploymentOk returns a tuple with the Deployment field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetDeploymentOk() (*ClusterDeployment, bool) { + if o == nil { + return nil, false + } + return &o.Deployment, true +} + +// SetDeployment sets field value +func (o *Cluster) SetDeployment(v ClusterDeployment) { + o.Deployment = v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *Cluster) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *Cluster) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *Cluster) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetExperience returns the Experience field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetExperience() string { + if o == nil || IsNil(o.Experience.Get()) { + var ret string + return ret + } + return *o.Experience.Get() +} + +// GetExperienceOk returns a tuple with the Experience field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetExperienceOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Experience.Get(), o.Experience.IsSet() +} + +// HasExperience returns a boolean if a field has been set. +func (o *Cluster) HasExperience() bool { + if o != nil && o.Experience.IsSet() { + return true + } + + return false +} + +// SetExperience gets a reference to the given NullableString and assigns it to the Experience field. +func (o *Cluster) SetExperience(v string) { + o.Experience.Set(&v) +} + +// SetExperienceNil sets the value for Experience to be an explicit nil +func (o *Cluster) SetExperienceNil() { + o.Experience.Set(nil) +} + +// UnsetExperience ensures that no value is present for Experience, not even an explicit nil +func (o *Cluster) UnsetExperience() { + o.Experience.Unset() +} + +// GetFreeBy returns the FreeBy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetFreeBy() time.Time { + if o == nil || IsNil(o.FreeBy.Get()) { + var ret time.Time + return ret + } + return *o.FreeBy.Get() +} + +// GetFreeByOk returns a tuple with the FreeBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetFreeByOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.FreeBy.Get(), o.FreeBy.IsSet() +} + +// HasFreeBy returns a boolean if a field has been set. +func (o *Cluster) HasFreeBy() bool { + if o != nil && o.FreeBy.IsSet() { + return true + } + + return false +} + +// SetFreeBy gets a reference to the given NullableTime and assigns it to the FreeBy field. +func (o *Cluster) SetFreeBy(v time.Time) { + o.FreeBy.Set(&v) +} + +// SetFreeByNil sets the value for FreeBy to be an explicit nil +func (o *Cluster) SetFreeByNil() { + o.FreeBy.Set(nil) +} + +// UnsetFreeBy ensures that no value is present for FreeBy, not even an explicit nil +func (o *Cluster) UnsetFreeBy() { + o.FreeBy.Unset() +} + +// GetGpus returns the Gpus field value +func (o *Cluster) GetGpus() []ClusterGpusInner { + if o == nil { + var ret []ClusterGpusInner + return ret + } + + return o.Gpus +} + +// GetGpusOk returns a tuple with the Gpus field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetGpusOk() ([]ClusterGpusInner, bool) { + if o == nil { + return nil, false + } + return o.Gpus, true +} + +// SetGpus sets field value +func (o *Cluster) SetGpus(v []ClusterGpusInner) { + o.Gpus = v +} + +// GetGpuAlias returns the GpuAlias field value if set, zero value otherwise. +func (o *Cluster) GetGpuAlias() string { + if o == nil || IsNil(o.GpuAlias) { + var ret string + return ret + } + return *o.GpuAlias +} + +// GetGpuAliasOk returns a tuple with the GpuAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetGpuAliasOk() (*string, bool) { + if o == nil || IsNil(o.GpuAlias) { + return nil, false + } + return o.GpuAlias, true +} + +// HasGpuAlias returns a boolean if a field has been set. +func (o *Cluster) HasGpuAlias() bool { + if o != nil && !IsNil(o.GpuAlias) { + return true + } + + return false +} + +// SetGpuAlias gets a reference to the given string and assigns it to the GpuAlias field. +func (o *Cluster) SetGpuAlias(v string) { + o.GpuAlias = &v +} + +// GetGpuCount returns the GpuCount field value if set, zero value otherwise. +func (o *Cluster) GetGpuCount() int32 { + if o == nil || IsNil(o.GpuCount) { + var ret int32 + return ret + } + return *o.GpuCount +} + +// GetGpuCountOk returns a tuple with the GpuCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetGpuCountOk() (*int32, bool) { + if o == nil || IsNil(o.GpuCount) { + return nil, false + } + return o.GpuCount, true +} + +// HasGpuCount returns a boolean if a field has been set. +func (o *Cluster) HasGpuCount() bool { + if o != nil && !IsNil(o.GpuCount) { + return true + } + + return false +} + +// SetGpuCount gets a reference to the given int32 and assigns it to the GpuCount field. +func (o *Cluster) SetGpuCount(v int32) { + o.GpuCount = &v +} + +// GetId returns the Id field value +func (o *Cluster) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Cluster) SetId(v string) { + o.Id = v +} + +// GetInstances returns the Instances field value +func (o *Cluster) GetInstances() []ClusterInstancesInner { + if o == nil { + var ret []ClusterInstancesInner + return ret + } + + return o.Instances +} + +// GetInstancesOk returns a tuple with the Instances field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetInstancesOk() ([]ClusterInstancesInner, bool) { + if o == nil { + return nil, false + } + return o.Instances, true +} + +// SetInstances sets field value +func (o *Cluster) SetInstances(v []ClusterInstancesInner) { + o.Instances = v +} + +// GetLastUsed returns the LastUsed field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Cluster) GetLastUsed() time.Time { + if o == nil || o.LastUsed.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUsed.Get() +} + +// GetLastUsedOk returns a tuple with the LastUsed field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetLastUsedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUsed.Get(), o.LastUsed.IsSet() +} + +// SetLastUsed sets field value +func (o *Cluster) SetLastUsed(v time.Time) { + o.LastUsed.Set(&v) +} + +// GetMaintenance returns the Maintenance field value if set, zero value otherwise. +func (o *Cluster) GetMaintenance() bool { + if o == nil || IsNil(o.Maintenance) { + var ret bool + return ret + } + return *o.Maintenance +} + +// GetMaintenanceOk returns a tuple with the Maintenance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetMaintenanceOk() (*bool, bool) { + if o == nil || IsNil(o.Maintenance) { + return nil, false + } + return o.Maintenance, true +} + +// HasMaintenance returns a boolean if a field has been set. +func (o *Cluster) HasMaintenance() bool { + if o != nil && !IsNil(o.Maintenance) { + return true + } + + return false +} + +// SetMaintenance gets a reference to the given bool and assigns it to the Maintenance field. +func (o *Cluster) SetMaintenance(v bool) { + o.Maintenance = &v +} + +// GetMgmtIp returns the MgmtIp field value if set, zero value otherwise. +func (o *Cluster) GetMgmtIp() string { + if o == nil || IsNil(o.MgmtIp) { + var ret string + return ret + } + return *o.MgmtIp +} + +// GetMgmtIpOk returns a tuple with the MgmtIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetMgmtIpOk() (*string, bool) { + if o == nil || IsNil(o.MgmtIp) { + return nil, false + } + return o.MgmtIp, true +} + +// HasMgmtIp returns a boolean if a field has been set. +func (o *Cluster) HasMgmtIp() bool { + if o != nil && !IsNil(o.MgmtIp) { + return true + } + + return false +} + +// SetMgmtIp gets a reference to the given string and assigns it to the MgmtIp field. +func (o *Cluster) SetMgmtIp(v string) { + o.MgmtIp = &v +} + +// GetMgmtMac returns the MgmtMac field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetMgmtMac() string { + if o == nil || IsNil(o.MgmtMac.Get()) { + var ret string + return ret + } + return *o.MgmtMac.Get() +} + +// GetMgmtMacOk returns a tuple with the MgmtMac field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetMgmtMacOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MgmtMac.Get(), o.MgmtMac.IsSet() +} + +// HasMgmtMac returns a boolean if a field has been set. +func (o *Cluster) HasMgmtMac() bool { + if o != nil && o.MgmtMac.IsSet() { + return true + } + + return false +} + +// SetMgmtMac gets a reference to the given NullableString and assigns it to the MgmtMac field. +func (o *Cluster) SetMgmtMac(v string) { + o.MgmtMac.Set(&v) +} + +// SetMgmtMacNil sets the value for MgmtMac to be an explicit nil +func (o *Cluster) SetMgmtMacNil() { + o.MgmtMac.Set(nil) +} + +// UnsetMgmtMac ensures that no value is present for MgmtMac, not even an explicit nil +func (o *Cluster) UnsetMgmtMac() { + o.MgmtMac.Unset() +} + +// GetModified returns the Modified field value +func (o *Cluster) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *Cluster) SetModified(v time.Time) { + o.Modified = v +} + +// GetNetmask returns the Netmask field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetNetmask() int32 { + if o == nil || IsNil(o.Netmask.Get()) { + var ret int32 + return ret + } + return *o.Netmask.Get() +} + +// GetNetmaskOk returns a tuple with the Netmask field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetNetmaskOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Netmask.Get(), o.Netmask.IsSet() +} + +// HasNetmask returns a boolean if a field has been set. +func (o *Cluster) HasNetmask() bool { + if o != nil && o.Netmask.IsSet() { + return true + } + + return false +} + +// SetNetmask gets a reference to the given NullableInt32 and assigns it to the Netmask field. +func (o *Cluster) SetNetmask(v int32) { + o.Netmask.Set(&v) +} + +// SetNetmaskNil sets the value for Netmask to be an explicit nil +func (o *Cluster) SetNetmaskNil() { + o.Netmask.Set(nil) +} + +// UnsetNetmask ensures that no value is present for Netmask, not even an explicit nil +func (o *Cluster) UnsetNetmask() { + o.Netmask.Unset() +} + +// GetNodeCount returns the NodeCount field value if set, zero value otherwise. +func (o *Cluster) 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 *Cluster) 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 *Cluster) 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 *Cluster) SetNodeCount(v int32) { + o.NodeCount = &v +} + +// GetNodes returns the Nodes field value if set, zero value otherwise. +func (o *Cluster) GetNodes() []ClusterNodesInner { + if o == nil || IsNil(o.Nodes) { + var ret []ClusterNodesInner + 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 *Cluster) GetNodesOk() ([]ClusterNodesInner, 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 *Cluster) HasNodes() bool { + if o != nil && !IsNil(o.Nodes) { + return true + } + + return false +} + +// SetNodes gets a reference to the given []ClusterNodesInner and assigns it to the Nodes field. +func (o *Cluster) SetNodes(v []ClusterNodesInner) { + o.Nodes = v +} + +// GetNotes returns the Notes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetNotes() string { + if o == nil || IsNil(o.Notes.Get()) { + var ret string + return ret + } + return *o.Notes.Get() +} + +// GetNotesOk returns a tuple with the Notes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetNotesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Notes.Get(), o.Notes.IsSet() +} + +// HasNotes returns a boolean if a field has been set. +func (o *Cluster) HasNotes() bool { + if o != nil && o.Notes.IsSet() { + return true + } + + return false +} + +// SetNotes gets a reference to the given NullableString and assigns it to the Notes field. +func (o *Cluster) SetNotes(v string) { + o.Notes.Set(&v) +} + +// SetNotesNil sets the value for Notes to be an explicit nil +func (o *Cluster) SetNotesNil() { + o.Notes.Set(nil) +} + +// UnsetNotes ensures that no value is present for Notes, not even an explicit nil +func (o *Cluster) UnsetNotes() { + o.Notes.Unset() +} + +// GetPersist returns the Persist field value if set, zero value otherwise. +func (o *Cluster) GetPersist() bool { + if o == nil || IsNil(o.Persist) { + var ret bool + return ret + } + return *o.Persist +} + +// GetPersistOk returns a tuple with the Persist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetPersistOk() (*bool, bool) { + if o == nil || IsNil(o.Persist) { + return nil, false + } + return o.Persist, true +} + +// HasPersist returns a boolean if a field has been set. +func (o *Cluster) HasPersist() bool { + if o != nil && !IsNil(o.Persist) { + return true + } + + return false +} + +// SetPersist gets a reference to the given bool and assigns it to the Persist field. +func (o *Cluster) SetPersist(v bool) { + o.Persist = &v +} + +// GetProviderCapacity returns the ProviderCapacity field value +func (o *Cluster) GetProviderCapacity() bool { + if o == nil { + var ret bool + return ret + } + + return o.ProviderCapacity +} + +// GetProviderCapacityOk returns a tuple with the ProviderCapacity field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetProviderCapacityOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ProviderCapacity, true +} + +// SetProviderCapacity sets field value +func (o *Cluster) SetProviderCapacity(v bool) { + o.ProviderCapacity = v +} + +// GetProvisionUser returns the ProvisionUser field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetProvisionUser() string { + if o == nil || IsNil(o.ProvisionUser.Get()) { + var ret string + return ret + } + return *o.ProvisionUser.Get() +} + +// GetProvisionUserOk returns a tuple with the ProvisionUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetProvisionUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ProvisionUser.Get(), o.ProvisionUser.IsSet() +} + +// HasProvisionUser returns a boolean if a field has been set. +func (o *Cluster) HasProvisionUser() bool { + if o != nil && o.ProvisionUser.IsSet() { + return true + } + + return false +} + +// SetProvisionUser gets a reference to the given NullableString and assigns it to the ProvisionUser field. +func (o *Cluster) SetProvisionUser(v string) { + o.ProvisionUser.Set(&v) +} + +// SetProvisionUserNil sets the value for ProvisionUser to be an explicit nil +func (o *Cluster) SetProvisionUserNil() { + o.ProvisionUser.Set(nil) +} + +// UnsetProvisionUser ensures that no value is present for ProvisionUser, not even an explicit nil +func (o *Cluster) UnsetProvisionUser() { + o.ProvisionUser.Unset() +} + +// GetProvisioningAttempts returns the ProvisioningAttempts field value if set, zero value otherwise. +func (o *Cluster) GetProvisioningAttempts() int32 { + if o == nil || IsNil(o.ProvisioningAttempts) { + var ret int32 + return ret + } + return *o.ProvisioningAttempts +} + +// GetProvisioningAttemptsOk returns a tuple with the ProvisioningAttempts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetProvisioningAttemptsOk() (*int32, bool) { + if o == nil || IsNil(o.ProvisioningAttempts) { + return nil, false + } + return o.ProvisioningAttempts, true +} + +// HasProvisioningAttempts returns a boolean if a field has been set. +func (o *Cluster) HasProvisioningAttempts() bool { + if o != nil && !IsNil(o.ProvisioningAttempts) { + return true + } + + return false +} + +// SetProvisioningAttempts gets a reference to the given int32 and assigns it to the ProvisioningAttempts field. +func (o *Cluster) SetProvisioningAttempts(v int32) { + o.ProvisioningAttempts = &v +} + +// GetProvisioningState returns the ProvisioningState field value if set, zero value otherwise. +func (o *Cluster) GetProvisioningState() ProvisioningStateEnum { + if o == nil || IsNil(o.ProvisioningState) { + var ret ProvisioningStateEnum + return ret + } + return *o.ProvisioningState +} + +// GetProvisioningStateOk returns a tuple with the ProvisioningState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetProvisioningStateOk() (*ProvisioningStateEnum, bool) { + if o == nil || IsNil(o.ProvisioningState) { + return nil, false + } + return o.ProvisioningState, true +} + +// HasProvisioningState returns a boolean if a field has been set. +func (o *Cluster) HasProvisioningState() bool { + if o != nil && !IsNil(o.ProvisioningState) { + return true + } + + return false +} + +// SetProvisioningState gets a reference to the given ProvisioningStateEnum and assigns it to the ProvisioningState field. +func (o *Cluster) SetProvisioningState(v ProvisioningStateEnum) { + o.ProvisioningState = &v +} + +// GetPublicAddress returns the PublicAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetPublicAddress() string { + if o == nil || IsNil(o.PublicAddress.Get()) { + var ret string + return ret + } + return *o.PublicAddress.Get() +} + +// GetPublicAddressOk returns a tuple with the PublicAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetPublicAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PublicAddress.Get(), o.PublicAddress.IsSet() +} + +// HasPublicAddress returns a boolean if a field has been set. +func (o *Cluster) HasPublicAddress() bool { + if o != nil && o.PublicAddress.IsSet() { + return true + } + + return false +} + +// SetPublicAddress gets a reference to the given NullableString and assigns it to the PublicAddress field. +func (o *Cluster) SetPublicAddress(v string) { + o.PublicAddress.Set(&v) +} + +// SetPublicAddressNil sets the value for PublicAddress to be an explicit nil +func (o *Cluster) SetPublicAddressNil() { + o.PublicAddress.Set(nil) +} + +// UnsetPublicAddress ensures that no value is present for PublicAddress, not even an explicit nil +func (o *Cluster) UnsetPublicAddress() { + o.PublicAddress.Unset() +} + +// GetRequestId returns the RequestId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetRequestId() string { + if o == nil || IsNil(o.RequestId.Get()) { + var ret string + return ret + } + return *o.RequestId.Get() +} + +// GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetRequestIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RequestId.Get(), o.RequestId.IsSet() +} + +// HasRequestId returns a boolean if a field has been set. +func (o *Cluster) HasRequestId() bool { + if o != nil && o.RequestId.IsSet() { + return true + } + + return false +} + +// SetRequestId gets a reference to the given NullableString and assigns it to the RequestId field. +func (o *Cluster) SetRequestId(v string) { + o.RequestId.Set(&v) +} + +// SetRequestIdNil sets the value for RequestId to be an explicit nil +func (o *Cluster) SetRequestIdNil() { + o.RequestId.Set(nil) +} + +// UnsetRequestId ensures that no value is present for RequestId, not even an explicit nil +func (o *Cluster) UnsetRequestId() { + o.RequestId.Unset() +} + +// GetReservation returns the Reservation field value if set, zero value otherwise. +func (o *Cluster) GetReservation() bool { + if o == nil || IsNil(o.Reservation) { + var ret bool + return ret + } + return *o.Reservation +} + +// GetReservationOk returns a tuple with the Reservation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetReservationOk() (*bool, bool) { + if o == nil || IsNil(o.Reservation) { + return nil, false + } + return o.Reservation, true +} + +// HasReservation returns a boolean if a field has been set. +func (o *Cluster) HasReservation() bool { + if o != nil && !IsNil(o.Reservation) { + return true + } + + return false +} + +// SetReservation gets a reference to the given bool and assigns it to the Reservation field. +func (o *Cluster) SetReservation(v bool) { + o.Reservation = &v +} + +// GetTenantIds returns the TenantIds field value +func (o *Cluster) GetTenantIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.TenantIds +} + +// GetTenantIdsOk returns a tuple with the TenantIds field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetTenantIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.TenantIds, true +} + +// SetTenantIds sets field value +func (o *Cluster) SetTenantIds(v []string) { + o.TenantIds = v +} + +// GetVlanId returns the VlanId field value if set, zero value otherwise. +func (o *Cluster) GetVlanId() int32 { + if o == nil || IsNil(o.VlanId) { + var ret int32 + return ret + } + return *o.VlanId +} + +// GetVlanIdOk returns a tuple with the VlanId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetVlanIdOk() (*int32, bool) { + if o == nil || IsNil(o.VlanId) { + return nil, false + } + return o.VlanId, true +} + +// HasVlanId returns a boolean if a field has been set. +func (o *Cluster) HasVlanId() bool { + if o != nil && !IsNil(o.VlanId) { + return true + } + + return false +} + +// SetVlanId gets a reference to the given int32 and assigns it to the VlanId field. +func (o *Cluster) SetVlanId(v int32) { + o.VlanId = &v +} + +// GetWorkshop returns the Workshop field value if set, zero value otherwise. +func (o *Cluster) GetWorkshop() bool { + if o == nil || IsNil(o.Workshop) { + var ret bool + return ret + } + return *o.Workshop +} + +// GetWorkshopOk returns a tuple with the Workshop field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetWorkshopOk() (*bool, bool) { + if o == nil || IsNil(o.Workshop) { + return nil, false + } + return o.Workshop, true +} + +// HasWorkshop returns a boolean if a field has been set. +func (o *Cluster) HasWorkshop() bool { + if o != nil && !IsNil(o.Workshop) { + return true + } + + return false +} + +// SetWorkshop gets a reference to the given bool and assigns it to the Workshop field. +func (o *Cluster) SetWorkshop(v bool) { + o.Workshop = &v +} + +// GetWorkshopId returns the WorkshopId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetWorkshopId() string { + if o == nil || IsNil(o.WorkshopId.Get()) { + var ret string + return ret + } + return *o.WorkshopId.Get() +} + +// GetWorkshopIdOk returns a tuple with the WorkshopId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetWorkshopIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkshopId.Get(), o.WorkshopId.IsSet() +} + +// HasWorkshopId returns a boolean if a field has been set. +func (o *Cluster) HasWorkshopId() bool { + if o != nil && o.WorkshopId.IsSet() { + return true + } + + return false +} + +// SetWorkshopId gets a reference to the given NullableString and assigns it to the WorkshopId field. +func (o *Cluster) SetWorkshopId(v string) { + o.WorkshopId.Set(&v) +} + +// SetWorkshopIdNil sets the value for WorkshopId to be an explicit nil +func (o *Cluster) SetWorkshopIdNil() { + o.WorkshopId.Set(nil) +} + +// UnsetWorkshopId ensures that no value is present for WorkshopId, not even an explicit nil +func (o *Cluster) UnsetWorkshopId() { + o.WorkshopId.Unset() +} + +func (o Cluster) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Cluster) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["available"] = o.Available + if o.BastionName.IsSet() { + toSerialize["bastion_name"] = o.BastionName.Get() + } + toSerialize["created"] = o.Created + toSerialize["deployment"] = o.Deployment + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if o.Experience.IsSet() { + toSerialize["experience"] = o.Experience.Get() + } + if o.FreeBy.IsSet() { + toSerialize["free_by"] = o.FreeBy.Get() + } + toSerialize["gpus"] = o.Gpus + if !IsNil(o.GpuAlias) { + toSerialize["gpu_alias"] = o.GpuAlias + } + if !IsNil(o.GpuCount) { + toSerialize["gpu_count"] = o.GpuCount + } + toSerialize["id"] = o.Id + toSerialize["instances"] = o.Instances + toSerialize["last_used"] = o.LastUsed.Get() + if !IsNil(o.Maintenance) { + toSerialize["maintenance"] = o.Maintenance + } + if !IsNil(o.MgmtIp) { + toSerialize["mgmt_ip"] = o.MgmtIp + } + if o.MgmtMac.IsSet() { + toSerialize["mgmt_mac"] = o.MgmtMac.Get() + } + toSerialize["modified"] = o.Modified + if o.Netmask.IsSet() { + toSerialize["netmask"] = o.Netmask.Get() + } + if !IsNil(o.NodeCount) { + toSerialize["node_count"] = o.NodeCount + } + if !IsNil(o.Nodes) { + toSerialize["nodes"] = o.Nodes + } + if o.Notes.IsSet() { + toSerialize["notes"] = o.Notes.Get() + } + if !IsNil(o.Persist) { + toSerialize["persist"] = o.Persist + } + toSerialize["provider_capacity"] = o.ProviderCapacity + if o.ProvisionUser.IsSet() { + toSerialize["provision_user"] = o.ProvisionUser.Get() + } + if !IsNil(o.ProvisioningAttempts) { + toSerialize["provisioning_attempts"] = o.ProvisioningAttempts + } + if !IsNil(o.ProvisioningState) { + toSerialize["provisioning_state"] = o.ProvisioningState + } + if o.PublicAddress.IsSet() { + toSerialize["public_address"] = o.PublicAddress.Get() + } + if o.RequestId.IsSet() { + toSerialize["request_id"] = o.RequestId.Get() + } + if !IsNil(o.Reservation) { + toSerialize["reservation"] = o.Reservation + } + toSerialize["tenant_ids"] = o.TenantIds + if !IsNil(o.VlanId) { + toSerialize["vlan_id"] = o.VlanId + } + if !IsNil(o.Workshop) { + toSerialize["workshop"] = o.Workshop + } + if o.WorkshopId.IsSet() { + toSerialize["workshop_id"] = o.WorkshopId.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Cluster) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "available", + "created", + "deployment", + "gpus", + "id", + "instances", + "last_used", + "modified", + "provider_capacity", + "tenant_ids", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCluster := _Cluster{} + + err = json.Unmarshal(data, &varCluster) + + if err != nil { + return err + } + + *o = Cluster(varCluster) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "available") + delete(additionalProperties, "bastion_name") + delete(additionalProperties, "created") + delete(additionalProperties, "deployment") + delete(additionalProperties, "enabled") + delete(additionalProperties, "experience") + delete(additionalProperties, "free_by") + delete(additionalProperties, "gpus") + delete(additionalProperties, "gpu_alias") + delete(additionalProperties, "gpu_count") + delete(additionalProperties, "id") + delete(additionalProperties, "instances") + delete(additionalProperties, "last_used") + delete(additionalProperties, "maintenance") + delete(additionalProperties, "mgmt_ip") + delete(additionalProperties, "mgmt_mac") + delete(additionalProperties, "modified") + delete(additionalProperties, "netmask") + delete(additionalProperties, "node_count") + delete(additionalProperties, "nodes") + delete(additionalProperties, "notes") + delete(additionalProperties, "persist") + delete(additionalProperties, "provider_capacity") + delete(additionalProperties, "provision_user") + delete(additionalProperties, "provisioning_attempts") + delete(additionalProperties, "provisioning_state") + delete(additionalProperties, "public_address") + delete(additionalProperties, "request_id") + delete(additionalProperties, "reservation") + delete(additionalProperties, "tenant_ids") + delete(additionalProperties, "vlan_id") + delete(additionalProperties, "workshop") + delete(additionalProperties, "workshop_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCluster struct { + value *Cluster + isSet bool +} + +func (v NullableCluster) Get() *Cluster { + return v.value +} + +func (v *NullableCluster) Set(val *Cluster) { + v.value = val + v.isSet = true +} + +func (v NullableCluster) IsSet() bool { + return v.isSet +} + +func (v *NullableCluster) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCluster(val *Cluster) *NullableCluster { + return &NullableCluster{value: val, isSet: true} +} + +func (v NullableCluster) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCluster) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_cluster_bulk_update.go b/v1/providers/launchpad/gen/launchpad/model_cluster_bulk_update.go new file mode 100644 index 0000000..51a4624 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_cluster_bulk_update.go @@ -0,0 +1,1445 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the ClusterBulkUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClusterBulkUpdate{} + +// ClusterBulkUpdate struct for ClusterBulkUpdate +type ClusterBulkUpdate struct { + // Is the cluster currently available for provisioning? + Available bool `json:"available"` + // Name of the bastion assigned to the cluster + BastionName NullableString `json:"bastion_name,omitempty"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + Deployment ClusterDeployment `json:"deployment"` + // Is the cluster administratively enabled? + Enabled *bool `json:"enabled,omitempty"` + // Experience provisioned onto this cluster + Experience NullableString `json:"experience,omitempty"` + FreeBy NullableTime `json:"free_by,omitempty"` + Gpus []ClusterGpusInner `json:"gpus"` + // Alias for GPU plan (i.e. installed GPU type and count) + GpuAlias string `json:"gpu_alias"` + GpuCount int32 `json:"gpu_count"` + Id string `json:"id"` + Instances []ClusterInstancesInner `json:"instances"` + // Timestamp of when the cluster was last in use + LastUsed NullableTime `json:"last_used"` + // Is the cluster in maintenance mode? + Maintenance *bool `json:"maintenance,omitempty"` + // Management IP address + MgmtIp *string `json:"mgmt_ip,omitempty"` + // Management MAC address + MgmtMac NullableString `json:"mgmt_mac,omitempty"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // The subnet mask of the cluster's public IP address in CIDR notation + Netmask NullableInt32 `json:"netmask,omitempty"` + NodeCount int32 `json:"node_count"` + Nodes []ClusterNodesInner `json:"nodes,omitempty"` + // Administrative comments about the cluster + Notes NullableString `json:"notes,omitempty"` + // Is the cluster exempt from provisioning_state timeouts? Can be used to ensure the cluster persists after a provisioning failure. + Persist *bool `json:"persist,omitempty"` + // Does the provider have capacity to provision this cluster? + ProviderCapacity bool `json:"provider_capacity"` + // Username used for provisioning this cluster + ProvisionUser NullableString `json:"provision_user,omitempty"` + // The number of attempts that have been made to provision this cluster. Automatically resets to 0 after successful provisioning. + ProvisioningAttempts *int32 `json:"provisioning_attempts,omitempty"` + // Is the cluster currently provisioned? * `deployed` - Cluster is in use by a deployment * `deploying` - Provisioning is in progress * `destroying` - Cluster is being destroyed * `pending` - Provisioning will begin soon * `ready` - Provisioning has completed and is ready for a deployment * `reserved` - Cluster is unprovisioned but reserved for later use * `unprovisioned` - Cluster has not yet been provisioned + ProvisioningState *ProvisioningStateEnum `json:"provisioning_state,omitempty"` + // Public IP address or fully-qualified domain name of this cluster + PublicAddress NullableString `json:"public_address"` + // The request ID for the lab that is currently provisioned on this cluster (ex: TRY-1234) + RequestId NullableString `json:"request_id"` + // Is the cluster a static reservation from its provider? + Reservation *bool `json:"reservation,omitempty"` + // Tenant UUID(s) that have been generated for this cluster during provisioning + TenantIds []string `json:"tenant_ids"` + // VLAN number + VlanId *int32 `json:"vlan_id,omitempty"` + // Is the cluster set aside for use in a workshop? + Workshop *bool `json:"workshop,omitempty"` + // Identifier of the workshop this cluster is set aside for + WorkshopId NullableString `json:"workshop_id,omitempty"` + Count int32 `json:"count"` + Ids []string `json:"ids"` + Result string `json:"result"` + AdditionalProperties map[string]interface{} +} + +type _ClusterBulkUpdate ClusterBulkUpdate + +// NewClusterBulkUpdate instantiates a new ClusterBulkUpdate 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 NewClusterBulkUpdate(available bool, created time.Time, deployment ClusterDeployment, gpus []ClusterGpusInner, gpuAlias string, gpuCount int32, id string, instances []ClusterInstancesInner, lastUsed NullableTime, modified time.Time, nodeCount int32, providerCapacity bool, publicAddress NullableString, requestId NullableString, tenantIds []string, count int32, ids []string, result string) *ClusterBulkUpdate { + this := ClusterBulkUpdate{} + this.Available = available + this.Created = created + this.Deployment = deployment + this.Gpus = gpus + this.GpuAlias = gpuAlias + this.GpuCount = gpuCount + this.Id = id + this.Instances = instances + this.LastUsed = lastUsed + this.Modified = modified + this.NodeCount = nodeCount + this.ProviderCapacity = providerCapacity + this.PublicAddress = publicAddress + this.RequestId = requestId + this.TenantIds = tenantIds + this.Count = count + this.Ids = ids + this.Result = result + return &this +} + +// NewClusterBulkUpdateWithDefaults instantiates a new ClusterBulkUpdate 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 NewClusterBulkUpdateWithDefaults() *ClusterBulkUpdate { + this := ClusterBulkUpdate{} + return &this +} + +// GetAvailable returns the Available field value +func (o *ClusterBulkUpdate) GetAvailable() bool { + if o == nil { + var ret bool + return ret + } + + return o.Available +} + +// GetAvailableOk returns a tuple with the Available field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetAvailableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Available, true +} + +// SetAvailable sets field value +func (o *ClusterBulkUpdate) SetAvailable(v bool) { + o.Available = v +} + +// GetBastionName returns the BastionName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterBulkUpdate) GetBastionName() string { + if o == nil || IsNil(o.BastionName.Get()) { + var ret string + return ret + } + return *o.BastionName.Get() +} + +// GetBastionNameOk returns a tuple with the BastionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterBulkUpdate) GetBastionNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BastionName.Get(), o.BastionName.IsSet() +} + +// HasBastionName returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasBastionName() bool { + if o != nil && o.BastionName.IsSet() { + return true + } + + return false +} + +// SetBastionName gets a reference to the given NullableString and assigns it to the BastionName field. +func (o *ClusterBulkUpdate) SetBastionName(v string) { + o.BastionName.Set(&v) +} + +// SetBastionNameNil sets the value for BastionName to be an explicit nil +func (o *ClusterBulkUpdate) SetBastionNameNil() { + o.BastionName.Set(nil) +} + +// UnsetBastionName ensures that no value is present for BastionName, not even an explicit nil +func (o *ClusterBulkUpdate) UnsetBastionName() { + o.BastionName.Unset() +} + +// GetCreated returns the Created field value +func (o *ClusterBulkUpdate) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *ClusterBulkUpdate) SetCreated(v time.Time) { + o.Created = v +} + +// GetDeployment returns the Deployment field value +func (o *ClusterBulkUpdate) GetDeployment() ClusterDeployment { + if o == nil { + var ret ClusterDeployment + return ret + } + + return o.Deployment +} + +// GetDeploymentOk returns a tuple with the Deployment field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetDeploymentOk() (*ClusterDeployment, bool) { + if o == nil { + return nil, false + } + return &o.Deployment, true +} + +// SetDeployment sets field value +func (o *ClusterBulkUpdate) SetDeployment(v ClusterDeployment) { + o.Deployment = v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *ClusterBulkUpdate) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *ClusterBulkUpdate) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetExperience returns the Experience field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterBulkUpdate) GetExperience() string { + if o == nil || IsNil(o.Experience.Get()) { + var ret string + return ret + } + return *o.Experience.Get() +} + +// GetExperienceOk returns a tuple with the Experience field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterBulkUpdate) GetExperienceOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Experience.Get(), o.Experience.IsSet() +} + +// HasExperience returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasExperience() bool { + if o != nil && o.Experience.IsSet() { + return true + } + + return false +} + +// SetExperience gets a reference to the given NullableString and assigns it to the Experience field. +func (o *ClusterBulkUpdate) SetExperience(v string) { + o.Experience.Set(&v) +} + +// SetExperienceNil sets the value for Experience to be an explicit nil +func (o *ClusterBulkUpdate) SetExperienceNil() { + o.Experience.Set(nil) +} + +// UnsetExperience ensures that no value is present for Experience, not even an explicit nil +func (o *ClusterBulkUpdate) UnsetExperience() { + o.Experience.Unset() +} + +// GetFreeBy returns the FreeBy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterBulkUpdate) GetFreeBy() time.Time { + if o == nil || IsNil(o.FreeBy.Get()) { + var ret time.Time + return ret + } + return *o.FreeBy.Get() +} + +// GetFreeByOk returns a tuple with the FreeBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterBulkUpdate) GetFreeByOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.FreeBy.Get(), o.FreeBy.IsSet() +} + +// HasFreeBy returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasFreeBy() bool { + if o != nil && o.FreeBy.IsSet() { + return true + } + + return false +} + +// SetFreeBy gets a reference to the given NullableTime and assigns it to the FreeBy field. +func (o *ClusterBulkUpdate) SetFreeBy(v time.Time) { + o.FreeBy.Set(&v) +} + +// SetFreeByNil sets the value for FreeBy to be an explicit nil +func (o *ClusterBulkUpdate) SetFreeByNil() { + o.FreeBy.Set(nil) +} + +// UnsetFreeBy ensures that no value is present for FreeBy, not even an explicit nil +func (o *ClusterBulkUpdate) UnsetFreeBy() { + o.FreeBy.Unset() +} + +// GetGpus returns the Gpus field value +func (o *ClusterBulkUpdate) GetGpus() []ClusterGpusInner { + if o == nil { + var ret []ClusterGpusInner + return ret + } + + return o.Gpus +} + +// GetGpusOk returns a tuple with the Gpus field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetGpusOk() ([]ClusterGpusInner, bool) { + if o == nil { + return nil, false + } + return o.Gpus, true +} + +// SetGpus sets field value +func (o *ClusterBulkUpdate) SetGpus(v []ClusterGpusInner) { + o.Gpus = v +} + +// GetGpuAlias returns the GpuAlias field value +func (o *ClusterBulkUpdate) GetGpuAlias() string { + if o == nil { + var ret string + return ret + } + + return o.GpuAlias +} + +// GetGpuAliasOk returns a tuple with the GpuAlias field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetGpuAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GpuAlias, true +} + +// SetGpuAlias sets field value +func (o *ClusterBulkUpdate) SetGpuAlias(v string) { + o.GpuAlias = v +} + +// GetGpuCount returns the GpuCount field value +func (o *ClusterBulkUpdate) GetGpuCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GpuCount +} + +// GetGpuCountOk returns a tuple with the GpuCount field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetGpuCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GpuCount, true +} + +// SetGpuCount sets field value +func (o *ClusterBulkUpdate) SetGpuCount(v int32) { + o.GpuCount = v +} + +// GetId returns the Id field value +func (o *ClusterBulkUpdate) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ClusterBulkUpdate) SetId(v string) { + o.Id = v +} + +// GetInstances returns the Instances field value +func (o *ClusterBulkUpdate) GetInstances() []ClusterInstancesInner { + if o == nil { + var ret []ClusterInstancesInner + return ret + } + + return o.Instances +} + +// GetInstancesOk returns a tuple with the Instances field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetInstancesOk() ([]ClusterInstancesInner, bool) { + if o == nil { + return nil, false + } + return o.Instances, true +} + +// SetInstances sets field value +func (o *ClusterBulkUpdate) SetInstances(v []ClusterInstancesInner) { + o.Instances = v +} + +// GetLastUsed returns the LastUsed field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ClusterBulkUpdate) GetLastUsed() time.Time { + if o == nil || o.LastUsed.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUsed.Get() +} + +// GetLastUsedOk returns a tuple with the LastUsed field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterBulkUpdate) GetLastUsedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUsed.Get(), o.LastUsed.IsSet() +} + +// SetLastUsed sets field value +func (o *ClusterBulkUpdate) SetLastUsed(v time.Time) { + o.LastUsed.Set(&v) +} + +// GetMaintenance returns the Maintenance field value if set, zero value otherwise. +func (o *ClusterBulkUpdate) GetMaintenance() bool { + if o == nil || IsNil(o.Maintenance) { + var ret bool + return ret + } + return *o.Maintenance +} + +// GetMaintenanceOk returns a tuple with the Maintenance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetMaintenanceOk() (*bool, bool) { + if o == nil || IsNil(o.Maintenance) { + return nil, false + } + return o.Maintenance, true +} + +// HasMaintenance returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasMaintenance() bool { + if o != nil && !IsNil(o.Maintenance) { + return true + } + + return false +} + +// SetMaintenance gets a reference to the given bool and assigns it to the Maintenance field. +func (o *ClusterBulkUpdate) SetMaintenance(v bool) { + o.Maintenance = &v +} + +// GetMgmtIp returns the MgmtIp field value if set, zero value otherwise. +func (o *ClusterBulkUpdate) GetMgmtIp() string { + if o == nil || IsNil(o.MgmtIp) { + var ret string + return ret + } + return *o.MgmtIp +} + +// GetMgmtIpOk returns a tuple with the MgmtIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetMgmtIpOk() (*string, bool) { + if o == nil || IsNil(o.MgmtIp) { + return nil, false + } + return o.MgmtIp, true +} + +// HasMgmtIp returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasMgmtIp() bool { + if o != nil && !IsNil(o.MgmtIp) { + return true + } + + return false +} + +// SetMgmtIp gets a reference to the given string and assigns it to the MgmtIp field. +func (o *ClusterBulkUpdate) SetMgmtIp(v string) { + o.MgmtIp = &v +} + +// GetMgmtMac returns the MgmtMac field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterBulkUpdate) GetMgmtMac() string { + if o == nil || IsNil(o.MgmtMac.Get()) { + var ret string + return ret + } + return *o.MgmtMac.Get() +} + +// GetMgmtMacOk returns a tuple with the MgmtMac field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterBulkUpdate) GetMgmtMacOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MgmtMac.Get(), o.MgmtMac.IsSet() +} + +// HasMgmtMac returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasMgmtMac() bool { + if o != nil && o.MgmtMac.IsSet() { + return true + } + + return false +} + +// SetMgmtMac gets a reference to the given NullableString and assigns it to the MgmtMac field. +func (o *ClusterBulkUpdate) SetMgmtMac(v string) { + o.MgmtMac.Set(&v) +} + +// SetMgmtMacNil sets the value for MgmtMac to be an explicit nil +func (o *ClusterBulkUpdate) SetMgmtMacNil() { + o.MgmtMac.Set(nil) +} + +// UnsetMgmtMac ensures that no value is present for MgmtMac, not even an explicit nil +func (o *ClusterBulkUpdate) UnsetMgmtMac() { + o.MgmtMac.Unset() +} + +// GetModified returns the Modified field value +func (o *ClusterBulkUpdate) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *ClusterBulkUpdate) SetModified(v time.Time) { + o.Modified = v +} + +// GetNetmask returns the Netmask field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterBulkUpdate) GetNetmask() int32 { + if o == nil || IsNil(o.Netmask.Get()) { + var ret int32 + return ret + } + return *o.Netmask.Get() +} + +// GetNetmaskOk returns a tuple with the Netmask field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterBulkUpdate) GetNetmaskOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Netmask.Get(), o.Netmask.IsSet() +} + +// HasNetmask returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasNetmask() bool { + if o != nil && o.Netmask.IsSet() { + return true + } + + return false +} + +// SetNetmask gets a reference to the given NullableInt32 and assigns it to the Netmask field. +func (o *ClusterBulkUpdate) SetNetmask(v int32) { + o.Netmask.Set(&v) +} + +// SetNetmaskNil sets the value for Netmask to be an explicit nil +func (o *ClusterBulkUpdate) SetNetmaskNil() { + o.Netmask.Set(nil) +} + +// UnsetNetmask ensures that no value is present for Netmask, not even an explicit nil +func (o *ClusterBulkUpdate) UnsetNetmask() { + o.Netmask.Unset() +} + +// GetNodeCount returns the NodeCount field value +func (o *ClusterBulkUpdate) GetNodeCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.NodeCount +} + +// GetNodeCountOk returns a tuple with the NodeCount field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetNodeCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.NodeCount, true +} + +// SetNodeCount sets field value +func (o *ClusterBulkUpdate) SetNodeCount(v int32) { + o.NodeCount = v +} + +// GetNodes returns the Nodes field value if set, zero value otherwise. +func (o *ClusterBulkUpdate) GetNodes() []ClusterNodesInner { + if o == nil || IsNil(o.Nodes) { + var ret []ClusterNodesInner + 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 *ClusterBulkUpdate) GetNodesOk() ([]ClusterNodesInner, 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 *ClusterBulkUpdate) HasNodes() bool { + if o != nil && !IsNil(o.Nodes) { + return true + } + + return false +} + +// SetNodes gets a reference to the given []ClusterNodesInner and assigns it to the Nodes field. +func (o *ClusterBulkUpdate) SetNodes(v []ClusterNodesInner) { + o.Nodes = v +} + +// GetNotes returns the Notes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterBulkUpdate) GetNotes() string { + if o == nil || IsNil(o.Notes.Get()) { + var ret string + return ret + } + return *o.Notes.Get() +} + +// GetNotesOk returns a tuple with the Notes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterBulkUpdate) GetNotesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Notes.Get(), o.Notes.IsSet() +} + +// HasNotes returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasNotes() bool { + if o != nil && o.Notes.IsSet() { + return true + } + + return false +} + +// SetNotes gets a reference to the given NullableString and assigns it to the Notes field. +func (o *ClusterBulkUpdate) SetNotes(v string) { + o.Notes.Set(&v) +} + +// SetNotesNil sets the value for Notes to be an explicit nil +func (o *ClusterBulkUpdate) SetNotesNil() { + o.Notes.Set(nil) +} + +// UnsetNotes ensures that no value is present for Notes, not even an explicit nil +func (o *ClusterBulkUpdate) UnsetNotes() { + o.Notes.Unset() +} + +// GetPersist returns the Persist field value if set, zero value otherwise. +func (o *ClusterBulkUpdate) GetPersist() bool { + if o == nil || IsNil(o.Persist) { + var ret bool + return ret + } + return *o.Persist +} + +// GetPersistOk returns a tuple with the Persist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetPersistOk() (*bool, bool) { + if o == nil || IsNil(o.Persist) { + return nil, false + } + return o.Persist, true +} + +// HasPersist returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasPersist() bool { + if o != nil && !IsNil(o.Persist) { + return true + } + + return false +} + +// SetPersist gets a reference to the given bool and assigns it to the Persist field. +func (o *ClusterBulkUpdate) SetPersist(v bool) { + o.Persist = &v +} + +// GetProviderCapacity returns the ProviderCapacity field value +func (o *ClusterBulkUpdate) GetProviderCapacity() bool { + if o == nil { + var ret bool + return ret + } + + return o.ProviderCapacity +} + +// GetProviderCapacityOk returns a tuple with the ProviderCapacity field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetProviderCapacityOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ProviderCapacity, true +} + +// SetProviderCapacity sets field value +func (o *ClusterBulkUpdate) SetProviderCapacity(v bool) { + o.ProviderCapacity = v +} + +// GetProvisionUser returns the ProvisionUser field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterBulkUpdate) GetProvisionUser() string { + if o == nil || IsNil(o.ProvisionUser.Get()) { + var ret string + return ret + } + return *o.ProvisionUser.Get() +} + +// GetProvisionUserOk returns a tuple with the ProvisionUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterBulkUpdate) GetProvisionUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ProvisionUser.Get(), o.ProvisionUser.IsSet() +} + +// HasProvisionUser returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasProvisionUser() bool { + if o != nil && o.ProvisionUser.IsSet() { + return true + } + + return false +} + +// SetProvisionUser gets a reference to the given NullableString and assigns it to the ProvisionUser field. +func (o *ClusterBulkUpdate) SetProvisionUser(v string) { + o.ProvisionUser.Set(&v) +} + +// SetProvisionUserNil sets the value for ProvisionUser to be an explicit nil +func (o *ClusterBulkUpdate) SetProvisionUserNil() { + o.ProvisionUser.Set(nil) +} + +// UnsetProvisionUser ensures that no value is present for ProvisionUser, not even an explicit nil +func (o *ClusterBulkUpdate) UnsetProvisionUser() { + o.ProvisionUser.Unset() +} + +// GetProvisioningAttempts returns the ProvisioningAttempts field value if set, zero value otherwise. +func (o *ClusterBulkUpdate) GetProvisioningAttempts() int32 { + if o == nil || IsNil(o.ProvisioningAttempts) { + var ret int32 + return ret + } + return *o.ProvisioningAttempts +} + +// GetProvisioningAttemptsOk returns a tuple with the ProvisioningAttempts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetProvisioningAttemptsOk() (*int32, bool) { + if o == nil || IsNil(o.ProvisioningAttempts) { + return nil, false + } + return o.ProvisioningAttempts, true +} + +// HasProvisioningAttempts returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasProvisioningAttempts() bool { + if o != nil && !IsNil(o.ProvisioningAttempts) { + return true + } + + return false +} + +// SetProvisioningAttempts gets a reference to the given int32 and assigns it to the ProvisioningAttempts field. +func (o *ClusterBulkUpdate) SetProvisioningAttempts(v int32) { + o.ProvisioningAttempts = &v +} + +// GetProvisioningState returns the ProvisioningState field value if set, zero value otherwise. +func (o *ClusterBulkUpdate) GetProvisioningState() ProvisioningStateEnum { + if o == nil || IsNil(o.ProvisioningState) { + var ret ProvisioningStateEnum + return ret + } + return *o.ProvisioningState +} + +// GetProvisioningStateOk returns a tuple with the ProvisioningState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetProvisioningStateOk() (*ProvisioningStateEnum, bool) { + if o == nil || IsNil(o.ProvisioningState) { + return nil, false + } + return o.ProvisioningState, true +} + +// HasProvisioningState returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasProvisioningState() bool { + if o != nil && !IsNil(o.ProvisioningState) { + return true + } + + return false +} + +// SetProvisioningState gets a reference to the given ProvisioningStateEnum and assigns it to the ProvisioningState field. +func (o *ClusterBulkUpdate) SetProvisioningState(v ProvisioningStateEnum) { + o.ProvisioningState = &v +} + +// GetPublicAddress returns the PublicAddress field value +// If the value is explicit nil, the zero value for string will be returned +func (o *ClusterBulkUpdate) GetPublicAddress() string { + if o == nil || o.PublicAddress.Get() == nil { + var ret string + return ret + } + + return *o.PublicAddress.Get() +} + +// GetPublicAddressOk returns a tuple with the PublicAddress field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterBulkUpdate) GetPublicAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PublicAddress.Get(), o.PublicAddress.IsSet() +} + +// SetPublicAddress sets field value +func (o *ClusterBulkUpdate) SetPublicAddress(v string) { + o.PublicAddress.Set(&v) +} + +// GetRequestId returns the RequestId field value +// If the value is explicit nil, the zero value for string will be returned +func (o *ClusterBulkUpdate) GetRequestId() string { + if o == nil || o.RequestId.Get() == nil { + var ret string + return ret + } + + return *o.RequestId.Get() +} + +// GetRequestIdOk returns a tuple with the RequestId field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterBulkUpdate) GetRequestIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RequestId.Get(), o.RequestId.IsSet() +} + +// SetRequestId sets field value +func (o *ClusterBulkUpdate) SetRequestId(v string) { + o.RequestId.Set(&v) +} + +// GetReservation returns the Reservation field value if set, zero value otherwise. +func (o *ClusterBulkUpdate) GetReservation() bool { + if o == nil || IsNil(o.Reservation) { + var ret bool + return ret + } + return *o.Reservation +} + +// GetReservationOk returns a tuple with the Reservation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetReservationOk() (*bool, bool) { + if o == nil || IsNil(o.Reservation) { + return nil, false + } + return o.Reservation, true +} + +// HasReservation returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasReservation() bool { + if o != nil && !IsNil(o.Reservation) { + return true + } + + return false +} + +// SetReservation gets a reference to the given bool and assigns it to the Reservation field. +func (o *ClusterBulkUpdate) SetReservation(v bool) { + o.Reservation = &v +} + +// GetTenantIds returns the TenantIds field value +func (o *ClusterBulkUpdate) GetTenantIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.TenantIds +} + +// GetTenantIdsOk returns a tuple with the TenantIds field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetTenantIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.TenantIds, true +} + +// SetTenantIds sets field value +func (o *ClusterBulkUpdate) SetTenantIds(v []string) { + o.TenantIds = v +} + +// GetVlanId returns the VlanId field value if set, zero value otherwise. +func (o *ClusterBulkUpdate) GetVlanId() int32 { + if o == nil || IsNil(o.VlanId) { + var ret int32 + return ret + } + return *o.VlanId +} + +// GetVlanIdOk returns a tuple with the VlanId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetVlanIdOk() (*int32, bool) { + if o == nil || IsNil(o.VlanId) { + return nil, false + } + return o.VlanId, true +} + +// HasVlanId returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasVlanId() bool { + if o != nil && !IsNil(o.VlanId) { + return true + } + + return false +} + +// SetVlanId gets a reference to the given int32 and assigns it to the VlanId field. +func (o *ClusterBulkUpdate) SetVlanId(v int32) { + o.VlanId = &v +} + +// GetWorkshop returns the Workshop field value if set, zero value otherwise. +func (o *ClusterBulkUpdate) GetWorkshop() bool { + if o == nil || IsNil(o.Workshop) { + var ret bool + return ret + } + return *o.Workshop +} + +// GetWorkshopOk returns a tuple with the Workshop field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetWorkshopOk() (*bool, bool) { + if o == nil || IsNil(o.Workshop) { + return nil, false + } + return o.Workshop, true +} + +// HasWorkshop returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasWorkshop() bool { + if o != nil && !IsNil(o.Workshop) { + return true + } + + return false +} + +// SetWorkshop gets a reference to the given bool and assigns it to the Workshop field. +func (o *ClusterBulkUpdate) SetWorkshop(v bool) { + o.Workshop = &v +} + +// GetWorkshopId returns the WorkshopId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterBulkUpdate) GetWorkshopId() string { + if o == nil || IsNil(o.WorkshopId.Get()) { + var ret string + return ret + } + return *o.WorkshopId.Get() +} + +// GetWorkshopIdOk returns a tuple with the WorkshopId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterBulkUpdate) GetWorkshopIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkshopId.Get(), o.WorkshopId.IsSet() +} + +// HasWorkshopId returns a boolean if a field has been set. +func (o *ClusterBulkUpdate) HasWorkshopId() bool { + if o != nil && o.WorkshopId.IsSet() { + return true + } + + return false +} + +// SetWorkshopId gets a reference to the given NullableString and assigns it to the WorkshopId field. +func (o *ClusterBulkUpdate) SetWorkshopId(v string) { + o.WorkshopId.Set(&v) +} + +// SetWorkshopIdNil sets the value for WorkshopId to be an explicit nil +func (o *ClusterBulkUpdate) SetWorkshopIdNil() { + o.WorkshopId.Set(nil) +} + +// UnsetWorkshopId ensures that no value is present for WorkshopId, not even an explicit nil +func (o *ClusterBulkUpdate) UnsetWorkshopId() { + o.WorkshopId.Unset() +} + +// GetCount returns the Count field value +func (o *ClusterBulkUpdate) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *ClusterBulkUpdate) SetCount(v int32) { + o.Count = v +} + +// GetIds returns the Ids field value +func (o *ClusterBulkUpdate) GetIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ids +} + +// GetIdsOk returns a tuple with the Ids field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ids, true +} + +// SetIds sets field value +func (o *ClusterBulkUpdate) SetIds(v []string) { + o.Ids = v +} + +// GetResult returns the Result field value +func (o *ClusterBulkUpdate) GetResult() string { + if o == nil { + var ret string + return ret + } + + return o.Result +} + +// GetResultOk returns a tuple with the Result field value +// and a boolean to check if the value has been set. +func (o *ClusterBulkUpdate) GetResultOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Result, true +} + +// SetResult sets field value +func (o *ClusterBulkUpdate) SetResult(v string) { + o.Result = v +} + +func (o ClusterBulkUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClusterBulkUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["available"] = o.Available + if o.BastionName.IsSet() { + toSerialize["bastion_name"] = o.BastionName.Get() + } + toSerialize["created"] = o.Created + toSerialize["deployment"] = o.Deployment + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if o.Experience.IsSet() { + toSerialize["experience"] = o.Experience.Get() + } + if o.FreeBy.IsSet() { + toSerialize["free_by"] = o.FreeBy.Get() + } + toSerialize["gpus"] = o.Gpus + toSerialize["gpu_alias"] = o.GpuAlias + toSerialize["gpu_count"] = o.GpuCount + toSerialize["id"] = o.Id + toSerialize["instances"] = o.Instances + toSerialize["last_used"] = o.LastUsed.Get() + if !IsNil(o.Maintenance) { + toSerialize["maintenance"] = o.Maintenance + } + if !IsNil(o.MgmtIp) { + toSerialize["mgmt_ip"] = o.MgmtIp + } + if o.MgmtMac.IsSet() { + toSerialize["mgmt_mac"] = o.MgmtMac.Get() + } + toSerialize["modified"] = o.Modified + if o.Netmask.IsSet() { + toSerialize["netmask"] = o.Netmask.Get() + } + toSerialize["node_count"] = o.NodeCount + if !IsNil(o.Nodes) { + toSerialize["nodes"] = o.Nodes + } + if o.Notes.IsSet() { + toSerialize["notes"] = o.Notes.Get() + } + if !IsNil(o.Persist) { + toSerialize["persist"] = o.Persist + } + toSerialize["provider_capacity"] = o.ProviderCapacity + if o.ProvisionUser.IsSet() { + toSerialize["provision_user"] = o.ProvisionUser.Get() + } + if !IsNil(o.ProvisioningAttempts) { + toSerialize["provisioning_attempts"] = o.ProvisioningAttempts + } + if !IsNil(o.ProvisioningState) { + toSerialize["provisioning_state"] = o.ProvisioningState + } + toSerialize["public_address"] = o.PublicAddress.Get() + toSerialize["request_id"] = o.RequestId.Get() + if !IsNil(o.Reservation) { + toSerialize["reservation"] = o.Reservation + } + toSerialize["tenant_ids"] = o.TenantIds + if !IsNil(o.VlanId) { + toSerialize["vlan_id"] = o.VlanId + } + if !IsNil(o.Workshop) { + toSerialize["workshop"] = o.Workshop + } + if o.WorkshopId.IsSet() { + toSerialize["workshop_id"] = o.WorkshopId.Get() + } + toSerialize["count"] = o.Count + toSerialize["ids"] = o.Ids + toSerialize["result"] = o.Result + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ClusterBulkUpdate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "available", + "created", + "deployment", + "gpus", + "gpu_alias", + "gpu_count", + "id", + "instances", + "last_used", + "modified", + "node_count", + "provider_capacity", + "public_address", + "request_id", + "tenant_ids", + "count", + "ids", + "result", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varClusterBulkUpdate := _ClusterBulkUpdate{} + + err = json.Unmarshal(data, &varClusterBulkUpdate) + + if err != nil { + return err + } + + *o = ClusterBulkUpdate(varClusterBulkUpdate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "available") + delete(additionalProperties, "bastion_name") + delete(additionalProperties, "created") + delete(additionalProperties, "deployment") + delete(additionalProperties, "enabled") + delete(additionalProperties, "experience") + delete(additionalProperties, "free_by") + delete(additionalProperties, "gpus") + delete(additionalProperties, "gpu_alias") + delete(additionalProperties, "gpu_count") + delete(additionalProperties, "id") + delete(additionalProperties, "instances") + delete(additionalProperties, "last_used") + delete(additionalProperties, "maintenance") + delete(additionalProperties, "mgmt_ip") + delete(additionalProperties, "mgmt_mac") + delete(additionalProperties, "modified") + delete(additionalProperties, "netmask") + delete(additionalProperties, "node_count") + delete(additionalProperties, "nodes") + delete(additionalProperties, "notes") + delete(additionalProperties, "persist") + delete(additionalProperties, "provider_capacity") + delete(additionalProperties, "provision_user") + delete(additionalProperties, "provisioning_attempts") + delete(additionalProperties, "provisioning_state") + delete(additionalProperties, "public_address") + delete(additionalProperties, "request_id") + delete(additionalProperties, "reservation") + delete(additionalProperties, "tenant_ids") + delete(additionalProperties, "vlan_id") + delete(additionalProperties, "workshop") + delete(additionalProperties, "workshop_id") + delete(additionalProperties, "count") + delete(additionalProperties, "ids") + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableClusterBulkUpdate struct { + value *ClusterBulkUpdate + isSet bool +} + +func (v NullableClusterBulkUpdate) Get() *ClusterBulkUpdate { + return v.value +} + +func (v *NullableClusterBulkUpdate) Set(val *ClusterBulkUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableClusterBulkUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterBulkUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterBulkUpdate(val *ClusterBulkUpdate) *NullableClusterBulkUpdate { + return &NullableClusterBulkUpdate{value: val, isSet: true} +} + +func (v NullableClusterBulkUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterBulkUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_cluster_deployment.go b/v1/providers/launchpad/gen/launchpad/model_cluster_deployment.go new file mode 100644 index 0000000..5087ea7 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_cluster_deployment.go @@ -0,0 +1,154 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// ClusterDeployment - struct for ClusterDeployment +type ClusterDeployment struct { + Deployment *Deployment + String *string +} + +// DeploymentAsClusterDeployment is a convenience function that returns Deployment wrapped in ClusterDeployment +func DeploymentAsClusterDeployment(v *Deployment) ClusterDeployment { + return ClusterDeployment{ + Deployment: v, + } +} + +// stringAsClusterDeployment is a convenience function that returns string wrapped in ClusterDeployment +func StringAsClusterDeployment(v *string) ClusterDeployment { + return ClusterDeployment{ + String: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *ClusterDeployment) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Deployment + err = newStrictDecoder(data).Decode(&dst.Deployment) + if err == nil { + jsonDeployment, _ := json.Marshal(dst.Deployment) + if string(jsonDeployment) == "{}" { // empty struct + dst.Deployment = nil + } else { + if err = validator.Validate(dst.Deployment); err != nil { + dst.Deployment = nil + } else { + match++ + } + } + } else { + dst.Deployment = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + if err = validator.Validate(dst.String); err != nil { + dst.String = nil + } else { + match++ + } + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Deployment = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(ClusterDeployment)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(ClusterDeployment)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src ClusterDeployment) MarshalJSON() ([]byte, error) { + if src.Deployment != nil { + return json.Marshal(&src.Deployment) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *ClusterDeployment) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.Deployment != nil { + return obj.Deployment + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableClusterDeployment struct { + value *ClusterDeployment + isSet bool +} + +func (v NullableClusterDeployment) Get() *ClusterDeployment { + return v.value +} + +func (v *NullableClusterDeployment) Set(val *ClusterDeployment) { + v.value = val + v.isSet = true +} + +func (v NullableClusterDeployment) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterDeployment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterDeployment(val *ClusterDeployment) *NullableClusterDeployment { + return &NullableClusterDeployment{value: val, isSet: true} +} + +func (v NullableClusterDeployment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterDeployment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_cluster_gpus_inner.go b/v1/providers/launchpad/gen/launchpad/model_cluster_gpus_inner.go new file mode 100644 index 0000000..d83949c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_cluster_gpus_inner.go @@ -0,0 +1,154 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// ClusterGpusInner - struct for ClusterGpusInner +type ClusterGpusInner struct { + Gpu *Gpu + String *string +} + +// GpuAsClusterGpusInner is a convenience function that returns Gpu wrapped in ClusterGpusInner +func GpuAsClusterGpusInner(v *Gpu) ClusterGpusInner { + return ClusterGpusInner{ + Gpu: v, + } +} + +// stringAsClusterGpusInner is a convenience function that returns string wrapped in ClusterGpusInner +func StringAsClusterGpusInner(v *string) ClusterGpusInner { + return ClusterGpusInner{ + String: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *ClusterGpusInner) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Gpu + err = newStrictDecoder(data).Decode(&dst.Gpu) + if err == nil { + jsonGpu, _ := json.Marshal(dst.Gpu) + if string(jsonGpu) == "{}" { // empty struct + dst.Gpu = nil + } else { + if err = validator.Validate(dst.Gpu); err != nil { + dst.Gpu = nil + } else { + match++ + } + } + } else { + dst.Gpu = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + if err = validator.Validate(dst.String); err != nil { + dst.String = nil + } else { + match++ + } + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Gpu = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(ClusterGpusInner)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(ClusterGpusInner)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src ClusterGpusInner) MarshalJSON() ([]byte, error) { + if src.Gpu != nil { + return json.Marshal(&src.Gpu) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *ClusterGpusInner) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.Gpu != nil { + return obj.Gpu + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableClusterGpusInner struct { + value *ClusterGpusInner + isSet bool +} + +func (v NullableClusterGpusInner) Get() *ClusterGpusInner { + return v.value +} + +func (v *NullableClusterGpusInner) Set(val *ClusterGpusInner) { + v.value = val + v.isSet = true +} + +func (v NullableClusterGpusInner) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterGpusInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterGpusInner(val *ClusterGpusInner) *NullableClusterGpusInner { + return &NullableClusterGpusInner{value: val, isSet: true} +} + +func (v NullableClusterGpusInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterGpusInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_cluster_instances_inner.go b/v1/providers/launchpad/gen/launchpad/model_cluster_instances_inner.go new file mode 100644 index 0000000..71274c2 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_cluster_instances_inner.go @@ -0,0 +1,154 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// ClusterInstancesInner - struct for ClusterInstancesInner +type ClusterInstancesInner struct { + Instance *Instance + String *string +} + +// InstanceAsClusterInstancesInner is a convenience function that returns Instance wrapped in ClusterInstancesInner +func InstanceAsClusterInstancesInner(v *Instance) ClusterInstancesInner { + return ClusterInstancesInner{ + Instance: v, + } +} + +// stringAsClusterInstancesInner is a convenience function that returns string wrapped in ClusterInstancesInner +func StringAsClusterInstancesInner(v *string) ClusterInstancesInner { + return ClusterInstancesInner{ + String: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *ClusterInstancesInner) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Instance + err = newStrictDecoder(data).Decode(&dst.Instance) + if err == nil { + jsonInstance, _ := json.Marshal(dst.Instance) + if string(jsonInstance) == "{}" { // empty struct + dst.Instance = nil + } else { + if err = validator.Validate(dst.Instance); err != nil { + dst.Instance = nil + } else { + match++ + } + } + } else { + dst.Instance = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + if err = validator.Validate(dst.String); err != nil { + dst.String = nil + } else { + match++ + } + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Instance = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(ClusterInstancesInner)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(ClusterInstancesInner)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src ClusterInstancesInner) MarshalJSON() ([]byte, error) { + if src.Instance != nil { + return json.Marshal(&src.Instance) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *ClusterInstancesInner) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.Instance != nil { + return obj.Instance + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableClusterInstancesInner struct { + value *ClusterInstancesInner + isSet bool +} + +func (v NullableClusterInstancesInner) Get() *ClusterInstancesInner { + return v.value +} + +func (v *NullableClusterInstancesInner) Set(val *ClusterInstancesInner) { + v.value = val + v.isSet = true +} + +func (v NullableClusterInstancesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterInstancesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterInstancesInner(val *ClusterInstancesInner) *NullableClusterInstancesInner { + return &NullableClusterInstancesInner{value: val, isSet: true} +} + +func (v NullableClusterInstancesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterInstancesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_cluster_nodes_inner.go b/v1/providers/launchpad/gen/launchpad/model_cluster_nodes_inner.go new file mode 100644 index 0000000..3ccaf53 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_cluster_nodes_inner.go @@ -0,0 +1,154 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// ClusterNodesInner - struct for ClusterNodesInner +type ClusterNodesInner struct { + Node *Node + String *string +} + +// NodeAsClusterNodesInner is a convenience function that returns Node wrapped in ClusterNodesInner +func NodeAsClusterNodesInner(v *Node) ClusterNodesInner { + return ClusterNodesInner{ + Node: v, + } +} + +// stringAsClusterNodesInner is a convenience function that returns string wrapped in ClusterNodesInner +func StringAsClusterNodesInner(v *string) ClusterNodesInner { + return ClusterNodesInner{ + String: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *ClusterNodesInner) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Node + err = newStrictDecoder(data).Decode(&dst.Node) + if err == nil { + jsonNode, _ := json.Marshal(dst.Node) + if string(jsonNode) == "{}" { // empty struct + dst.Node = nil + } else { + if err = validator.Validate(dst.Node); err != nil { + dst.Node = nil + } else { + match++ + } + } + } else { + dst.Node = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + if err = validator.Validate(dst.String); err != nil { + dst.String = nil + } else { + match++ + } + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Node = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(ClusterNodesInner)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(ClusterNodesInner)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src ClusterNodesInner) MarshalJSON() ([]byte, error) { + if src.Node != nil { + return json.Marshal(&src.Node) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *ClusterNodesInner) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.Node != nil { + return obj.Node + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableClusterNodesInner struct { + value *ClusterNodesInner + isSet bool +} + +func (v NullableClusterNodesInner) Get() *ClusterNodesInner { + return v.value +} + +func (v *NullableClusterNodesInner) Set(val *ClusterNodesInner) { + v.value = val + v.isSet = true +} + +func (v NullableClusterNodesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterNodesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterNodesInner(val *ClusterNodesInner) *NullableClusterNodesInner { + return &NullableClusterNodesInner{value: val, isSet: true} +} + +func (v NullableClusterNodesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterNodesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_cpu_manufacturer_enum.go b/v1/providers/launchpad/gen/launchpad/model_cpu_manufacturer_enum.go new file mode 100644 index 0000000..33685fa --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_cpu_manufacturer_enum.go @@ -0,0 +1,112 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// CpuManufacturerEnum * `amd` - AMD * `arm` - ARM * `intel` - Intel +type CpuManufacturerEnum string + +// List of CpuManufacturerEnum +const ( + CpuManufacturerAMD CpuManufacturerEnum = "amd" + CpuManufacturerARM CpuManufacturerEnum = "arm" + CpuManufacturerIntel CpuManufacturerEnum = "intel" +) + +// All allowed values of CpuManufacturerEnum enum +var AllowedCpuManufacturerEnumEnumValues = []CpuManufacturerEnum{ + "amd", + "arm", + "intel", +} + +func (v *CpuManufacturerEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CpuManufacturerEnum(value) + for _, existing := range AllowedCpuManufacturerEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CpuManufacturerEnum", value) +} + +// NewCpuManufacturerEnumFromValue returns a pointer to a valid CpuManufacturerEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCpuManufacturerEnumFromValue(v string) (*CpuManufacturerEnum, error) { + ev := CpuManufacturerEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CpuManufacturerEnum: valid values are %v", v, AllowedCpuManufacturerEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CpuManufacturerEnum) IsValid() bool { + for _, existing := range AllowedCpuManufacturerEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CpuManufacturerEnum value +func (v CpuManufacturerEnum) Ptr() *CpuManufacturerEnum { + return &v +} + +type NullableCpuManufacturerEnum struct { + value *CpuManufacturerEnum + isSet bool +} + +func (v NullableCpuManufacturerEnum) Get() *CpuManufacturerEnum { + return v.value +} + +func (v *NullableCpuManufacturerEnum) Set(val *CpuManufacturerEnum) { + v.value = val + v.isSet = true +} + +func (v NullableCpuManufacturerEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableCpuManufacturerEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCpuManufacturerEnum(val *CpuManufacturerEnum) *NullableCpuManufacturerEnum { + return &NullableCpuManufacturerEnum{value: val, isSet: true} +} + +func (v NullableCpuManufacturerEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCpuManufacturerEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_deployment.go b/v1/providers/launchpad/gen/launchpad/model_deployment.go new file mode 100644 index 0000000..a6fa34c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_deployment.go @@ -0,0 +1,2393 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the Deployment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Deployment{} + +// Deployment struct for Deployment +type Deployment struct { + // Override bastion operating system provisioned and/or configured by Liftoff + BastionOperatingSystem NullableString `json:"bastion_operating_system,omitempty"` + // Unique ID for this experience in the sales catalog. Must be unique. + CatalogId *string `json:"catalog_id,omitempty"` + // Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique. + CatalogIdAlias NullableString `json:"catalog_id_alias,omitempty"` + Cluster *DeploymentCluster `json:"cluster,omitempty"` + // Override the Ansible collection branch initialized within the pipeline + CollectionBranch NullableString `json:"collection_branch,omitempty"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + Experience *DeploymentExperience `json:"experience,omitempty"` + // Override the experience branch + ExperienceBranch NullableString `json:"experience_branch,omitempty"` + ExperienceId *string `json:"experience_id,omitempty"` + ExpiresAt NullableTime `json:"expires_at,omitempty"` + // Override the image tag used for Flight Control + FlightcontrolRelease NullableString `json:"flightcontrol_release,omitempty"` + // Require a cluster with nodes in the given garage + GarageId NullableString `json:"garage_id,omitempty"` + // Override the default Ground Control branch + GcBranch NullableString `json:"gc_branch,omitempty"` + // Require a cluster with the given GPU alias + GpuAlias NullableString `json:"gpu_alias,omitempty"` + // Require a cluster with the given number of GPUs + GpuCount NullableInt32 `json:"gpu_count,omitempty"` + // Require a cluster with the given GPU model + GpuModel NullableString `json:"gpu_model,omitempty"` + GpuOsName *string `json:"gpu_os_name,omitempty"` + GpuOsRelease *string `json:"gpu_os_release,omitempty"` + GpuOsVersion *string `json:"gpu_os_version,omitempty"` + Id string `json:"id"` + // Host IP addresses that should be allowed to access the deployment + IpAllowlist []string `json:"ip_allowlist,omitempty"` + // Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + Lifetime NullableInt32 `json:"lifetime,omitempty"` + // Require a cluster whose GPU count is greater than or equal to the given number + MinGpuCount NullableInt32 `json:"min_gpu_count,omitempty"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Require a cluster with the given number of nodes + NodeCount NullableInt32 `json:"node_count,omitempty"` + // Require a cluster manufactured by the given OEM name + OemName NullableString `json:"oem_name,omitempty"` + // Requester's organization name + OrgName string `json:"org_name"` + Overrides interface{} `json:"overrides"` + // Override the default cleanup/destroy behavior when a provisioning failure occurs + PersistOnFailure NullableBool `json:"persist_on_failure,omitempty"` + Persona *string `json:"persona,omitempty"` + // Override the pipeline ID that will be triggered for request fulfillment + Pipeline NullableInt64 `json:"pipeline,omitempty"` + // Override the default pipeline branch ref used when triggering a Fuselage pipeline + PipelineBranch NullableString `json:"pipeline_branch,omitempty"` + Pipelines []string `json:"pipelines"` + Platform NullablePlatformEnum `json:"platform,omitempty"` + // Priority level for the request * `p0` - p0 * `p1` - p1 * `p2` - p2 * `p3` - p3 + Priority *PriorityEnum `json:"priority,omitempty"` + // Require a cluster from the given provider name + ProviderName NullableString `json:"provider_name,omitempty"` + // The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + PublicKey NullableString `json:"public_key,omitempty"` + // Require a cluster located in the given region + Region NullableString `json:"region,omitempty"` + // Trial request ID (ex: TRY-1234) + RequestId *string `json:"request_id,omitempty"` + // Email address of the user requesting the experience + RequesterEmail string `json:"requester_email"` + // Name of the user requesting the experience + RequesterName string `json:"requester_name"` + // Number of times the deployment has been retried + RetryCount int32 `json:"retry_count"` + SalesCreatedDate NullableTime `json:"sales_created_date,omitempty"` + // Unique identifier for the requester's sales relationship + SalesId NullableString `json:"sales_id,omitempty"` + // Email address of the sales contact associated with the requester + SalesOwnerEmail NullableString `json:"sales_owner_email,omitempty"` + // Name of the sales contact associated with the requester + SalesOwnerName NullableString `json:"sales_owner_name,omitempty"` + Services []string `json:"services"` + SshPort int32 `json:"ssh_port"` + SshUser string `json:"ssh_user"` + // Current state of the deployment * `destroyed` - Deployment has been fully destroyed * `destroying` - Deployment is being destroyed * `error` - Deployment has encountered a fatal error and will not be retried * `failed` - Deployment has failed but may be retried * `paused` - Deployment is paused but may be retried later * `ready` - Deployment is ready and all instances are running * `retrying` - Deployment is retrying * `starting` - Deployment instances are starting * `stopped` - Deployment instances are stopped * `stopping` - Deployment instances are stopping * `waiting` - Waiting for deployment to be ready + State DeploymentState `json:"state"` + Tags interface{} `json:"tags,omitempty"` + // Require a cluster whose workshop flag is set + Workshop NullableBool `json:"workshop,omitempty"` + // Require a cluster with the given workshop ID + WorkshopId NullableString `json:"workshop_id,omitempty"` + // Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + WorkshopOverridePassword NullableString `json:"workshop_override_password,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Deployment Deployment + +// NewDeployment instantiates a new Deployment 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 NewDeployment(created time.Time, id string, modified time.Time, orgName string, overrides interface{}, pipelines []string, requesterEmail string, requesterName string, retryCount int32, services []string, sshPort int32, sshUser string, state DeploymentState) *Deployment { + this := Deployment{} + this.Created = created + this.Id = id + this.Modified = modified + this.OrgName = orgName + this.Overrides = overrides + this.Pipelines = pipelines + this.RequesterEmail = requesterEmail + this.RequesterName = requesterName + this.RetryCount = retryCount + this.Services = services + this.SshPort = sshPort + this.SshUser = sshUser + this.State = state + return &this +} + +// NewDeploymentWithDefaults instantiates a new Deployment 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 NewDeploymentWithDefaults() *Deployment { + this := Deployment{} + return &this +} + +// GetBastionOperatingSystem returns the BastionOperatingSystem field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetBastionOperatingSystem() string { + if o == nil || IsNil(o.BastionOperatingSystem.Get()) { + var ret string + return ret + } + return *o.BastionOperatingSystem.Get() +} + +// GetBastionOperatingSystemOk returns a tuple with the BastionOperatingSystem field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetBastionOperatingSystemOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BastionOperatingSystem.Get(), o.BastionOperatingSystem.IsSet() +} + +// HasBastionOperatingSystem returns a boolean if a field has been set. +func (o *Deployment) HasBastionOperatingSystem() bool { + if o != nil && o.BastionOperatingSystem.IsSet() { + return true + } + + return false +} + +// SetBastionOperatingSystem gets a reference to the given NullableString and assigns it to the BastionOperatingSystem field. +func (o *Deployment) SetBastionOperatingSystem(v string) { + o.BastionOperatingSystem.Set(&v) +} + +// SetBastionOperatingSystemNil sets the value for BastionOperatingSystem to be an explicit nil +func (o *Deployment) SetBastionOperatingSystemNil() { + o.BastionOperatingSystem.Set(nil) +} + +// UnsetBastionOperatingSystem ensures that no value is present for BastionOperatingSystem, not even an explicit nil +func (o *Deployment) UnsetBastionOperatingSystem() { + o.BastionOperatingSystem.Unset() +} + +// GetCatalogId returns the CatalogId field value if set, zero value otherwise. +func (o *Deployment) GetCatalogId() string { + if o == nil || IsNil(o.CatalogId) { + var ret string + return ret + } + return *o.CatalogId +} + +// GetCatalogIdOk returns a tuple with the CatalogId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Deployment) GetCatalogIdOk() (*string, bool) { + if o == nil || IsNil(o.CatalogId) { + return nil, false + } + return o.CatalogId, true +} + +// HasCatalogId returns a boolean if a field has been set. +func (o *Deployment) HasCatalogId() bool { + if o != nil && !IsNil(o.CatalogId) { + return true + } + + return false +} + +// SetCatalogId gets a reference to the given string and assigns it to the CatalogId field. +func (o *Deployment) SetCatalogId(v string) { + o.CatalogId = &v +} + +// GetCatalogIdAlias returns the CatalogIdAlias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetCatalogIdAlias() string { + if o == nil || IsNil(o.CatalogIdAlias.Get()) { + var ret string + return ret + } + return *o.CatalogIdAlias.Get() +} + +// GetCatalogIdAliasOk returns a tuple with the CatalogIdAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetCatalogIdAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CatalogIdAlias.Get(), o.CatalogIdAlias.IsSet() +} + +// HasCatalogIdAlias returns a boolean if a field has been set. +func (o *Deployment) HasCatalogIdAlias() bool { + if o != nil && o.CatalogIdAlias.IsSet() { + return true + } + + return false +} + +// SetCatalogIdAlias gets a reference to the given NullableString and assigns it to the CatalogIdAlias field. +func (o *Deployment) SetCatalogIdAlias(v string) { + o.CatalogIdAlias.Set(&v) +} + +// SetCatalogIdAliasNil sets the value for CatalogIdAlias to be an explicit nil +func (o *Deployment) SetCatalogIdAliasNil() { + o.CatalogIdAlias.Set(nil) +} + +// UnsetCatalogIdAlias ensures that no value is present for CatalogIdAlias, not even an explicit nil +func (o *Deployment) UnsetCatalogIdAlias() { + o.CatalogIdAlias.Unset() +} + +// GetCluster returns the Cluster field value if set, zero value otherwise. +func (o *Deployment) GetCluster() DeploymentCluster { + if o == nil || IsNil(o.Cluster) { + var ret DeploymentCluster + return ret + } + return *o.Cluster +} + +// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Deployment) GetClusterOk() (*DeploymentCluster, bool) { + if o == nil || IsNil(o.Cluster) { + return nil, false + } + return o.Cluster, true +} + +// HasCluster returns a boolean if a field has been set. +func (o *Deployment) HasCluster() bool { + if o != nil && !IsNil(o.Cluster) { + return true + } + + return false +} + +// SetCluster gets a reference to the given DeploymentCluster and assigns it to the Cluster field. +func (o *Deployment) SetCluster(v DeploymentCluster) { + o.Cluster = &v +} + +// GetCollectionBranch returns the CollectionBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetCollectionBranch() string { + if o == nil || IsNil(o.CollectionBranch.Get()) { + var ret string + return ret + } + return *o.CollectionBranch.Get() +} + +// GetCollectionBranchOk returns a tuple with the CollectionBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetCollectionBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CollectionBranch.Get(), o.CollectionBranch.IsSet() +} + +// HasCollectionBranch returns a boolean if a field has been set. +func (o *Deployment) HasCollectionBranch() bool { + if o != nil && o.CollectionBranch.IsSet() { + return true + } + + return false +} + +// SetCollectionBranch gets a reference to the given NullableString and assigns it to the CollectionBranch field. +func (o *Deployment) SetCollectionBranch(v string) { + o.CollectionBranch.Set(&v) +} + +// SetCollectionBranchNil sets the value for CollectionBranch to be an explicit nil +func (o *Deployment) SetCollectionBranchNil() { + o.CollectionBranch.Set(nil) +} + +// UnsetCollectionBranch ensures that no value is present for CollectionBranch, not even an explicit nil +func (o *Deployment) UnsetCollectionBranch() { + o.CollectionBranch.Unset() +} + +// GetCreated returns the Created field value +func (o *Deployment) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *Deployment) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *Deployment) SetCreated(v time.Time) { + o.Created = v +} + +// GetExperience returns the Experience field value if set, zero value otherwise. +func (o *Deployment) GetExperience() DeploymentExperience { + if o == nil || IsNil(o.Experience) { + var ret DeploymentExperience + return ret + } + return *o.Experience +} + +// GetExperienceOk returns a tuple with the Experience field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Deployment) GetExperienceOk() (*DeploymentExperience, bool) { + if o == nil || IsNil(o.Experience) { + return nil, false + } + return o.Experience, true +} + +// HasExperience returns a boolean if a field has been set. +func (o *Deployment) HasExperience() bool { + if o != nil && !IsNil(o.Experience) { + return true + } + + return false +} + +// SetExperience gets a reference to the given DeploymentExperience and assigns it to the Experience field. +func (o *Deployment) SetExperience(v DeploymentExperience) { + o.Experience = &v +} + +// GetExperienceBranch returns the ExperienceBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetExperienceBranch() string { + if o == nil || IsNil(o.ExperienceBranch.Get()) { + var ret string + return ret + } + return *o.ExperienceBranch.Get() +} + +// GetExperienceBranchOk returns a tuple with the ExperienceBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetExperienceBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExperienceBranch.Get(), o.ExperienceBranch.IsSet() +} + +// HasExperienceBranch returns a boolean if a field has been set. +func (o *Deployment) HasExperienceBranch() bool { + if o != nil && o.ExperienceBranch.IsSet() { + return true + } + + return false +} + +// SetExperienceBranch gets a reference to the given NullableString and assigns it to the ExperienceBranch field. +func (o *Deployment) SetExperienceBranch(v string) { + o.ExperienceBranch.Set(&v) +} + +// SetExperienceBranchNil sets the value for ExperienceBranch to be an explicit nil +func (o *Deployment) SetExperienceBranchNil() { + o.ExperienceBranch.Set(nil) +} + +// UnsetExperienceBranch ensures that no value is present for ExperienceBranch, not even an explicit nil +func (o *Deployment) UnsetExperienceBranch() { + o.ExperienceBranch.Unset() +} + +// GetExperienceId returns the ExperienceId field value if set, zero value otherwise. +func (o *Deployment) GetExperienceId() string { + if o == nil || IsNil(o.ExperienceId) { + var ret string + return ret + } + return *o.ExperienceId +} + +// GetExperienceIdOk returns a tuple with the ExperienceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Deployment) GetExperienceIdOk() (*string, bool) { + if o == nil || IsNil(o.ExperienceId) { + return nil, false + } + return o.ExperienceId, true +} + +// HasExperienceId returns a boolean if a field has been set. +func (o *Deployment) HasExperienceId() bool { + if o != nil && !IsNil(o.ExperienceId) { + return true + } + + return false +} + +// SetExperienceId gets a reference to the given string and assigns it to the ExperienceId field. +func (o *Deployment) SetExperienceId(v string) { + o.ExperienceId = &v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetExpiresAt() time.Time { + if o == nil || IsNil(o.ExpiresAt.Get()) { + var ret time.Time + return ret + } + return *o.ExpiresAt.Get() +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetExpiresAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpiresAt.Get(), o.ExpiresAt.IsSet() +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *Deployment) HasExpiresAt() bool { + if o != nil && o.ExpiresAt.IsSet() { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given NullableTime and assigns it to the ExpiresAt field. +func (o *Deployment) SetExpiresAt(v time.Time) { + o.ExpiresAt.Set(&v) +} + +// SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil +func (o *Deployment) SetExpiresAtNil() { + o.ExpiresAt.Set(nil) +} + +// UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +func (o *Deployment) UnsetExpiresAt() { + o.ExpiresAt.Unset() +} + +// GetFlightcontrolRelease returns the FlightcontrolRelease field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetFlightcontrolRelease() string { + if o == nil || IsNil(o.FlightcontrolRelease.Get()) { + var ret string + return ret + } + return *o.FlightcontrolRelease.Get() +} + +// GetFlightcontrolReleaseOk returns a tuple with the FlightcontrolRelease field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetFlightcontrolReleaseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FlightcontrolRelease.Get(), o.FlightcontrolRelease.IsSet() +} + +// HasFlightcontrolRelease returns a boolean if a field has been set. +func (o *Deployment) HasFlightcontrolRelease() bool { + if o != nil && o.FlightcontrolRelease.IsSet() { + return true + } + + return false +} + +// SetFlightcontrolRelease gets a reference to the given NullableString and assigns it to the FlightcontrolRelease field. +func (o *Deployment) SetFlightcontrolRelease(v string) { + o.FlightcontrolRelease.Set(&v) +} + +// SetFlightcontrolReleaseNil sets the value for FlightcontrolRelease to be an explicit nil +func (o *Deployment) SetFlightcontrolReleaseNil() { + o.FlightcontrolRelease.Set(nil) +} + +// UnsetFlightcontrolRelease ensures that no value is present for FlightcontrolRelease, not even an explicit nil +func (o *Deployment) UnsetFlightcontrolRelease() { + o.FlightcontrolRelease.Unset() +} + +// GetGarageId returns the GarageId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetGarageId() string { + if o == nil || IsNil(o.GarageId.Get()) { + var ret string + return ret + } + return *o.GarageId.Get() +} + +// GetGarageIdOk returns a tuple with the GarageId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetGarageIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GarageId.Get(), o.GarageId.IsSet() +} + +// HasGarageId returns a boolean if a field has been set. +func (o *Deployment) HasGarageId() bool { + if o != nil && o.GarageId.IsSet() { + return true + } + + return false +} + +// SetGarageId gets a reference to the given NullableString and assigns it to the GarageId field. +func (o *Deployment) SetGarageId(v string) { + o.GarageId.Set(&v) +} + +// SetGarageIdNil sets the value for GarageId to be an explicit nil +func (o *Deployment) SetGarageIdNil() { + o.GarageId.Set(nil) +} + +// UnsetGarageId ensures that no value is present for GarageId, not even an explicit nil +func (o *Deployment) UnsetGarageId() { + o.GarageId.Unset() +} + +// GetGcBranch returns the GcBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetGcBranch() string { + if o == nil || IsNil(o.GcBranch.Get()) { + var ret string + return ret + } + return *o.GcBranch.Get() +} + +// GetGcBranchOk returns a tuple with the GcBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetGcBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GcBranch.Get(), o.GcBranch.IsSet() +} + +// HasGcBranch returns a boolean if a field has been set. +func (o *Deployment) HasGcBranch() bool { + if o != nil && o.GcBranch.IsSet() { + return true + } + + return false +} + +// SetGcBranch gets a reference to the given NullableString and assigns it to the GcBranch field. +func (o *Deployment) SetGcBranch(v string) { + o.GcBranch.Set(&v) +} + +// SetGcBranchNil sets the value for GcBranch to be an explicit nil +func (o *Deployment) SetGcBranchNil() { + o.GcBranch.Set(nil) +} + +// UnsetGcBranch ensures that no value is present for GcBranch, not even an explicit nil +func (o *Deployment) UnsetGcBranch() { + o.GcBranch.Unset() +} + +// GetGpuAlias returns the GpuAlias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetGpuAlias() string { + if o == nil || IsNil(o.GpuAlias.Get()) { + var ret string + return ret + } + return *o.GpuAlias.Get() +} + +// GetGpuAliasOk returns a tuple with the GpuAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetGpuAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuAlias.Get(), o.GpuAlias.IsSet() +} + +// HasGpuAlias returns a boolean if a field has been set. +func (o *Deployment) HasGpuAlias() bool { + if o != nil && o.GpuAlias.IsSet() { + return true + } + + return false +} + +// SetGpuAlias gets a reference to the given NullableString and assigns it to the GpuAlias field. +func (o *Deployment) SetGpuAlias(v string) { + o.GpuAlias.Set(&v) +} + +// SetGpuAliasNil sets the value for GpuAlias to be an explicit nil +func (o *Deployment) SetGpuAliasNil() { + o.GpuAlias.Set(nil) +} + +// UnsetGpuAlias ensures that no value is present for GpuAlias, not even an explicit nil +func (o *Deployment) UnsetGpuAlias() { + o.GpuAlias.Unset() +} + +// GetGpuCount returns the GpuCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetGpuCount() int32 { + if o == nil || IsNil(o.GpuCount.Get()) { + var ret int32 + return ret + } + return *o.GpuCount.Get() +} + +// GetGpuCountOk returns a tuple with the GpuCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetGpuCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.GpuCount.Get(), o.GpuCount.IsSet() +} + +// HasGpuCount returns a boolean if a field has been set. +func (o *Deployment) HasGpuCount() bool { + if o != nil && o.GpuCount.IsSet() { + return true + } + + return false +} + +// SetGpuCount gets a reference to the given NullableInt32 and assigns it to the GpuCount field. +func (o *Deployment) SetGpuCount(v int32) { + o.GpuCount.Set(&v) +} + +// SetGpuCountNil sets the value for GpuCount to be an explicit nil +func (o *Deployment) SetGpuCountNil() { + o.GpuCount.Set(nil) +} + +// UnsetGpuCount ensures that no value is present for GpuCount, not even an explicit nil +func (o *Deployment) UnsetGpuCount() { + o.GpuCount.Unset() +} + +// GetGpuModel returns the GpuModel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetGpuModel() string { + if o == nil || IsNil(o.GpuModel.Get()) { + var ret string + return ret + } + return *o.GpuModel.Get() +} + +// GetGpuModelOk returns a tuple with the GpuModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetGpuModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuModel.Get(), o.GpuModel.IsSet() +} + +// HasGpuModel returns a boolean if a field has been set. +func (o *Deployment) HasGpuModel() bool { + if o != nil && o.GpuModel.IsSet() { + return true + } + + return false +} + +// SetGpuModel gets a reference to the given NullableString and assigns it to the GpuModel field. +func (o *Deployment) SetGpuModel(v string) { + o.GpuModel.Set(&v) +} + +// SetGpuModelNil sets the value for GpuModel to be an explicit nil +func (o *Deployment) SetGpuModelNil() { + o.GpuModel.Set(nil) +} + +// UnsetGpuModel ensures that no value is present for GpuModel, not even an explicit nil +func (o *Deployment) UnsetGpuModel() { + o.GpuModel.Unset() +} + +// GetGpuOsName returns the GpuOsName field value if set, zero value otherwise. +func (o *Deployment) GetGpuOsName() string { + if o == nil || IsNil(o.GpuOsName) { + var ret string + return ret + } + return *o.GpuOsName +} + +// GetGpuOsNameOk returns a tuple with the GpuOsName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Deployment) GetGpuOsNameOk() (*string, bool) { + if o == nil || IsNil(o.GpuOsName) { + return nil, false + } + return o.GpuOsName, true +} + +// HasGpuOsName returns a boolean if a field has been set. +func (o *Deployment) HasGpuOsName() bool { + if o != nil && !IsNil(o.GpuOsName) { + return true + } + + return false +} + +// SetGpuOsName gets a reference to the given string and assigns it to the GpuOsName field. +func (o *Deployment) SetGpuOsName(v string) { + o.GpuOsName = &v +} + +// GetGpuOsRelease returns the GpuOsRelease field value if set, zero value otherwise. +func (o *Deployment) GetGpuOsRelease() string { + if o == nil || IsNil(o.GpuOsRelease) { + var ret string + return ret + } + return *o.GpuOsRelease +} + +// GetGpuOsReleaseOk returns a tuple with the GpuOsRelease field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Deployment) GetGpuOsReleaseOk() (*string, bool) { + if o == nil || IsNil(o.GpuOsRelease) { + return nil, false + } + return o.GpuOsRelease, true +} + +// HasGpuOsRelease returns a boolean if a field has been set. +func (o *Deployment) HasGpuOsRelease() bool { + if o != nil && !IsNil(o.GpuOsRelease) { + return true + } + + return false +} + +// SetGpuOsRelease gets a reference to the given string and assigns it to the GpuOsRelease field. +func (o *Deployment) SetGpuOsRelease(v string) { + o.GpuOsRelease = &v +} + +// GetGpuOsVersion returns the GpuOsVersion field value if set, zero value otherwise. +func (o *Deployment) GetGpuOsVersion() string { + if o == nil || IsNil(o.GpuOsVersion) { + var ret string + return ret + } + return *o.GpuOsVersion +} + +// GetGpuOsVersionOk returns a tuple with the GpuOsVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Deployment) GetGpuOsVersionOk() (*string, bool) { + if o == nil || IsNil(o.GpuOsVersion) { + return nil, false + } + return o.GpuOsVersion, true +} + +// HasGpuOsVersion returns a boolean if a field has been set. +func (o *Deployment) HasGpuOsVersion() bool { + if o != nil && !IsNil(o.GpuOsVersion) { + return true + } + + return false +} + +// SetGpuOsVersion gets a reference to the given string and assigns it to the GpuOsVersion field. +func (o *Deployment) SetGpuOsVersion(v string) { + o.GpuOsVersion = &v +} + +// GetId returns the Id field value +func (o *Deployment) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Deployment) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Deployment) SetId(v string) { + o.Id = v +} + +// GetIpAllowlist returns the IpAllowlist field value if set, zero value otherwise. +func (o *Deployment) GetIpAllowlist() []string { + if o == nil || IsNil(o.IpAllowlist) { + var ret []string + return ret + } + return o.IpAllowlist +} + +// GetIpAllowlistOk returns a tuple with the IpAllowlist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Deployment) GetIpAllowlistOk() ([]string, bool) { + if o == nil || IsNil(o.IpAllowlist) { + return nil, false + } + return o.IpAllowlist, true +} + +// HasIpAllowlist returns a boolean if a field has been set. +func (o *Deployment) HasIpAllowlist() bool { + if o != nil && !IsNil(o.IpAllowlist) { + return true + } + + return false +} + +// SetIpAllowlist gets a reference to the given []string and assigns it to the IpAllowlist field. +func (o *Deployment) SetIpAllowlist(v []string) { + o.IpAllowlist = v +} + +// GetLifetime returns the Lifetime field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetLifetime() int32 { + if o == nil || IsNil(o.Lifetime.Get()) { + var ret int32 + return ret + } + return *o.Lifetime.Get() +} + +// GetLifetimeOk returns a tuple with the Lifetime field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetLifetimeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Lifetime.Get(), o.Lifetime.IsSet() +} + +// HasLifetime returns a boolean if a field has been set. +func (o *Deployment) HasLifetime() bool { + if o != nil && o.Lifetime.IsSet() { + return true + } + + return false +} + +// SetLifetime gets a reference to the given NullableInt32 and assigns it to the Lifetime field. +func (o *Deployment) SetLifetime(v int32) { + o.Lifetime.Set(&v) +} + +// SetLifetimeNil sets the value for Lifetime to be an explicit nil +func (o *Deployment) SetLifetimeNil() { + o.Lifetime.Set(nil) +} + +// UnsetLifetime ensures that no value is present for Lifetime, not even an explicit nil +func (o *Deployment) UnsetLifetime() { + o.Lifetime.Unset() +} + +// GetMinGpuCount returns the MinGpuCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetMinGpuCount() int32 { + if o == nil || IsNil(o.MinGpuCount.Get()) { + var ret int32 + return ret + } + return *o.MinGpuCount.Get() +} + +// GetMinGpuCountOk returns a tuple with the MinGpuCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetMinGpuCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MinGpuCount.Get(), o.MinGpuCount.IsSet() +} + +// HasMinGpuCount returns a boolean if a field has been set. +func (o *Deployment) HasMinGpuCount() bool { + if o != nil && o.MinGpuCount.IsSet() { + return true + } + + return false +} + +// SetMinGpuCount gets a reference to the given NullableInt32 and assigns it to the MinGpuCount field. +func (o *Deployment) SetMinGpuCount(v int32) { + o.MinGpuCount.Set(&v) +} + +// SetMinGpuCountNil sets the value for MinGpuCount to be an explicit nil +func (o *Deployment) SetMinGpuCountNil() { + o.MinGpuCount.Set(nil) +} + +// UnsetMinGpuCount ensures that no value is present for MinGpuCount, not even an explicit nil +func (o *Deployment) UnsetMinGpuCount() { + o.MinGpuCount.Unset() +} + +// GetModified returns the Modified field value +func (o *Deployment) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *Deployment) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *Deployment) SetModified(v time.Time) { + o.Modified = v +} + +// GetNodeCount returns the NodeCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetNodeCount() int32 { + if o == nil || IsNil(o.NodeCount.Get()) { + var ret int32 + return ret + } + return *o.NodeCount.Get() +} + +// GetNodeCountOk returns a tuple with the NodeCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetNodeCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.NodeCount.Get(), o.NodeCount.IsSet() +} + +// HasNodeCount returns a boolean if a field has been set. +func (o *Deployment) HasNodeCount() bool { + if o != nil && o.NodeCount.IsSet() { + return true + } + + return false +} + +// SetNodeCount gets a reference to the given NullableInt32 and assigns it to the NodeCount field. +func (o *Deployment) SetNodeCount(v int32) { + o.NodeCount.Set(&v) +} + +// SetNodeCountNil sets the value for NodeCount to be an explicit nil +func (o *Deployment) SetNodeCountNil() { + o.NodeCount.Set(nil) +} + +// UnsetNodeCount ensures that no value is present for NodeCount, not even an explicit nil +func (o *Deployment) UnsetNodeCount() { + o.NodeCount.Unset() +} + +// GetOemName returns the OemName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetOemName() string { + if o == nil || IsNil(o.OemName.Get()) { + var ret string + return ret + } + return *o.OemName.Get() +} + +// GetOemNameOk returns a tuple with the OemName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetOemNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.OemName.Get(), o.OemName.IsSet() +} + +// HasOemName returns a boolean if a field has been set. +func (o *Deployment) HasOemName() bool { + if o != nil && o.OemName.IsSet() { + return true + } + + return false +} + +// SetOemName gets a reference to the given NullableString and assigns it to the OemName field. +func (o *Deployment) SetOemName(v string) { + o.OemName.Set(&v) +} + +// SetOemNameNil sets the value for OemName to be an explicit nil +func (o *Deployment) SetOemNameNil() { + o.OemName.Set(nil) +} + +// UnsetOemName ensures that no value is present for OemName, not even an explicit nil +func (o *Deployment) UnsetOemName() { + o.OemName.Unset() +} + +// GetOrgName returns the OrgName field value +func (o *Deployment) GetOrgName() string { + if o == nil { + var ret string + return ret + } + + return o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value +// and a boolean to check if the value has been set. +func (o *Deployment) GetOrgNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrgName, true +} + +// SetOrgName sets field value +func (o *Deployment) SetOrgName(v string) { + o.OrgName = v +} + +// GetOverrides returns the Overrides field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *Deployment) GetOverrides() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Overrides +} + +// GetOverridesOk returns a tuple with the Overrides field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetOverridesOk() (*interface{}, bool) { + if o == nil || IsNil(o.Overrides) { + return nil, false + } + return &o.Overrides, true +} + +// SetOverrides sets field value +func (o *Deployment) SetOverrides(v interface{}) { + o.Overrides = v +} + +// GetPersistOnFailure returns the PersistOnFailure field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetPersistOnFailure() bool { + if o == nil || IsNil(o.PersistOnFailure.Get()) { + var ret bool + return ret + } + return *o.PersistOnFailure.Get() +} + +// GetPersistOnFailureOk returns a tuple with the PersistOnFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetPersistOnFailureOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.PersistOnFailure.Get(), o.PersistOnFailure.IsSet() +} + +// HasPersistOnFailure returns a boolean if a field has been set. +func (o *Deployment) HasPersistOnFailure() bool { + if o != nil && o.PersistOnFailure.IsSet() { + return true + } + + return false +} + +// SetPersistOnFailure gets a reference to the given NullableBool and assigns it to the PersistOnFailure field. +func (o *Deployment) SetPersistOnFailure(v bool) { + o.PersistOnFailure.Set(&v) +} + +// SetPersistOnFailureNil sets the value for PersistOnFailure to be an explicit nil +func (o *Deployment) SetPersistOnFailureNil() { + o.PersistOnFailure.Set(nil) +} + +// UnsetPersistOnFailure ensures that no value is present for PersistOnFailure, not even an explicit nil +func (o *Deployment) UnsetPersistOnFailure() { + o.PersistOnFailure.Unset() +} + +// GetPersona returns the Persona field value if set, zero value otherwise. +func (o *Deployment) GetPersona() string { + if o == nil || IsNil(o.Persona) { + var ret string + return ret + } + return *o.Persona +} + +// GetPersonaOk returns a tuple with the Persona field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Deployment) GetPersonaOk() (*string, bool) { + if o == nil || IsNil(o.Persona) { + return nil, false + } + return o.Persona, true +} + +// HasPersona returns a boolean if a field has been set. +func (o *Deployment) HasPersona() bool { + if o != nil && !IsNil(o.Persona) { + return true + } + + return false +} + +// SetPersona gets a reference to the given string and assigns it to the Persona field. +func (o *Deployment) SetPersona(v string) { + o.Persona = &v +} + +// GetPipeline returns the Pipeline field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetPipeline() int64 { + if o == nil || IsNil(o.Pipeline.Get()) { + var ret int64 + return ret + } + return *o.Pipeline.Get() +} + +// GetPipelineOk returns a tuple with the Pipeline field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetPipelineOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.Pipeline.Get(), o.Pipeline.IsSet() +} + +// HasPipeline returns a boolean if a field has been set. +func (o *Deployment) HasPipeline() bool { + if o != nil && o.Pipeline.IsSet() { + return true + } + + return false +} + +// SetPipeline gets a reference to the given NullableInt64 and assigns it to the Pipeline field. +func (o *Deployment) SetPipeline(v int64) { + o.Pipeline.Set(&v) +} + +// SetPipelineNil sets the value for Pipeline to be an explicit nil +func (o *Deployment) SetPipelineNil() { + o.Pipeline.Set(nil) +} + +// UnsetPipeline ensures that no value is present for Pipeline, not even an explicit nil +func (o *Deployment) UnsetPipeline() { + o.Pipeline.Unset() +} + +// GetPipelineBranch returns the PipelineBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetPipelineBranch() string { + if o == nil || IsNil(o.PipelineBranch.Get()) { + var ret string + return ret + } + return *o.PipelineBranch.Get() +} + +// GetPipelineBranchOk returns a tuple with the PipelineBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetPipelineBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PipelineBranch.Get(), o.PipelineBranch.IsSet() +} + +// HasPipelineBranch returns a boolean if a field has been set. +func (o *Deployment) HasPipelineBranch() bool { + if o != nil && o.PipelineBranch.IsSet() { + return true + } + + return false +} + +// SetPipelineBranch gets a reference to the given NullableString and assigns it to the PipelineBranch field. +func (o *Deployment) SetPipelineBranch(v string) { + o.PipelineBranch.Set(&v) +} + +// SetPipelineBranchNil sets the value for PipelineBranch to be an explicit nil +func (o *Deployment) SetPipelineBranchNil() { + o.PipelineBranch.Set(nil) +} + +// UnsetPipelineBranch ensures that no value is present for PipelineBranch, not even an explicit nil +func (o *Deployment) UnsetPipelineBranch() { + o.PipelineBranch.Unset() +} + +// GetPipelines returns the Pipelines field value +func (o *Deployment) GetPipelines() []string { + if o == nil { + var ret []string + return ret + } + + return o.Pipelines +} + +// GetPipelinesOk returns a tuple with the Pipelines field value +// and a boolean to check if the value has been set. +func (o *Deployment) GetPipelinesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Pipelines, true +} + +// SetPipelines sets field value +func (o *Deployment) SetPipelines(v []string) { + o.Pipelines = v +} + +// GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetPlatform() PlatformEnum { + if o == nil || IsNil(o.Platform.Get()) { + var ret PlatformEnum + return ret + } + return *o.Platform.Get() +} + +// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetPlatformOk() (*PlatformEnum, bool) { + if o == nil { + return nil, false + } + return o.Platform.Get(), o.Platform.IsSet() +} + +// HasPlatform returns a boolean if a field has been set. +func (o *Deployment) HasPlatform() bool { + if o != nil && o.Platform.IsSet() { + return true + } + + return false +} + +// SetPlatform gets a reference to the given NullablePlatformEnum and assigns it to the Platform field. +func (o *Deployment) SetPlatform(v PlatformEnum) { + o.Platform.Set(&v) +} + +// SetPlatformNil sets the value for Platform to be an explicit nil +func (o *Deployment) SetPlatformNil() { + o.Platform.Set(nil) +} + +// UnsetPlatform ensures that no value is present for Platform, not even an explicit nil +func (o *Deployment) UnsetPlatform() { + o.Platform.Unset() +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *Deployment) GetPriority() PriorityEnum { + if o == nil || IsNil(o.Priority) { + var ret PriorityEnum + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Deployment) GetPriorityOk() (*PriorityEnum, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *Deployment) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given PriorityEnum and assigns it to the Priority field. +func (o *Deployment) SetPriority(v PriorityEnum) { + o.Priority = &v +} + +// GetProviderName returns the ProviderName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetProviderName() string { + if o == nil || IsNil(o.ProviderName.Get()) { + var ret string + return ret + } + return *o.ProviderName.Get() +} + +// GetProviderNameOk returns a tuple with the ProviderName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetProviderNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ProviderName.Get(), o.ProviderName.IsSet() +} + +// HasProviderName returns a boolean if a field has been set. +func (o *Deployment) HasProviderName() bool { + if o != nil && o.ProviderName.IsSet() { + return true + } + + return false +} + +// SetProviderName gets a reference to the given NullableString and assigns it to the ProviderName field. +func (o *Deployment) SetProviderName(v string) { + o.ProviderName.Set(&v) +} + +// SetProviderNameNil sets the value for ProviderName to be an explicit nil +func (o *Deployment) SetProviderNameNil() { + o.ProviderName.Set(nil) +} + +// UnsetProviderName ensures that no value is present for ProviderName, not even an explicit nil +func (o *Deployment) UnsetProviderName() { + o.ProviderName.Unset() +} + +// GetPublicKey returns the PublicKey field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetPublicKey() string { + if o == nil || IsNil(o.PublicKey.Get()) { + var ret string + return ret + } + return *o.PublicKey.Get() +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PublicKey.Get(), o.PublicKey.IsSet() +} + +// HasPublicKey returns a boolean if a field has been set. +func (o *Deployment) HasPublicKey() bool { + if o != nil && o.PublicKey.IsSet() { + return true + } + + return false +} + +// SetPublicKey gets a reference to the given NullableString and assigns it to the PublicKey field. +func (o *Deployment) SetPublicKey(v string) { + o.PublicKey.Set(&v) +} + +// SetPublicKeyNil sets the value for PublicKey to be an explicit nil +func (o *Deployment) SetPublicKeyNil() { + o.PublicKey.Set(nil) +} + +// UnsetPublicKey ensures that no value is present for PublicKey, not even an explicit nil +func (o *Deployment) UnsetPublicKey() { + o.PublicKey.Unset() +} + +// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetRegion() string { + if o == nil || IsNil(o.Region.Get()) { + var ret string + return ret + } + return *o.Region.Get() +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Region.Get(), o.Region.IsSet() +} + +// HasRegion returns a boolean if a field has been set. +func (o *Deployment) HasRegion() bool { + if o != nil && o.Region.IsSet() { + return true + } + + return false +} + +// SetRegion gets a reference to the given NullableString and assigns it to the Region field. +func (o *Deployment) SetRegion(v string) { + o.Region.Set(&v) +} + +// SetRegionNil sets the value for Region to be an explicit nil +func (o *Deployment) SetRegionNil() { + o.Region.Set(nil) +} + +// UnsetRegion ensures that no value is present for Region, not even an explicit nil +func (o *Deployment) UnsetRegion() { + o.Region.Unset() +} + +// GetRequestId returns the RequestId field value if set, zero value otherwise. +func (o *Deployment) GetRequestId() string { + if o == nil || IsNil(o.RequestId) { + var ret string + return ret + } + return *o.RequestId +} + +// GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Deployment) GetRequestIdOk() (*string, bool) { + if o == nil || IsNil(o.RequestId) { + return nil, false + } + return o.RequestId, true +} + +// HasRequestId returns a boolean if a field has been set. +func (o *Deployment) HasRequestId() bool { + if o != nil && !IsNil(o.RequestId) { + return true + } + + return false +} + +// SetRequestId gets a reference to the given string and assigns it to the RequestId field. +func (o *Deployment) SetRequestId(v string) { + o.RequestId = &v +} + +// GetRequesterEmail returns the RequesterEmail field value +func (o *Deployment) GetRequesterEmail() string { + if o == nil { + var ret string + return ret + } + + return o.RequesterEmail +} + +// GetRequesterEmailOk returns a tuple with the RequesterEmail field value +// and a boolean to check if the value has been set. +func (o *Deployment) GetRequesterEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RequesterEmail, true +} + +// SetRequesterEmail sets field value +func (o *Deployment) SetRequesterEmail(v string) { + o.RequesterEmail = v +} + +// GetRequesterName returns the RequesterName field value +func (o *Deployment) GetRequesterName() string { + if o == nil { + var ret string + return ret + } + + return o.RequesterName +} + +// GetRequesterNameOk returns a tuple with the RequesterName field value +// and a boolean to check if the value has been set. +func (o *Deployment) GetRequesterNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RequesterName, true +} + +// SetRequesterName sets field value +func (o *Deployment) SetRequesterName(v string) { + o.RequesterName = v +} + +// GetRetryCount returns the RetryCount field value +func (o *Deployment) GetRetryCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RetryCount +} + +// GetRetryCountOk returns a tuple with the RetryCount field value +// and a boolean to check if the value has been set. +func (o *Deployment) GetRetryCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RetryCount, true +} + +// SetRetryCount sets field value +func (o *Deployment) SetRetryCount(v int32) { + o.RetryCount = v +} + +// GetSalesCreatedDate returns the SalesCreatedDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetSalesCreatedDate() time.Time { + if o == nil || IsNil(o.SalesCreatedDate.Get()) { + var ret time.Time + return ret + } + return *o.SalesCreatedDate.Get() +} + +// GetSalesCreatedDateOk returns a tuple with the SalesCreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetSalesCreatedDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SalesCreatedDate.Get(), o.SalesCreatedDate.IsSet() +} + +// HasSalesCreatedDate returns a boolean if a field has been set. +func (o *Deployment) HasSalesCreatedDate() bool { + if o != nil && o.SalesCreatedDate.IsSet() { + return true + } + + return false +} + +// SetSalesCreatedDate gets a reference to the given NullableTime and assigns it to the SalesCreatedDate field. +func (o *Deployment) SetSalesCreatedDate(v time.Time) { + o.SalesCreatedDate.Set(&v) +} + +// SetSalesCreatedDateNil sets the value for SalesCreatedDate to be an explicit nil +func (o *Deployment) SetSalesCreatedDateNil() { + o.SalesCreatedDate.Set(nil) +} + +// UnsetSalesCreatedDate ensures that no value is present for SalesCreatedDate, not even an explicit nil +func (o *Deployment) UnsetSalesCreatedDate() { + o.SalesCreatedDate.Unset() +} + +// GetSalesId returns the SalesId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetSalesId() string { + if o == nil || IsNil(o.SalesId.Get()) { + var ret string + return ret + } + return *o.SalesId.Get() +} + +// GetSalesIdOk returns a tuple with the SalesId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetSalesIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SalesId.Get(), o.SalesId.IsSet() +} + +// HasSalesId returns a boolean if a field has been set. +func (o *Deployment) HasSalesId() bool { + if o != nil && o.SalesId.IsSet() { + return true + } + + return false +} + +// SetSalesId gets a reference to the given NullableString and assigns it to the SalesId field. +func (o *Deployment) SetSalesId(v string) { + o.SalesId.Set(&v) +} + +// SetSalesIdNil sets the value for SalesId to be an explicit nil +func (o *Deployment) SetSalesIdNil() { + o.SalesId.Set(nil) +} + +// UnsetSalesId ensures that no value is present for SalesId, not even an explicit nil +func (o *Deployment) UnsetSalesId() { + o.SalesId.Unset() +} + +// GetSalesOwnerEmail returns the SalesOwnerEmail field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetSalesOwnerEmail() string { + if o == nil || IsNil(o.SalesOwnerEmail.Get()) { + var ret string + return ret + } + return *o.SalesOwnerEmail.Get() +} + +// GetSalesOwnerEmailOk returns a tuple with the SalesOwnerEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetSalesOwnerEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SalesOwnerEmail.Get(), o.SalesOwnerEmail.IsSet() +} + +// HasSalesOwnerEmail returns a boolean if a field has been set. +func (o *Deployment) HasSalesOwnerEmail() bool { + if o != nil && o.SalesOwnerEmail.IsSet() { + return true + } + + return false +} + +// SetSalesOwnerEmail gets a reference to the given NullableString and assigns it to the SalesOwnerEmail field. +func (o *Deployment) SetSalesOwnerEmail(v string) { + o.SalesOwnerEmail.Set(&v) +} + +// SetSalesOwnerEmailNil sets the value for SalesOwnerEmail to be an explicit nil +func (o *Deployment) SetSalesOwnerEmailNil() { + o.SalesOwnerEmail.Set(nil) +} + +// UnsetSalesOwnerEmail ensures that no value is present for SalesOwnerEmail, not even an explicit nil +func (o *Deployment) UnsetSalesOwnerEmail() { + o.SalesOwnerEmail.Unset() +} + +// GetSalesOwnerName returns the SalesOwnerName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetSalesOwnerName() string { + if o == nil || IsNil(o.SalesOwnerName.Get()) { + var ret string + return ret + } + return *o.SalesOwnerName.Get() +} + +// GetSalesOwnerNameOk returns a tuple with the SalesOwnerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetSalesOwnerNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SalesOwnerName.Get(), o.SalesOwnerName.IsSet() +} + +// HasSalesOwnerName returns a boolean if a field has been set. +func (o *Deployment) HasSalesOwnerName() bool { + if o != nil && o.SalesOwnerName.IsSet() { + return true + } + + return false +} + +// SetSalesOwnerName gets a reference to the given NullableString and assigns it to the SalesOwnerName field. +func (o *Deployment) SetSalesOwnerName(v string) { + o.SalesOwnerName.Set(&v) +} + +// SetSalesOwnerNameNil sets the value for SalesOwnerName to be an explicit nil +func (o *Deployment) SetSalesOwnerNameNil() { + o.SalesOwnerName.Set(nil) +} + +// UnsetSalesOwnerName ensures that no value is present for SalesOwnerName, not even an explicit nil +func (o *Deployment) UnsetSalesOwnerName() { + o.SalesOwnerName.Unset() +} + +// GetServices returns the Services field value +func (o *Deployment) GetServices() []string { + if o == nil { + var ret []string + return ret + } + + return o.Services +} + +// GetServicesOk returns a tuple with the Services field value +// and a boolean to check if the value has been set. +func (o *Deployment) GetServicesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Services, true +} + +// SetServices sets field value +func (o *Deployment) SetServices(v []string) { + o.Services = v +} + +// GetSshPort returns the SshPort field value +func (o *Deployment) GetSshPort() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SshPort +} + +// GetSshPortOk returns a tuple with the SshPort field value +// and a boolean to check if the value has been set. +func (o *Deployment) GetSshPortOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SshPort, true +} + +// SetSshPort sets field value +func (o *Deployment) SetSshPort(v int32) { + o.SshPort = v +} + +// GetSshUser returns the SshUser field value +func (o *Deployment) GetSshUser() string { + if o == nil { + var ret string + return ret + } + + return o.SshUser +} + +// GetSshUserOk returns a tuple with the SshUser field value +// and a boolean to check if the value has been set. +func (o *Deployment) GetSshUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SshUser, true +} + +// SetSshUser sets field value +func (o *Deployment) SetSshUser(v string) { + o.SshUser = v +} + +// GetState returns the State field value +func (o *Deployment) GetState() DeploymentState { + if o == nil { + var ret DeploymentState + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *Deployment) GetStateOk() (*DeploymentState, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *Deployment) SetState(v DeploymentState) { + o.State = v +} + +// GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetTags() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetTagsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return &o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Deployment) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given interface{} and assigns it to the Tags field. +func (o *Deployment) SetTags(v interface{}) { + o.Tags = v +} + +// GetWorkshop returns the Workshop field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetWorkshop() bool { + if o == nil || IsNil(o.Workshop.Get()) { + var ret bool + return ret + } + return *o.Workshop.Get() +} + +// GetWorkshopOk returns a tuple with the Workshop field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetWorkshopOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Workshop.Get(), o.Workshop.IsSet() +} + +// HasWorkshop returns a boolean if a field has been set. +func (o *Deployment) HasWorkshop() bool { + if o != nil && o.Workshop.IsSet() { + return true + } + + return false +} + +// SetWorkshop gets a reference to the given NullableBool and assigns it to the Workshop field. +func (o *Deployment) SetWorkshop(v bool) { + o.Workshop.Set(&v) +} + +// SetWorkshopNil sets the value for Workshop to be an explicit nil +func (o *Deployment) SetWorkshopNil() { + o.Workshop.Set(nil) +} + +// UnsetWorkshop ensures that no value is present for Workshop, not even an explicit nil +func (o *Deployment) UnsetWorkshop() { + o.Workshop.Unset() +} + +// GetWorkshopId returns the WorkshopId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetWorkshopId() string { + if o == nil || IsNil(o.WorkshopId.Get()) { + var ret string + return ret + } + return *o.WorkshopId.Get() +} + +// GetWorkshopIdOk returns a tuple with the WorkshopId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetWorkshopIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkshopId.Get(), o.WorkshopId.IsSet() +} + +// HasWorkshopId returns a boolean if a field has been set. +func (o *Deployment) HasWorkshopId() bool { + if o != nil && o.WorkshopId.IsSet() { + return true + } + + return false +} + +// SetWorkshopId gets a reference to the given NullableString and assigns it to the WorkshopId field. +func (o *Deployment) SetWorkshopId(v string) { + o.WorkshopId.Set(&v) +} + +// SetWorkshopIdNil sets the value for WorkshopId to be an explicit nil +func (o *Deployment) SetWorkshopIdNil() { + o.WorkshopId.Set(nil) +} + +// UnsetWorkshopId ensures that no value is present for WorkshopId, not even an explicit nil +func (o *Deployment) UnsetWorkshopId() { + o.WorkshopId.Unset() +} + +// GetWorkshopOverridePassword returns the WorkshopOverridePassword field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Deployment) GetWorkshopOverridePassword() string { + if o == nil || IsNil(o.WorkshopOverridePassword.Get()) { + var ret string + return ret + } + return *o.WorkshopOverridePassword.Get() +} + +// GetWorkshopOverridePasswordOk returns a tuple with the WorkshopOverridePassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Deployment) GetWorkshopOverridePasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkshopOverridePassword.Get(), o.WorkshopOverridePassword.IsSet() +} + +// HasWorkshopOverridePassword returns a boolean if a field has been set. +func (o *Deployment) HasWorkshopOverridePassword() bool { + if o != nil && o.WorkshopOverridePassword.IsSet() { + return true + } + + return false +} + +// SetWorkshopOverridePassword gets a reference to the given NullableString and assigns it to the WorkshopOverridePassword field. +func (o *Deployment) SetWorkshopOverridePassword(v string) { + o.WorkshopOverridePassword.Set(&v) +} + +// SetWorkshopOverridePasswordNil sets the value for WorkshopOverridePassword to be an explicit nil +func (o *Deployment) SetWorkshopOverridePasswordNil() { + o.WorkshopOverridePassword.Set(nil) +} + +// UnsetWorkshopOverridePassword ensures that no value is present for WorkshopOverridePassword, not even an explicit nil +func (o *Deployment) UnsetWorkshopOverridePassword() { + o.WorkshopOverridePassword.Unset() +} + +func (o Deployment) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Deployment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.BastionOperatingSystem.IsSet() { + toSerialize["bastion_operating_system"] = o.BastionOperatingSystem.Get() + } + if !IsNil(o.CatalogId) { + toSerialize["catalog_id"] = o.CatalogId + } + if o.CatalogIdAlias.IsSet() { + toSerialize["catalog_id_alias"] = o.CatalogIdAlias.Get() + } + if !IsNil(o.Cluster) { + toSerialize["cluster"] = o.Cluster + } + if o.CollectionBranch.IsSet() { + toSerialize["collection_branch"] = o.CollectionBranch.Get() + } + toSerialize["created"] = o.Created + if !IsNil(o.Experience) { + toSerialize["experience"] = o.Experience + } + if o.ExperienceBranch.IsSet() { + toSerialize["experience_branch"] = o.ExperienceBranch.Get() + } + if !IsNil(o.ExperienceId) { + toSerialize["experience_id"] = o.ExperienceId + } + if o.ExpiresAt.IsSet() { + toSerialize["expires_at"] = o.ExpiresAt.Get() + } + if o.FlightcontrolRelease.IsSet() { + toSerialize["flightcontrol_release"] = o.FlightcontrolRelease.Get() + } + if o.GarageId.IsSet() { + toSerialize["garage_id"] = o.GarageId.Get() + } + if o.GcBranch.IsSet() { + toSerialize["gc_branch"] = o.GcBranch.Get() + } + if o.GpuAlias.IsSet() { + toSerialize["gpu_alias"] = o.GpuAlias.Get() + } + if o.GpuCount.IsSet() { + toSerialize["gpu_count"] = o.GpuCount.Get() + } + if o.GpuModel.IsSet() { + toSerialize["gpu_model"] = o.GpuModel.Get() + } + if !IsNil(o.GpuOsName) { + toSerialize["gpu_os_name"] = o.GpuOsName + } + if !IsNil(o.GpuOsRelease) { + toSerialize["gpu_os_release"] = o.GpuOsRelease + } + if !IsNil(o.GpuOsVersion) { + toSerialize["gpu_os_version"] = o.GpuOsVersion + } + toSerialize["id"] = o.Id + if !IsNil(o.IpAllowlist) { + toSerialize["ip_allowlist"] = o.IpAllowlist + } + if o.Lifetime.IsSet() { + toSerialize["lifetime"] = o.Lifetime.Get() + } + if o.MinGpuCount.IsSet() { + toSerialize["min_gpu_count"] = o.MinGpuCount.Get() + } + toSerialize["modified"] = o.Modified + if o.NodeCount.IsSet() { + toSerialize["node_count"] = o.NodeCount.Get() + } + if o.OemName.IsSet() { + toSerialize["oem_name"] = o.OemName.Get() + } + toSerialize["org_name"] = o.OrgName + if o.Overrides != nil { + toSerialize["overrides"] = o.Overrides + } + if o.PersistOnFailure.IsSet() { + toSerialize["persist_on_failure"] = o.PersistOnFailure.Get() + } + if !IsNil(o.Persona) { + toSerialize["persona"] = o.Persona + } + if o.Pipeline.IsSet() { + toSerialize["pipeline"] = o.Pipeline.Get() + } + if o.PipelineBranch.IsSet() { + toSerialize["pipeline_branch"] = o.PipelineBranch.Get() + } + toSerialize["pipelines"] = o.Pipelines + if o.Platform.IsSet() { + toSerialize["platform"] = o.Platform.Get() + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if o.ProviderName.IsSet() { + toSerialize["provider_name"] = o.ProviderName.Get() + } + if o.PublicKey.IsSet() { + toSerialize["public_key"] = o.PublicKey.Get() + } + if o.Region.IsSet() { + toSerialize["region"] = o.Region.Get() + } + if !IsNil(o.RequestId) { + toSerialize["request_id"] = o.RequestId + } + toSerialize["requester_email"] = o.RequesterEmail + toSerialize["requester_name"] = o.RequesterName + toSerialize["retry_count"] = o.RetryCount + if o.SalesCreatedDate.IsSet() { + toSerialize["sales_created_date"] = o.SalesCreatedDate.Get() + } + if o.SalesId.IsSet() { + toSerialize["sales_id"] = o.SalesId.Get() + } + if o.SalesOwnerEmail.IsSet() { + toSerialize["sales_owner_email"] = o.SalesOwnerEmail.Get() + } + if o.SalesOwnerName.IsSet() { + toSerialize["sales_owner_name"] = o.SalesOwnerName.Get() + } + toSerialize["services"] = o.Services + toSerialize["ssh_port"] = o.SshPort + toSerialize["ssh_user"] = o.SshUser + toSerialize["state"] = o.State + if o.Tags != nil { + toSerialize["tags"] = o.Tags + } + if o.Workshop.IsSet() { + toSerialize["workshop"] = o.Workshop.Get() + } + if o.WorkshopId.IsSet() { + toSerialize["workshop_id"] = o.WorkshopId.Get() + } + if o.WorkshopOverridePassword.IsSet() { + toSerialize["workshop_override_password"] = o.WorkshopOverridePassword.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Deployment) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "id", + "modified", + "org_name", + "overrides", + "pipelines", + "requester_email", + "requester_name", + "retry_count", + "services", + "ssh_port", + "ssh_user", + "state", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeployment := _Deployment{} + + err = json.Unmarshal(data, &varDeployment) + + if err != nil { + return err + } + + *o = Deployment(varDeployment) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "bastion_operating_system") + delete(additionalProperties, "catalog_id") + delete(additionalProperties, "catalog_id_alias") + delete(additionalProperties, "cluster") + delete(additionalProperties, "collection_branch") + delete(additionalProperties, "created") + delete(additionalProperties, "experience") + delete(additionalProperties, "experience_branch") + delete(additionalProperties, "experience_id") + delete(additionalProperties, "expires_at") + delete(additionalProperties, "flightcontrol_release") + delete(additionalProperties, "garage_id") + delete(additionalProperties, "gc_branch") + delete(additionalProperties, "gpu_alias") + delete(additionalProperties, "gpu_count") + delete(additionalProperties, "gpu_model") + delete(additionalProperties, "gpu_os_name") + delete(additionalProperties, "gpu_os_release") + delete(additionalProperties, "gpu_os_version") + delete(additionalProperties, "id") + delete(additionalProperties, "ip_allowlist") + delete(additionalProperties, "lifetime") + delete(additionalProperties, "min_gpu_count") + delete(additionalProperties, "modified") + delete(additionalProperties, "node_count") + delete(additionalProperties, "oem_name") + delete(additionalProperties, "org_name") + delete(additionalProperties, "overrides") + delete(additionalProperties, "persist_on_failure") + delete(additionalProperties, "persona") + delete(additionalProperties, "pipeline") + delete(additionalProperties, "pipeline_branch") + delete(additionalProperties, "pipelines") + delete(additionalProperties, "platform") + delete(additionalProperties, "priority") + delete(additionalProperties, "provider_name") + delete(additionalProperties, "public_key") + delete(additionalProperties, "region") + delete(additionalProperties, "request_id") + delete(additionalProperties, "requester_email") + delete(additionalProperties, "requester_name") + delete(additionalProperties, "retry_count") + delete(additionalProperties, "sales_created_date") + delete(additionalProperties, "sales_id") + delete(additionalProperties, "sales_owner_email") + delete(additionalProperties, "sales_owner_name") + delete(additionalProperties, "services") + delete(additionalProperties, "ssh_port") + delete(additionalProperties, "ssh_user") + delete(additionalProperties, "state") + delete(additionalProperties, "tags") + delete(additionalProperties, "workshop") + delete(additionalProperties, "workshop_id") + delete(additionalProperties, "workshop_override_password") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeployment struct { + value *Deployment + isSet bool +} + +func (v NullableDeployment) Get() *Deployment { + return v.value +} + +func (v *NullableDeployment) Set(val *Deployment) { + v.value = val + v.isSet = true +} + +func (v NullableDeployment) IsSet() bool { + return v.isSet +} + +func (v *NullableDeployment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeployment(val *Deployment) *NullableDeployment { + return &NullableDeployment{value: val, isSet: true} +} + +func (v NullableDeployment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeployment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_deployment_bulk_update.go b/v1/providers/launchpad/gen/launchpad/model_deployment_bulk_update.go new file mode 100644 index 0000000..2dac86c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_deployment_bulk_update.go @@ -0,0 +1,2018 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the DeploymentBulkUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeploymentBulkUpdate{} + +// DeploymentBulkUpdate struct for DeploymentBulkUpdate +type DeploymentBulkUpdate struct { + // Override bastion operating system provisioned and/or configured by Liftoff + BastionOperatingSystem NullableString `json:"bastion_operating_system"` + // The cluster where the experience has been deployed + Cluster NullableString `json:"cluster"` + // Override the Ansible collection branch initialized within the pipeline + CollectionBranch NullableString `json:"collection_branch,omitempty"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + Experience DeploymentExperience `json:"experience"` + // Override the experience branch + ExperienceBranch NullableString `json:"experience_branch,omitempty"` + ExpiresAt NullableTime `json:"expires_at,omitempty"` + // Override the image tag used for Flight Control + FlightcontrolRelease NullableString `json:"flightcontrol_release,omitempty"` + // Require a cluster with nodes in the given garage + GarageId NullableString `json:"garage_id"` + // Override the default Ground Control branch + GcBranch NullableString `json:"gc_branch,omitempty"` + // Require a cluster with the given GPU alias + GpuAlias NullableString `json:"gpu_alias"` + // Require a cluster with the given number of GPUs + GpuCount NullableInt32 `json:"gpu_count"` + // Require a cluster with the given GPU model + GpuModel NullableString `json:"gpu_model"` + // Override the GPU node operating system name + GpuOsName NullableString `json:"gpu_os_name"` + // Override the GPU node operating system release + GpuOsRelease NullableString `json:"gpu_os_release"` + // Override the GPU node operating system version + GpuOsVersion NullableString `json:"gpu_os_version"` + Id string `json:"id"` + // Host IP addresses that should be allowed to access the deployment + IpAllowlist []string `json:"ip_allowlist,omitempty"` + // Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + Lifetime NullableInt32 `json:"lifetime"` + // Require a cluster whose GPU count is greater than or equal to the given number + MinGpuCount NullableInt32 `json:"min_gpu_count"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Require a cluster with the given number of nodes + NodeCount NullableInt32 `json:"node_count"` + // Require a cluster manufactured by the given OEM name + OemName NullableString `json:"oem_name"` + // Requester's organization name + OrgName *string `json:"org_name,omitempty"` + Overrides interface{} `json:"overrides"` + // Override the default cleanup/destroy behavior when a provisioning failure occurs + PersistOnFailure NullableBool `json:"persist_on_failure,omitempty"` + // Override the defined persona in the experience + Persona NullableString `json:"persona,omitempty"` + // Override the pipeline ID that will be triggered for request fulfillment + Pipeline NullableInt64 `json:"pipeline,omitempty"` + // Override the default pipeline branch ref used when triggering a Fuselage pipeline + PipelineBranch NullableString `json:"pipeline_branch,omitempty"` + Pipelines []string `json:"pipelines"` + Platform NullablePlatformEnum `json:"platform,omitempty"` + // Priority level for the request * `p0` - p0 * `p1` - p1 * `p2` - p2 * `p3` - p3 + Priority PriorityEnum `json:"priority"` + // Require a cluster from the given provider name + ProviderName NullableString `json:"provider_name"` + // The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + PublicKey NullableString `json:"public_key"` + // Require a cluster located in the given region + Region NullableString `json:"region"` + // Trial request ID (ex: TRY-1234) + RequestId string `json:"request_id"` + // Email address of the user requesting the experience + RequesterEmail *string `json:"requester_email,omitempty"` + // Name of the user requesting the experience + RequesterName *string `json:"requester_name,omitempty"` + // Number of times the deployment has been retried + RetryCount *int32 `json:"retry_count,omitempty"` + // Timestamp when the requester's sales relationship was created + SalesCreatedDate NullableTime `json:"sales_created_date"` + // Unique identifier for the requester's sales relationship + SalesId NullableString `json:"sales_id"` + // Email address of the sales contact associated with the requester + SalesOwnerEmail NullableString `json:"sales_owner_email,omitempty"` + // Name of the sales contact associated with the requester + SalesOwnerName NullableString `json:"sales_owner_name,omitempty"` + Services []string `json:"services"` + // Current state of the deployment * `destroyed` - Deployment has been fully destroyed * `destroying` - Deployment is being destroyed * `error` - Deployment has encountered a fatal error and will not be retried * `failed` - Deployment has failed but may be retried * `paused` - Deployment is paused but may be retried later * `ready` - Deployment is ready and all instances are running * `retrying` - Deployment is retrying * `starting` - Deployment instances are starting * `stopped` - Deployment instances are stopped * `stopping` - Deployment instances are stopping * `waiting` - Waiting for deployment to be ready + State *DeploymentState `json:"state,omitempty"` + Tags interface{} `json:"tags,omitempty"` + // Require a cluster whose workshop flag is set + Workshop NullableBool `json:"workshop"` + // Require a cluster with the given workshop ID + WorkshopId NullableString `json:"workshop_id"` + // Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + WorkshopOverridePassword NullableString `json:"workshop_override_password"` + Count int32 `json:"count"` + Ids []string `json:"ids"` + Result string `json:"result"` + AdditionalProperties map[string]interface{} +} + +type _DeploymentBulkUpdate DeploymentBulkUpdate + +// NewDeploymentBulkUpdate instantiates a new DeploymentBulkUpdate 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 NewDeploymentBulkUpdate(bastionOperatingSystem NullableString, cluster NullableString, created time.Time, experience DeploymentExperience, garageId NullableString, gpuAlias NullableString, gpuCount NullableInt32, gpuModel NullableString, gpuOsName NullableString, gpuOsRelease NullableString, gpuOsVersion NullableString, id string, lifetime NullableInt32, minGpuCount NullableInt32, modified time.Time, nodeCount NullableInt32, oemName NullableString, overrides interface{}, pipelines []string, priority PriorityEnum, providerName NullableString, publicKey NullableString, region NullableString, requestId string, salesCreatedDate NullableTime, salesId NullableString, services []string, workshop NullableBool, workshopId NullableString, workshopOverridePassword NullableString, count int32, ids []string, result string) *DeploymentBulkUpdate { + this := DeploymentBulkUpdate{} + this.BastionOperatingSystem = bastionOperatingSystem + this.Cluster = cluster + this.Created = created + this.Experience = experience + this.GarageId = garageId + this.GpuAlias = gpuAlias + this.GpuCount = gpuCount + this.GpuModel = gpuModel + this.GpuOsName = gpuOsName + this.GpuOsRelease = gpuOsRelease + this.GpuOsVersion = gpuOsVersion + this.Id = id + this.Lifetime = lifetime + this.MinGpuCount = minGpuCount + this.Modified = modified + this.NodeCount = nodeCount + this.OemName = oemName + this.Overrides = overrides + this.Pipelines = pipelines + this.Priority = priority + this.ProviderName = providerName + this.PublicKey = publicKey + this.Region = region + this.RequestId = requestId + this.SalesCreatedDate = salesCreatedDate + this.SalesId = salesId + this.Services = services + this.Workshop = workshop + this.WorkshopId = workshopId + this.WorkshopOverridePassword = workshopOverridePassword + this.Count = count + this.Ids = ids + this.Result = result + return &this +} + +// NewDeploymentBulkUpdateWithDefaults instantiates a new DeploymentBulkUpdate 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 NewDeploymentBulkUpdateWithDefaults() *DeploymentBulkUpdate { + this := DeploymentBulkUpdate{} + return &this +} + +// GetBastionOperatingSystem returns the BastionOperatingSystem field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetBastionOperatingSystem() string { + if o == nil || o.BastionOperatingSystem.Get() == nil { + var ret string + return ret + } + + return *o.BastionOperatingSystem.Get() +} + +// GetBastionOperatingSystemOk returns a tuple with the BastionOperatingSystem field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetBastionOperatingSystemOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BastionOperatingSystem.Get(), o.BastionOperatingSystem.IsSet() +} + +// SetBastionOperatingSystem sets field value +func (o *DeploymentBulkUpdate) SetBastionOperatingSystem(v string) { + o.BastionOperatingSystem.Set(&v) +} + +// GetCluster returns the Cluster field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetCluster() string { + if o == nil || o.Cluster.Get() == nil { + var ret string + return ret + } + + return *o.Cluster.Get() +} + +// GetClusterOk returns a tuple with the Cluster field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetClusterOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Cluster.Get(), o.Cluster.IsSet() +} + +// SetCluster sets field value +func (o *DeploymentBulkUpdate) SetCluster(v string) { + o.Cluster.Set(&v) +} + +// GetCollectionBranch returns the CollectionBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentBulkUpdate) GetCollectionBranch() string { + if o == nil || IsNil(o.CollectionBranch.Get()) { + var ret string + return ret + } + return *o.CollectionBranch.Get() +} + +// GetCollectionBranchOk returns a tuple with the CollectionBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetCollectionBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CollectionBranch.Get(), o.CollectionBranch.IsSet() +} + +// HasCollectionBranch returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasCollectionBranch() bool { + if o != nil && o.CollectionBranch.IsSet() { + return true + } + + return false +} + +// SetCollectionBranch gets a reference to the given NullableString and assigns it to the CollectionBranch field. +func (o *DeploymentBulkUpdate) SetCollectionBranch(v string) { + o.CollectionBranch.Set(&v) +} + +// SetCollectionBranchNil sets the value for CollectionBranch to be an explicit nil +func (o *DeploymentBulkUpdate) SetCollectionBranchNil() { + o.CollectionBranch.Set(nil) +} + +// UnsetCollectionBranch ensures that no value is present for CollectionBranch, not even an explicit nil +func (o *DeploymentBulkUpdate) UnsetCollectionBranch() { + o.CollectionBranch.Unset() +} + +// GetCreated returns the Created field value +func (o *DeploymentBulkUpdate) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *DeploymentBulkUpdate) SetCreated(v time.Time) { + o.Created = v +} + +// GetExperience returns the Experience field value +func (o *DeploymentBulkUpdate) GetExperience() DeploymentExperience { + if o == nil { + var ret DeploymentExperience + return ret + } + + return o.Experience +} + +// GetExperienceOk returns a tuple with the Experience field value +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetExperienceOk() (*DeploymentExperience, bool) { + if o == nil { + return nil, false + } + return &o.Experience, true +} + +// SetExperience sets field value +func (o *DeploymentBulkUpdate) SetExperience(v DeploymentExperience) { + o.Experience = v +} + +// GetExperienceBranch returns the ExperienceBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentBulkUpdate) GetExperienceBranch() string { + if o == nil || IsNil(o.ExperienceBranch.Get()) { + var ret string + return ret + } + return *o.ExperienceBranch.Get() +} + +// GetExperienceBranchOk returns a tuple with the ExperienceBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetExperienceBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExperienceBranch.Get(), o.ExperienceBranch.IsSet() +} + +// HasExperienceBranch returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasExperienceBranch() bool { + if o != nil && o.ExperienceBranch.IsSet() { + return true + } + + return false +} + +// SetExperienceBranch gets a reference to the given NullableString and assigns it to the ExperienceBranch field. +func (o *DeploymentBulkUpdate) SetExperienceBranch(v string) { + o.ExperienceBranch.Set(&v) +} + +// SetExperienceBranchNil sets the value for ExperienceBranch to be an explicit nil +func (o *DeploymentBulkUpdate) SetExperienceBranchNil() { + o.ExperienceBranch.Set(nil) +} + +// UnsetExperienceBranch ensures that no value is present for ExperienceBranch, not even an explicit nil +func (o *DeploymentBulkUpdate) UnsetExperienceBranch() { + o.ExperienceBranch.Unset() +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentBulkUpdate) GetExpiresAt() time.Time { + if o == nil || IsNil(o.ExpiresAt.Get()) { + var ret time.Time + return ret + } + return *o.ExpiresAt.Get() +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetExpiresAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpiresAt.Get(), o.ExpiresAt.IsSet() +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasExpiresAt() bool { + if o != nil && o.ExpiresAt.IsSet() { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given NullableTime and assigns it to the ExpiresAt field. +func (o *DeploymentBulkUpdate) SetExpiresAt(v time.Time) { + o.ExpiresAt.Set(&v) +} + +// SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil +func (o *DeploymentBulkUpdate) SetExpiresAtNil() { + o.ExpiresAt.Set(nil) +} + +// UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +func (o *DeploymentBulkUpdate) UnsetExpiresAt() { + o.ExpiresAt.Unset() +} + +// GetFlightcontrolRelease returns the FlightcontrolRelease field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentBulkUpdate) GetFlightcontrolRelease() string { + if o == nil || IsNil(o.FlightcontrolRelease.Get()) { + var ret string + return ret + } + return *o.FlightcontrolRelease.Get() +} + +// GetFlightcontrolReleaseOk returns a tuple with the FlightcontrolRelease field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetFlightcontrolReleaseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FlightcontrolRelease.Get(), o.FlightcontrolRelease.IsSet() +} + +// HasFlightcontrolRelease returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasFlightcontrolRelease() bool { + if o != nil && o.FlightcontrolRelease.IsSet() { + return true + } + + return false +} + +// SetFlightcontrolRelease gets a reference to the given NullableString and assigns it to the FlightcontrolRelease field. +func (o *DeploymentBulkUpdate) SetFlightcontrolRelease(v string) { + o.FlightcontrolRelease.Set(&v) +} + +// SetFlightcontrolReleaseNil sets the value for FlightcontrolRelease to be an explicit nil +func (o *DeploymentBulkUpdate) SetFlightcontrolReleaseNil() { + o.FlightcontrolRelease.Set(nil) +} + +// UnsetFlightcontrolRelease ensures that no value is present for FlightcontrolRelease, not even an explicit nil +func (o *DeploymentBulkUpdate) UnsetFlightcontrolRelease() { + o.FlightcontrolRelease.Unset() +} + +// GetGarageId returns the GarageId field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetGarageId() string { + if o == nil || o.GarageId.Get() == nil { + var ret string + return ret + } + + return *o.GarageId.Get() +} + +// GetGarageIdOk returns a tuple with the GarageId field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetGarageIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GarageId.Get(), o.GarageId.IsSet() +} + +// SetGarageId sets field value +func (o *DeploymentBulkUpdate) SetGarageId(v string) { + o.GarageId.Set(&v) +} + +// GetGcBranch returns the GcBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentBulkUpdate) GetGcBranch() string { + if o == nil || IsNil(o.GcBranch.Get()) { + var ret string + return ret + } + return *o.GcBranch.Get() +} + +// GetGcBranchOk returns a tuple with the GcBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetGcBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GcBranch.Get(), o.GcBranch.IsSet() +} + +// HasGcBranch returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasGcBranch() bool { + if o != nil && o.GcBranch.IsSet() { + return true + } + + return false +} + +// SetGcBranch gets a reference to the given NullableString and assigns it to the GcBranch field. +func (o *DeploymentBulkUpdate) SetGcBranch(v string) { + o.GcBranch.Set(&v) +} + +// SetGcBranchNil sets the value for GcBranch to be an explicit nil +func (o *DeploymentBulkUpdate) SetGcBranchNil() { + o.GcBranch.Set(nil) +} + +// UnsetGcBranch ensures that no value is present for GcBranch, not even an explicit nil +func (o *DeploymentBulkUpdate) UnsetGcBranch() { + o.GcBranch.Unset() +} + +// GetGpuAlias returns the GpuAlias field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetGpuAlias() string { + if o == nil || o.GpuAlias.Get() == nil { + var ret string + return ret + } + + return *o.GpuAlias.Get() +} + +// GetGpuAliasOk returns a tuple with the GpuAlias field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetGpuAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuAlias.Get(), o.GpuAlias.IsSet() +} + +// SetGpuAlias sets field value +func (o *DeploymentBulkUpdate) SetGpuAlias(v string) { + o.GpuAlias.Set(&v) +} + +// GetGpuCount returns the GpuCount field value +// If the value is explicit nil, the zero value for int32 will be returned +func (o *DeploymentBulkUpdate) GetGpuCount() int32 { + if o == nil || o.GpuCount.Get() == nil { + var ret int32 + return ret + } + + return *o.GpuCount.Get() +} + +// GetGpuCountOk returns a tuple with the GpuCount field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetGpuCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.GpuCount.Get(), o.GpuCount.IsSet() +} + +// SetGpuCount sets field value +func (o *DeploymentBulkUpdate) SetGpuCount(v int32) { + o.GpuCount.Set(&v) +} + +// GetGpuModel returns the GpuModel field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetGpuModel() string { + if o == nil || o.GpuModel.Get() == nil { + var ret string + return ret + } + + return *o.GpuModel.Get() +} + +// GetGpuModelOk returns a tuple with the GpuModel field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetGpuModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuModel.Get(), o.GpuModel.IsSet() +} + +// SetGpuModel sets field value +func (o *DeploymentBulkUpdate) SetGpuModel(v string) { + o.GpuModel.Set(&v) +} + +// GetGpuOsName returns the GpuOsName field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetGpuOsName() string { + if o == nil || o.GpuOsName.Get() == nil { + var ret string + return ret + } + + return *o.GpuOsName.Get() +} + +// GetGpuOsNameOk returns a tuple with the GpuOsName field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetGpuOsNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuOsName.Get(), o.GpuOsName.IsSet() +} + +// SetGpuOsName sets field value +func (o *DeploymentBulkUpdate) SetGpuOsName(v string) { + o.GpuOsName.Set(&v) +} + +// GetGpuOsRelease returns the GpuOsRelease field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetGpuOsRelease() string { + if o == nil || o.GpuOsRelease.Get() == nil { + var ret string + return ret + } + + return *o.GpuOsRelease.Get() +} + +// GetGpuOsReleaseOk returns a tuple with the GpuOsRelease field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetGpuOsReleaseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuOsRelease.Get(), o.GpuOsRelease.IsSet() +} + +// SetGpuOsRelease sets field value +func (o *DeploymentBulkUpdate) SetGpuOsRelease(v string) { + o.GpuOsRelease.Set(&v) +} + +// GetGpuOsVersion returns the GpuOsVersion field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetGpuOsVersion() string { + if o == nil || o.GpuOsVersion.Get() == nil { + var ret string + return ret + } + + return *o.GpuOsVersion.Get() +} + +// GetGpuOsVersionOk returns a tuple with the GpuOsVersion field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetGpuOsVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuOsVersion.Get(), o.GpuOsVersion.IsSet() +} + +// SetGpuOsVersion sets field value +func (o *DeploymentBulkUpdate) SetGpuOsVersion(v string) { + o.GpuOsVersion.Set(&v) +} + +// GetId returns the Id field value +func (o *DeploymentBulkUpdate) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *DeploymentBulkUpdate) SetId(v string) { + o.Id = v +} + +// GetIpAllowlist returns the IpAllowlist field value if set, zero value otherwise. +func (o *DeploymentBulkUpdate) GetIpAllowlist() []string { + if o == nil || IsNil(o.IpAllowlist) { + var ret []string + return ret + } + return o.IpAllowlist +} + +// GetIpAllowlistOk returns a tuple with the IpAllowlist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetIpAllowlistOk() ([]string, bool) { + if o == nil || IsNil(o.IpAllowlist) { + return nil, false + } + return o.IpAllowlist, true +} + +// HasIpAllowlist returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasIpAllowlist() bool { + if o != nil && !IsNil(o.IpAllowlist) { + return true + } + + return false +} + +// SetIpAllowlist gets a reference to the given []string and assigns it to the IpAllowlist field. +func (o *DeploymentBulkUpdate) SetIpAllowlist(v []string) { + o.IpAllowlist = v +} + +// GetLifetime returns the Lifetime field value +// If the value is explicit nil, the zero value for int32 will be returned +func (o *DeploymentBulkUpdate) GetLifetime() int32 { + if o == nil || o.Lifetime.Get() == nil { + var ret int32 + return ret + } + + return *o.Lifetime.Get() +} + +// GetLifetimeOk returns a tuple with the Lifetime field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetLifetimeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Lifetime.Get(), o.Lifetime.IsSet() +} + +// SetLifetime sets field value +func (o *DeploymentBulkUpdate) SetLifetime(v int32) { + o.Lifetime.Set(&v) +} + +// GetMinGpuCount returns the MinGpuCount field value +// If the value is explicit nil, the zero value for int32 will be returned +func (o *DeploymentBulkUpdate) GetMinGpuCount() int32 { + if o == nil || o.MinGpuCount.Get() == nil { + var ret int32 + return ret + } + + return *o.MinGpuCount.Get() +} + +// GetMinGpuCountOk returns a tuple with the MinGpuCount field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetMinGpuCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MinGpuCount.Get(), o.MinGpuCount.IsSet() +} + +// SetMinGpuCount sets field value +func (o *DeploymentBulkUpdate) SetMinGpuCount(v int32) { + o.MinGpuCount.Set(&v) +} + +// GetModified returns the Modified field value +func (o *DeploymentBulkUpdate) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *DeploymentBulkUpdate) SetModified(v time.Time) { + o.Modified = v +} + +// GetNodeCount returns the NodeCount field value +// If the value is explicit nil, the zero value for int32 will be returned +func (o *DeploymentBulkUpdate) GetNodeCount() int32 { + if o == nil || o.NodeCount.Get() == nil { + var ret int32 + return ret + } + + return *o.NodeCount.Get() +} + +// GetNodeCountOk returns a tuple with the NodeCount field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetNodeCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.NodeCount.Get(), o.NodeCount.IsSet() +} + +// SetNodeCount sets field value +func (o *DeploymentBulkUpdate) SetNodeCount(v int32) { + o.NodeCount.Set(&v) +} + +// GetOemName returns the OemName field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetOemName() string { + if o == nil || o.OemName.Get() == nil { + var ret string + return ret + } + + return *o.OemName.Get() +} + +// GetOemNameOk returns a tuple with the OemName field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetOemNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.OemName.Get(), o.OemName.IsSet() +} + +// SetOemName sets field value +func (o *DeploymentBulkUpdate) SetOemName(v string) { + o.OemName.Set(&v) +} + +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *DeploymentBulkUpdate) GetOrgName() string { + if o == nil || IsNil(o.OrgName) { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetOrgNameOk() (*string, bool) { + if o == nil || IsNil(o.OrgName) { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasOrgName() bool { + if o != nil && !IsNil(o.OrgName) { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *DeploymentBulkUpdate) SetOrgName(v string) { + o.OrgName = &v +} + +// GetOverrides returns the Overrides field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *DeploymentBulkUpdate) GetOverrides() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Overrides +} + +// GetOverridesOk returns a tuple with the Overrides field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetOverridesOk() (*interface{}, bool) { + if o == nil || IsNil(o.Overrides) { + return nil, false + } + return &o.Overrides, true +} + +// SetOverrides sets field value +func (o *DeploymentBulkUpdate) SetOverrides(v interface{}) { + o.Overrides = v +} + +// GetPersistOnFailure returns the PersistOnFailure field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentBulkUpdate) GetPersistOnFailure() bool { + if o == nil || IsNil(o.PersistOnFailure.Get()) { + var ret bool + return ret + } + return *o.PersistOnFailure.Get() +} + +// GetPersistOnFailureOk returns a tuple with the PersistOnFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetPersistOnFailureOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.PersistOnFailure.Get(), o.PersistOnFailure.IsSet() +} + +// HasPersistOnFailure returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasPersistOnFailure() bool { + if o != nil && o.PersistOnFailure.IsSet() { + return true + } + + return false +} + +// SetPersistOnFailure gets a reference to the given NullableBool and assigns it to the PersistOnFailure field. +func (o *DeploymentBulkUpdate) SetPersistOnFailure(v bool) { + o.PersistOnFailure.Set(&v) +} + +// SetPersistOnFailureNil sets the value for PersistOnFailure to be an explicit nil +func (o *DeploymentBulkUpdate) SetPersistOnFailureNil() { + o.PersistOnFailure.Set(nil) +} + +// UnsetPersistOnFailure ensures that no value is present for PersistOnFailure, not even an explicit nil +func (o *DeploymentBulkUpdate) UnsetPersistOnFailure() { + o.PersistOnFailure.Unset() +} + +// GetPersona returns the Persona field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentBulkUpdate) GetPersona() string { + if o == nil || IsNil(o.Persona.Get()) { + var ret string + return ret + } + return *o.Persona.Get() +} + +// GetPersonaOk returns a tuple with the Persona field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetPersonaOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Persona.Get(), o.Persona.IsSet() +} + +// HasPersona returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasPersona() bool { + if o != nil && o.Persona.IsSet() { + return true + } + + return false +} + +// SetPersona gets a reference to the given NullableString and assigns it to the Persona field. +func (o *DeploymentBulkUpdate) SetPersona(v string) { + o.Persona.Set(&v) +} + +// SetPersonaNil sets the value for Persona to be an explicit nil +func (o *DeploymentBulkUpdate) SetPersonaNil() { + o.Persona.Set(nil) +} + +// UnsetPersona ensures that no value is present for Persona, not even an explicit nil +func (o *DeploymentBulkUpdate) UnsetPersona() { + o.Persona.Unset() +} + +// GetPipeline returns the Pipeline field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentBulkUpdate) GetPipeline() int64 { + if o == nil || IsNil(o.Pipeline.Get()) { + var ret int64 + return ret + } + return *o.Pipeline.Get() +} + +// GetPipelineOk returns a tuple with the Pipeline field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetPipelineOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.Pipeline.Get(), o.Pipeline.IsSet() +} + +// HasPipeline returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasPipeline() bool { + if o != nil && o.Pipeline.IsSet() { + return true + } + + return false +} + +// SetPipeline gets a reference to the given NullableInt64 and assigns it to the Pipeline field. +func (o *DeploymentBulkUpdate) SetPipeline(v int64) { + o.Pipeline.Set(&v) +} + +// SetPipelineNil sets the value for Pipeline to be an explicit nil +func (o *DeploymentBulkUpdate) SetPipelineNil() { + o.Pipeline.Set(nil) +} + +// UnsetPipeline ensures that no value is present for Pipeline, not even an explicit nil +func (o *DeploymentBulkUpdate) UnsetPipeline() { + o.Pipeline.Unset() +} + +// GetPipelineBranch returns the PipelineBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentBulkUpdate) GetPipelineBranch() string { + if o == nil || IsNil(o.PipelineBranch.Get()) { + var ret string + return ret + } + return *o.PipelineBranch.Get() +} + +// GetPipelineBranchOk returns a tuple with the PipelineBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetPipelineBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PipelineBranch.Get(), o.PipelineBranch.IsSet() +} + +// HasPipelineBranch returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasPipelineBranch() bool { + if o != nil && o.PipelineBranch.IsSet() { + return true + } + + return false +} + +// SetPipelineBranch gets a reference to the given NullableString and assigns it to the PipelineBranch field. +func (o *DeploymentBulkUpdate) SetPipelineBranch(v string) { + o.PipelineBranch.Set(&v) +} + +// SetPipelineBranchNil sets the value for PipelineBranch to be an explicit nil +func (o *DeploymentBulkUpdate) SetPipelineBranchNil() { + o.PipelineBranch.Set(nil) +} + +// UnsetPipelineBranch ensures that no value is present for PipelineBranch, not even an explicit nil +func (o *DeploymentBulkUpdate) UnsetPipelineBranch() { + o.PipelineBranch.Unset() +} + +// GetPipelines returns the Pipelines field value +func (o *DeploymentBulkUpdate) GetPipelines() []string { + if o == nil { + var ret []string + return ret + } + + return o.Pipelines +} + +// GetPipelinesOk returns a tuple with the Pipelines field value +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetPipelinesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Pipelines, true +} + +// SetPipelines sets field value +func (o *DeploymentBulkUpdate) SetPipelines(v []string) { + o.Pipelines = v +} + +// GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentBulkUpdate) GetPlatform() PlatformEnum { + if o == nil || IsNil(o.Platform.Get()) { + var ret PlatformEnum + return ret + } + return *o.Platform.Get() +} + +// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetPlatformOk() (*PlatformEnum, bool) { + if o == nil { + return nil, false + } + return o.Platform.Get(), o.Platform.IsSet() +} + +// HasPlatform returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasPlatform() bool { + if o != nil && o.Platform.IsSet() { + return true + } + + return false +} + +// SetPlatform gets a reference to the given NullablePlatformEnum and assigns it to the Platform field. +func (o *DeploymentBulkUpdate) SetPlatform(v PlatformEnum) { + o.Platform.Set(&v) +} + +// SetPlatformNil sets the value for Platform to be an explicit nil +func (o *DeploymentBulkUpdate) SetPlatformNil() { + o.Platform.Set(nil) +} + +// UnsetPlatform ensures that no value is present for Platform, not even an explicit nil +func (o *DeploymentBulkUpdate) UnsetPlatform() { + o.Platform.Unset() +} + +// GetPriority returns the Priority field value +func (o *DeploymentBulkUpdate) GetPriority() PriorityEnum { + if o == nil { + var ret PriorityEnum + return ret + } + + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetPriorityOk() (*PriorityEnum, bool) { + if o == nil { + return nil, false + } + return &o.Priority, true +} + +// SetPriority sets field value +func (o *DeploymentBulkUpdate) SetPriority(v PriorityEnum) { + o.Priority = v +} + +// GetProviderName returns the ProviderName field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetProviderName() string { + if o == nil || o.ProviderName.Get() == nil { + var ret string + return ret + } + + return *o.ProviderName.Get() +} + +// GetProviderNameOk returns a tuple with the ProviderName field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetProviderNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ProviderName.Get(), o.ProviderName.IsSet() +} + +// SetProviderName sets field value +func (o *DeploymentBulkUpdate) SetProviderName(v string) { + o.ProviderName.Set(&v) +} + +// GetPublicKey returns the PublicKey field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetPublicKey() string { + if o == nil || o.PublicKey.Get() == nil { + var ret string + return ret + } + + return *o.PublicKey.Get() +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PublicKey.Get(), o.PublicKey.IsSet() +} + +// SetPublicKey sets field value +func (o *DeploymentBulkUpdate) SetPublicKey(v string) { + o.PublicKey.Set(&v) +} + +// GetRegion returns the Region field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetRegion() string { + if o == nil || o.Region.Get() == nil { + var ret string + return ret + } + + return *o.Region.Get() +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Region.Get(), o.Region.IsSet() +} + +// SetRegion sets field value +func (o *DeploymentBulkUpdate) SetRegion(v string) { + o.Region.Set(&v) +} + +// GetRequestId returns the RequestId field value +func (o *DeploymentBulkUpdate) GetRequestId() string { + if o == nil { + var ret string + return ret + } + + return o.RequestId +} + +// GetRequestIdOk returns a tuple with the RequestId field value +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetRequestIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RequestId, true +} + +// SetRequestId sets field value +func (o *DeploymentBulkUpdate) SetRequestId(v string) { + o.RequestId = v +} + +// GetRequesterEmail returns the RequesterEmail field value if set, zero value otherwise. +func (o *DeploymentBulkUpdate) GetRequesterEmail() string { + if o == nil || IsNil(o.RequesterEmail) { + var ret string + return ret + } + return *o.RequesterEmail +} + +// GetRequesterEmailOk returns a tuple with the RequesterEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetRequesterEmailOk() (*string, bool) { + if o == nil || IsNil(o.RequesterEmail) { + return nil, false + } + return o.RequesterEmail, true +} + +// HasRequesterEmail returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasRequesterEmail() bool { + if o != nil && !IsNil(o.RequesterEmail) { + return true + } + + return false +} + +// SetRequesterEmail gets a reference to the given string and assigns it to the RequesterEmail field. +func (o *DeploymentBulkUpdate) SetRequesterEmail(v string) { + o.RequesterEmail = &v +} + +// GetRequesterName returns the RequesterName field value if set, zero value otherwise. +func (o *DeploymentBulkUpdate) GetRequesterName() string { + if o == nil || IsNil(o.RequesterName) { + var ret string + return ret + } + return *o.RequesterName +} + +// GetRequesterNameOk returns a tuple with the RequesterName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetRequesterNameOk() (*string, bool) { + if o == nil || IsNil(o.RequesterName) { + return nil, false + } + return o.RequesterName, true +} + +// HasRequesterName returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasRequesterName() bool { + if o != nil && !IsNil(o.RequesterName) { + return true + } + + return false +} + +// SetRequesterName gets a reference to the given string and assigns it to the RequesterName field. +func (o *DeploymentBulkUpdate) SetRequesterName(v string) { + o.RequesterName = &v +} + +// GetRetryCount returns the RetryCount field value if set, zero value otherwise. +func (o *DeploymentBulkUpdate) GetRetryCount() int32 { + if o == nil || IsNil(o.RetryCount) { + var ret int32 + return ret + } + return *o.RetryCount +} + +// GetRetryCountOk returns a tuple with the RetryCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetRetryCountOk() (*int32, bool) { + if o == nil || IsNil(o.RetryCount) { + return nil, false + } + return o.RetryCount, true +} + +// HasRetryCount returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasRetryCount() bool { + if o != nil && !IsNil(o.RetryCount) { + return true + } + + return false +} + +// SetRetryCount gets a reference to the given int32 and assigns it to the RetryCount field. +func (o *DeploymentBulkUpdate) SetRetryCount(v int32) { + o.RetryCount = &v +} + +// GetSalesCreatedDate returns the SalesCreatedDate field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeploymentBulkUpdate) GetSalesCreatedDate() time.Time { + if o == nil || o.SalesCreatedDate.Get() == nil { + var ret time.Time + return ret + } + + return *o.SalesCreatedDate.Get() +} + +// GetSalesCreatedDateOk returns a tuple with the SalesCreatedDate field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetSalesCreatedDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SalesCreatedDate.Get(), o.SalesCreatedDate.IsSet() +} + +// SetSalesCreatedDate sets field value +func (o *DeploymentBulkUpdate) SetSalesCreatedDate(v time.Time) { + o.SalesCreatedDate.Set(&v) +} + +// GetSalesId returns the SalesId field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetSalesId() string { + if o == nil || o.SalesId.Get() == nil { + var ret string + return ret + } + + return *o.SalesId.Get() +} + +// GetSalesIdOk returns a tuple with the SalesId field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetSalesIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SalesId.Get(), o.SalesId.IsSet() +} + +// SetSalesId sets field value +func (o *DeploymentBulkUpdate) SetSalesId(v string) { + o.SalesId.Set(&v) +} + +// GetSalesOwnerEmail returns the SalesOwnerEmail field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentBulkUpdate) GetSalesOwnerEmail() string { + if o == nil || IsNil(o.SalesOwnerEmail.Get()) { + var ret string + return ret + } + return *o.SalesOwnerEmail.Get() +} + +// GetSalesOwnerEmailOk returns a tuple with the SalesOwnerEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetSalesOwnerEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SalesOwnerEmail.Get(), o.SalesOwnerEmail.IsSet() +} + +// HasSalesOwnerEmail returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasSalesOwnerEmail() bool { + if o != nil && o.SalesOwnerEmail.IsSet() { + return true + } + + return false +} + +// SetSalesOwnerEmail gets a reference to the given NullableString and assigns it to the SalesOwnerEmail field. +func (o *DeploymentBulkUpdate) SetSalesOwnerEmail(v string) { + o.SalesOwnerEmail.Set(&v) +} + +// SetSalesOwnerEmailNil sets the value for SalesOwnerEmail to be an explicit nil +func (o *DeploymentBulkUpdate) SetSalesOwnerEmailNil() { + o.SalesOwnerEmail.Set(nil) +} + +// UnsetSalesOwnerEmail ensures that no value is present for SalesOwnerEmail, not even an explicit nil +func (o *DeploymentBulkUpdate) UnsetSalesOwnerEmail() { + o.SalesOwnerEmail.Unset() +} + +// GetSalesOwnerName returns the SalesOwnerName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentBulkUpdate) GetSalesOwnerName() string { + if o == nil || IsNil(o.SalesOwnerName.Get()) { + var ret string + return ret + } + return *o.SalesOwnerName.Get() +} + +// GetSalesOwnerNameOk returns a tuple with the SalesOwnerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetSalesOwnerNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SalesOwnerName.Get(), o.SalesOwnerName.IsSet() +} + +// HasSalesOwnerName returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasSalesOwnerName() bool { + if o != nil && o.SalesOwnerName.IsSet() { + return true + } + + return false +} + +// SetSalesOwnerName gets a reference to the given NullableString and assigns it to the SalesOwnerName field. +func (o *DeploymentBulkUpdate) SetSalesOwnerName(v string) { + o.SalesOwnerName.Set(&v) +} + +// SetSalesOwnerNameNil sets the value for SalesOwnerName to be an explicit nil +func (o *DeploymentBulkUpdate) SetSalesOwnerNameNil() { + o.SalesOwnerName.Set(nil) +} + +// UnsetSalesOwnerName ensures that no value is present for SalesOwnerName, not even an explicit nil +func (o *DeploymentBulkUpdate) UnsetSalesOwnerName() { + o.SalesOwnerName.Unset() +} + +// GetServices returns the Services field value +func (o *DeploymentBulkUpdate) GetServices() []string { + if o == nil { + var ret []string + return ret + } + + return o.Services +} + +// GetServicesOk returns a tuple with the Services field value +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetServicesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Services, true +} + +// SetServices sets field value +func (o *DeploymentBulkUpdate) SetServices(v []string) { + o.Services = v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *DeploymentBulkUpdate) GetState() DeploymentState { + if o == nil || IsNil(o.State) { + var ret DeploymentState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetStateOk() (*DeploymentState, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given DeploymentState and assigns it to the State field. +func (o *DeploymentBulkUpdate) SetState(v DeploymentState) { + o.State = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentBulkUpdate) GetTags() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetTagsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return &o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *DeploymentBulkUpdate) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given interface{} and assigns it to the Tags field. +func (o *DeploymentBulkUpdate) SetTags(v interface{}) { + o.Tags = v +} + +// GetWorkshop returns the Workshop field value +// If the value is explicit nil, the zero value for bool will be returned +func (o *DeploymentBulkUpdate) GetWorkshop() bool { + if o == nil || o.Workshop.Get() == nil { + var ret bool + return ret + } + + return *o.Workshop.Get() +} + +// GetWorkshopOk returns a tuple with the Workshop field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetWorkshopOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Workshop.Get(), o.Workshop.IsSet() +} + +// SetWorkshop sets field value +func (o *DeploymentBulkUpdate) SetWorkshop(v bool) { + o.Workshop.Set(&v) +} + +// GetWorkshopId returns the WorkshopId field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetWorkshopId() string { + if o == nil || o.WorkshopId.Get() == nil { + var ret string + return ret + } + + return *o.WorkshopId.Get() +} + +// GetWorkshopIdOk returns a tuple with the WorkshopId field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetWorkshopIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkshopId.Get(), o.WorkshopId.IsSet() +} + +// SetWorkshopId sets field value +func (o *DeploymentBulkUpdate) SetWorkshopId(v string) { + o.WorkshopId.Set(&v) +} + +// GetWorkshopOverridePassword returns the WorkshopOverridePassword field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentBulkUpdate) GetWorkshopOverridePassword() string { + if o == nil || o.WorkshopOverridePassword.Get() == nil { + var ret string + return ret + } + + return *o.WorkshopOverridePassword.Get() +} + +// GetWorkshopOverridePasswordOk returns a tuple with the WorkshopOverridePassword field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentBulkUpdate) GetWorkshopOverridePasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkshopOverridePassword.Get(), o.WorkshopOverridePassword.IsSet() +} + +// SetWorkshopOverridePassword sets field value +func (o *DeploymentBulkUpdate) SetWorkshopOverridePassword(v string) { + o.WorkshopOverridePassword.Set(&v) +} + +// GetCount returns the Count field value +func (o *DeploymentBulkUpdate) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *DeploymentBulkUpdate) SetCount(v int32) { + o.Count = v +} + +// GetIds returns the Ids field value +func (o *DeploymentBulkUpdate) GetIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ids +} + +// GetIdsOk returns a tuple with the Ids field value +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ids, true +} + +// SetIds sets field value +func (o *DeploymentBulkUpdate) SetIds(v []string) { + o.Ids = v +} + +// GetResult returns the Result field value +func (o *DeploymentBulkUpdate) GetResult() string { + if o == nil { + var ret string + return ret + } + + return o.Result +} + +// GetResultOk returns a tuple with the Result field value +// and a boolean to check if the value has been set. +func (o *DeploymentBulkUpdate) GetResultOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Result, true +} + +// SetResult sets field value +func (o *DeploymentBulkUpdate) SetResult(v string) { + o.Result = v +} + +func (o DeploymentBulkUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeploymentBulkUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["bastion_operating_system"] = o.BastionOperatingSystem.Get() + toSerialize["cluster"] = o.Cluster.Get() + if o.CollectionBranch.IsSet() { + toSerialize["collection_branch"] = o.CollectionBranch.Get() + } + toSerialize["created"] = o.Created + toSerialize["experience"] = o.Experience + if o.ExperienceBranch.IsSet() { + toSerialize["experience_branch"] = o.ExperienceBranch.Get() + } + if o.ExpiresAt.IsSet() { + toSerialize["expires_at"] = o.ExpiresAt.Get() + } + if o.FlightcontrolRelease.IsSet() { + toSerialize["flightcontrol_release"] = o.FlightcontrolRelease.Get() + } + toSerialize["garage_id"] = o.GarageId.Get() + if o.GcBranch.IsSet() { + toSerialize["gc_branch"] = o.GcBranch.Get() + } + toSerialize["gpu_alias"] = o.GpuAlias.Get() + toSerialize["gpu_count"] = o.GpuCount.Get() + toSerialize["gpu_model"] = o.GpuModel.Get() + toSerialize["gpu_os_name"] = o.GpuOsName.Get() + toSerialize["gpu_os_release"] = o.GpuOsRelease.Get() + toSerialize["gpu_os_version"] = o.GpuOsVersion.Get() + toSerialize["id"] = o.Id + if !IsNil(o.IpAllowlist) { + toSerialize["ip_allowlist"] = o.IpAllowlist + } + toSerialize["lifetime"] = o.Lifetime.Get() + toSerialize["min_gpu_count"] = o.MinGpuCount.Get() + toSerialize["modified"] = o.Modified + toSerialize["node_count"] = o.NodeCount.Get() + toSerialize["oem_name"] = o.OemName.Get() + if !IsNil(o.OrgName) { + toSerialize["org_name"] = o.OrgName + } + if o.Overrides != nil { + toSerialize["overrides"] = o.Overrides + } + if o.PersistOnFailure.IsSet() { + toSerialize["persist_on_failure"] = o.PersistOnFailure.Get() + } + if o.Persona.IsSet() { + toSerialize["persona"] = o.Persona.Get() + } + if o.Pipeline.IsSet() { + toSerialize["pipeline"] = o.Pipeline.Get() + } + if o.PipelineBranch.IsSet() { + toSerialize["pipeline_branch"] = o.PipelineBranch.Get() + } + toSerialize["pipelines"] = o.Pipelines + if o.Platform.IsSet() { + toSerialize["platform"] = o.Platform.Get() + } + toSerialize["priority"] = o.Priority + toSerialize["provider_name"] = o.ProviderName.Get() + toSerialize["public_key"] = o.PublicKey.Get() + toSerialize["region"] = o.Region.Get() + toSerialize["request_id"] = o.RequestId + if !IsNil(o.RequesterEmail) { + toSerialize["requester_email"] = o.RequesterEmail + } + if !IsNil(o.RequesterName) { + toSerialize["requester_name"] = o.RequesterName + } + if !IsNil(o.RetryCount) { + toSerialize["retry_count"] = o.RetryCount + } + toSerialize["sales_created_date"] = o.SalesCreatedDate.Get() + toSerialize["sales_id"] = o.SalesId.Get() + if o.SalesOwnerEmail.IsSet() { + toSerialize["sales_owner_email"] = o.SalesOwnerEmail.Get() + } + if o.SalesOwnerName.IsSet() { + toSerialize["sales_owner_name"] = o.SalesOwnerName.Get() + } + toSerialize["services"] = o.Services + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if o.Tags != nil { + toSerialize["tags"] = o.Tags + } + toSerialize["workshop"] = o.Workshop.Get() + toSerialize["workshop_id"] = o.WorkshopId.Get() + toSerialize["workshop_override_password"] = o.WorkshopOverridePassword.Get() + toSerialize["count"] = o.Count + toSerialize["ids"] = o.Ids + toSerialize["result"] = o.Result + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeploymentBulkUpdate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "bastion_operating_system", + "cluster", + "created", + "experience", + "garage_id", + "gpu_alias", + "gpu_count", + "gpu_model", + "gpu_os_name", + "gpu_os_release", + "gpu_os_version", + "id", + "lifetime", + "min_gpu_count", + "modified", + "node_count", + "oem_name", + "overrides", + "pipelines", + "priority", + "provider_name", + "public_key", + "region", + "request_id", + "sales_created_date", + "sales_id", + "services", + "workshop", + "workshop_id", + "workshop_override_password", + "count", + "ids", + "result", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeploymentBulkUpdate := _DeploymentBulkUpdate{} + + err = json.Unmarshal(data, &varDeploymentBulkUpdate) + + if err != nil { + return err + } + + *o = DeploymentBulkUpdate(varDeploymentBulkUpdate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "bastion_operating_system") + delete(additionalProperties, "cluster") + delete(additionalProperties, "collection_branch") + delete(additionalProperties, "created") + delete(additionalProperties, "experience") + delete(additionalProperties, "experience_branch") + delete(additionalProperties, "expires_at") + delete(additionalProperties, "flightcontrol_release") + delete(additionalProperties, "garage_id") + delete(additionalProperties, "gc_branch") + delete(additionalProperties, "gpu_alias") + delete(additionalProperties, "gpu_count") + delete(additionalProperties, "gpu_model") + delete(additionalProperties, "gpu_os_name") + delete(additionalProperties, "gpu_os_release") + delete(additionalProperties, "gpu_os_version") + delete(additionalProperties, "id") + delete(additionalProperties, "ip_allowlist") + delete(additionalProperties, "lifetime") + delete(additionalProperties, "min_gpu_count") + delete(additionalProperties, "modified") + delete(additionalProperties, "node_count") + delete(additionalProperties, "oem_name") + delete(additionalProperties, "org_name") + delete(additionalProperties, "overrides") + delete(additionalProperties, "persist_on_failure") + delete(additionalProperties, "persona") + delete(additionalProperties, "pipeline") + delete(additionalProperties, "pipeline_branch") + delete(additionalProperties, "pipelines") + delete(additionalProperties, "platform") + delete(additionalProperties, "priority") + delete(additionalProperties, "provider_name") + delete(additionalProperties, "public_key") + delete(additionalProperties, "region") + delete(additionalProperties, "request_id") + delete(additionalProperties, "requester_email") + delete(additionalProperties, "requester_name") + delete(additionalProperties, "retry_count") + delete(additionalProperties, "sales_created_date") + delete(additionalProperties, "sales_id") + delete(additionalProperties, "sales_owner_email") + delete(additionalProperties, "sales_owner_name") + delete(additionalProperties, "services") + delete(additionalProperties, "state") + delete(additionalProperties, "tags") + delete(additionalProperties, "workshop") + delete(additionalProperties, "workshop_id") + delete(additionalProperties, "workshop_override_password") + delete(additionalProperties, "count") + delete(additionalProperties, "ids") + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeploymentBulkUpdate struct { + value *DeploymentBulkUpdate + isSet bool +} + +func (v NullableDeploymentBulkUpdate) Get() *DeploymentBulkUpdate { + return v.value +} + +func (v *NullableDeploymentBulkUpdate) Set(val *DeploymentBulkUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentBulkUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentBulkUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentBulkUpdate(val *DeploymentBulkUpdate) *NullableDeploymentBulkUpdate { + return &NullableDeploymentBulkUpdate{value: val, isSet: true} +} + +func (v NullableDeploymentBulkUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentBulkUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_deployment_cluster.go b/v1/providers/launchpad/gen/launchpad/model_deployment_cluster.go new file mode 100644 index 0000000..d0cff83 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_deployment_cluster.go @@ -0,0 +1,154 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// DeploymentCluster - struct for DeploymentCluster +type DeploymentCluster struct { + Cluster *Cluster + String *string +} + +// ClusterAsDeploymentCluster is a convenience function that returns Cluster wrapped in DeploymentCluster +func ClusterAsDeploymentCluster(v *Cluster) DeploymentCluster { + return DeploymentCluster{ + Cluster: v, + } +} + +// stringAsDeploymentCluster is a convenience function that returns string wrapped in DeploymentCluster +func StringAsDeploymentCluster(v *string) DeploymentCluster { + return DeploymentCluster{ + String: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *DeploymentCluster) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Cluster + err = newStrictDecoder(data).Decode(&dst.Cluster) + if err == nil { + jsonCluster, _ := json.Marshal(dst.Cluster) + if string(jsonCluster) == "{}" { // empty struct + dst.Cluster = nil + } else { + if err = validator.Validate(dst.Cluster); err != nil { + dst.Cluster = nil + } else { + match++ + } + } + } else { + dst.Cluster = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + if err = validator.Validate(dst.String); err != nil { + dst.String = nil + } else { + match++ + } + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Cluster = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(DeploymentCluster)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(DeploymentCluster)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src DeploymentCluster) MarshalJSON() ([]byte, error) { + if src.Cluster != nil { + return json.Marshal(&src.Cluster) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *DeploymentCluster) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.Cluster != nil { + return obj.Cluster + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableDeploymentCluster struct { + value *DeploymentCluster + isSet bool +} + +func (v NullableDeploymentCluster) Get() *DeploymentCluster { + return v.value +} + +func (v *NullableDeploymentCluster) Set(val *DeploymentCluster) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentCluster) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentCluster) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentCluster(val *DeploymentCluster) *NullableDeploymentCluster { + return &NullableDeploymentCluster{value: val, isSet: true} +} + +func (v NullableDeploymentCluster) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentCluster) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_deployment_experience.go b/v1/providers/launchpad/gen/launchpad/model_deployment_experience.go new file mode 100644 index 0000000..c5db93b --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_deployment_experience.go @@ -0,0 +1,154 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// DeploymentExperience - struct for DeploymentExperience +type DeploymentExperience struct { + Experience *Experience + String *string +} + +// ExperienceAsDeploymentExperience is a convenience function that returns Experience wrapped in DeploymentExperience +func ExperienceAsDeploymentExperience(v *Experience) DeploymentExperience { + return DeploymentExperience{ + Experience: v, + } +} + +// stringAsDeploymentExperience is a convenience function that returns string wrapped in DeploymentExperience +func StringAsDeploymentExperience(v *string) DeploymentExperience { + return DeploymentExperience{ + String: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *DeploymentExperience) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Experience + err = newStrictDecoder(data).Decode(&dst.Experience) + if err == nil { + jsonExperience, _ := json.Marshal(dst.Experience) + if string(jsonExperience) == "{}" { // empty struct + dst.Experience = nil + } else { + if err = validator.Validate(dst.Experience); err != nil { + dst.Experience = nil + } else { + match++ + } + } + } else { + dst.Experience = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + if err = validator.Validate(dst.String); err != nil { + dst.String = nil + } else { + match++ + } + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Experience = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(DeploymentExperience)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(DeploymentExperience)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src DeploymentExperience) MarshalJSON() ([]byte, error) { + if src.Experience != nil { + return json.Marshal(&src.Experience) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *DeploymentExperience) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.Experience != nil { + return obj.Experience + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableDeploymentExperience struct { + value *DeploymentExperience + isSet bool +} + +func (v NullableDeploymentExperience) Get() *DeploymentExperience { + return v.value +} + +func (v *NullableDeploymentExperience) Set(val *DeploymentExperience) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentExperience) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentExperience) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentExperience(val *DeploymentExperience) *NullableDeploymentExperience { + return &NullableDeploymentExperience{value: val, isSet: true} +} + +func (v NullableDeploymentExperience) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentExperience) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_deployment_instance.go b/v1/providers/launchpad/gen/launchpad/model_deployment_instance.go new file mode 100644 index 0000000..6696795 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_deployment_instance.go @@ -0,0 +1,378 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the DeploymentInstance type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeploymentInstance{} + +// DeploymentInstance struct for DeploymentInstance +type DeploymentInstance struct { + // Timestamp of when the object was created + Created time.Time `json:"created"` + Id string `json:"id"` + // Unique ID for this instance assigned by its provider + InstanceId string `json:"instance_id"` + // User-friendly name of this instance + Name NullableString `json:"name"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Current lifecycle state of this instance * `running` - Instance is running * `starting` - Instance is starting * `stopped` - Instance is stopped * `stopping` - Instance is stopping * `unknown` - Instance state is currently unknown + State InstanceState `json:"state"` + StateModified time.Time `json:"state_modified"` + // Tags associated with this instance + Tags []string `json:"tags"` + AdditionalProperties map[string]interface{} +} + +type _DeploymentInstance DeploymentInstance + +// NewDeploymentInstance instantiates a new DeploymentInstance 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 NewDeploymentInstance(created time.Time, id string, instanceId string, name NullableString, modified time.Time, state InstanceState, stateModified time.Time, tags []string) *DeploymentInstance { + this := DeploymentInstance{} + this.Created = created + this.Id = id + this.InstanceId = instanceId + this.Name = name + this.Modified = modified + this.State = state + this.StateModified = stateModified + this.Tags = tags + return &this +} + +// NewDeploymentInstanceWithDefaults instantiates a new DeploymentInstance 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 NewDeploymentInstanceWithDefaults() *DeploymentInstance { + this := DeploymentInstance{} + return &this +} + +// GetCreated returns the Created field value +func (o *DeploymentInstance) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *DeploymentInstance) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *DeploymentInstance) SetCreated(v time.Time) { + o.Created = v +} + +// GetId returns the Id field value +func (o *DeploymentInstance) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *DeploymentInstance) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *DeploymentInstance) SetId(v string) { + o.Id = v +} + +// GetInstanceId returns the InstanceId field value +func (o *DeploymentInstance) GetInstanceId() string { + if o == nil { + var ret string + return ret + } + + return o.InstanceId +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value +// and a boolean to check if the value has been set. +func (o *DeploymentInstance) GetInstanceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.InstanceId, true +} + +// SetInstanceId sets field value +func (o *DeploymentInstance) SetInstanceId(v string) { + o.InstanceId = v +} + +// GetName returns the Name field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentInstance) GetName() string { + if o == nil || o.Name.Get() == nil { + var ret string + return ret + } + + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentInstance) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// SetName sets field value +func (o *DeploymentInstance) SetName(v string) { + o.Name.Set(&v) +} + +// GetModified returns the Modified field value +func (o *DeploymentInstance) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *DeploymentInstance) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *DeploymentInstance) SetModified(v time.Time) { + o.Modified = v +} + +// GetState returns the State field value +func (o *DeploymentInstance) GetState() InstanceState { + if o == nil { + var ret InstanceState + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *DeploymentInstance) GetStateOk() (*InstanceState, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *DeploymentInstance) SetState(v InstanceState) { + o.State = v +} + +// GetStateModified returns the StateModified field value +func (o *DeploymentInstance) GetStateModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.StateModified +} + +// GetStateModifiedOk returns a tuple with the StateModified field value +// and a boolean to check if the value has been set. +func (o *DeploymentInstance) GetStateModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.StateModified, true +} + +// SetStateModified sets field value +func (o *DeploymentInstance) SetStateModified(v time.Time) { + o.StateModified = v +} + +// GetTags returns the Tags field value +func (o *DeploymentInstance) GetTags() []string { + if o == nil { + var ret []string + return ret + } + + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value +// and a boolean to check if the value has been set. +func (o *DeploymentInstance) GetTagsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Tags, true +} + +// SetTags sets field value +func (o *DeploymentInstance) SetTags(v []string) { + o.Tags = v +} + +func (o DeploymentInstance) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeploymentInstance) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created"] = o.Created + toSerialize["id"] = o.Id + toSerialize["instance_id"] = o.InstanceId + toSerialize["name"] = o.Name.Get() + toSerialize["modified"] = o.Modified + toSerialize["state"] = o.State + toSerialize["state_modified"] = o.StateModified + toSerialize["tags"] = o.Tags + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeploymentInstance) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "id", + "instance_id", + "name", + "modified", + "state", + "state_modified", + "tags", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeploymentInstance := _DeploymentInstance{} + + err = json.Unmarshal(data, &varDeploymentInstance) + + if err != nil { + return err + } + + *o = DeploymentInstance(varDeploymentInstance) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created") + delete(additionalProperties, "id") + delete(additionalProperties, "instance_id") + delete(additionalProperties, "name") + delete(additionalProperties, "modified") + delete(additionalProperties, "state") + delete(additionalProperties, "state_modified") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeploymentInstance struct { + value *DeploymentInstance + isSet bool +} + +func (v NullableDeploymentInstance) Get() *DeploymentInstance { + return v.value +} + +func (v *NullableDeploymentInstance) Set(val *DeploymentInstance) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentInstance) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentInstance) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentInstance(val *DeploymentInstance) *NullableDeploymentInstance { + return &NullableDeploymentInstance{value: val, isSet: true} +} + +func (v NullableDeploymentInstance) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentInstance) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_deployment_key.go b/v1/providers/launchpad/gen/launchpad/model_deployment_key.go new file mode 100644 index 0000000..920320b --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_deployment_key.go @@ -0,0 +1,316 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the DeploymentKey type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeploymentKey{} + +// DeploymentKey struct for DeploymentKey +type DeploymentKey struct { + // Timestamp of when the object was created + Created time.Time `json:"created"` + Deployment ClusterDeployment `json:"deployment"` + Id string `json:"id"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Descriptive name for the SSH public key + Name string `json:"name"` + // An SSH public key that should be authorized to access the deployment + PublicKey string `json:"public_key"` + AdditionalProperties map[string]interface{} +} + +type _DeploymentKey DeploymentKey + +// NewDeploymentKey instantiates a new DeploymentKey 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 NewDeploymentKey(created time.Time, deployment ClusterDeployment, id string, modified time.Time, name string, publicKey string) *DeploymentKey { + this := DeploymentKey{} + this.Created = created + this.Deployment = deployment + this.Id = id + this.Modified = modified + this.Name = name + this.PublicKey = publicKey + return &this +} + +// NewDeploymentKeyWithDefaults instantiates a new DeploymentKey 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 NewDeploymentKeyWithDefaults() *DeploymentKey { + this := DeploymentKey{} + return &this +} + +// GetCreated returns the Created field value +func (o *DeploymentKey) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *DeploymentKey) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *DeploymentKey) SetCreated(v time.Time) { + o.Created = v +} + +// GetDeployment returns the Deployment field value +func (o *DeploymentKey) GetDeployment() ClusterDeployment { + if o == nil { + var ret ClusterDeployment + return ret + } + + return o.Deployment +} + +// GetDeploymentOk returns a tuple with the Deployment field value +// and a boolean to check if the value has been set. +func (o *DeploymentKey) GetDeploymentOk() (*ClusterDeployment, bool) { + if o == nil { + return nil, false + } + return &o.Deployment, true +} + +// SetDeployment sets field value +func (o *DeploymentKey) SetDeployment(v ClusterDeployment) { + o.Deployment = v +} + +// GetId returns the Id field value +func (o *DeploymentKey) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *DeploymentKey) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *DeploymentKey) SetId(v string) { + o.Id = v +} + +// GetModified returns the Modified field value +func (o *DeploymentKey) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *DeploymentKey) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *DeploymentKey) SetModified(v time.Time) { + o.Modified = v +} + +// GetName returns the Name field value +func (o *DeploymentKey) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *DeploymentKey) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *DeploymentKey) SetName(v string) { + o.Name = v +} + +// GetPublicKey returns the PublicKey field value +func (o *DeploymentKey) GetPublicKey() string { + if o == nil { + var ret string + return ret + } + + return o.PublicKey +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value +// and a boolean to check if the value has been set. +func (o *DeploymentKey) GetPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PublicKey, true +} + +// SetPublicKey sets field value +func (o *DeploymentKey) SetPublicKey(v string) { + o.PublicKey = v +} + +func (o DeploymentKey) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeploymentKey) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created"] = o.Created + toSerialize["deployment"] = o.Deployment + toSerialize["id"] = o.Id + toSerialize["modified"] = o.Modified + toSerialize["name"] = o.Name + toSerialize["public_key"] = o.PublicKey + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeploymentKey) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "deployment", + "id", + "modified", + "name", + "public_key", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeploymentKey := _DeploymentKey{} + + err = json.Unmarshal(data, &varDeploymentKey) + + if err != nil { + return err + } + + *o = DeploymentKey(varDeploymentKey) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created") + delete(additionalProperties, "deployment") + delete(additionalProperties, "id") + delete(additionalProperties, "modified") + delete(additionalProperties, "name") + delete(additionalProperties, "public_key") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeploymentKey struct { + value *DeploymentKey + isSet bool +} + +func (v NullableDeploymentKey) Get() *DeploymentKey { + return v.value +} + +func (v *NullableDeploymentKey) Set(val *DeploymentKey) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentKey) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentKey) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentKey(val *DeploymentKey) *NullableDeploymentKey { + return &NullableDeploymentKey{value: val, isSet: true} +} + +func (v NullableDeploymentKey) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentKey) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_deployment_note.go b/v1/providers/launchpad/gen/launchpad/model_deployment_note.go new file mode 100644 index 0000000..02225eb --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_deployment_note.go @@ -0,0 +1,352 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the DeploymentNote type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeploymentNote{} + +// DeploymentNote struct for DeploymentNote +type DeploymentNote struct { + // Text content of the note + Content *string `json:"content,omitempty"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + CreatedBy string `json:"created_by"` + Deployment ClusterDeployment `json:"deployment"` + Id string `json:"id"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + ModifiedBy string `json:"modified_by"` + AdditionalProperties map[string]interface{} +} + +type _DeploymentNote DeploymentNote + +// NewDeploymentNote instantiates a new DeploymentNote 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 NewDeploymentNote(created time.Time, createdBy string, deployment ClusterDeployment, id string, modified time.Time, modifiedBy string) *DeploymentNote { + this := DeploymentNote{} + this.Created = created + this.CreatedBy = createdBy + this.Deployment = deployment + this.Id = id + this.Modified = modified + this.ModifiedBy = modifiedBy + return &this +} + +// NewDeploymentNoteWithDefaults instantiates a new DeploymentNote 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 NewDeploymentNoteWithDefaults() *DeploymentNote { + this := DeploymentNote{} + return &this +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *DeploymentNote) GetContent() string { + if o == nil || IsNil(o.Content) { + var ret string + return ret + } + return *o.Content +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentNote) GetContentOk() (*string, bool) { + if o == nil || IsNil(o.Content) { + return nil, false + } + return o.Content, true +} + +// HasContent returns a boolean if a field has been set. +func (o *DeploymentNote) HasContent() bool { + if o != nil && !IsNil(o.Content) { + return true + } + + return false +} + +// SetContent gets a reference to the given string and assigns it to the Content field. +func (o *DeploymentNote) SetContent(v string) { + o.Content = &v +} + +// GetCreated returns the Created field value +func (o *DeploymentNote) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *DeploymentNote) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *DeploymentNote) SetCreated(v time.Time) { + o.Created = v +} + +// GetCreatedBy returns the CreatedBy field value +func (o *DeploymentNote) GetCreatedBy() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value +// and a boolean to check if the value has been set. +func (o *DeploymentNote) GetCreatedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedBy, true +} + +// SetCreatedBy sets field value +func (o *DeploymentNote) SetCreatedBy(v string) { + o.CreatedBy = v +} + +// GetDeployment returns the Deployment field value +func (o *DeploymentNote) GetDeployment() ClusterDeployment { + if o == nil { + var ret ClusterDeployment + return ret + } + + return o.Deployment +} + +// GetDeploymentOk returns a tuple with the Deployment field value +// and a boolean to check if the value has been set. +func (o *DeploymentNote) GetDeploymentOk() (*ClusterDeployment, bool) { + if o == nil { + return nil, false + } + return &o.Deployment, true +} + +// SetDeployment sets field value +func (o *DeploymentNote) SetDeployment(v ClusterDeployment) { + o.Deployment = v +} + +// GetId returns the Id field value +func (o *DeploymentNote) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *DeploymentNote) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *DeploymentNote) SetId(v string) { + o.Id = v +} + +// GetModified returns the Modified field value +func (o *DeploymentNote) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *DeploymentNote) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *DeploymentNote) SetModified(v time.Time) { + o.Modified = v +} + +// GetModifiedBy returns the ModifiedBy field value +func (o *DeploymentNote) GetModifiedBy() string { + if o == nil { + var ret string + return ret + } + + return o.ModifiedBy +} + +// GetModifiedByOk returns a tuple with the ModifiedBy field value +// and a boolean to check if the value has been set. +func (o *DeploymentNote) GetModifiedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ModifiedBy, true +} + +// SetModifiedBy sets field value +func (o *DeploymentNote) SetModifiedBy(v string) { + o.ModifiedBy = v +} + +func (o DeploymentNote) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeploymentNote) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Content) { + toSerialize["content"] = o.Content + } + toSerialize["created"] = o.Created + toSerialize["created_by"] = o.CreatedBy + toSerialize["deployment"] = o.Deployment + toSerialize["id"] = o.Id + toSerialize["modified"] = o.Modified + toSerialize["modified_by"] = o.ModifiedBy + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeploymentNote) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "created_by", + "deployment", + "id", + "modified", + "modified_by", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeploymentNote := _DeploymentNote{} + + err = json.Unmarshal(data, &varDeploymentNote) + + if err != nil { + return err + } + + *o = DeploymentNote(varDeploymentNote) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "content") + delete(additionalProperties, "created") + delete(additionalProperties, "created_by") + delete(additionalProperties, "deployment") + delete(additionalProperties, "id") + delete(additionalProperties, "modified") + delete(additionalProperties, "modified_by") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeploymentNote struct { + value *DeploymentNote + isSet bool +} + +func (v NullableDeploymentNote) Get() *DeploymentNote { + return v.value +} + +func (v *NullableDeploymentNote) Set(val *DeploymentNote) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentNote) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentNote) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentNote(val *DeploymentNote) *NullableDeploymentNote { + return &NullableDeploymentNote{value: val, isSet: true} +} + +func (v NullableDeploymentNote) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentNote) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_deployment_pipeline.go b/v1/providers/launchpad/gen/launchpad/model_deployment_pipeline.go new file mode 100644 index 0000000..fa9d45d --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_deployment_pipeline.go @@ -0,0 +1,346 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the DeploymentPipeline type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeploymentPipeline{} + +// DeploymentPipeline struct for DeploymentPipeline +type DeploymentPipeline struct { + // Action for the pipeline to run * `apply` - apply * `destroy` - destroy + Action DeploymentPipelineActionEnum `json:"action"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + Deployment ClusterDeployment `json:"deployment"` + Id string `json:"id"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // GitLab pipeline ID + PipelineId int64 `json:"pipeline_id"` + // URL for the pipeline details + Url string `json:"url"` + AdditionalProperties map[string]interface{} +} + +type _DeploymentPipeline DeploymentPipeline + +// NewDeploymentPipeline instantiates a new DeploymentPipeline 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 NewDeploymentPipeline(action DeploymentPipelineActionEnum, created time.Time, deployment ClusterDeployment, id string, modified time.Time, pipelineId int64, url string) *DeploymentPipeline { + this := DeploymentPipeline{} + this.Action = action + this.Created = created + this.Deployment = deployment + this.Id = id + this.Modified = modified + this.PipelineId = pipelineId + this.Url = url + return &this +} + +// NewDeploymentPipelineWithDefaults instantiates a new DeploymentPipeline 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 NewDeploymentPipelineWithDefaults() *DeploymentPipeline { + this := DeploymentPipeline{} + return &this +} + +// GetAction returns the Action field value +func (o *DeploymentPipeline) GetAction() DeploymentPipelineActionEnum { + if o == nil { + var ret DeploymentPipelineActionEnum + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *DeploymentPipeline) GetActionOk() (*DeploymentPipelineActionEnum, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *DeploymentPipeline) SetAction(v DeploymentPipelineActionEnum) { + o.Action = v +} + +// GetCreated returns the Created field value +func (o *DeploymentPipeline) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *DeploymentPipeline) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *DeploymentPipeline) SetCreated(v time.Time) { + o.Created = v +} + +// GetDeployment returns the Deployment field value +func (o *DeploymentPipeline) GetDeployment() ClusterDeployment { + if o == nil { + var ret ClusterDeployment + return ret + } + + return o.Deployment +} + +// GetDeploymentOk returns a tuple with the Deployment field value +// and a boolean to check if the value has been set. +func (o *DeploymentPipeline) GetDeploymentOk() (*ClusterDeployment, bool) { + if o == nil { + return nil, false + } + return &o.Deployment, true +} + +// SetDeployment sets field value +func (o *DeploymentPipeline) SetDeployment(v ClusterDeployment) { + o.Deployment = v +} + +// GetId returns the Id field value +func (o *DeploymentPipeline) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *DeploymentPipeline) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *DeploymentPipeline) SetId(v string) { + o.Id = v +} + +// GetModified returns the Modified field value +func (o *DeploymentPipeline) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *DeploymentPipeline) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *DeploymentPipeline) SetModified(v time.Time) { + o.Modified = v +} + +// GetPipelineId returns the PipelineId field value +func (o *DeploymentPipeline) GetPipelineId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PipelineId +} + +// GetPipelineIdOk returns a tuple with the PipelineId field value +// and a boolean to check if the value has been set. +func (o *DeploymentPipeline) GetPipelineIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PipelineId, true +} + +// SetPipelineId sets field value +func (o *DeploymentPipeline) SetPipelineId(v int64) { + o.PipelineId = v +} + +// GetUrl returns the Url field value +func (o *DeploymentPipeline) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *DeploymentPipeline) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *DeploymentPipeline) SetUrl(v string) { + o.Url = v +} + +func (o DeploymentPipeline) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeploymentPipeline) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + toSerialize["created"] = o.Created + toSerialize["deployment"] = o.Deployment + toSerialize["id"] = o.Id + toSerialize["modified"] = o.Modified + toSerialize["pipeline_id"] = o.PipelineId + toSerialize["url"] = o.Url + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeploymentPipeline) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + "created", + "deployment", + "id", + "modified", + "pipeline_id", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeploymentPipeline := _DeploymentPipeline{} + + err = json.Unmarshal(data, &varDeploymentPipeline) + + if err != nil { + return err + } + + *o = DeploymentPipeline(varDeploymentPipeline) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "created") + delete(additionalProperties, "deployment") + delete(additionalProperties, "id") + delete(additionalProperties, "modified") + delete(additionalProperties, "pipeline_id") + delete(additionalProperties, "url") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeploymentPipeline struct { + value *DeploymentPipeline + isSet bool +} + +func (v NullableDeploymentPipeline) Get() *DeploymentPipeline { + return v.value +} + +func (v *NullableDeploymentPipeline) Set(val *DeploymentPipeline) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentPipeline) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentPipeline) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentPipeline(val *DeploymentPipeline) *NullableDeploymentPipeline { + return &NullableDeploymentPipeline{value: val, isSet: true} +} + +func (v NullableDeploymentPipeline) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentPipeline) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_deployment_pipeline_action_enum.go b/v1/providers/launchpad/gen/launchpad/model_deployment_pipeline_action_enum.go new file mode 100644 index 0000000..196b77d --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_deployment_pipeline_action_enum.go @@ -0,0 +1,110 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// DeploymentPipelineActionEnum * `apply` - apply * `destroy` - destroy +type DeploymentPipelineActionEnum string + +// List of DeploymentPipelineActionEnum +const ( + DeploymentPipelineActionApply DeploymentPipelineActionEnum = "apply" + DeploymentPipelineActionDestroy DeploymentPipelineActionEnum = "destroy" +) + +// All allowed values of DeploymentPipelineActionEnum enum +var AllowedDeploymentPipelineActionEnumEnumValues = []DeploymentPipelineActionEnum{ + "apply", + "destroy", +} + +func (v *DeploymentPipelineActionEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeploymentPipelineActionEnum(value) + for _, existing := range AllowedDeploymentPipelineActionEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeploymentPipelineActionEnum", value) +} + +// NewDeploymentPipelineActionEnumFromValue returns a pointer to a valid DeploymentPipelineActionEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeploymentPipelineActionEnumFromValue(v string) (*DeploymentPipelineActionEnum, error) { + ev := DeploymentPipelineActionEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeploymentPipelineActionEnum: valid values are %v", v, AllowedDeploymentPipelineActionEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeploymentPipelineActionEnum) IsValid() bool { + for _, existing := range AllowedDeploymentPipelineActionEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeploymentPipelineActionEnum value +func (v DeploymentPipelineActionEnum) Ptr() *DeploymentPipelineActionEnum { + return &v +} + +type NullableDeploymentPipelineActionEnum struct { + value *DeploymentPipelineActionEnum + isSet bool +} + +func (v NullableDeploymentPipelineActionEnum) Get() *DeploymentPipelineActionEnum { + return v.value +} + +func (v *NullableDeploymentPipelineActionEnum) Set(val *DeploymentPipelineActionEnum) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentPipelineActionEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentPipelineActionEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentPipelineActionEnum(val *DeploymentPipelineActionEnum) *NullableDeploymentPipelineActionEnum { + return &NullableDeploymentPipelineActionEnum{value: val, isSet: true} +} + +func (v NullableDeploymentPipelineActionEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentPipelineActionEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_deployment_service.go b/v1/providers/launchpad/gen/launchpad/model_deployment_service.go new file mode 100644 index 0000000..b688d20 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_deployment_service.go @@ -0,0 +1,316 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the DeploymentService type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeploymentService{} + +// DeploymentService struct for DeploymentService +type DeploymentService struct { + // Timestamp of when the object was created + Created time.Time `json:"created"` + Deployment ClusterDeployment `json:"deployment"` + Id string `json:"id"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Name of the service + Name string `json:"name"` + // URL used to reach the service + Url string `json:"url"` + AdditionalProperties map[string]interface{} +} + +type _DeploymentService DeploymentService + +// NewDeploymentService instantiates a new DeploymentService 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 NewDeploymentService(created time.Time, deployment ClusterDeployment, id string, modified time.Time, name string, url string) *DeploymentService { + this := DeploymentService{} + this.Created = created + this.Deployment = deployment + this.Id = id + this.Modified = modified + this.Name = name + this.Url = url + return &this +} + +// NewDeploymentServiceWithDefaults instantiates a new DeploymentService 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 NewDeploymentServiceWithDefaults() *DeploymentService { + this := DeploymentService{} + return &this +} + +// GetCreated returns the Created field value +func (o *DeploymentService) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *DeploymentService) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *DeploymentService) SetCreated(v time.Time) { + o.Created = v +} + +// GetDeployment returns the Deployment field value +func (o *DeploymentService) GetDeployment() ClusterDeployment { + if o == nil { + var ret ClusterDeployment + return ret + } + + return o.Deployment +} + +// GetDeploymentOk returns a tuple with the Deployment field value +// and a boolean to check if the value has been set. +func (o *DeploymentService) GetDeploymentOk() (*ClusterDeployment, bool) { + if o == nil { + return nil, false + } + return &o.Deployment, true +} + +// SetDeployment sets field value +func (o *DeploymentService) SetDeployment(v ClusterDeployment) { + o.Deployment = v +} + +// GetId returns the Id field value +func (o *DeploymentService) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *DeploymentService) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *DeploymentService) SetId(v string) { + o.Id = v +} + +// GetModified returns the Modified field value +func (o *DeploymentService) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *DeploymentService) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *DeploymentService) SetModified(v time.Time) { + o.Modified = v +} + +// GetName returns the Name field value +func (o *DeploymentService) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *DeploymentService) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *DeploymentService) SetName(v string) { + o.Name = v +} + +// GetUrl returns the Url field value +func (o *DeploymentService) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *DeploymentService) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *DeploymentService) SetUrl(v string) { + o.Url = v +} + +func (o DeploymentService) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeploymentService) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created"] = o.Created + toSerialize["deployment"] = o.Deployment + toSerialize["id"] = o.Id + toSerialize["modified"] = o.Modified + toSerialize["name"] = o.Name + toSerialize["url"] = o.Url + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeploymentService) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "deployment", + "id", + "modified", + "name", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeploymentService := _DeploymentService{} + + err = json.Unmarshal(data, &varDeploymentService) + + if err != nil { + return err + } + + *o = DeploymentService(varDeploymentService) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created") + delete(additionalProperties, "deployment") + delete(additionalProperties, "id") + delete(additionalProperties, "modified") + delete(additionalProperties, "name") + delete(additionalProperties, "url") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeploymentService struct { + value *DeploymentService + isSet bool +} + +func (v NullableDeploymentService) Get() *DeploymentService { + return v.value +} + +func (v *NullableDeploymentService) Set(val *DeploymentService) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentService) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentService) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentService(val *DeploymentService) *NullableDeploymentService { + return &NullableDeploymentService{value: val, isSet: true} +} + +func (v NullableDeploymentService) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentService) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_deployment_state.go b/v1/providers/launchpad/gen/launchpad/model_deployment_state.go new file mode 100644 index 0000000..98809d9 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_deployment_state.go @@ -0,0 +1,128 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// DeploymentState * `destroyed` - Deployment has been fully destroyed * `destroying` - Deployment is being destroyed * `error` - Deployment has encountered a fatal error and will not be retried * `failed` - Deployment has failed but may be retried * `paused` - Deployment is paused but may be retried later * `ready` - Deployment is ready and all instances are running * `retrying` - Deployment is retrying * `starting` - Deployment instances are starting * `stopped` - Deployment instances are stopped * `stopping` - Deployment instances are stopping * `waiting` - Waiting for deployment to be ready +type DeploymentState string + +// List of DeploymentState +const ( + DeploymentStateDestroyed DeploymentState = "destroyed" + DeploymentStateDestroying DeploymentState = "destroying" + DeploymentStateError DeploymentState = "error" + DeploymentStateFailed DeploymentState = "failed" + DeploymentStatePaused DeploymentState = "paused" + DeploymentStateReady DeploymentState = "ready" + DeploymentStateRetrying DeploymentState = "retrying" + DeploymentStateStarting DeploymentState = "starting" + DeploymentStateStopped DeploymentState = "stopped" + DeploymentStateStopping DeploymentState = "stopping" + DeploymentStateWaiting DeploymentState = "waiting" +) + +// All allowed values of DeploymentState enum +var AllowedDeploymentStateEnumValues = []DeploymentState{ + "destroyed", + "destroying", + "error", + "failed", + "paused", + "ready", + "retrying", + "starting", + "stopped", + "stopping", + "waiting", +} + +func (v *DeploymentState) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeploymentState(value) + for _, existing := range AllowedDeploymentStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeploymentState", value) +} + +// NewDeploymentStateFromValue returns a pointer to a valid DeploymentState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeploymentStateFromValue(v string) (*DeploymentState, error) { + ev := DeploymentState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeploymentState: valid values are %v", v, AllowedDeploymentStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeploymentState) IsValid() bool { + for _, existing := range AllowedDeploymentStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeploymentState value +func (v DeploymentState) Ptr() *DeploymentState { + return &v +} + +type NullableDeploymentState struct { + value *DeploymentState + isSet bool +} + +func (v NullableDeploymentState) Get() *DeploymentState { + return v.value +} + +func (v *NullableDeploymentState) Set(val *DeploymentState) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentState) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentState(val *DeploymentState) *NullableDeploymentState { + return &NullableDeploymentState{value: val, isSet: true} +} + +func (v NullableDeploymentState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_deployment_task.go b/v1/providers/launchpad/gen/launchpad/model_deployment_task.go new file mode 100644 index 0000000..9c94f74 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_deployment_task.go @@ -0,0 +1,376 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the DeploymentTask type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeploymentTask{} + +// DeploymentTask struct for DeploymentTask +type DeploymentTask struct { + // The action the task will perform * `start_instances` - Start all instances in the deployment * `stop_instances` - Stop all instances in the deployment + Action DeploymentTaskActionEnum `json:"action"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + Deployment ClusterDeployment `json:"deployment"` + Id string `json:"id"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Number of times the task has been retried + Retries int32 `json:"retries"` + // Current status of the task * `completed` - completed * `failed` - failed * `pending` - pending * `processing` - processing * `retrying` - retrying + Status StatusEnum `json:"status"` + // Messages related to the current task status + StatusText string `json:"status_text"` + AdditionalProperties map[string]interface{} +} + +type _DeploymentTask DeploymentTask + +// NewDeploymentTask instantiates a new DeploymentTask 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 NewDeploymentTask(action DeploymentTaskActionEnum, created time.Time, deployment ClusterDeployment, id string, modified time.Time, retries int32, status StatusEnum, statusText string) *DeploymentTask { + this := DeploymentTask{} + this.Action = action + this.Created = created + this.Deployment = deployment + this.Id = id + this.Modified = modified + this.Retries = retries + this.Status = status + this.StatusText = statusText + return &this +} + +// NewDeploymentTaskWithDefaults instantiates a new DeploymentTask 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 NewDeploymentTaskWithDefaults() *DeploymentTask { + this := DeploymentTask{} + return &this +} + +// GetAction returns the Action field value +func (o *DeploymentTask) GetAction() DeploymentTaskActionEnum { + if o == nil { + var ret DeploymentTaskActionEnum + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *DeploymentTask) GetActionOk() (*DeploymentTaskActionEnum, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *DeploymentTask) SetAction(v DeploymentTaskActionEnum) { + o.Action = v +} + +// GetCreated returns the Created field value +func (o *DeploymentTask) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *DeploymentTask) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *DeploymentTask) SetCreated(v time.Time) { + o.Created = v +} + +// GetDeployment returns the Deployment field value +func (o *DeploymentTask) GetDeployment() ClusterDeployment { + if o == nil { + var ret ClusterDeployment + return ret + } + + return o.Deployment +} + +// GetDeploymentOk returns a tuple with the Deployment field value +// and a boolean to check if the value has been set. +func (o *DeploymentTask) GetDeploymentOk() (*ClusterDeployment, bool) { + if o == nil { + return nil, false + } + return &o.Deployment, true +} + +// SetDeployment sets field value +func (o *DeploymentTask) SetDeployment(v ClusterDeployment) { + o.Deployment = v +} + +// GetId returns the Id field value +func (o *DeploymentTask) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *DeploymentTask) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *DeploymentTask) SetId(v string) { + o.Id = v +} + +// GetModified returns the Modified field value +func (o *DeploymentTask) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *DeploymentTask) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *DeploymentTask) SetModified(v time.Time) { + o.Modified = v +} + +// GetRetries returns the Retries field value +func (o *DeploymentTask) GetRetries() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Retries +} + +// GetRetriesOk returns a tuple with the Retries field value +// and a boolean to check if the value has been set. +func (o *DeploymentTask) GetRetriesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Retries, true +} + +// SetRetries sets field value +func (o *DeploymentTask) SetRetries(v int32) { + o.Retries = v +} + +// GetStatus returns the Status field value +func (o *DeploymentTask) GetStatus() StatusEnum { + if o == nil { + var ret StatusEnum + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *DeploymentTask) GetStatusOk() (*StatusEnum, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *DeploymentTask) SetStatus(v StatusEnum) { + o.Status = v +} + +// GetStatusText returns the StatusText field value +func (o *DeploymentTask) GetStatusText() string { + if o == nil { + var ret string + return ret + } + + return o.StatusText +} + +// GetStatusTextOk returns a tuple with the StatusText field value +// and a boolean to check if the value has been set. +func (o *DeploymentTask) GetStatusTextOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StatusText, true +} + +// SetStatusText sets field value +func (o *DeploymentTask) SetStatusText(v string) { + o.StatusText = v +} + +func (o DeploymentTask) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeploymentTask) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + toSerialize["created"] = o.Created + toSerialize["deployment"] = o.Deployment + toSerialize["id"] = o.Id + toSerialize["modified"] = o.Modified + toSerialize["retries"] = o.Retries + toSerialize["status"] = o.Status + toSerialize["status_text"] = o.StatusText + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeploymentTask) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + "created", + "deployment", + "id", + "modified", + "retries", + "status", + "status_text", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeploymentTask := _DeploymentTask{} + + err = json.Unmarshal(data, &varDeploymentTask) + + if err != nil { + return err + } + + *o = DeploymentTask(varDeploymentTask) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "created") + delete(additionalProperties, "deployment") + delete(additionalProperties, "id") + delete(additionalProperties, "modified") + delete(additionalProperties, "retries") + delete(additionalProperties, "status") + delete(additionalProperties, "status_text") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeploymentTask struct { + value *DeploymentTask + isSet bool +} + +func (v NullableDeploymentTask) Get() *DeploymentTask { + return v.value +} + +func (v *NullableDeploymentTask) Set(val *DeploymentTask) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentTask) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentTask) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentTask(val *DeploymentTask) *NullableDeploymentTask { + return &NullableDeploymentTask{value: val, isSet: true} +} + +func (v NullableDeploymentTask) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentTask) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_deployment_task_action_enum.go b/v1/providers/launchpad/gen/launchpad/model_deployment_task_action_enum.go new file mode 100644 index 0000000..233ea0d --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_deployment_task_action_enum.go @@ -0,0 +1,110 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// DeploymentTaskActionEnum * `start_instances` - Start all instances in the deployment * `stop_instances` - Stop all instances in the deployment +type DeploymentTaskActionEnum string + +// List of DeploymentTaskActionEnum +const ( + DeploymentTaskActionStartInstances DeploymentTaskActionEnum = "start_instances" + DeploymentTaskActionStopInstances DeploymentTaskActionEnum = "stop_instances" +) + +// All allowed values of DeploymentTaskActionEnum enum +var AllowedDeploymentTaskActionEnumEnumValues = []DeploymentTaskActionEnum{ + "start_instances", + "stop_instances", +} + +func (v *DeploymentTaskActionEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeploymentTaskActionEnum(value) + for _, existing := range AllowedDeploymentTaskActionEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeploymentTaskActionEnum", value) +} + +// NewDeploymentTaskActionEnumFromValue returns a pointer to a valid DeploymentTaskActionEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeploymentTaskActionEnumFromValue(v string) (*DeploymentTaskActionEnum, error) { + ev := DeploymentTaskActionEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeploymentTaskActionEnum: valid values are %v", v, AllowedDeploymentTaskActionEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeploymentTaskActionEnum) IsValid() bool { + for _, existing := range AllowedDeploymentTaskActionEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeploymentTaskActionEnum value +func (v DeploymentTaskActionEnum) Ptr() *DeploymentTaskActionEnum { + return &v +} + +type NullableDeploymentTaskActionEnum struct { + value *DeploymentTaskActionEnum + isSet bool +} + +func (v NullableDeploymentTaskActionEnum) Get() *DeploymentTaskActionEnum { + return v.value +} + +func (v *NullableDeploymentTaskActionEnum) Set(val *DeploymentTaskActionEnum) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentTaskActionEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentTaskActionEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentTaskActionEnum(val *DeploymentTaskActionEnum) *NullableDeploymentTaskActionEnum { + return &NullableDeploymentTaskActionEnum{value: val, isSet: true} +} + +func (v NullableDeploymentTaskActionEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentTaskActionEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_deployment_update.go b/v1/providers/launchpad/gen/launchpad/model_deployment_update.go new file mode 100644 index 0000000..ffa0465 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_deployment_update.go @@ -0,0 +1,1931 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the DeploymentUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeploymentUpdate{} + +// DeploymentUpdate struct for DeploymentUpdate +type DeploymentUpdate struct { + // Override bastion operating system provisioned and/or configured by Liftoff + BastionOperatingSystem NullableString `json:"bastion_operating_system"` + // The cluster where the experience has been deployed + Cluster NullableString `json:"cluster"` + // Override the Ansible collection branch initialized within the pipeline + CollectionBranch NullableString `json:"collection_branch,omitempty"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + Experience DeploymentExperience `json:"experience"` + // Override the experience branch + ExperienceBranch NullableString `json:"experience_branch,omitempty"` + ExpiresAt NullableTime `json:"expires_at,omitempty"` + // Override the image tag used for Flight Control + FlightcontrolRelease NullableString `json:"flightcontrol_release,omitempty"` + // Require a cluster with nodes in the given garage + GarageId NullableString `json:"garage_id"` + // Override the default Ground Control branch + GcBranch NullableString `json:"gc_branch,omitempty"` + // Require a cluster with the given GPU alias + GpuAlias NullableString `json:"gpu_alias"` + // Require a cluster with the given number of GPUs + GpuCount NullableInt32 `json:"gpu_count"` + // Require a cluster with the given GPU model + GpuModel NullableString `json:"gpu_model"` + // Override the GPU node operating system name + GpuOsName NullableString `json:"gpu_os_name"` + // Override the GPU node operating system release + GpuOsRelease NullableString `json:"gpu_os_release"` + // Override the GPU node operating system version + GpuOsVersion NullableString `json:"gpu_os_version"` + Id string `json:"id"` + // Host IP addresses that should be allowed to access the deployment + IpAllowlist []string `json:"ip_allowlist,omitempty"` + // Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + Lifetime NullableInt32 `json:"lifetime"` + // Require a cluster whose GPU count is greater than or equal to the given number + MinGpuCount NullableInt32 `json:"min_gpu_count"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Require a cluster with the given number of nodes + NodeCount NullableInt32 `json:"node_count"` + // Require a cluster manufactured by the given OEM name + OemName NullableString `json:"oem_name"` + // Requester's organization name + OrgName *string `json:"org_name,omitempty"` + Overrides interface{} `json:"overrides"` + // Override the default cleanup/destroy behavior when a provisioning failure occurs + PersistOnFailure NullableBool `json:"persist_on_failure,omitempty"` + // Override the defined persona in the experience + Persona NullableString `json:"persona,omitempty"` + // Override the pipeline ID that will be triggered for request fulfillment + Pipeline NullableInt64 `json:"pipeline,omitempty"` + // Override the default pipeline branch ref used when triggering a Fuselage pipeline + PipelineBranch NullableString `json:"pipeline_branch,omitempty"` + Pipelines []string `json:"pipelines"` + Platform NullablePlatformEnum `json:"platform,omitempty"` + // Priority level for the request * `p0` - p0 * `p1` - p1 * `p2` - p2 * `p3` - p3 + Priority PriorityEnum `json:"priority"` + // Require a cluster from the given provider name + ProviderName NullableString `json:"provider_name"` + // The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + PublicKey NullableString `json:"public_key"` + // Require a cluster located in the given region + Region NullableString `json:"region"` + // Trial request ID (ex: TRY-1234) + RequestId string `json:"request_id"` + // Email address of the user requesting the experience + RequesterEmail *string `json:"requester_email,omitempty"` + // Name of the user requesting the experience + RequesterName *string `json:"requester_name,omitempty"` + // Number of times the deployment has been retried + RetryCount *int32 `json:"retry_count,omitempty"` + // Timestamp when the requester's sales relationship was created + SalesCreatedDate NullableTime `json:"sales_created_date"` + // Unique identifier for the requester's sales relationship + SalesId NullableString `json:"sales_id"` + // Email address of the sales contact associated with the requester + SalesOwnerEmail NullableString `json:"sales_owner_email,omitempty"` + // Name of the sales contact associated with the requester + SalesOwnerName NullableString `json:"sales_owner_name,omitempty"` + Services []string `json:"services"` + // Current state of the deployment * `destroyed` - Deployment has been fully destroyed * `destroying` - Deployment is being destroyed * `error` - Deployment has encountered a fatal error and will not be retried * `failed` - Deployment has failed but may be retried * `paused` - Deployment is paused but may be retried later * `ready` - Deployment is ready and all instances are running * `retrying` - Deployment is retrying * `starting` - Deployment instances are starting * `stopped` - Deployment instances are stopped * `stopping` - Deployment instances are stopping * `waiting` - Waiting for deployment to be ready + State *DeploymentState `json:"state,omitempty"` + Tags interface{} `json:"tags,omitempty"` + // Require a cluster whose workshop flag is set + Workshop NullableBool `json:"workshop"` + // Require a cluster with the given workshop ID + WorkshopId NullableString `json:"workshop_id"` + // Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + WorkshopOverridePassword NullableString `json:"workshop_override_password"` + AdditionalProperties map[string]interface{} +} + +type _DeploymentUpdate DeploymentUpdate + +// NewDeploymentUpdate instantiates a new DeploymentUpdate 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 NewDeploymentUpdate(bastionOperatingSystem NullableString, cluster NullableString, created time.Time, experience DeploymentExperience, garageId NullableString, gpuAlias NullableString, gpuCount NullableInt32, gpuModel NullableString, gpuOsName NullableString, gpuOsRelease NullableString, gpuOsVersion NullableString, id string, lifetime NullableInt32, minGpuCount NullableInt32, modified time.Time, nodeCount NullableInt32, oemName NullableString, overrides interface{}, pipelines []string, priority PriorityEnum, providerName NullableString, publicKey NullableString, region NullableString, requestId string, salesCreatedDate NullableTime, salesId NullableString, services []string, workshop NullableBool, workshopId NullableString, workshopOverridePassword NullableString) *DeploymentUpdate { + this := DeploymentUpdate{} + this.BastionOperatingSystem = bastionOperatingSystem + this.Cluster = cluster + this.Created = created + this.Experience = experience + this.GarageId = garageId + this.GpuAlias = gpuAlias + this.GpuCount = gpuCount + this.GpuModel = gpuModel + this.GpuOsName = gpuOsName + this.GpuOsRelease = gpuOsRelease + this.GpuOsVersion = gpuOsVersion + this.Id = id + this.Lifetime = lifetime + this.MinGpuCount = minGpuCount + this.Modified = modified + this.NodeCount = nodeCount + this.OemName = oemName + this.Overrides = overrides + this.Pipelines = pipelines + this.Priority = priority + this.ProviderName = providerName + this.PublicKey = publicKey + this.Region = region + this.RequestId = requestId + this.SalesCreatedDate = salesCreatedDate + this.SalesId = salesId + this.Services = services + this.Workshop = workshop + this.WorkshopId = workshopId + this.WorkshopOverridePassword = workshopOverridePassword + return &this +} + +// NewDeploymentUpdateWithDefaults instantiates a new DeploymentUpdate 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 NewDeploymentUpdateWithDefaults() *DeploymentUpdate { + this := DeploymentUpdate{} + return &this +} + +// GetBastionOperatingSystem returns the BastionOperatingSystem field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetBastionOperatingSystem() string { + if o == nil || o.BastionOperatingSystem.Get() == nil { + var ret string + return ret + } + + return *o.BastionOperatingSystem.Get() +} + +// GetBastionOperatingSystemOk returns a tuple with the BastionOperatingSystem field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetBastionOperatingSystemOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BastionOperatingSystem.Get(), o.BastionOperatingSystem.IsSet() +} + +// SetBastionOperatingSystem sets field value +func (o *DeploymentUpdate) SetBastionOperatingSystem(v string) { + o.BastionOperatingSystem.Set(&v) +} + +// GetCluster returns the Cluster field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetCluster() string { + if o == nil || o.Cluster.Get() == nil { + var ret string + return ret + } + + return *o.Cluster.Get() +} + +// GetClusterOk returns a tuple with the Cluster field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetClusterOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Cluster.Get(), o.Cluster.IsSet() +} + +// SetCluster sets field value +func (o *DeploymentUpdate) SetCluster(v string) { + o.Cluster.Set(&v) +} + +// GetCollectionBranch returns the CollectionBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentUpdate) GetCollectionBranch() string { + if o == nil || IsNil(o.CollectionBranch.Get()) { + var ret string + return ret + } + return *o.CollectionBranch.Get() +} + +// GetCollectionBranchOk returns a tuple with the CollectionBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetCollectionBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CollectionBranch.Get(), o.CollectionBranch.IsSet() +} + +// HasCollectionBranch returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasCollectionBranch() bool { + if o != nil && o.CollectionBranch.IsSet() { + return true + } + + return false +} + +// SetCollectionBranch gets a reference to the given NullableString and assigns it to the CollectionBranch field. +func (o *DeploymentUpdate) SetCollectionBranch(v string) { + o.CollectionBranch.Set(&v) +} + +// SetCollectionBranchNil sets the value for CollectionBranch to be an explicit nil +func (o *DeploymentUpdate) SetCollectionBranchNil() { + o.CollectionBranch.Set(nil) +} + +// UnsetCollectionBranch ensures that no value is present for CollectionBranch, not even an explicit nil +func (o *DeploymentUpdate) UnsetCollectionBranch() { + o.CollectionBranch.Unset() +} + +// GetCreated returns the Created field value +func (o *DeploymentUpdate) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *DeploymentUpdate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *DeploymentUpdate) SetCreated(v time.Time) { + o.Created = v +} + +// GetExperience returns the Experience field value +func (o *DeploymentUpdate) GetExperience() DeploymentExperience { + if o == nil { + var ret DeploymentExperience + return ret + } + + return o.Experience +} + +// GetExperienceOk returns a tuple with the Experience field value +// and a boolean to check if the value has been set. +func (o *DeploymentUpdate) GetExperienceOk() (*DeploymentExperience, bool) { + if o == nil { + return nil, false + } + return &o.Experience, true +} + +// SetExperience sets field value +func (o *DeploymentUpdate) SetExperience(v DeploymentExperience) { + o.Experience = v +} + +// GetExperienceBranch returns the ExperienceBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentUpdate) GetExperienceBranch() string { + if o == nil || IsNil(o.ExperienceBranch.Get()) { + var ret string + return ret + } + return *o.ExperienceBranch.Get() +} + +// GetExperienceBranchOk returns a tuple with the ExperienceBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetExperienceBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExperienceBranch.Get(), o.ExperienceBranch.IsSet() +} + +// HasExperienceBranch returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasExperienceBranch() bool { + if o != nil && o.ExperienceBranch.IsSet() { + return true + } + + return false +} + +// SetExperienceBranch gets a reference to the given NullableString and assigns it to the ExperienceBranch field. +func (o *DeploymentUpdate) SetExperienceBranch(v string) { + o.ExperienceBranch.Set(&v) +} + +// SetExperienceBranchNil sets the value for ExperienceBranch to be an explicit nil +func (o *DeploymentUpdate) SetExperienceBranchNil() { + o.ExperienceBranch.Set(nil) +} + +// UnsetExperienceBranch ensures that no value is present for ExperienceBranch, not even an explicit nil +func (o *DeploymentUpdate) UnsetExperienceBranch() { + o.ExperienceBranch.Unset() +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentUpdate) GetExpiresAt() time.Time { + if o == nil || IsNil(o.ExpiresAt.Get()) { + var ret time.Time + return ret + } + return *o.ExpiresAt.Get() +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetExpiresAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpiresAt.Get(), o.ExpiresAt.IsSet() +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasExpiresAt() bool { + if o != nil && o.ExpiresAt.IsSet() { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given NullableTime and assigns it to the ExpiresAt field. +func (o *DeploymentUpdate) SetExpiresAt(v time.Time) { + o.ExpiresAt.Set(&v) +} + +// SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil +func (o *DeploymentUpdate) SetExpiresAtNil() { + o.ExpiresAt.Set(nil) +} + +// UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +func (o *DeploymentUpdate) UnsetExpiresAt() { + o.ExpiresAt.Unset() +} + +// GetFlightcontrolRelease returns the FlightcontrolRelease field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentUpdate) GetFlightcontrolRelease() string { + if o == nil || IsNil(o.FlightcontrolRelease.Get()) { + var ret string + return ret + } + return *o.FlightcontrolRelease.Get() +} + +// GetFlightcontrolReleaseOk returns a tuple with the FlightcontrolRelease field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetFlightcontrolReleaseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FlightcontrolRelease.Get(), o.FlightcontrolRelease.IsSet() +} + +// HasFlightcontrolRelease returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasFlightcontrolRelease() bool { + if o != nil && o.FlightcontrolRelease.IsSet() { + return true + } + + return false +} + +// SetFlightcontrolRelease gets a reference to the given NullableString and assigns it to the FlightcontrolRelease field. +func (o *DeploymentUpdate) SetFlightcontrolRelease(v string) { + o.FlightcontrolRelease.Set(&v) +} + +// SetFlightcontrolReleaseNil sets the value for FlightcontrolRelease to be an explicit nil +func (o *DeploymentUpdate) SetFlightcontrolReleaseNil() { + o.FlightcontrolRelease.Set(nil) +} + +// UnsetFlightcontrolRelease ensures that no value is present for FlightcontrolRelease, not even an explicit nil +func (o *DeploymentUpdate) UnsetFlightcontrolRelease() { + o.FlightcontrolRelease.Unset() +} + +// GetGarageId returns the GarageId field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetGarageId() string { + if o == nil || o.GarageId.Get() == nil { + var ret string + return ret + } + + return *o.GarageId.Get() +} + +// GetGarageIdOk returns a tuple with the GarageId field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetGarageIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GarageId.Get(), o.GarageId.IsSet() +} + +// SetGarageId sets field value +func (o *DeploymentUpdate) SetGarageId(v string) { + o.GarageId.Set(&v) +} + +// GetGcBranch returns the GcBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentUpdate) GetGcBranch() string { + if o == nil || IsNil(o.GcBranch.Get()) { + var ret string + return ret + } + return *o.GcBranch.Get() +} + +// GetGcBranchOk returns a tuple with the GcBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetGcBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GcBranch.Get(), o.GcBranch.IsSet() +} + +// HasGcBranch returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasGcBranch() bool { + if o != nil && o.GcBranch.IsSet() { + return true + } + + return false +} + +// SetGcBranch gets a reference to the given NullableString and assigns it to the GcBranch field. +func (o *DeploymentUpdate) SetGcBranch(v string) { + o.GcBranch.Set(&v) +} + +// SetGcBranchNil sets the value for GcBranch to be an explicit nil +func (o *DeploymentUpdate) SetGcBranchNil() { + o.GcBranch.Set(nil) +} + +// UnsetGcBranch ensures that no value is present for GcBranch, not even an explicit nil +func (o *DeploymentUpdate) UnsetGcBranch() { + o.GcBranch.Unset() +} + +// GetGpuAlias returns the GpuAlias field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetGpuAlias() string { + if o == nil || o.GpuAlias.Get() == nil { + var ret string + return ret + } + + return *o.GpuAlias.Get() +} + +// GetGpuAliasOk returns a tuple with the GpuAlias field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetGpuAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuAlias.Get(), o.GpuAlias.IsSet() +} + +// SetGpuAlias sets field value +func (o *DeploymentUpdate) SetGpuAlias(v string) { + o.GpuAlias.Set(&v) +} + +// GetGpuCount returns the GpuCount field value +// If the value is explicit nil, the zero value for int32 will be returned +func (o *DeploymentUpdate) GetGpuCount() int32 { + if o == nil || o.GpuCount.Get() == nil { + var ret int32 + return ret + } + + return *o.GpuCount.Get() +} + +// GetGpuCountOk returns a tuple with the GpuCount field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetGpuCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.GpuCount.Get(), o.GpuCount.IsSet() +} + +// SetGpuCount sets field value +func (o *DeploymentUpdate) SetGpuCount(v int32) { + o.GpuCount.Set(&v) +} + +// GetGpuModel returns the GpuModel field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetGpuModel() string { + if o == nil || o.GpuModel.Get() == nil { + var ret string + return ret + } + + return *o.GpuModel.Get() +} + +// GetGpuModelOk returns a tuple with the GpuModel field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetGpuModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuModel.Get(), o.GpuModel.IsSet() +} + +// SetGpuModel sets field value +func (o *DeploymentUpdate) SetGpuModel(v string) { + o.GpuModel.Set(&v) +} + +// GetGpuOsName returns the GpuOsName field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetGpuOsName() string { + if o == nil || o.GpuOsName.Get() == nil { + var ret string + return ret + } + + return *o.GpuOsName.Get() +} + +// GetGpuOsNameOk returns a tuple with the GpuOsName field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetGpuOsNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuOsName.Get(), o.GpuOsName.IsSet() +} + +// SetGpuOsName sets field value +func (o *DeploymentUpdate) SetGpuOsName(v string) { + o.GpuOsName.Set(&v) +} + +// GetGpuOsRelease returns the GpuOsRelease field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetGpuOsRelease() string { + if o == nil || o.GpuOsRelease.Get() == nil { + var ret string + return ret + } + + return *o.GpuOsRelease.Get() +} + +// GetGpuOsReleaseOk returns a tuple with the GpuOsRelease field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetGpuOsReleaseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuOsRelease.Get(), o.GpuOsRelease.IsSet() +} + +// SetGpuOsRelease sets field value +func (o *DeploymentUpdate) SetGpuOsRelease(v string) { + o.GpuOsRelease.Set(&v) +} + +// GetGpuOsVersion returns the GpuOsVersion field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetGpuOsVersion() string { + if o == nil || o.GpuOsVersion.Get() == nil { + var ret string + return ret + } + + return *o.GpuOsVersion.Get() +} + +// GetGpuOsVersionOk returns a tuple with the GpuOsVersion field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetGpuOsVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuOsVersion.Get(), o.GpuOsVersion.IsSet() +} + +// SetGpuOsVersion sets field value +func (o *DeploymentUpdate) SetGpuOsVersion(v string) { + o.GpuOsVersion.Set(&v) +} + +// GetId returns the Id field value +func (o *DeploymentUpdate) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *DeploymentUpdate) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *DeploymentUpdate) SetId(v string) { + o.Id = v +} + +// GetIpAllowlist returns the IpAllowlist field value if set, zero value otherwise. +func (o *DeploymentUpdate) GetIpAllowlist() []string { + if o == nil || IsNil(o.IpAllowlist) { + var ret []string + return ret + } + return o.IpAllowlist +} + +// GetIpAllowlistOk returns a tuple with the IpAllowlist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentUpdate) GetIpAllowlistOk() ([]string, bool) { + if o == nil || IsNil(o.IpAllowlist) { + return nil, false + } + return o.IpAllowlist, true +} + +// HasIpAllowlist returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasIpAllowlist() bool { + if o != nil && !IsNil(o.IpAllowlist) { + return true + } + + return false +} + +// SetIpAllowlist gets a reference to the given []string and assigns it to the IpAllowlist field. +func (o *DeploymentUpdate) SetIpAllowlist(v []string) { + o.IpAllowlist = v +} + +// GetLifetime returns the Lifetime field value +// If the value is explicit nil, the zero value for int32 will be returned +func (o *DeploymentUpdate) GetLifetime() int32 { + if o == nil || o.Lifetime.Get() == nil { + var ret int32 + return ret + } + + return *o.Lifetime.Get() +} + +// GetLifetimeOk returns a tuple with the Lifetime field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetLifetimeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Lifetime.Get(), o.Lifetime.IsSet() +} + +// SetLifetime sets field value +func (o *DeploymentUpdate) SetLifetime(v int32) { + o.Lifetime.Set(&v) +} + +// GetMinGpuCount returns the MinGpuCount field value +// If the value is explicit nil, the zero value for int32 will be returned +func (o *DeploymentUpdate) GetMinGpuCount() int32 { + if o == nil || o.MinGpuCount.Get() == nil { + var ret int32 + return ret + } + + return *o.MinGpuCount.Get() +} + +// GetMinGpuCountOk returns a tuple with the MinGpuCount field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetMinGpuCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MinGpuCount.Get(), o.MinGpuCount.IsSet() +} + +// SetMinGpuCount sets field value +func (o *DeploymentUpdate) SetMinGpuCount(v int32) { + o.MinGpuCount.Set(&v) +} + +// GetModified returns the Modified field value +func (o *DeploymentUpdate) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *DeploymentUpdate) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *DeploymentUpdate) SetModified(v time.Time) { + o.Modified = v +} + +// GetNodeCount returns the NodeCount field value +// If the value is explicit nil, the zero value for int32 will be returned +func (o *DeploymentUpdate) GetNodeCount() int32 { + if o == nil || o.NodeCount.Get() == nil { + var ret int32 + return ret + } + + return *o.NodeCount.Get() +} + +// GetNodeCountOk returns a tuple with the NodeCount field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetNodeCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.NodeCount.Get(), o.NodeCount.IsSet() +} + +// SetNodeCount sets field value +func (o *DeploymentUpdate) SetNodeCount(v int32) { + o.NodeCount.Set(&v) +} + +// GetOemName returns the OemName field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetOemName() string { + if o == nil || o.OemName.Get() == nil { + var ret string + return ret + } + + return *o.OemName.Get() +} + +// GetOemNameOk returns a tuple with the OemName field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetOemNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.OemName.Get(), o.OemName.IsSet() +} + +// SetOemName sets field value +func (o *DeploymentUpdate) SetOemName(v string) { + o.OemName.Set(&v) +} + +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *DeploymentUpdate) GetOrgName() string { + if o == nil || IsNil(o.OrgName) { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentUpdate) GetOrgNameOk() (*string, bool) { + if o == nil || IsNil(o.OrgName) { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasOrgName() bool { + if o != nil && !IsNil(o.OrgName) { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *DeploymentUpdate) SetOrgName(v string) { + o.OrgName = &v +} + +// GetOverrides returns the Overrides field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *DeploymentUpdate) GetOverrides() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Overrides +} + +// GetOverridesOk returns a tuple with the Overrides field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetOverridesOk() (*interface{}, bool) { + if o == nil || IsNil(o.Overrides) { + return nil, false + } + return &o.Overrides, true +} + +// SetOverrides sets field value +func (o *DeploymentUpdate) SetOverrides(v interface{}) { + o.Overrides = v +} + +// GetPersistOnFailure returns the PersistOnFailure field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentUpdate) GetPersistOnFailure() bool { + if o == nil || IsNil(o.PersistOnFailure.Get()) { + var ret bool + return ret + } + return *o.PersistOnFailure.Get() +} + +// GetPersistOnFailureOk returns a tuple with the PersistOnFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetPersistOnFailureOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.PersistOnFailure.Get(), o.PersistOnFailure.IsSet() +} + +// HasPersistOnFailure returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasPersistOnFailure() bool { + if o != nil && o.PersistOnFailure.IsSet() { + return true + } + + return false +} + +// SetPersistOnFailure gets a reference to the given NullableBool and assigns it to the PersistOnFailure field. +func (o *DeploymentUpdate) SetPersistOnFailure(v bool) { + o.PersistOnFailure.Set(&v) +} + +// SetPersistOnFailureNil sets the value for PersistOnFailure to be an explicit nil +func (o *DeploymentUpdate) SetPersistOnFailureNil() { + o.PersistOnFailure.Set(nil) +} + +// UnsetPersistOnFailure ensures that no value is present for PersistOnFailure, not even an explicit nil +func (o *DeploymentUpdate) UnsetPersistOnFailure() { + o.PersistOnFailure.Unset() +} + +// GetPersona returns the Persona field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentUpdate) GetPersona() string { + if o == nil || IsNil(o.Persona.Get()) { + var ret string + return ret + } + return *o.Persona.Get() +} + +// GetPersonaOk returns a tuple with the Persona field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetPersonaOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Persona.Get(), o.Persona.IsSet() +} + +// HasPersona returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasPersona() bool { + if o != nil && o.Persona.IsSet() { + return true + } + + return false +} + +// SetPersona gets a reference to the given NullableString and assigns it to the Persona field. +func (o *DeploymentUpdate) SetPersona(v string) { + o.Persona.Set(&v) +} + +// SetPersonaNil sets the value for Persona to be an explicit nil +func (o *DeploymentUpdate) SetPersonaNil() { + o.Persona.Set(nil) +} + +// UnsetPersona ensures that no value is present for Persona, not even an explicit nil +func (o *DeploymentUpdate) UnsetPersona() { + o.Persona.Unset() +} + +// GetPipeline returns the Pipeline field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentUpdate) GetPipeline() int64 { + if o == nil || IsNil(o.Pipeline.Get()) { + var ret int64 + return ret + } + return *o.Pipeline.Get() +} + +// GetPipelineOk returns a tuple with the Pipeline field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetPipelineOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.Pipeline.Get(), o.Pipeline.IsSet() +} + +// HasPipeline returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasPipeline() bool { + if o != nil && o.Pipeline.IsSet() { + return true + } + + return false +} + +// SetPipeline gets a reference to the given NullableInt64 and assigns it to the Pipeline field. +func (o *DeploymentUpdate) SetPipeline(v int64) { + o.Pipeline.Set(&v) +} + +// SetPipelineNil sets the value for Pipeline to be an explicit nil +func (o *DeploymentUpdate) SetPipelineNil() { + o.Pipeline.Set(nil) +} + +// UnsetPipeline ensures that no value is present for Pipeline, not even an explicit nil +func (o *DeploymentUpdate) UnsetPipeline() { + o.Pipeline.Unset() +} + +// GetPipelineBranch returns the PipelineBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentUpdate) GetPipelineBranch() string { + if o == nil || IsNil(o.PipelineBranch.Get()) { + var ret string + return ret + } + return *o.PipelineBranch.Get() +} + +// GetPipelineBranchOk returns a tuple with the PipelineBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetPipelineBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PipelineBranch.Get(), o.PipelineBranch.IsSet() +} + +// HasPipelineBranch returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasPipelineBranch() bool { + if o != nil && o.PipelineBranch.IsSet() { + return true + } + + return false +} + +// SetPipelineBranch gets a reference to the given NullableString and assigns it to the PipelineBranch field. +func (o *DeploymentUpdate) SetPipelineBranch(v string) { + o.PipelineBranch.Set(&v) +} + +// SetPipelineBranchNil sets the value for PipelineBranch to be an explicit nil +func (o *DeploymentUpdate) SetPipelineBranchNil() { + o.PipelineBranch.Set(nil) +} + +// UnsetPipelineBranch ensures that no value is present for PipelineBranch, not even an explicit nil +func (o *DeploymentUpdate) UnsetPipelineBranch() { + o.PipelineBranch.Unset() +} + +// GetPipelines returns the Pipelines field value +func (o *DeploymentUpdate) GetPipelines() []string { + if o == nil { + var ret []string + return ret + } + + return o.Pipelines +} + +// GetPipelinesOk returns a tuple with the Pipelines field value +// and a boolean to check if the value has been set. +func (o *DeploymentUpdate) GetPipelinesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Pipelines, true +} + +// SetPipelines sets field value +func (o *DeploymentUpdate) SetPipelines(v []string) { + o.Pipelines = v +} + +// GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentUpdate) GetPlatform() PlatformEnum { + if o == nil || IsNil(o.Platform.Get()) { + var ret PlatformEnum + return ret + } + return *o.Platform.Get() +} + +// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetPlatformOk() (*PlatformEnum, bool) { + if o == nil { + return nil, false + } + return o.Platform.Get(), o.Platform.IsSet() +} + +// HasPlatform returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasPlatform() bool { + if o != nil && o.Platform.IsSet() { + return true + } + + return false +} + +// SetPlatform gets a reference to the given NullablePlatformEnum and assigns it to the Platform field. +func (o *DeploymentUpdate) SetPlatform(v PlatformEnum) { + o.Platform.Set(&v) +} + +// SetPlatformNil sets the value for Platform to be an explicit nil +func (o *DeploymentUpdate) SetPlatformNil() { + o.Platform.Set(nil) +} + +// UnsetPlatform ensures that no value is present for Platform, not even an explicit nil +func (o *DeploymentUpdate) UnsetPlatform() { + o.Platform.Unset() +} + +// GetPriority returns the Priority field value +func (o *DeploymentUpdate) GetPriority() PriorityEnum { + if o == nil { + var ret PriorityEnum + return ret + } + + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value +// and a boolean to check if the value has been set. +func (o *DeploymentUpdate) GetPriorityOk() (*PriorityEnum, bool) { + if o == nil { + return nil, false + } + return &o.Priority, true +} + +// SetPriority sets field value +func (o *DeploymentUpdate) SetPriority(v PriorityEnum) { + o.Priority = v +} + +// GetProviderName returns the ProviderName field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetProviderName() string { + if o == nil || o.ProviderName.Get() == nil { + var ret string + return ret + } + + return *o.ProviderName.Get() +} + +// GetProviderNameOk returns a tuple with the ProviderName field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetProviderNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ProviderName.Get(), o.ProviderName.IsSet() +} + +// SetProviderName sets field value +func (o *DeploymentUpdate) SetProviderName(v string) { + o.ProviderName.Set(&v) +} + +// GetPublicKey returns the PublicKey field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetPublicKey() string { + if o == nil || o.PublicKey.Get() == nil { + var ret string + return ret + } + + return *o.PublicKey.Get() +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PublicKey.Get(), o.PublicKey.IsSet() +} + +// SetPublicKey sets field value +func (o *DeploymentUpdate) SetPublicKey(v string) { + o.PublicKey.Set(&v) +} + +// GetRegion returns the Region field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetRegion() string { + if o == nil || o.Region.Get() == nil { + var ret string + return ret + } + + return *o.Region.Get() +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Region.Get(), o.Region.IsSet() +} + +// SetRegion sets field value +func (o *DeploymentUpdate) SetRegion(v string) { + o.Region.Set(&v) +} + +// GetRequestId returns the RequestId field value +func (o *DeploymentUpdate) GetRequestId() string { + if o == nil { + var ret string + return ret + } + + return o.RequestId +} + +// GetRequestIdOk returns a tuple with the RequestId field value +// and a boolean to check if the value has been set. +func (o *DeploymentUpdate) GetRequestIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RequestId, true +} + +// SetRequestId sets field value +func (o *DeploymentUpdate) SetRequestId(v string) { + o.RequestId = v +} + +// GetRequesterEmail returns the RequesterEmail field value if set, zero value otherwise. +func (o *DeploymentUpdate) GetRequesterEmail() string { + if o == nil || IsNil(o.RequesterEmail) { + var ret string + return ret + } + return *o.RequesterEmail +} + +// GetRequesterEmailOk returns a tuple with the RequesterEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentUpdate) GetRequesterEmailOk() (*string, bool) { + if o == nil || IsNil(o.RequesterEmail) { + return nil, false + } + return o.RequesterEmail, true +} + +// HasRequesterEmail returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasRequesterEmail() bool { + if o != nil && !IsNil(o.RequesterEmail) { + return true + } + + return false +} + +// SetRequesterEmail gets a reference to the given string and assigns it to the RequesterEmail field. +func (o *DeploymentUpdate) SetRequesterEmail(v string) { + o.RequesterEmail = &v +} + +// GetRequesterName returns the RequesterName field value if set, zero value otherwise. +func (o *DeploymentUpdate) GetRequesterName() string { + if o == nil || IsNil(o.RequesterName) { + var ret string + return ret + } + return *o.RequesterName +} + +// GetRequesterNameOk returns a tuple with the RequesterName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentUpdate) GetRequesterNameOk() (*string, bool) { + if o == nil || IsNil(o.RequesterName) { + return nil, false + } + return o.RequesterName, true +} + +// HasRequesterName returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasRequesterName() bool { + if o != nil && !IsNil(o.RequesterName) { + return true + } + + return false +} + +// SetRequesterName gets a reference to the given string and assigns it to the RequesterName field. +func (o *DeploymentUpdate) SetRequesterName(v string) { + o.RequesterName = &v +} + +// GetRetryCount returns the RetryCount field value if set, zero value otherwise. +func (o *DeploymentUpdate) GetRetryCount() int32 { + if o == nil || IsNil(o.RetryCount) { + var ret int32 + return ret + } + return *o.RetryCount +} + +// GetRetryCountOk returns a tuple with the RetryCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentUpdate) GetRetryCountOk() (*int32, bool) { + if o == nil || IsNil(o.RetryCount) { + return nil, false + } + return o.RetryCount, true +} + +// HasRetryCount returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasRetryCount() bool { + if o != nil && !IsNil(o.RetryCount) { + return true + } + + return false +} + +// SetRetryCount gets a reference to the given int32 and assigns it to the RetryCount field. +func (o *DeploymentUpdate) SetRetryCount(v int32) { + o.RetryCount = &v +} + +// GetSalesCreatedDate returns the SalesCreatedDate field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeploymentUpdate) GetSalesCreatedDate() time.Time { + if o == nil || o.SalesCreatedDate.Get() == nil { + var ret time.Time + return ret + } + + return *o.SalesCreatedDate.Get() +} + +// GetSalesCreatedDateOk returns a tuple with the SalesCreatedDate field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetSalesCreatedDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SalesCreatedDate.Get(), o.SalesCreatedDate.IsSet() +} + +// SetSalesCreatedDate sets field value +func (o *DeploymentUpdate) SetSalesCreatedDate(v time.Time) { + o.SalesCreatedDate.Set(&v) +} + +// GetSalesId returns the SalesId field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetSalesId() string { + if o == nil || o.SalesId.Get() == nil { + var ret string + return ret + } + + return *o.SalesId.Get() +} + +// GetSalesIdOk returns a tuple with the SalesId field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetSalesIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SalesId.Get(), o.SalesId.IsSet() +} + +// SetSalesId sets field value +func (o *DeploymentUpdate) SetSalesId(v string) { + o.SalesId.Set(&v) +} + +// GetSalesOwnerEmail returns the SalesOwnerEmail field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentUpdate) GetSalesOwnerEmail() string { + if o == nil || IsNil(o.SalesOwnerEmail.Get()) { + var ret string + return ret + } + return *o.SalesOwnerEmail.Get() +} + +// GetSalesOwnerEmailOk returns a tuple with the SalesOwnerEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetSalesOwnerEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SalesOwnerEmail.Get(), o.SalesOwnerEmail.IsSet() +} + +// HasSalesOwnerEmail returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasSalesOwnerEmail() bool { + if o != nil && o.SalesOwnerEmail.IsSet() { + return true + } + + return false +} + +// SetSalesOwnerEmail gets a reference to the given NullableString and assigns it to the SalesOwnerEmail field. +func (o *DeploymentUpdate) SetSalesOwnerEmail(v string) { + o.SalesOwnerEmail.Set(&v) +} + +// SetSalesOwnerEmailNil sets the value for SalesOwnerEmail to be an explicit nil +func (o *DeploymentUpdate) SetSalesOwnerEmailNil() { + o.SalesOwnerEmail.Set(nil) +} + +// UnsetSalesOwnerEmail ensures that no value is present for SalesOwnerEmail, not even an explicit nil +func (o *DeploymentUpdate) UnsetSalesOwnerEmail() { + o.SalesOwnerEmail.Unset() +} + +// GetSalesOwnerName returns the SalesOwnerName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentUpdate) GetSalesOwnerName() string { + if o == nil || IsNil(o.SalesOwnerName.Get()) { + var ret string + return ret + } + return *o.SalesOwnerName.Get() +} + +// GetSalesOwnerNameOk returns a tuple with the SalesOwnerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetSalesOwnerNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SalesOwnerName.Get(), o.SalesOwnerName.IsSet() +} + +// HasSalesOwnerName returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasSalesOwnerName() bool { + if o != nil && o.SalesOwnerName.IsSet() { + return true + } + + return false +} + +// SetSalesOwnerName gets a reference to the given NullableString and assigns it to the SalesOwnerName field. +func (o *DeploymentUpdate) SetSalesOwnerName(v string) { + o.SalesOwnerName.Set(&v) +} + +// SetSalesOwnerNameNil sets the value for SalesOwnerName to be an explicit nil +func (o *DeploymentUpdate) SetSalesOwnerNameNil() { + o.SalesOwnerName.Set(nil) +} + +// UnsetSalesOwnerName ensures that no value is present for SalesOwnerName, not even an explicit nil +func (o *DeploymentUpdate) UnsetSalesOwnerName() { + o.SalesOwnerName.Unset() +} + +// GetServices returns the Services field value +func (o *DeploymentUpdate) GetServices() []string { + if o == nil { + var ret []string + return ret + } + + return o.Services +} + +// GetServicesOk returns a tuple with the Services field value +// and a boolean to check if the value has been set. +func (o *DeploymentUpdate) GetServicesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Services, true +} + +// SetServices sets field value +func (o *DeploymentUpdate) SetServices(v []string) { + o.Services = v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *DeploymentUpdate) GetState() DeploymentState { + if o == nil || IsNil(o.State) { + var ret DeploymentState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentUpdate) GetStateOk() (*DeploymentState, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given DeploymentState and assigns it to the State field. +func (o *DeploymentUpdate) SetState(v DeploymentState) { + o.State = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeploymentUpdate) GetTags() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetTagsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return &o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *DeploymentUpdate) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given interface{} and assigns it to the Tags field. +func (o *DeploymentUpdate) SetTags(v interface{}) { + o.Tags = v +} + +// GetWorkshop returns the Workshop field value +// If the value is explicit nil, the zero value for bool will be returned +func (o *DeploymentUpdate) GetWorkshop() bool { + if o == nil || o.Workshop.Get() == nil { + var ret bool + return ret + } + + return *o.Workshop.Get() +} + +// GetWorkshopOk returns a tuple with the Workshop field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetWorkshopOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Workshop.Get(), o.Workshop.IsSet() +} + +// SetWorkshop sets field value +func (o *DeploymentUpdate) SetWorkshop(v bool) { + o.Workshop.Set(&v) +} + +// GetWorkshopId returns the WorkshopId field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetWorkshopId() string { + if o == nil || o.WorkshopId.Get() == nil { + var ret string + return ret + } + + return *o.WorkshopId.Get() +} + +// GetWorkshopIdOk returns a tuple with the WorkshopId field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetWorkshopIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkshopId.Get(), o.WorkshopId.IsSet() +} + +// SetWorkshopId sets field value +func (o *DeploymentUpdate) SetWorkshopId(v string) { + o.WorkshopId.Set(&v) +} + +// GetWorkshopOverridePassword returns the WorkshopOverridePassword field value +// If the value is explicit nil, the zero value for string will be returned +func (o *DeploymentUpdate) GetWorkshopOverridePassword() string { + if o == nil || o.WorkshopOverridePassword.Get() == nil { + var ret string + return ret + } + + return *o.WorkshopOverridePassword.Get() +} + +// GetWorkshopOverridePasswordOk returns a tuple with the WorkshopOverridePassword field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeploymentUpdate) GetWorkshopOverridePasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkshopOverridePassword.Get(), o.WorkshopOverridePassword.IsSet() +} + +// SetWorkshopOverridePassword sets field value +func (o *DeploymentUpdate) SetWorkshopOverridePassword(v string) { + o.WorkshopOverridePassword.Set(&v) +} + +func (o DeploymentUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeploymentUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["bastion_operating_system"] = o.BastionOperatingSystem.Get() + toSerialize["cluster"] = o.Cluster.Get() + if o.CollectionBranch.IsSet() { + toSerialize["collection_branch"] = o.CollectionBranch.Get() + } + toSerialize["created"] = o.Created + toSerialize["experience"] = o.Experience + if o.ExperienceBranch.IsSet() { + toSerialize["experience_branch"] = o.ExperienceBranch.Get() + } + if o.ExpiresAt.IsSet() { + toSerialize["expires_at"] = o.ExpiresAt.Get() + } + if o.FlightcontrolRelease.IsSet() { + toSerialize["flightcontrol_release"] = o.FlightcontrolRelease.Get() + } + toSerialize["garage_id"] = o.GarageId.Get() + if o.GcBranch.IsSet() { + toSerialize["gc_branch"] = o.GcBranch.Get() + } + toSerialize["gpu_alias"] = o.GpuAlias.Get() + toSerialize["gpu_count"] = o.GpuCount.Get() + toSerialize["gpu_model"] = o.GpuModel.Get() + toSerialize["gpu_os_name"] = o.GpuOsName.Get() + toSerialize["gpu_os_release"] = o.GpuOsRelease.Get() + toSerialize["gpu_os_version"] = o.GpuOsVersion.Get() + toSerialize["id"] = o.Id + if !IsNil(o.IpAllowlist) { + toSerialize["ip_allowlist"] = o.IpAllowlist + } + toSerialize["lifetime"] = o.Lifetime.Get() + toSerialize["min_gpu_count"] = o.MinGpuCount.Get() + toSerialize["modified"] = o.Modified + toSerialize["node_count"] = o.NodeCount.Get() + toSerialize["oem_name"] = o.OemName.Get() + if !IsNil(o.OrgName) { + toSerialize["org_name"] = o.OrgName + } + if o.Overrides != nil { + toSerialize["overrides"] = o.Overrides + } + if o.PersistOnFailure.IsSet() { + toSerialize["persist_on_failure"] = o.PersistOnFailure.Get() + } + if o.Persona.IsSet() { + toSerialize["persona"] = o.Persona.Get() + } + if o.Pipeline.IsSet() { + toSerialize["pipeline"] = o.Pipeline.Get() + } + if o.PipelineBranch.IsSet() { + toSerialize["pipeline_branch"] = o.PipelineBranch.Get() + } + toSerialize["pipelines"] = o.Pipelines + if o.Platform.IsSet() { + toSerialize["platform"] = o.Platform.Get() + } + toSerialize["priority"] = o.Priority + toSerialize["provider_name"] = o.ProviderName.Get() + toSerialize["public_key"] = o.PublicKey.Get() + toSerialize["region"] = o.Region.Get() + toSerialize["request_id"] = o.RequestId + if !IsNil(o.RequesterEmail) { + toSerialize["requester_email"] = o.RequesterEmail + } + if !IsNil(o.RequesterName) { + toSerialize["requester_name"] = o.RequesterName + } + if !IsNil(o.RetryCount) { + toSerialize["retry_count"] = o.RetryCount + } + toSerialize["sales_created_date"] = o.SalesCreatedDate.Get() + toSerialize["sales_id"] = o.SalesId.Get() + if o.SalesOwnerEmail.IsSet() { + toSerialize["sales_owner_email"] = o.SalesOwnerEmail.Get() + } + if o.SalesOwnerName.IsSet() { + toSerialize["sales_owner_name"] = o.SalesOwnerName.Get() + } + toSerialize["services"] = o.Services + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if o.Tags != nil { + toSerialize["tags"] = o.Tags + } + toSerialize["workshop"] = o.Workshop.Get() + toSerialize["workshop_id"] = o.WorkshopId.Get() + toSerialize["workshop_override_password"] = o.WorkshopOverridePassword.Get() + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeploymentUpdate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "bastion_operating_system", + "cluster", + "created", + "experience", + "garage_id", + "gpu_alias", + "gpu_count", + "gpu_model", + "gpu_os_name", + "gpu_os_release", + "gpu_os_version", + "id", + "lifetime", + "min_gpu_count", + "modified", + "node_count", + "oem_name", + "overrides", + "pipelines", + "priority", + "provider_name", + "public_key", + "region", + "request_id", + "sales_created_date", + "sales_id", + "services", + "workshop", + "workshop_id", + "workshop_override_password", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeploymentUpdate := _DeploymentUpdate{} + + err = json.Unmarshal(data, &varDeploymentUpdate) + + if err != nil { + return err + } + + *o = DeploymentUpdate(varDeploymentUpdate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "bastion_operating_system") + delete(additionalProperties, "cluster") + delete(additionalProperties, "collection_branch") + delete(additionalProperties, "created") + delete(additionalProperties, "experience") + delete(additionalProperties, "experience_branch") + delete(additionalProperties, "expires_at") + delete(additionalProperties, "flightcontrol_release") + delete(additionalProperties, "garage_id") + delete(additionalProperties, "gc_branch") + delete(additionalProperties, "gpu_alias") + delete(additionalProperties, "gpu_count") + delete(additionalProperties, "gpu_model") + delete(additionalProperties, "gpu_os_name") + delete(additionalProperties, "gpu_os_release") + delete(additionalProperties, "gpu_os_version") + delete(additionalProperties, "id") + delete(additionalProperties, "ip_allowlist") + delete(additionalProperties, "lifetime") + delete(additionalProperties, "min_gpu_count") + delete(additionalProperties, "modified") + delete(additionalProperties, "node_count") + delete(additionalProperties, "oem_name") + delete(additionalProperties, "org_name") + delete(additionalProperties, "overrides") + delete(additionalProperties, "persist_on_failure") + delete(additionalProperties, "persona") + delete(additionalProperties, "pipeline") + delete(additionalProperties, "pipeline_branch") + delete(additionalProperties, "pipelines") + delete(additionalProperties, "platform") + delete(additionalProperties, "priority") + delete(additionalProperties, "provider_name") + delete(additionalProperties, "public_key") + delete(additionalProperties, "region") + delete(additionalProperties, "request_id") + delete(additionalProperties, "requester_email") + delete(additionalProperties, "requester_name") + delete(additionalProperties, "retry_count") + delete(additionalProperties, "sales_created_date") + delete(additionalProperties, "sales_id") + delete(additionalProperties, "sales_owner_email") + delete(additionalProperties, "sales_owner_name") + delete(additionalProperties, "services") + delete(additionalProperties, "state") + delete(additionalProperties, "tags") + delete(additionalProperties, "workshop") + delete(additionalProperties, "workshop_id") + delete(additionalProperties, "workshop_override_password") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeploymentUpdate struct { + value *DeploymentUpdate + isSet bool +} + +func (v NullableDeploymentUpdate) Get() *DeploymentUpdate { + return v.value +} + +func (v *NullableDeploymentUpdate) Set(val *DeploymentUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentUpdate(val *DeploymentUpdate) *NullableDeploymentUpdate { + return &NullableDeploymentUpdate{value: val, isSet: true} +} + +func (v NullableDeploymentUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_doc_deployment_delete.go b/v1/providers/launchpad/gen/launchpad/model_doc_deployment_delete.go new file mode 100644 index 0000000..081e4f6 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_doc_deployment_delete.go @@ -0,0 +1,2385 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the DocDeploymentDelete type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DocDeploymentDelete{} + +// DocDeploymentDelete struct for DocDeploymentDelete +type DocDeploymentDelete struct { + // Override bastion operating system provisioned and/or configured by Liftoff + BastionOperatingSystem NullableString `json:"bastion_operating_system,omitempty"` + // Unique ID for this experience in the sales catalog. Must be unique. + CatalogId *string `json:"catalog_id,omitempty"` + // Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique. + CatalogIdAlias NullableString `json:"catalog_id_alias,omitempty"` + Cluster *DeploymentCluster `json:"cluster,omitempty"` + // Override the Ansible collection branch initialized within the pipeline + CollectionBranch NullableString `json:"collection_branch,omitempty"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + Experience DeploymentExperience `json:"experience"` + // Override the experience branch + ExperienceBranch NullableString `json:"experience_branch,omitempty"` + ExperienceId *string `json:"experience_id,omitempty"` + ExpiresAt NullableTime `json:"expires_at,omitempty"` + // Override the image tag used for Flight Control + FlightcontrolRelease NullableString `json:"flightcontrol_release,omitempty"` + // Require a cluster with nodes in the given garage + GarageId NullableString `json:"garage_id,omitempty"` + // Override the default Ground Control branch + GcBranch NullableString `json:"gc_branch,omitempty"` + // Require a cluster with the given GPU alias + GpuAlias NullableString `json:"gpu_alias,omitempty"` + // Require a cluster with the given number of GPUs + GpuCount NullableInt32 `json:"gpu_count,omitempty"` + // Require a cluster with the given GPU model + GpuModel NullableString `json:"gpu_model,omitempty"` + GpuOsName *string `json:"gpu_os_name,omitempty"` + GpuOsRelease *string `json:"gpu_os_release,omitempty"` + GpuOsVersion *string `json:"gpu_os_version,omitempty"` + Id string `json:"id"` + // Host IP addresses that should be allowed to access the deployment + IpAllowlist []string `json:"ip_allowlist,omitempty"` + // Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + Lifetime NullableInt32 `json:"lifetime,omitempty"` + // Require a cluster whose GPU count is greater than or equal to the given number + MinGpuCount NullableInt32 `json:"min_gpu_count,omitempty"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Require a cluster with the given number of nodes + NodeCount NullableInt32 `json:"node_count,omitempty"` + // Require a cluster manufactured by the given OEM name + OemName NullableString `json:"oem_name,omitempty"` + // Requester's organization name + OrgName string `json:"org_name"` + Overrides interface{} `json:"overrides"` + // Override the default cleanup/destroy behavior when a provisioning failure occurs + PersistOnFailure NullableBool `json:"persist_on_failure,omitempty"` + Persona *string `json:"persona,omitempty"` + // Override the pipeline ID that will be triggered for request fulfillment + Pipeline NullableInt64 `json:"pipeline,omitempty"` + // Override the default pipeline branch ref used when triggering a Fuselage pipeline + PipelineBranch NullableString `json:"pipeline_branch,omitempty"` + Pipelines []string `json:"pipelines"` + Platform NullablePlatformEnum `json:"platform,omitempty"` + // Priority level for the request * `p0` - p0 * `p1` - p1 * `p2` - p2 * `p3` - p3 + Priority *PriorityEnum `json:"priority,omitempty"` + // Require a cluster from the given provider name + ProviderName NullableString `json:"provider_name,omitempty"` + // The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + PublicKey NullableString `json:"public_key,omitempty"` + // Require a cluster located in the given region + Region NullableString `json:"region,omitempty"` + // Trial request ID (ex: TRY-1234) + RequestId *string `json:"request_id,omitempty"` + // Email address of the user requesting the experience + RequesterEmail string `json:"requester_email"` + // Name of the user requesting the experience + RequesterName string `json:"requester_name"` + // Number of times the deployment has been retried + RetryCount int32 `json:"retry_count"` + SalesCreatedDate NullableTime `json:"sales_created_date,omitempty"` + // Unique identifier for the requester's sales relationship + SalesId NullableString `json:"sales_id,omitempty"` + // Email address of the sales contact associated with the requester + SalesOwnerEmail NullableString `json:"sales_owner_email,omitempty"` + // Name of the sales contact associated with the requester + SalesOwnerName NullableString `json:"sales_owner_name,omitempty"` + Services []string `json:"services"` + SshPort int32 `json:"ssh_port"` + SshUser string `json:"ssh_user"` + // Current state of the deployment * `destroyed` - Deployment has been fully destroyed * `destroying` - Deployment is being destroyed * `error` - Deployment has encountered a fatal error and will not be retried * `failed` - Deployment has failed but may be retried * `paused` - Deployment is paused but may be retried later * `ready` - Deployment is ready and all instances are running * `retrying` - Deployment is retrying * `starting` - Deployment instances are starting * `stopped` - Deployment instances are stopped * `stopping` - Deployment instances are stopping * `waiting` - Waiting for deployment to be ready + State DeploymentState `json:"state"` + Tags interface{} `json:"tags,omitempty"` + // Require a cluster whose workshop flag is set + Workshop NullableBool `json:"workshop,omitempty"` + // Require a cluster with the given workshop ID + WorkshopId NullableString `json:"workshop_id,omitempty"` + // Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + WorkshopOverridePassword NullableString `json:"workshop_override_password,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DocDeploymentDelete DocDeploymentDelete + +// NewDocDeploymentDelete instantiates a new DocDeploymentDelete 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 NewDocDeploymentDelete(created time.Time, experience DeploymentExperience, id string, modified time.Time, orgName string, overrides interface{}, pipelines []string, requesterEmail string, requesterName string, retryCount int32, services []string, sshPort int32, sshUser string, state DeploymentState) *DocDeploymentDelete { + this := DocDeploymentDelete{} + this.Created = created + this.Experience = experience + this.Id = id + this.Modified = modified + this.OrgName = orgName + this.Overrides = overrides + this.Pipelines = pipelines + this.RequesterEmail = requesterEmail + this.RequesterName = requesterName + this.RetryCount = retryCount + this.Services = services + this.SshPort = sshPort + this.SshUser = sshUser + this.State = state + return &this +} + +// NewDocDeploymentDeleteWithDefaults instantiates a new DocDeploymentDelete 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 NewDocDeploymentDeleteWithDefaults() *DocDeploymentDelete { + this := DocDeploymentDelete{} + return &this +} + +// GetBastionOperatingSystem returns the BastionOperatingSystem field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetBastionOperatingSystem() string { + if o == nil || IsNil(o.BastionOperatingSystem.Get()) { + var ret string + return ret + } + return *o.BastionOperatingSystem.Get() +} + +// GetBastionOperatingSystemOk returns a tuple with the BastionOperatingSystem field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetBastionOperatingSystemOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BastionOperatingSystem.Get(), o.BastionOperatingSystem.IsSet() +} + +// HasBastionOperatingSystem returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasBastionOperatingSystem() bool { + if o != nil && o.BastionOperatingSystem.IsSet() { + return true + } + + return false +} + +// SetBastionOperatingSystem gets a reference to the given NullableString and assigns it to the BastionOperatingSystem field. +func (o *DocDeploymentDelete) SetBastionOperatingSystem(v string) { + o.BastionOperatingSystem.Set(&v) +} + +// SetBastionOperatingSystemNil sets the value for BastionOperatingSystem to be an explicit nil +func (o *DocDeploymentDelete) SetBastionOperatingSystemNil() { + o.BastionOperatingSystem.Set(nil) +} + +// UnsetBastionOperatingSystem ensures that no value is present for BastionOperatingSystem, not even an explicit nil +func (o *DocDeploymentDelete) UnsetBastionOperatingSystem() { + o.BastionOperatingSystem.Unset() +} + +// GetCatalogId returns the CatalogId field value if set, zero value otherwise. +func (o *DocDeploymentDelete) GetCatalogId() string { + if o == nil || IsNil(o.CatalogId) { + var ret string + return ret + } + return *o.CatalogId +} + +// GetCatalogIdOk returns a tuple with the CatalogId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetCatalogIdOk() (*string, bool) { + if o == nil || IsNil(o.CatalogId) { + return nil, false + } + return o.CatalogId, true +} + +// HasCatalogId returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasCatalogId() bool { + if o != nil && !IsNil(o.CatalogId) { + return true + } + + return false +} + +// SetCatalogId gets a reference to the given string and assigns it to the CatalogId field. +func (o *DocDeploymentDelete) SetCatalogId(v string) { + o.CatalogId = &v +} + +// GetCatalogIdAlias returns the CatalogIdAlias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetCatalogIdAlias() string { + if o == nil || IsNil(o.CatalogIdAlias.Get()) { + var ret string + return ret + } + return *o.CatalogIdAlias.Get() +} + +// GetCatalogIdAliasOk returns a tuple with the CatalogIdAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetCatalogIdAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CatalogIdAlias.Get(), o.CatalogIdAlias.IsSet() +} + +// HasCatalogIdAlias returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasCatalogIdAlias() bool { + if o != nil && o.CatalogIdAlias.IsSet() { + return true + } + + return false +} + +// SetCatalogIdAlias gets a reference to the given NullableString and assigns it to the CatalogIdAlias field. +func (o *DocDeploymentDelete) SetCatalogIdAlias(v string) { + o.CatalogIdAlias.Set(&v) +} + +// SetCatalogIdAliasNil sets the value for CatalogIdAlias to be an explicit nil +func (o *DocDeploymentDelete) SetCatalogIdAliasNil() { + o.CatalogIdAlias.Set(nil) +} + +// UnsetCatalogIdAlias ensures that no value is present for CatalogIdAlias, not even an explicit nil +func (o *DocDeploymentDelete) UnsetCatalogIdAlias() { + o.CatalogIdAlias.Unset() +} + +// GetCluster returns the Cluster field value if set, zero value otherwise. +func (o *DocDeploymentDelete) GetCluster() DeploymentCluster { + if o == nil || IsNil(o.Cluster) { + var ret DeploymentCluster + return ret + } + return *o.Cluster +} + +// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetClusterOk() (*DeploymentCluster, bool) { + if o == nil || IsNil(o.Cluster) { + return nil, false + } + return o.Cluster, true +} + +// HasCluster returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasCluster() bool { + if o != nil && !IsNil(o.Cluster) { + return true + } + + return false +} + +// SetCluster gets a reference to the given DeploymentCluster and assigns it to the Cluster field. +func (o *DocDeploymentDelete) SetCluster(v DeploymentCluster) { + o.Cluster = &v +} + +// GetCollectionBranch returns the CollectionBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetCollectionBranch() string { + if o == nil || IsNil(o.CollectionBranch.Get()) { + var ret string + return ret + } + return *o.CollectionBranch.Get() +} + +// GetCollectionBranchOk returns a tuple with the CollectionBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetCollectionBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CollectionBranch.Get(), o.CollectionBranch.IsSet() +} + +// HasCollectionBranch returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasCollectionBranch() bool { + if o != nil && o.CollectionBranch.IsSet() { + return true + } + + return false +} + +// SetCollectionBranch gets a reference to the given NullableString and assigns it to the CollectionBranch field. +func (o *DocDeploymentDelete) SetCollectionBranch(v string) { + o.CollectionBranch.Set(&v) +} + +// SetCollectionBranchNil sets the value for CollectionBranch to be an explicit nil +func (o *DocDeploymentDelete) SetCollectionBranchNil() { + o.CollectionBranch.Set(nil) +} + +// UnsetCollectionBranch ensures that no value is present for CollectionBranch, not even an explicit nil +func (o *DocDeploymentDelete) UnsetCollectionBranch() { + o.CollectionBranch.Unset() +} + +// GetCreated returns the Created field value +func (o *DocDeploymentDelete) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *DocDeploymentDelete) SetCreated(v time.Time) { + o.Created = v +} + +// GetExperience returns the Experience field value +func (o *DocDeploymentDelete) GetExperience() DeploymentExperience { + if o == nil { + var ret DeploymentExperience + return ret + } + + return o.Experience +} + +// GetExperienceOk returns a tuple with the Experience field value +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetExperienceOk() (*DeploymentExperience, bool) { + if o == nil { + return nil, false + } + return &o.Experience, true +} + +// SetExperience sets field value +func (o *DocDeploymentDelete) SetExperience(v DeploymentExperience) { + o.Experience = v +} + +// GetExperienceBranch returns the ExperienceBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetExperienceBranch() string { + if o == nil || IsNil(o.ExperienceBranch.Get()) { + var ret string + return ret + } + return *o.ExperienceBranch.Get() +} + +// GetExperienceBranchOk returns a tuple with the ExperienceBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetExperienceBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExperienceBranch.Get(), o.ExperienceBranch.IsSet() +} + +// HasExperienceBranch returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasExperienceBranch() bool { + if o != nil && o.ExperienceBranch.IsSet() { + return true + } + + return false +} + +// SetExperienceBranch gets a reference to the given NullableString and assigns it to the ExperienceBranch field. +func (o *DocDeploymentDelete) SetExperienceBranch(v string) { + o.ExperienceBranch.Set(&v) +} + +// SetExperienceBranchNil sets the value for ExperienceBranch to be an explicit nil +func (o *DocDeploymentDelete) SetExperienceBranchNil() { + o.ExperienceBranch.Set(nil) +} + +// UnsetExperienceBranch ensures that no value is present for ExperienceBranch, not even an explicit nil +func (o *DocDeploymentDelete) UnsetExperienceBranch() { + o.ExperienceBranch.Unset() +} + +// GetExperienceId returns the ExperienceId field value if set, zero value otherwise. +func (o *DocDeploymentDelete) GetExperienceId() string { + if o == nil || IsNil(o.ExperienceId) { + var ret string + return ret + } + return *o.ExperienceId +} + +// GetExperienceIdOk returns a tuple with the ExperienceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetExperienceIdOk() (*string, bool) { + if o == nil || IsNil(o.ExperienceId) { + return nil, false + } + return o.ExperienceId, true +} + +// HasExperienceId returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasExperienceId() bool { + if o != nil && !IsNil(o.ExperienceId) { + return true + } + + return false +} + +// SetExperienceId gets a reference to the given string and assigns it to the ExperienceId field. +func (o *DocDeploymentDelete) SetExperienceId(v string) { + o.ExperienceId = &v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetExpiresAt() time.Time { + if o == nil || IsNil(o.ExpiresAt.Get()) { + var ret time.Time + return ret + } + return *o.ExpiresAt.Get() +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetExpiresAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpiresAt.Get(), o.ExpiresAt.IsSet() +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasExpiresAt() bool { + if o != nil && o.ExpiresAt.IsSet() { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given NullableTime and assigns it to the ExpiresAt field. +func (o *DocDeploymentDelete) SetExpiresAt(v time.Time) { + o.ExpiresAt.Set(&v) +} + +// SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil +func (o *DocDeploymentDelete) SetExpiresAtNil() { + o.ExpiresAt.Set(nil) +} + +// UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +func (o *DocDeploymentDelete) UnsetExpiresAt() { + o.ExpiresAt.Unset() +} + +// GetFlightcontrolRelease returns the FlightcontrolRelease field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetFlightcontrolRelease() string { + if o == nil || IsNil(o.FlightcontrolRelease.Get()) { + var ret string + return ret + } + return *o.FlightcontrolRelease.Get() +} + +// GetFlightcontrolReleaseOk returns a tuple with the FlightcontrolRelease field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetFlightcontrolReleaseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FlightcontrolRelease.Get(), o.FlightcontrolRelease.IsSet() +} + +// HasFlightcontrolRelease returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasFlightcontrolRelease() bool { + if o != nil && o.FlightcontrolRelease.IsSet() { + return true + } + + return false +} + +// SetFlightcontrolRelease gets a reference to the given NullableString and assigns it to the FlightcontrolRelease field. +func (o *DocDeploymentDelete) SetFlightcontrolRelease(v string) { + o.FlightcontrolRelease.Set(&v) +} + +// SetFlightcontrolReleaseNil sets the value for FlightcontrolRelease to be an explicit nil +func (o *DocDeploymentDelete) SetFlightcontrolReleaseNil() { + o.FlightcontrolRelease.Set(nil) +} + +// UnsetFlightcontrolRelease ensures that no value is present for FlightcontrolRelease, not even an explicit nil +func (o *DocDeploymentDelete) UnsetFlightcontrolRelease() { + o.FlightcontrolRelease.Unset() +} + +// GetGarageId returns the GarageId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetGarageId() string { + if o == nil || IsNil(o.GarageId.Get()) { + var ret string + return ret + } + return *o.GarageId.Get() +} + +// GetGarageIdOk returns a tuple with the GarageId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetGarageIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GarageId.Get(), o.GarageId.IsSet() +} + +// HasGarageId returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasGarageId() bool { + if o != nil && o.GarageId.IsSet() { + return true + } + + return false +} + +// SetGarageId gets a reference to the given NullableString and assigns it to the GarageId field. +func (o *DocDeploymentDelete) SetGarageId(v string) { + o.GarageId.Set(&v) +} + +// SetGarageIdNil sets the value for GarageId to be an explicit nil +func (o *DocDeploymentDelete) SetGarageIdNil() { + o.GarageId.Set(nil) +} + +// UnsetGarageId ensures that no value is present for GarageId, not even an explicit nil +func (o *DocDeploymentDelete) UnsetGarageId() { + o.GarageId.Unset() +} + +// GetGcBranch returns the GcBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetGcBranch() string { + if o == nil || IsNil(o.GcBranch.Get()) { + var ret string + return ret + } + return *o.GcBranch.Get() +} + +// GetGcBranchOk returns a tuple with the GcBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetGcBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GcBranch.Get(), o.GcBranch.IsSet() +} + +// HasGcBranch returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasGcBranch() bool { + if o != nil && o.GcBranch.IsSet() { + return true + } + + return false +} + +// SetGcBranch gets a reference to the given NullableString and assigns it to the GcBranch field. +func (o *DocDeploymentDelete) SetGcBranch(v string) { + o.GcBranch.Set(&v) +} + +// SetGcBranchNil sets the value for GcBranch to be an explicit nil +func (o *DocDeploymentDelete) SetGcBranchNil() { + o.GcBranch.Set(nil) +} + +// UnsetGcBranch ensures that no value is present for GcBranch, not even an explicit nil +func (o *DocDeploymentDelete) UnsetGcBranch() { + o.GcBranch.Unset() +} + +// GetGpuAlias returns the GpuAlias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetGpuAlias() string { + if o == nil || IsNil(o.GpuAlias.Get()) { + var ret string + return ret + } + return *o.GpuAlias.Get() +} + +// GetGpuAliasOk returns a tuple with the GpuAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetGpuAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuAlias.Get(), o.GpuAlias.IsSet() +} + +// HasGpuAlias returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasGpuAlias() bool { + if o != nil && o.GpuAlias.IsSet() { + return true + } + + return false +} + +// SetGpuAlias gets a reference to the given NullableString and assigns it to the GpuAlias field. +func (o *DocDeploymentDelete) SetGpuAlias(v string) { + o.GpuAlias.Set(&v) +} + +// SetGpuAliasNil sets the value for GpuAlias to be an explicit nil +func (o *DocDeploymentDelete) SetGpuAliasNil() { + o.GpuAlias.Set(nil) +} + +// UnsetGpuAlias ensures that no value is present for GpuAlias, not even an explicit nil +func (o *DocDeploymentDelete) UnsetGpuAlias() { + o.GpuAlias.Unset() +} + +// GetGpuCount returns the GpuCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetGpuCount() int32 { + if o == nil || IsNil(o.GpuCount.Get()) { + var ret int32 + return ret + } + return *o.GpuCount.Get() +} + +// GetGpuCountOk returns a tuple with the GpuCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetGpuCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.GpuCount.Get(), o.GpuCount.IsSet() +} + +// HasGpuCount returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasGpuCount() bool { + if o != nil && o.GpuCount.IsSet() { + return true + } + + return false +} + +// SetGpuCount gets a reference to the given NullableInt32 and assigns it to the GpuCount field. +func (o *DocDeploymentDelete) SetGpuCount(v int32) { + o.GpuCount.Set(&v) +} + +// SetGpuCountNil sets the value for GpuCount to be an explicit nil +func (o *DocDeploymentDelete) SetGpuCountNil() { + o.GpuCount.Set(nil) +} + +// UnsetGpuCount ensures that no value is present for GpuCount, not even an explicit nil +func (o *DocDeploymentDelete) UnsetGpuCount() { + o.GpuCount.Unset() +} + +// GetGpuModel returns the GpuModel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetGpuModel() string { + if o == nil || IsNil(o.GpuModel.Get()) { + var ret string + return ret + } + return *o.GpuModel.Get() +} + +// GetGpuModelOk returns a tuple with the GpuModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetGpuModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuModel.Get(), o.GpuModel.IsSet() +} + +// HasGpuModel returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasGpuModel() bool { + if o != nil && o.GpuModel.IsSet() { + return true + } + + return false +} + +// SetGpuModel gets a reference to the given NullableString and assigns it to the GpuModel field. +func (o *DocDeploymentDelete) SetGpuModel(v string) { + o.GpuModel.Set(&v) +} + +// SetGpuModelNil sets the value for GpuModel to be an explicit nil +func (o *DocDeploymentDelete) SetGpuModelNil() { + o.GpuModel.Set(nil) +} + +// UnsetGpuModel ensures that no value is present for GpuModel, not even an explicit nil +func (o *DocDeploymentDelete) UnsetGpuModel() { + o.GpuModel.Unset() +} + +// GetGpuOsName returns the GpuOsName field value if set, zero value otherwise. +func (o *DocDeploymentDelete) GetGpuOsName() string { + if o == nil || IsNil(o.GpuOsName) { + var ret string + return ret + } + return *o.GpuOsName +} + +// GetGpuOsNameOk returns a tuple with the GpuOsName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetGpuOsNameOk() (*string, bool) { + if o == nil || IsNil(o.GpuOsName) { + return nil, false + } + return o.GpuOsName, true +} + +// HasGpuOsName returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasGpuOsName() bool { + if o != nil && !IsNil(o.GpuOsName) { + return true + } + + return false +} + +// SetGpuOsName gets a reference to the given string and assigns it to the GpuOsName field. +func (o *DocDeploymentDelete) SetGpuOsName(v string) { + o.GpuOsName = &v +} + +// GetGpuOsRelease returns the GpuOsRelease field value if set, zero value otherwise. +func (o *DocDeploymentDelete) GetGpuOsRelease() string { + if o == nil || IsNil(o.GpuOsRelease) { + var ret string + return ret + } + return *o.GpuOsRelease +} + +// GetGpuOsReleaseOk returns a tuple with the GpuOsRelease field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetGpuOsReleaseOk() (*string, bool) { + if o == nil || IsNil(o.GpuOsRelease) { + return nil, false + } + return o.GpuOsRelease, true +} + +// HasGpuOsRelease returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasGpuOsRelease() bool { + if o != nil && !IsNil(o.GpuOsRelease) { + return true + } + + return false +} + +// SetGpuOsRelease gets a reference to the given string and assigns it to the GpuOsRelease field. +func (o *DocDeploymentDelete) SetGpuOsRelease(v string) { + o.GpuOsRelease = &v +} + +// GetGpuOsVersion returns the GpuOsVersion field value if set, zero value otherwise. +func (o *DocDeploymentDelete) GetGpuOsVersion() string { + if o == nil || IsNil(o.GpuOsVersion) { + var ret string + return ret + } + return *o.GpuOsVersion +} + +// GetGpuOsVersionOk returns a tuple with the GpuOsVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetGpuOsVersionOk() (*string, bool) { + if o == nil || IsNil(o.GpuOsVersion) { + return nil, false + } + return o.GpuOsVersion, true +} + +// HasGpuOsVersion returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasGpuOsVersion() bool { + if o != nil && !IsNil(o.GpuOsVersion) { + return true + } + + return false +} + +// SetGpuOsVersion gets a reference to the given string and assigns it to the GpuOsVersion field. +func (o *DocDeploymentDelete) SetGpuOsVersion(v string) { + o.GpuOsVersion = &v +} + +// GetId returns the Id field value +func (o *DocDeploymentDelete) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *DocDeploymentDelete) SetId(v string) { + o.Id = v +} + +// GetIpAllowlist returns the IpAllowlist field value if set, zero value otherwise. +func (o *DocDeploymentDelete) GetIpAllowlist() []string { + if o == nil || IsNil(o.IpAllowlist) { + var ret []string + return ret + } + return o.IpAllowlist +} + +// GetIpAllowlistOk returns a tuple with the IpAllowlist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetIpAllowlistOk() ([]string, bool) { + if o == nil || IsNil(o.IpAllowlist) { + return nil, false + } + return o.IpAllowlist, true +} + +// HasIpAllowlist returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasIpAllowlist() bool { + if o != nil && !IsNil(o.IpAllowlist) { + return true + } + + return false +} + +// SetIpAllowlist gets a reference to the given []string and assigns it to the IpAllowlist field. +func (o *DocDeploymentDelete) SetIpAllowlist(v []string) { + o.IpAllowlist = v +} + +// GetLifetime returns the Lifetime field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetLifetime() int32 { + if o == nil || IsNil(o.Lifetime.Get()) { + var ret int32 + return ret + } + return *o.Lifetime.Get() +} + +// GetLifetimeOk returns a tuple with the Lifetime field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetLifetimeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Lifetime.Get(), o.Lifetime.IsSet() +} + +// HasLifetime returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasLifetime() bool { + if o != nil && o.Lifetime.IsSet() { + return true + } + + return false +} + +// SetLifetime gets a reference to the given NullableInt32 and assigns it to the Lifetime field. +func (o *DocDeploymentDelete) SetLifetime(v int32) { + o.Lifetime.Set(&v) +} + +// SetLifetimeNil sets the value for Lifetime to be an explicit nil +func (o *DocDeploymentDelete) SetLifetimeNil() { + o.Lifetime.Set(nil) +} + +// UnsetLifetime ensures that no value is present for Lifetime, not even an explicit nil +func (o *DocDeploymentDelete) UnsetLifetime() { + o.Lifetime.Unset() +} + +// GetMinGpuCount returns the MinGpuCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetMinGpuCount() int32 { + if o == nil || IsNil(o.MinGpuCount.Get()) { + var ret int32 + return ret + } + return *o.MinGpuCount.Get() +} + +// GetMinGpuCountOk returns a tuple with the MinGpuCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetMinGpuCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MinGpuCount.Get(), o.MinGpuCount.IsSet() +} + +// HasMinGpuCount returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasMinGpuCount() bool { + if o != nil && o.MinGpuCount.IsSet() { + return true + } + + return false +} + +// SetMinGpuCount gets a reference to the given NullableInt32 and assigns it to the MinGpuCount field. +func (o *DocDeploymentDelete) SetMinGpuCount(v int32) { + o.MinGpuCount.Set(&v) +} + +// SetMinGpuCountNil sets the value for MinGpuCount to be an explicit nil +func (o *DocDeploymentDelete) SetMinGpuCountNil() { + o.MinGpuCount.Set(nil) +} + +// UnsetMinGpuCount ensures that no value is present for MinGpuCount, not even an explicit nil +func (o *DocDeploymentDelete) UnsetMinGpuCount() { + o.MinGpuCount.Unset() +} + +// GetModified returns the Modified field value +func (o *DocDeploymentDelete) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *DocDeploymentDelete) SetModified(v time.Time) { + o.Modified = v +} + +// GetNodeCount returns the NodeCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetNodeCount() int32 { + if o == nil || IsNil(o.NodeCount.Get()) { + var ret int32 + return ret + } + return *o.NodeCount.Get() +} + +// GetNodeCountOk returns a tuple with the NodeCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetNodeCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.NodeCount.Get(), o.NodeCount.IsSet() +} + +// HasNodeCount returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasNodeCount() bool { + if o != nil && o.NodeCount.IsSet() { + return true + } + + return false +} + +// SetNodeCount gets a reference to the given NullableInt32 and assigns it to the NodeCount field. +func (o *DocDeploymentDelete) SetNodeCount(v int32) { + o.NodeCount.Set(&v) +} + +// SetNodeCountNil sets the value for NodeCount to be an explicit nil +func (o *DocDeploymentDelete) SetNodeCountNil() { + o.NodeCount.Set(nil) +} + +// UnsetNodeCount ensures that no value is present for NodeCount, not even an explicit nil +func (o *DocDeploymentDelete) UnsetNodeCount() { + o.NodeCount.Unset() +} + +// GetOemName returns the OemName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetOemName() string { + if o == nil || IsNil(o.OemName.Get()) { + var ret string + return ret + } + return *o.OemName.Get() +} + +// GetOemNameOk returns a tuple with the OemName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetOemNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.OemName.Get(), o.OemName.IsSet() +} + +// HasOemName returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasOemName() bool { + if o != nil && o.OemName.IsSet() { + return true + } + + return false +} + +// SetOemName gets a reference to the given NullableString and assigns it to the OemName field. +func (o *DocDeploymentDelete) SetOemName(v string) { + o.OemName.Set(&v) +} + +// SetOemNameNil sets the value for OemName to be an explicit nil +func (o *DocDeploymentDelete) SetOemNameNil() { + o.OemName.Set(nil) +} + +// UnsetOemName ensures that no value is present for OemName, not even an explicit nil +func (o *DocDeploymentDelete) UnsetOemName() { + o.OemName.Unset() +} + +// GetOrgName returns the OrgName field value +func (o *DocDeploymentDelete) GetOrgName() string { + if o == nil { + var ret string + return ret + } + + return o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetOrgNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrgName, true +} + +// SetOrgName sets field value +func (o *DocDeploymentDelete) SetOrgName(v string) { + o.OrgName = v +} + +// GetOverrides returns the Overrides field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *DocDeploymentDelete) GetOverrides() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Overrides +} + +// GetOverridesOk returns a tuple with the Overrides field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetOverridesOk() (*interface{}, bool) { + if o == nil || IsNil(o.Overrides) { + return nil, false + } + return &o.Overrides, true +} + +// SetOverrides sets field value +func (o *DocDeploymentDelete) SetOverrides(v interface{}) { + o.Overrides = v +} + +// GetPersistOnFailure returns the PersistOnFailure field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetPersistOnFailure() bool { + if o == nil || IsNil(o.PersistOnFailure.Get()) { + var ret bool + return ret + } + return *o.PersistOnFailure.Get() +} + +// GetPersistOnFailureOk returns a tuple with the PersistOnFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetPersistOnFailureOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.PersistOnFailure.Get(), o.PersistOnFailure.IsSet() +} + +// HasPersistOnFailure returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasPersistOnFailure() bool { + if o != nil && o.PersistOnFailure.IsSet() { + return true + } + + return false +} + +// SetPersistOnFailure gets a reference to the given NullableBool and assigns it to the PersistOnFailure field. +func (o *DocDeploymentDelete) SetPersistOnFailure(v bool) { + o.PersistOnFailure.Set(&v) +} + +// SetPersistOnFailureNil sets the value for PersistOnFailure to be an explicit nil +func (o *DocDeploymentDelete) SetPersistOnFailureNil() { + o.PersistOnFailure.Set(nil) +} + +// UnsetPersistOnFailure ensures that no value is present for PersistOnFailure, not even an explicit nil +func (o *DocDeploymentDelete) UnsetPersistOnFailure() { + o.PersistOnFailure.Unset() +} + +// GetPersona returns the Persona field value if set, zero value otherwise. +func (o *DocDeploymentDelete) GetPersona() string { + if o == nil || IsNil(o.Persona) { + var ret string + return ret + } + return *o.Persona +} + +// GetPersonaOk returns a tuple with the Persona field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetPersonaOk() (*string, bool) { + if o == nil || IsNil(o.Persona) { + return nil, false + } + return o.Persona, true +} + +// HasPersona returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasPersona() bool { + if o != nil && !IsNil(o.Persona) { + return true + } + + return false +} + +// SetPersona gets a reference to the given string and assigns it to the Persona field. +func (o *DocDeploymentDelete) SetPersona(v string) { + o.Persona = &v +} + +// GetPipeline returns the Pipeline field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetPipeline() int64 { + if o == nil || IsNil(o.Pipeline.Get()) { + var ret int64 + return ret + } + return *o.Pipeline.Get() +} + +// GetPipelineOk returns a tuple with the Pipeline field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetPipelineOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.Pipeline.Get(), o.Pipeline.IsSet() +} + +// HasPipeline returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasPipeline() bool { + if o != nil && o.Pipeline.IsSet() { + return true + } + + return false +} + +// SetPipeline gets a reference to the given NullableInt64 and assigns it to the Pipeline field. +func (o *DocDeploymentDelete) SetPipeline(v int64) { + o.Pipeline.Set(&v) +} + +// SetPipelineNil sets the value for Pipeline to be an explicit nil +func (o *DocDeploymentDelete) SetPipelineNil() { + o.Pipeline.Set(nil) +} + +// UnsetPipeline ensures that no value is present for Pipeline, not even an explicit nil +func (o *DocDeploymentDelete) UnsetPipeline() { + o.Pipeline.Unset() +} + +// GetPipelineBranch returns the PipelineBranch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetPipelineBranch() string { + if o == nil || IsNil(o.PipelineBranch.Get()) { + var ret string + return ret + } + return *o.PipelineBranch.Get() +} + +// GetPipelineBranchOk returns a tuple with the PipelineBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetPipelineBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PipelineBranch.Get(), o.PipelineBranch.IsSet() +} + +// HasPipelineBranch returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasPipelineBranch() bool { + if o != nil && o.PipelineBranch.IsSet() { + return true + } + + return false +} + +// SetPipelineBranch gets a reference to the given NullableString and assigns it to the PipelineBranch field. +func (o *DocDeploymentDelete) SetPipelineBranch(v string) { + o.PipelineBranch.Set(&v) +} + +// SetPipelineBranchNil sets the value for PipelineBranch to be an explicit nil +func (o *DocDeploymentDelete) SetPipelineBranchNil() { + o.PipelineBranch.Set(nil) +} + +// UnsetPipelineBranch ensures that no value is present for PipelineBranch, not even an explicit nil +func (o *DocDeploymentDelete) UnsetPipelineBranch() { + o.PipelineBranch.Unset() +} + +// GetPipelines returns the Pipelines field value +func (o *DocDeploymentDelete) GetPipelines() []string { + if o == nil { + var ret []string + return ret + } + + return o.Pipelines +} + +// GetPipelinesOk returns a tuple with the Pipelines field value +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetPipelinesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Pipelines, true +} + +// SetPipelines sets field value +func (o *DocDeploymentDelete) SetPipelines(v []string) { + o.Pipelines = v +} + +// GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetPlatform() PlatformEnum { + if o == nil || IsNil(o.Platform.Get()) { + var ret PlatformEnum + return ret + } + return *o.Platform.Get() +} + +// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetPlatformOk() (*PlatformEnum, bool) { + if o == nil { + return nil, false + } + return o.Platform.Get(), o.Platform.IsSet() +} + +// HasPlatform returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasPlatform() bool { + if o != nil && o.Platform.IsSet() { + return true + } + + return false +} + +// SetPlatform gets a reference to the given NullablePlatformEnum and assigns it to the Platform field. +func (o *DocDeploymentDelete) SetPlatform(v PlatformEnum) { + o.Platform.Set(&v) +} + +// SetPlatformNil sets the value for Platform to be an explicit nil +func (o *DocDeploymentDelete) SetPlatformNil() { + o.Platform.Set(nil) +} + +// UnsetPlatform ensures that no value is present for Platform, not even an explicit nil +func (o *DocDeploymentDelete) UnsetPlatform() { + o.Platform.Unset() +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *DocDeploymentDelete) GetPriority() PriorityEnum { + if o == nil || IsNil(o.Priority) { + var ret PriorityEnum + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetPriorityOk() (*PriorityEnum, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given PriorityEnum and assigns it to the Priority field. +func (o *DocDeploymentDelete) SetPriority(v PriorityEnum) { + o.Priority = &v +} + +// GetProviderName returns the ProviderName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetProviderName() string { + if o == nil || IsNil(o.ProviderName.Get()) { + var ret string + return ret + } + return *o.ProviderName.Get() +} + +// GetProviderNameOk returns a tuple with the ProviderName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetProviderNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ProviderName.Get(), o.ProviderName.IsSet() +} + +// HasProviderName returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasProviderName() bool { + if o != nil && o.ProviderName.IsSet() { + return true + } + + return false +} + +// SetProviderName gets a reference to the given NullableString and assigns it to the ProviderName field. +func (o *DocDeploymentDelete) SetProviderName(v string) { + o.ProviderName.Set(&v) +} + +// SetProviderNameNil sets the value for ProviderName to be an explicit nil +func (o *DocDeploymentDelete) SetProviderNameNil() { + o.ProviderName.Set(nil) +} + +// UnsetProviderName ensures that no value is present for ProviderName, not even an explicit nil +func (o *DocDeploymentDelete) UnsetProviderName() { + o.ProviderName.Unset() +} + +// GetPublicKey returns the PublicKey field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetPublicKey() string { + if o == nil || IsNil(o.PublicKey.Get()) { + var ret string + return ret + } + return *o.PublicKey.Get() +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PublicKey.Get(), o.PublicKey.IsSet() +} + +// HasPublicKey returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasPublicKey() bool { + if o != nil && o.PublicKey.IsSet() { + return true + } + + return false +} + +// SetPublicKey gets a reference to the given NullableString and assigns it to the PublicKey field. +func (o *DocDeploymentDelete) SetPublicKey(v string) { + o.PublicKey.Set(&v) +} + +// SetPublicKeyNil sets the value for PublicKey to be an explicit nil +func (o *DocDeploymentDelete) SetPublicKeyNil() { + o.PublicKey.Set(nil) +} + +// UnsetPublicKey ensures that no value is present for PublicKey, not even an explicit nil +func (o *DocDeploymentDelete) UnsetPublicKey() { + o.PublicKey.Unset() +} + +// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetRegion() string { + if o == nil || IsNil(o.Region.Get()) { + var ret string + return ret + } + return *o.Region.Get() +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Region.Get(), o.Region.IsSet() +} + +// HasRegion returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasRegion() bool { + if o != nil && o.Region.IsSet() { + return true + } + + return false +} + +// SetRegion gets a reference to the given NullableString and assigns it to the Region field. +func (o *DocDeploymentDelete) SetRegion(v string) { + o.Region.Set(&v) +} + +// SetRegionNil sets the value for Region to be an explicit nil +func (o *DocDeploymentDelete) SetRegionNil() { + o.Region.Set(nil) +} + +// UnsetRegion ensures that no value is present for Region, not even an explicit nil +func (o *DocDeploymentDelete) UnsetRegion() { + o.Region.Unset() +} + +// GetRequestId returns the RequestId field value if set, zero value otherwise. +func (o *DocDeploymentDelete) GetRequestId() string { + if o == nil || IsNil(o.RequestId) { + var ret string + return ret + } + return *o.RequestId +} + +// GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetRequestIdOk() (*string, bool) { + if o == nil || IsNil(o.RequestId) { + return nil, false + } + return o.RequestId, true +} + +// HasRequestId returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasRequestId() bool { + if o != nil && !IsNil(o.RequestId) { + return true + } + + return false +} + +// SetRequestId gets a reference to the given string and assigns it to the RequestId field. +func (o *DocDeploymentDelete) SetRequestId(v string) { + o.RequestId = &v +} + +// GetRequesterEmail returns the RequesterEmail field value +func (o *DocDeploymentDelete) GetRequesterEmail() string { + if o == nil { + var ret string + return ret + } + + return o.RequesterEmail +} + +// GetRequesterEmailOk returns a tuple with the RequesterEmail field value +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetRequesterEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RequesterEmail, true +} + +// SetRequesterEmail sets field value +func (o *DocDeploymentDelete) SetRequesterEmail(v string) { + o.RequesterEmail = v +} + +// GetRequesterName returns the RequesterName field value +func (o *DocDeploymentDelete) GetRequesterName() string { + if o == nil { + var ret string + return ret + } + + return o.RequesterName +} + +// GetRequesterNameOk returns a tuple with the RequesterName field value +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetRequesterNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RequesterName, true +} + +// SetRequesterName sets field value +func (o *DocDeploymentDelete) SetRequesterName(v string) { + o.RequesterName = v +} + +// GetRetryCount returns the RetryCount field value +func (o *DocDeploymentDelete) GetRetryCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RetryCount +} + +// GetRetryCountOk returns a tuple with the RetryCount field value +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetRetryCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RetryCount, true +} + +// SetRetryCount sets field value +func (o *DocDeploymentDelete) SetRetryCount(v int32) { + o.RetryCount = v +} + +// GetSalesCreatedDate returns the SalesCreatedDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetSalesCreatedDate() time.Time { + if o == nil || IsNil(o.SalesCreatedDate.Get()) { + var ret time.Time + return ret + } + return *o.SalesCreatedDate.Get() +} + +// GetSalesCreatedDateOk returns a tuple with the SalesCreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetSalesCreatedDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SalesCreatedDate.Get(), o.SalesCreatedDate.IsSet() +} + +// HasSalesCreatedDate returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasSalesCreatedDate() bool { + if o != nil && o.SalesCreatedDate.IsSet() { + return true + } + + return false +} + +// SetSalesCreatedDate gets a reference to the given NullableTime and assigns it to the SalesCreatedDate field. +func (o *DocDeploymentDelete) SetSalesCreatedDate(v time.Time) { + o.SalesCreatedDate.Set(&v) +} + +// SetSalesCreatedDateNil sets the value for SalesCreatedDate to be an explicit nil +func (o *DocDeploymentDelete) SetSalesCreatedDateNil() { + o.SalesCreatedDate.Set(nil) +} + +// UnsetSalesCreatedDate ensures that no value is present for SalesCreatedDate, not even an explicit nil +func (o *DocDeploymentDelete) UnsetSalesCreatedDate() { + o.SalesCreatedDate.Unset() +} + +// GetSalesId returns the SalesId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetSalesId() string { + if o == nil || IsNil(o.SalesId.Get()) { + var ret string + return ret + } + return *o.SalesId.Get() +} + +// GetSalesIdOk returns a tuple with the SalesId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetSalesIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SalesId.Get(), o.SalesId.IsSet() +} + +// HasSalesId returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasSalesId() bool { + if o != nil && o.SalesId.IsSet() { + return true + } + + return false +} + +// SetSalesId gets a reference to the given NullableString and assigns it to the SalesId field. +func (o *DocDeploymentDelete) SetSalesId(v string) { + o.SalesId.Set(&v) +} + +// SetSalesIdNil sets the value for SalesId to be an explicit nil +func (o *DocDeploymentDelete) SetSalesIdNil() { + o.SalesId.Set(nil) +} + +// UnsetSalesId ensures that no value is present for SalesId, not even an explicit nil +func (o *DocDeploymentDelete) UnsetSalesId() { + o.SalesId.Unset() +} + +// GetSalesOwnerEmail returns the SalesOwnerEmail field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetSalesOwnerEmail() string { + if o == nil || IsNil(o.SalesOwnerEmail.Get()) { + var ret string + return ret + } + return *o.SalesOwnerEmail.Get() +} + +// GetSalesOwnerEmailOk returns a tuple with the SalesOwnerEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetSalesOwnerEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SalesOwnerEmail.Get(), o.SalesOwnerEmail.IsSet() +} + +// HasSalesOwnerEmail returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasSalesOwnerEmail() bool { + if o != nil && o.SalesOwnerEmail.IsSet() { + return true + } + + return false +} + +// SetSalesOwnerEmail gets a reference to the given NullableString and assigns it to the SalesOwnerEmail field. +func (o *DocDeploymentDelete) SetSalesOwnerEmail(v string) { + o.SalesOwnerEmail.Set(&v) +} + +// SetSalesOwnerEmailNil sets the value for SalesOwnerEmail to be an explicit nil +func (o *DocDeploymentDelete) SetSalesOwnerEmailNil() { + o.SalesOwnerEmail.Set(nil) +} + +// UnsetSalesOwnerEmail ensures that no value is present for SalesOwnerEmail, not even an explicit nil +func (o *DocDeploymentDelete) UnsetSalesOwnerEmail() { + o.SalesOwnerEmail.Unset() +} + +// GetSalesOwnerName returns the SalesOwnerName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetSalesOwnerName() string { + if o == nil || IsNil(o.SalesOwnerName.Get()) { + var ret string + return ret + } + return *o.SalesOwnerName.Get() +} + +// GetSalesOwnerNameOk returns a tuple with the SalesOwnerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetSalesOwnerNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SalesOwnerName.Get(), o.SalesOwnerName.IsSet() +} + +// HasSalesOwnerName returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasSalesOwnerName() bool { + if o != nil && o.SalesOwnerName.IsSet() { + return true + } + + return false +} + +// SetSalesOwnerName gets a reference to the given NullableString and assigns it to the SalesOwnerName field. +func (o *DocDeploymentDelete) SetSalesOwnerName(v string) { + o.SalesOwnerName.Set(&v) +} + +// SetSalesOwnerNameNil sets the value for SalesOwnerName to be an explicit nil +func (o *DocDeploymentDelete) SetSalesOwnerNameNil() { + o.SalesOwnerName.Set(nil) +} + +// UnsetSalesOwnerName ensures that no value is present for SalesOwnerName, not even an explicit nil +func (o *DocDeploymentDelete) UnsetSalesOwnerName() { + o.SalesOwnerName.Unset() +} + +// GetServices returns the Services field value +func (o *DocDeploymentDelete) GetServices() []string { + if o == nil { + var ret []string + return ret + } + + return o.Services +} + +// GetServicesOk returns a tuple with the Services field value +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetServicesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Services, true +} + +// SetServices sets field value +func (o *DocDeploymentDelete) SetServices(v []string) { + o.Services = v +} + +// GetSshPort returns the SshPort field value +func (o *DocDeploymentDelete) GetSshPort() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SshPort +} + +// GetSshPortOk returns a tuple with the SshPort field value +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetSshPortOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SshPort, true +} + +// SetSshPort sets field value +func (o *DocDeploymentDelete) SetSshPort(v int32) { + o.SshPort = v +} + +// GetSshUser returns the SshUser field value +func (o *DocDeploymentDelete) GetSshUser() string { + if o == nil { + var ret string + return ret + } + + return o.SshUser +} + +// GetSshUserOk returns a tuple with the SshUser field value +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetSshUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SshUser, true +} + +// SetSshUser sets field value +func (o *DocDeploymentDelete) SetSshUser(v string) { + o.SshUser = v +} + +// GetState returns the State field value +func (o *DocDeploymentDelete) GetState() DeploymentState { + if o == nil { + var ret DeploymentState + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *DocDeploymentDelete) GetStateOk() (*DeploymentState, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *DocDeploymentDelete) SetState(v DeploymentState) { + o.State = v +} + +// GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetTags() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetTagsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return &o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given interface{} and assigns it to the Tags field. +func (o *DocDeploymentDelete) SetTags(v interface{}) { + o.Tags = v +} + +// GetWorkshop returns the Workshop field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetWorkshop() bool { + if o == nil || IsNil(o.Workshop.Get()) { + var ret bool + return ret + } + return *o.Workshop.Get() +} + +// GetWorkshopOk returns a tuple with the Workshop field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetWorkshopOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Workshop.Get(), o.Workshop.IsSet() +} + +// HasWorkshop returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasWorkshop() bool { + if o != nil && o.Workshop.IsSet() { + return true + } + + return false +} + +// SetWorkshop gets a reference to the given NullableBool and assigns it to the Workshop field. +func (o *DocDeploymentDelete) SetWorkshop(v bool) { + o.Workshop.Set(&v) +} + +// SetWorkshopNil sets the value for Workshop to be an explicit nil +func (o *DocDeploymentDelete) SetWorkshopNil() { + o.Workshop.Set(nil) +} + +// UnsetWorkshop ensures that no value is present for Workshop, not even an explicit nil +func (o *DocDeploymentDelete) UnsetWorkshop() { + o.Workshop.Unset() +} + +// GetWorkshopId returns the WorkshopId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetWorkshopId() string { + if o == nil || IsNil(o.WorkshopId.Get()) { + var ret string + return ret + } + return *o.WorkshopId.Get() +} + +// GetWorkshopIdOk returns a tuple with the WorkshopId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetWorkshopIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkshopId.Get(), o.WorkshopId.IsSet() +} + +// HasWorkshopId returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasWorkshopId() bool { + if o != nil && o.WorkshopId.IsSet() { + return true + } + + return false +} + +// SetWorkshopId gets a reference to the given NullableString and assigns it to the WorkshopId field. +func (o *DocDeploymentDelete) SetWorkshopId(v string) { + o.WorkshopId.Set(&v) +} + +// SetWorkshopIdNil sets the value for WorkshopId to be an explicit nil +func (o *DocDeploymentDelete) SetWorkshopIdNil() { + o.WorkshopId.Set(nil) +} + +// UnsetWorkshopId ensures that no value is present for WorkshopId, not even an explicit nil +func (o *DocDeploymentDelete) UnsetWorkshopId() { + o.WorkshopId.Unset() +} + +// GetWorkshopOverridePassword returns the WorkshopOverridePassword field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DocDeploymentDelete) GetWorkshopOverridePassword() string { + if o == nil || IsNil(o.WorkshopOverridePassword.Get()) { + var ret string + return ret + } + return *o.WorkshopOverridePassword.Get() +} + +// GetWorkshopOverridePasswordOk returns a tuple with the WorkshopOverridePassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DocDeploymentDelete) GetWorkshopOverridePasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkshopOverridePassword.Get(), o.WorkshopOverridePassword.IsSet() +} + +// HasWorkshopOverridePassword returns a boolean if a field has been set. +func (o *DocDeploymentDelete) HasWorkshopOverridePassword() bool { + if o != nil && o.WorkshopOverridePassword.IsSet() { + return true + } + + return false +} + +// SetWorkshopOverridePassword gets a reference to the given NullableString and assigns it to the WorkshopOverridePassword field. +func (o *DocDeploymentDelete) SetWorkshopOverridePassword(v string) { + o.WorkshopOverridePassword.Set(&v) +} + +// SetWorkshopOverridePasswordNil sets the value for WorkshopOverridePassword to be an explicit nil +func (o *DocDeploymentDelete) SetWorkshopOverridePasswordNil() { + o.WorkshopOverridePassword.Set(nil) +} + +// UnsetWorkshopOverridePassword ensures that no value is present for WorkshopOverridePassword, not even an explicit nil +func (o *DocDeploymentDelete) UnsetWorkshopOverridePassword() { + o.WorkshopOverridePassword.Unset() +} + +func (o DocDeploymentDelete) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DocDeploymentDelete) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.BastionOperatingSystem.IsSet() { + toSerialize["bastion_operating_system"] = o.BastionOperatingSystem.Get() + } + if !IsNil(o.CatalogId) { + toSerialize["catalog_id"] = o.CatalogId + } + if o.CatalogIdAlias.IsSet() { + toSerialize["catalog_id_alias"] = o.CatalogIdAlias.Get() + } + if !IsNil(o.Cluster) { + toSerialize["cluster"] = o.Cluster + } + if o.CollectionBranch.IsSet() { + toSerialize["collection_branch"] = o.CollectionBranch.Get() + } + toSerialize["created"] = o.Created + toSerialize["experience"] = o.Experience + if o.ExperienceBranch.IsSet() { + toSerialize["experience_branch"] = o.ExperienceBranch.Get() + } + if !IsNil(o.ExperienceId) { + toSerialize["experience_id"] = o.ExperienceId + } + if o.ExpiresAt.IsSet() { + toSerialize["expires_at"] = o.ExpiresAt.Get() + } + if o.FlightcontrolRelease.IsSet() { + toSerialize["flightcontrol_release"] = o.FlightcontrolRelease.Get() + } + if o.GarageId.IsSet() { + toSerialize["garage_id"] = o.GarageId.Get() + } + if o.GcBranch.IsSet() { + toSerialize["gc_branch"] = o.GcBranch.Get() + } + if o.GpuAlias.IsSet() { + toSerialize["gpu_alias"] = o.GpuAlias.Get() + } + if o.GpuCount.IsSet() { + toSerialize["gpu_count"] = o.GpuCount.Get() + } + if o.GpuModel.IsSet() { + toSerialize["gpu_model"] = o.GpuModel.Get() + } + if !IsNil(o.GpuOsName) { + toSerialize["gpu_os_name"] = o.GpuOsName + } + if !IsNil(o.GpuOsRelease) { + toSerialize["gpu_os_release"] = o.GpuOsRelease + } + if !IsNil(o.GpuOsVersion) { + toSerialize["gpu_os_version"] = o.GpuOsVersion + } + toSerialize["id"] = o.Id + if !IsNil(o.IpAllowlist) { + toSerialize["ip_allowlist"] = o.IpAllowlist + } + if o.Lifetime.IsSet() { + toSerialize["lifetime"] = o.Lifetime.Get() + } + if o.MinGpuCount.IsSet() { + toSerialize["min_gpu_count"] = o.MinGpuCount.Get() + } + toSerialize["modified"] = o.Modified + if o.NodeCount.IsSet() { + toSerialize["node_count"] = o.NodeCount.Get() + } + if o.OemName.IsSet() { + toSerialize["oem_name"] = o.OemName.Get() + } + toSerialize["org_name"] = o.OrgName + if o.Overrides != nil { + toSerialize["overrides"] = o.Overrides + } + if o.PersistOnFailure.IsSet() { + toSerialize["persist_on_failure"] = o.PersistOnFailure.Get() + } + if !IsNil(o.Persona) { + toSerialize["persona"] = o.Persona + } + if o.Pipeline.IsSet() { + toSerialize["pipeline"] = o.Pipeline.Get() + } + if o.PipelineBranch.IsSet() { + toSerialize["pipeline_branch"] = o.PipelineBranch.Get() + } + toSerialize["pipelines"] = o.Pipelines + if o.Platform.IsSet() { + toSerialize["platform"] = o.Platform.Get() + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if o.ProviderName.IsSet() { + toSerialize["provider_name"] = o.ProviderName.Get() + } + if o.PublicKey.IsSet() { + toSerialize["public_key"] = o.PublicKey.Get() + } + if o.Region.IsSet() { + toSerialize["region"] = o.Region.Get() + } + if !IsNil(o.RequestId) { + toSerialize["request_id"] = o.RequestId + } + toSerialize["requester_email"] = o.RequesterEmail + toSerialize["requester_name"] = o.RequesterName + toSerialize["retry_count"] = o.RetryCount + if o.SalesCreatedDate.IsSet() { + toSerialize["sales_created_date"] = o.SalesCreatedDate.Get() + } + if o.SalesId.IsSet() { + toSerialize["sales_id"] = o.SalesId.Get() + } + if o.SalesOwnerEmail.IsSet() { + toSerialize["sales_owner_email"] = o.SalesOwnerEmail.Get() + } + if o.SalesOwnerName.IsSet() { + toSerialize["sales_owner_name"] = o.SalesOwnerName.Get() + } + toSerialize["services"] = o.Services + toSerialize["ssh_port"] = o.SshPort + toSerialize["ssh_user"] = o.SshUser + toSerialize["state"] = o.State + if o.Tags != nil { + toSerialize["tags"] = o.Tags + } + if o.Workshop.IsSet() { + toSerialize["workshop"] = o.Workshop.Get() + } + if o.WorkshopId.IsSet() { + toSerialize["workshop_id"] = o.WorkshopId.Get() + } + if o.WorkshopOverridePassword.IsSet() { + toSerialize["workshop_override_password"] = o.WorkshopOverridePassword.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DocDeploymentDelete) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "experience", + "id", + "modified", + "org_name", + "overrides", + "pipelines", + "requester_email", + "requester_name", + "retry_count", + "services", + "ssh_port", + "ssh_user", + "state", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDocDeploymentDelete := _DocDeploymentDelete{} + + err = json.Unmarshal(data, &varDocDeploymentDelete) + + if err != nil { + return err + } + + *o = DocDeploymentDelete(varDocDeploymentDelete) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "bastion_operating_system") + delete(additionalProperties, "catalog_id") + delete(additionalProperties, "catalog_id_alias") + delete(additionalProperties, "cluster") + delete(additionalProperties, "collection_branch") + delete(additionalProperties, "created") + delete(additionalProperties, "experience") + delete(additionalProperties, "experience_branch") + delete(additionalProperties, "experience_id") + delete(additionalProperties, "expires_at") + delete(additionalProperties, "flightcontrol_release") + delete(additionalProperties, "garage_id") + delete(additionalProperties, "gc_branch") + delete(additionalProperties, "gpu_alias") + delete(additionalProperties, "gpu_count") + delete(additionalProperties, "gpu_model") + delete(additionalProperties, "gpu_os_name") + delete(additionalProperties, "gpu_os_release") + delete(additionalProperties, "gpu_os_version") + delete(additionalProperties, "id") + delete(additionalProperties, "ip_allowlist") + delete(additionalProperties, "lifetime") + delete(additionalProperties, "min_gpu_count") + delete(additionalProperties, "modified") + delete(additionalProperties, "node_count") + delete(additionalProperties, "oem_name") + delete(additionalProperties, "org_name") + delete(additionalProperties, "overrides") + delete(additionalProperties, "persist_on_failure") + delete(additionalProperties, "persona") + delete(additionalProperties, "pipeline") + delete(additionalProperties, "pipeline_branch") + delete(additionalProperties, "pipelines") + delete(additionalProperties, "platform") + delete(additionalProperties, "priority") + delete(additionalProperties, "provider_name") + delete(additionalProperties, "public_key") + delete(additionalProperties, "region") + delete(additionalProperties, "request_id") + delete(additionalProperties, "requester_email") + delete(additionalProperties, "requester_name") + delete(additionalProperties, "retry_count") + delete(additionalProperties, "sales_created_date") + delete(additionalProperties, "sales_id") + delete(additionalProperties, "sales_owner_email") + delete(additionalProperties, "sales_owner_name") + delete(additionalProperties, "services") + delete(additionalProperties, "ssh_port") + delete(additionalProperties, "ssh_user") + delete(additionalProperties, "state") + delete(additionalProperties, "tags") + delete(additionalProperties, "workshop") + delete(additionalProperties, "workshop_id") + delete(additionalProperties, "workshop_override_password") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDocDeploymentDelete struct { + value *DocDeploymentDelete + isSet bool +} + +func (v NullableDocDeploymentDelete) Get() *DocDeploymentDelete { + return v.value +} + +func (v *NullableDocDeploymentDelete) Set(val *DocDeploymentDelete) { + v.value = val + v.isSet = true +} + +func (v NullableDocDeploymentDelete) IsSet() bool { + return v.isSet +} + +func (v *NullableDocDeploymentDelete) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDocDeploymentDelete(val *DocDeploymentDelete) *NullableDocDeploymentDelete { + return &NullableDocDeploymentDelete{value: val, isSet: true} +} + +func (v NullableDocDeploymentDelete) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDocDeploymentDelete) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_experience.go b/v1/providers/launchpad/gen/launchpad/model_experience.go new file mode 100644 index 0000000..c694585 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_experience.go @@ -0,0 +1,1426 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the Experience type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Experience{} + +// Experience struct for Experience +type Experience struct { + // User ID who is responsible for manual provisioning + Assignee NullableString `json:"assignee,omitempty"` + // Can the experience be provisioned without human approval? + Autoapprove *bool `json:"autoapprove,omitempty"` + // Can the experience be provisioned without human intervention? + Autoprovision *bool `json:"autoprovision,omitempty"` + // Can this experience be used to bootstrap another compatible experience? + Bootstrap *bool `json:"bootstrap,omitempty"` + // Unique ID for this experience in the sales catalog. Must be unique. + CatalogId string `json:"catalog_id"` + // Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique. + CatalogIdAlias NullableString `json:"catalog_id_alias,omitempty"` + // Functional group that this experience is targetting * `AI` - AI * `Clara` - Clara * `Data Science` - Data Science * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation * `Developer` - Developer * `Infrastructure Optimization` - Infrastructure Optimization + Category CategoryEnum `json:"category"` + // Ansible collection branch initialized within the pipeline + CollectionBranch *string `json:"collection_branch,omitempty"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + Description NullableString `json:"description,omitempty"` + // Experience name slug + Experience string `json:"experience"` + // Experience branch name used during deployment (default: origin/main) + ExperienceBranch *string `json:"experience_branch,omitempty"` + FcPlatform NullableFcPlatformEnum `json:"fc_platform,omitempty"` + // Does the experience support Flight Control? + FcSupport *bool `json:"fc_support,omitempty"` + // ID of the garage where nodes for this experience should be selected from + GarageId NullableString `json:"garage_id,omitempty"` + // Ground Control branch name (default: main) + GcBranch *string `json:"gc_branch,omitempty"` + // Number of GPUs used + GpuCount *int32 `json:"gpu_count,omitempty"` + GpuOs GpuOs `json:"gpu_os"` + Id string `json:"id"` + // Number of days without user interaction before the experience is torn down (default: 3) + InactivityMax *int32 `json:"inactivity_max,omitempty"` + // Default number of days a provisioned experience should remain active (default: 3). A null lifetime will cause a deployment to remain active indefinitely. + Lifetime NullableInt32 `json:"lifetime,omitempty"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Number of Nodes used + NodeCount *int32 `json:"node_count,omitempty"` + Persona string `json:"persona"` + // Pipeline ID used for provisioning + Pipeline int64 `json:"pipeline"` + // Base platform that the experience will be provisioned onto * `air` - NVIDIA Air * `flight_deck` - Flight Deck * `kvm_bastion` - KVM Bastion * `lp-vmware-platform` - lp-vmware-platform * `minimal` - minimal * `openshift` - OpenShift * `vsphere` - vSphere * `vsphere_horizon` - VMware Horizon * `vsphere7` - vSphere 7 * `vsphere8` - vSphere 8 + Platform PlatformEnum `json:"platform"` + // If set, the experience must be provisioned to the given provider + Provider NullableString `json:"provider,omitempty"` + // Is the experience published for use? * `draft` - draft * `no` - no * `yes` - yes + Published *PublishedEnum `json:"published,omitempty"` + // URL of the repository for provisioning automation + Repo NullableString `json:"repo,omitempty"` + // If set, the experience must be provisioned using one of the given GPU types. GPU requirements are evaluated in the order they are set (ex: [\"{l40s_gpu_uuid}\", \"{a100_gpu_uuid}\"] will prefer an l40s). + RequiredGpus []string `json:"required_gpus,omitempty"` + // Is this a persistent experience for SAs? + SaLab *bool `json:"sa_lab,omitempty"` + // Required CPU architecture * `amd64` - amd64 * `arm64` - arm64 + SystemArch SystemArchEnum `json:"system_arch"` + Title string `json:"title"` + VgpuProfile NullableVgpuProfileEnum `json:"vgpu_profile,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Experience Experience + +// NewExperience instantiates a new Experience 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 NewExperience(catalogId string, category CategoryEnum, created time.Time, experience string, gpuOs GpuOs, id string, modified time.Time, persona string, pipeline int64, platform PlatformEnum, systemArch SystemArchEnum, title string) *Experience { + this := Experience{} + this.CatalogId = catalogId + this.Category = category + this.Created = created + this.Experience = experience + this.GpuOs = gpuOs + this.Id = id + this.Modified = modified + this.Persona = persona + this.Pipeline = pipeline + this.Platform = platform + this.SystemArch = systemArch + this.Title = title + return &this +} + +// NewExperienceWithDefaults instantiates a new Experience 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 NewExperienceWithDefaults() *Experience { + this := Experience{} + return &this +} + +// GetAssignee returns the Assignee field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Experience) GetAssignee() string { + if o == nil || IsNil(o.Assignee.Get()) { + var ret string + return ret + } + return *o.Assignee.Get() +} + +// GetAssigneeOk returns a tuple with the Assignee field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Experience) GetAssigneeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Assignee.Get(), o.Assignee.IsSet() +} + +// HasAssignee returns a boolean if a field has been set. +func (o *Experience) HasAssignee() bool { + if o != nil && o.Assignee.IsSet() { + return true + } + + return false +} + +// SetAssignee gets a reference to the given NullableString and assigns it to the Assignee field. +func (o *Experience) SetAssignee(v string) { + o.Assignee.Set(&v) +} + +// SetAssigneeNil sets the value for Assignee to be an explicit nil +func (o *Experience) SetAssigneeNil() { + o.Assignee.Set(nil) +} + +// UnsetAssignee ensures that no value is present for Assignee, not even an explicit nil +func (o *Experience) UnsetAssignee() { + o.Assignee.Unset() +} + +// GetAutoapprove returns the Autoapprove field value if set, zero value otherwise. +func (o *Experience) GetAutoapprove() bool { + if o == nil || IsNil(o.Autoapprove) { + var ret bool + return ret + } + return *o.Autoapprove +} + +// GetAutoapproveOk returns a tuple with the Autoapprove field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Experience) GetAutoapproveOk() (*bool, bool) { + if o == nil || IsNil(o.Autoapprove) { + return nil, false + } + return o.Autoapprove, true +} + +// HasAutoapprove returns a boolean if a field has been set. +func (o *Experience) HasAutoapprove() bool { + if o != nil && !IsNil(o.Autoapprove) { + return true + } + + return false +} + +// SetAutoapprove gets a reference to the given bool and assigns it to the Autoapprove field. +func (o *Experience) SetAutoapprove(v bool) { + o.Autoapprove = &v +} + +// GetAutoprovision returns the Autoprovision field value if set, zero value otherwise. +func (o *Experience) GetAutoprovision() bool { + if o == nil || IsNil(o.Autoprovision) { + var ret bool + return ret + } + return *o.Autoprovision +} + +// GetAutoprovisionOk returns a tuple with the Autoprovision field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Experience) GetAutoprovisionOk() (*bool, bool) { + if o == nil || IsNil(o.Autoprovision) { + return nil, false + } + return o.Autoprovision, true +} + +// HasAutoprovision returns a boolean if a field has been set. +func (o *Experience) HasAutoprovision() bool { + if o != nil && !IsNil(o.Autoprovision) { + return true + } + + return false +} + +// SetAutoprovision gets a reference to the given bool and assigns it to the Autoprovision field. +func (o *Experience) SetAutoprovision(v bool) { + o.Autoprovision = &v +} + +// GetBootstrap returns the Bootstrap field value if set, zero value otherwise. +func (o *Experience) GetBootstrap() bool { + if o == nil || IsNil(o.Bootstrap) { + var ret bool + return ret + } + return *o.Bootstrap +} + +// GetBootstrapOk returns a tuple with the Bootstrap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Experience) GetBootstrapOk() (*bool, bool) { + if o == nil || IsNil(o.Bootstrap) { + return nil, false + } + return o.Bootstrap, true +} + +// HasBootstrap returns a boolean if a field has been set. +func (o *Experience) HasBootstrap() bool { + if o != nil && !IsNil(o.Bootstrap) { + return true + } + + return false +} + +// SetBootstrap gets a reference to the given bool and assigns it to the Bootstrap field. +func (o *Experience) SetBootstrap(v bool) { + o.Bootstrap = &v +} + +// GetCatalogId returns the CatalogId field value +func (o *Experience) GetCatalogId() string { + if o == nil { + var ret string + return ret + } + + return o.CatalogId +} + +// GetCatalogIdOk returns a tuple with the CatalogId field value +// and a boolean to check if the value has been set. +func (o *Experience) GetCatalogIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CatalogId, true +} + +// SetCatalogId sets field value +func (o *Experience) SetCatalogId(v string) { + o.CatalogId = v +} + +// GetCatalogIdAlias returns the CatalogIdAlias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Experience) GetCatalogIdAlias() string { + if o == nil || IsNil(o.CatalogIdAlias.Get()) { + var ret string + return ret + } + return *o.CatalogIdAlias.Get() +} + +// GetCatalogIdAliasOk returns a tuple with the CatalogIdAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Experience) GetCatalogIdAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CatalogIdAlias.Get(), o.CatalogIdAlias.IsSet() +} + +// HasCatalogIdAlias returns a boolean if a field has been set. +func (o *Experience) HasCatalogIdAlias() bool { + if o != nil && o.CatalogIdAlias.IsSet() { + return true + } + + return false +} + +// SetCatalogIdAlias gets a reference to the given NullableString and assigns it to the CatalogIdAlias field. +func (o *Experience) SetCatalogIdAlias(v string) { + o.CatalogIdAlias.Set(&v) +} + +// SetCatalogIdAliasNil sets the value for CatalogIdAlias to be an explicit nil +func (o *Experience) SetCatalogIdAliasNil() { + o.CatalogIdAlias.Set(nil) +} + +// UnsetCatalogIdAlias ensures that no value is present for CatalogIdAlias, not even an explicit nil +func (o *Experience) UnsetCatalogIdAlias() { + o.CatalogIdAlias.Unset() +} + +// GetCategory returns the Category field value +func (o *Experience) GetCategory() CategoryEnum { + if o == nil { + var ret CategoryEnum + return ret + } + + return o.Category +} + +// GetCategoryOk returns a tuple with the Category field value +// and a boolean to check if the value has been set. +func (o *Experience) GetCategoryOk() (*CategoryEnum, bool) { + if o == nil { + return nil, false + } + return &o.Category, true +} + +// SetCategory sets field value +func (o *Experience) SetCategory(v CategoryEnum) { + o.Category = v +} + +// GetCollectionBranch returns the CollectionBranch field value if set, zero value otherwise. +func (o *Experience) GetCollectionBranch() string { + if o == nil || IsNil(o.CollectionBranch) { + var ret string + return ret + } + return *o.CollectionBranch +} + +// GetCollectionBranchOk returns a tuple with the CollectionBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Experience) GetCollectionBranchOk() (*string, bool) { + if o == nil || IsNil(o.CollectionBranch) { + return nil, false + } + return o.CollectionBranch, true +} + +// HasCollectionBranch returns a boolean if a field has been set. +func (o *Experience) HasCollectionBranch() bool { + if o != nil && !IsNil(o.CollectionBranch) { + return true + } + + return false +} + +// SetCollectionBranch gets a reference to the given string and assigns it to the CollectionBranch field. +func (o *Experience) SetCollectionBranch(v string) { + o.CollectionBranch = &v +} + +// GetCreated returns the Created field value +func (o *Experience) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *Experience) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *Experience) SetCreated(v time.Time) { + o.Created = v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Experience) GetDescription() string { + if o == nil || IsNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Experience) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *Experience) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *Experience) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *Experience) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *Experience) UnsetDescription() { + o.Description.Unset() +} + +// GetExperience returns the Experience field value +func (o *Experience) GetExperience() string { + if o == nil { + var ret string + return ret + } + + return o.Experience +} + +// GetExperienceOk returns a tuple with the Experience field value +// and a boolean to check if the value has been set. +func (o *Experience) GetExperienceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Experience, true +} + +// SetExperience sets field value +func (o *Experience) SetExperience(v string) { + o.Experience = v +} + +// GetExperienceBranch returns the ExperienceBranch field value if set, zero value otherwise. +func (o *Experience) GetExperienceBranch() string { + if o == nil || IsNil(o.ExperienceBranch) { + var ret string + return ret + } + return *o.ExperienceBranch +} + +// GetExperienceBranchOk returns a tuple with the ExperienceBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Experience) GetExperienceBranchOk() (*string, bool) { + if o == nil || IsNil(o.ExperienceBranch) { + return nil, false + } + return o.ExperienceBranch, true +} + +// HasExperienceBranch returns a boolean if a field has been set. +func (o *Experience) HasExperienceBranch() bool { + if o != nil && !IsNil(o.ExperienceBranch) { + return true + } + + return false +} + +// SetExperienceBranch gets a reference to the given string and assigns it to the ExperienceBranch field. +func (o *Experience) SetExperienceBranch(v string) { + o.ExperienceBranch = &v +} + +// GetFcPlatform returns the FcPlatform field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Experience) GetFcPlatform() FcPlatformEnum { + if o == nil || IsNil(o.FcPlatform.Get()) { + var ret FcPlatformEnum + return ret + } + return *o.FcPlatform.Get() +} + +// GetFcPlatformOk returns a tuple with the FcPlatform field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Experience) GetFcPlatformOk() (*FcPlatformEnum, bool) { + if o == nil { + return nil, false + } + return o.FcPlatform.Get(), o.FcPlatform.IsSet() +} + +// HasFcPlatform returns a boolean if a field has been set. +func (o *Experience) HasFcPlatform() bool { + if o != nil && o.FcPlatform.IsSet() { + return true + } + + return false +} + +// SetFcPlatform gets a reference to the given NullableFcPlatformEnum and assigns it to the FcPlatform field. +func (o *Experience) SetFcPlatform(v FcPlatformEnum) { + o.FcPlatform.Set(&v) +} + +// SetFcPlatformNil sets the value for FcPlatform to be an explicit nil +func (o *Experience) SetFcPlatformNil() { + o.FcPlatform.Set(nil) +} + +// UnsetFcPlatform ensures that no value is present for FcPlatform, not even an explicit nil +func (o *Experience) UnsetFcPlatform() { + o.FcPlatform.Unset() +} + +// GetFcSupport returns the FcSupport field value if set, zero value otherwise. +func (o *Experience) GetFcSupport() bool { + if o == nil || IsNil(o.FcSupport) { + var ret bool + return ret + } + return *o.FcSupport +} + +// GetFcSupportOk returns a tuple with the FcSupport field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Experience) GetFcSupportOk() (*bool, bool) { + if o == nil || IsNil(o.FcSupport) { + return nil, false + } + return o.FcSupport, true +} + +// HasFcSupport returns a boolean if a field has been set. +func (o *Experience) HasFcSupport() bool { + if o != nil && !IsNil(o.FcSupport) { + return true + } + + return false +} + +// SetFcSupport gets a reference to the given bool and assigns it to the FcSupport field. +func (o *Experience) SetFcSupport(v bool) { + o.FcSupport = &v +} + +// GetGarageId returns the GarageId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Experience) GetGarageId() string { + if o == nil || IsNil(o.GarageId.Get()) { + var ret string + return ret + } + return *o.GarageId.Get() +} + +// GetGarageIdOk returns a tuple with the GarageId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Experience) GetGarageIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GarageId.Get(), o.GarageId.IsSet() +} + +// HasGarageId returns a boolean if a field has been set. +func (o *Experience) HasGarageId() bool { + if o != nil && o.GarageId.IsSet() { + return true + } + + return false +} + +// SetGarageId gets a reference to the given NullableString and assigns it to the GarageId field. +func (o *Experience) SetGarageId(v string) { + o.GarageId.Set(&v) +} + +// SetGarageIdNil sets the value for GarageId to be an explicit nil +func (o *Experience) SetGarageIdNil() { + o.GarageId.Set(nil) +} + +// UnsetGarageId ensures that no value is present for GarageId, not even an explicit nil +func (o *Experience) UnsetGarageId() { + o.GarageId.Unset() +} + +// GetGcBranch returns the GcBranch field value if set, zero value otherwise. +func (o *Experience) GetGcBranch() string { + if o == nil || IsNil(o.GcBranch) { + var ret string + return ret + } + return *o.GcBranch +} + +// GetGcBranchOk returns a tuple with the GcBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Experience) GetGcBranchOk() (*string, bool) { + if o == nil || IsNil(o.GcBranch) { + return nil, false + } + return o.GcBranch, true +} + +// HasGcBranch returns a boolean if a field has been set. +func (o *Experience) HasGcBranch() bool { + if o != nil && !IsNil(o.GcBranch) { + return true + } + + return false +} + +// SetGcBranch gets a reference to the given string and assigns it to the GcBranch field. +func (o *Experience) SetGcBranch(v string) { + o.GcBranch = &v +} + +// GetGpuCount returns the GpuCount field value if set, zero value otherwise. +func (o *Experience) GetGpuCount() int32 { + if o == nil || IsNil(o.GpuCount) { + var ret int32 + return ret + } + return *o.GpuCount +} + +// GetGpuCountOk returns a tuple with the GpuCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Experience) GetGpuCountOk() (*int32, bool) { + if o == nil || IsNil(o.GpuCount) { + return nil, false + } + return o.GpuCount, true +} + +// HasGpuCount returns a boolean if a field has been set. +func (o *Experience) HasGpuCount() bool { + if o != nil && !IsNil(o.GpuCount) { + return true + } + + return false +} + +// SetGpuCount gets a reference to the given int32 and assigns it to the GpuCount field. +func (o *Experience) SetGpuCount(v int32) { + o.GpuCount = &v +} + +// GetGpuOs returns the GpuOs field value +func (o *Experience) GetGpuOs() GpuOs { + if o == nil { + var ret GpuOs + return ret + } + + return o.GpuOs +} + +// GetGpuOsOk returns a tuple with the GpuOs field value +// and a boolean to check if the value has been set. +func (o *Experience) GetGpuOsOk() (*GpuOs, bool) { + if o == nil { + return nil, false + } + return &o.GpuOs, true +} + +// SetGpuOs sets field value +func (o *Experience) SetGpuOs(v GpuOs) { + o.GpuOs = v +} + +// GetId returns the Id field value +func (o *Experience) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Experience) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Experience) SetId(v string) { + o.Id = v +} + +// GetInactivityMax returns the InactivityMax field value if set, zero value otherwise. +func (o *Experience) GetInactivityMax() int32 { + if o == nil || IsNil(o.InactivityMax) { + var ret int32 + return ret + } + return *o.InactivityMax +} + +// GetInactivityMaxOk returns a tuple with the InactivityMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Experience) GetInactivityMaxOk() (*int32, bool) { + if o == nil || IsNil(o.InactivityMax) { + return nil, false + } + return o.InactivityMax, true +} + +// HasInactivityMax returns a boolean if a field has been set. +func (o *Experience) HasInactivityMax() bool { + if o != nil && !IsNil(o.InactivityMax) { + return true + } + + return false +} + +// SetInactivityMax gets a reference to the given int32 and assigns it to the InactivityMax field. +func (o *Experience) SetInactivityMax(v int32) { + o.InactivityMax = &v +} + +// GetLifetime returns the Lifetime field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Experience) GetLifetime() int32 { + if o == nil || IsNil(o.Lifetime.Get()) { + var ret int32 + return ret + } + return *o.Lifetime.Get() +} + +// GetLifetimeOk returns a tuple with the Lifetime field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Experience) GetLifetimeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Lifetime.Get(), o.Lifetime.IsSet() +} + +// HasLifetime returns a boolean if a field has been set. +func (o *Experience) HasLifetime() bool { + if o != nil && o.Lifetime.IsSet() { + return true + } + + return false +} + +// SetLifetime gets a reference to the given NullableInt32 and assigns it to the Lifetime field. +func (o *Experience) SetLifetime(v int32) { + o.Lifetime.Set(&v) +} + +// SetLifetimeNil sets the value for Lifetime to be an explicit nil +func (o *Experience) SetLifetimeNil() { + o.Lifetime.Set(nil) +} + +// UnsetLifetime ensures that no value is present for Lifetime, not even an explicit nil +func (o *Experience) UnsetLifetime() { + o.Lifetime.Unset() +} + +// GetModified returns the Modified field value +func (o *Experience) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *Experience) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *Experience) SetModified(v time.Time) { + o.Modified = v +} + +// GetNodeCount returns the NodeCount field value if set, zero value otherwise. +func (o *Experience) 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 *Experience) 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 *Experience) 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 *Experience) SetNodeCount(v int32) { + o.NodeCount = &v +} + +// GetPersona returns the Persona field value +func (o *Experience) GetPersona() string { + if o == nil { + var ret string + return ret + } + + return o.Persona +} + +// GetPersonaOk returns a tuple with the Persona field value +// and a boolean to check if the value has been set. +func (o *Experience) GetPersonaOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Persona, true +} + +// SetPersona sets field value +func (o *Experience) SetPersona(v string) { + o.Persona = v +} + +// GetPipeline returns the Pipeline field value +func (o *Experience) GetPipeline() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Pipeline +} + +// GetPipelineOk returns a tuple with the Pipeline field value +// and a boolean to check if the value has been set. +func (o *Experience) GetPipelineOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Pipeline, true +} + +// SetPipeline sets field value +func (o *Experience) SetPipeline(v int64) { + o.Pipeline = v +} + +// GetPlatform returns the Platform field value +func (o *Experience) GetPlatform() PlatformEnum { + if o == nil { + var ret PlatformEnum + return ret + } + + return o.Platform +} + +// GetPlatformOk returns a tuple with the Platform field value +// and a boolean to check if the value has been set. +func (o *Experience) GetPlatformOk() (*PlatformEnum, bool) { + if o == nil { + return nil, false + } + return &o.Platform, true +} + +// SetPlatform sets field value +func (o *Experience) SetPlatform(v PlatformEnum) { + o.Platform = v +} + +// GetProvider returns the Provider field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Experience) GetProvider() string { + if o == nil || IsNil(o.Provider.Get()) { + var ret string + return ret + } + return *o.Provider.Get() +} + +// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Experience) GetProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Provider.Get(), o.Provider.IsSet() +} + +// HasProvider returns a boolean if a field has been set. +func (o *Experience) HasProvider() bool { + if o != nil && o.Provider.IsSet() { + return true + } + + return false +} + +// SetProvider gets a reference to the given NullableString and assigns it to the Provider field. +func (o *Experience) SetProvider(v string) { + o.Provider.Set(&v) +} + +// SetProviderNil sets the value for Provider to be an explicit nil +func (o *Experience) SetProviderNil() { + o.Provider.Set(nil) +} + +// UnsetProvider ensures that no value is present for Provider, not even an explicit nil +func (o *Experience) UnsetProvider() { + o.Provider.Unset() +} + +// GetPublished returns the Published field value if set, zero value otherwise. +func (o *Experience) GetPublished() PublishedEnum { + if o == nil || IsNil(o.Published) { + var ret PublishedEnum + return ret + } + return *o.Published +} + +// GetPublishedOk returns a tuple with the Published field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Experience) GetPublishedOk() (*PublishedEnum, bool) { + if o == nil || IsNil(o.Published) { + return nil, false + } + return o.Published, true +} + +// HasPublished returns a boolean if a field has been set. +func (o *Experience) HasPublished() bool { + if o != nil && !IsNil(o.Published) { + return true + } + + return false +} + +// SetPublished gets a reference to the given PublishedEnum and assigns it to the Published field. +func (o *Experience) SetPublished(v PublishedEnum) { + o.Published = &v +} + +// GetRepo returns the Repo field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Experience) GetRepo() string { + if o == nil || IsNil(o.Repo.Get()) { + var ret string + return ret + } + return *o.Repo.Get() +} + +// GetRepoOk returns a tuple with the Repo field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Experience) GetRepoOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Repo.Get(), o.Repo.IsSet() +} + +// HasRepo returns a boolean if a field has been set. +func (o *Experience) HasRepo() bool { + if o != nil && o.Repo.IsSet() { + return true + } + + return false +} + +// SetRepo gets a reference to the given NullableString and assigns it to the Repo field. +func (o *Experience) SetRepo(v string) { + o.Repo.Set(&v) +} + +// SetRepoNil sets the value for Repo to be an explicit nil +func (o *Experience) SetRepoNil() { + o.Repo.Set(nil) +} + +// UnsetRepo ensures that no value is present for Repo, not even an explicit nil +func (o *Experience) UnsetRepo() { + o.Repo.Unset() +} + +// GetRequiredGpus returns the RequiredGpus field value if set, zero value otherwise. +func (o *Experience) GetRequiredGpus() []string { + if o == nil || IsNil(o.RequiredGpus) { + var ret []string + return ret + } + return o.RequiredGpus +} + +// GetRequiredGpusOk returns a tuple with the RequiredGpus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Experience) GetRequiredGpusOk() ([]string, bool) { + if o == nil || IsNil(o.RequiredGpus) { + return nil, false + } + return o.RequiredGpus, true +} + +// HasRequiredGpus returns a boolean if a field has been set. +func (o *Experience) HasRequiredGpus() bool { + if o != nil && !IsNil(o.RequiredGpus) { + return true + } + + return false +} + +// SetRequiredGpus gets a reference to the given []string and assigns it to the RequiredGpus field. +func (o *Experience) SetRequiredGpus(v []string) { + o.RequiredGpus = v +} + +// GetSaLab returns the SaLab field value if set, zero value otherwise. +func (o *Experience) GetSaLab() bool { + if o == nil || IsNil(o.SaLab) { + var ret bool + return ret + } + return *o.SaLab +} + +// GetSaLabOk returns a tuple with the SaLab field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Experience) GetSaLabOk() (*bool, bool) { + if o == nil || IsNil(o.SaLab) { + return nil, false + } + return o.SaLab, true +} + +// HasSaLab returns a boolean if a field has been set. +func (o *Experience) HasSaLab() bool { + if o != nil && !IsNil(o.SaLab) { + return true + } + + return false +} + +// SetSaLab gets a reference to the given bool and assigns it to the SaLab field. +func (o *Experience) SetSaLab(v bool) { + o.SaLab = &v +} + +// GetSystemArch returns the SystemArch field value +func (o *Experience) GetSystemArch() SystemArchEnum { + if o == nil { + var ret SystemArchEnum + return ret + } + + return o.SystemArch +} + +// GetSystemArchOk returns a tuple with the SystemArch field value +// and a boolean to check if the value has been set. +func (o *Experience) GetSystemArchOk() (*SystemArchEnum, bool) { + if o == nil { + return nil, false + } + return &o.SystemArch, true +} + +// SetSystemArch sets field value +func (o *Experience) SetSystemArch(v SystemArchEnum) { + o.SystemArch = v +} + +// GetTitle returns the Title field value +func (o *Experience) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *Experience) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *Experience) SetTitle(v string) { + o.Title = v +} + +// GetVgpuProfile returns the VgpuProfile field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Experience) GetVgpuProfile() VgpuProfileEnum { + if o == nil || IsNil(o.VgpuProfile.Get()) { + var ret VgpuProfileEnum + return ret + } + return *o.VgpuProfile.Get() +} + +// GetVgpuProfileOk returns a tuple with the VgpuProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Experience) GetVgpuProfileOk() (*VgpuProfileEnum, bool) { + if o == nil { + return nil, false + } + return o.VgpuProfile.Get(), o.VgpuProfile.IsSet() +} + +// HasVgpuProfile returns a boolean if a field has been set. +func (o *Experience) HasVgpuProfile() bool { + if o != nil && o.VgpuProfile.IsSet() { + return true + } + + return false +} + +// SetVgpuProfile gets a reference to the given NullableVgpuProfileEnum and assigns it to the VgpuProfile field. +func (o *Experience) SetVgpuProfile(v VgpuProfileEnum) { + o.VgpuProfile.Set(&v) +} + +// SetVgpuProfileNil sets the value for VgpuProfile to be an explicit nil +func (o *Experience) SetVgpuProfileNil() { + o.VgpuProfile.Set(nil) +} + +// UnsetVgpuProfile ensures that no value is present for VgpuProfile, not even an explicit nil +func (o *Experience) UnsetVgpuProfile() { + o.VgpuProfile.Unset() +} + +func (o Experience) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Experience) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Assignee.IsSet() { + toSerialize["assignee"] = o.Assignee.Get() + } + if !IsNil(o.Autoapprove) { + toSerialize["autoapprove"] = o.Autoapprove + } + if !IsNil(o.Autoprovision) { + toSerialize["autoprovision"] = o.Autoprovision + } + if !IsNil(o.Bootstrap) { + toSerialize["bootstrap"] = o.Bootstrap + } + toSerialize["catalog_id"] = o.CatalogId + if o.CatalogIdAlias.IsSet() { + toSerialize["catalog_id_alias"] = o.CatalogIdAlias.Get() + } + toSerialize["category"] = o.Category + if !IsNil(o.CollectionBranch) { + toSerialize["collection_branch"] = o.CollectionBranch + } + toSerialize["created"] = o.Created + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + toSerialize["experience"] = o.Experience + if !IsNil(o.ExperienceBranch) { + toSerialize["experience_branch"] = o.ExperienceBranch + } + if o.FcPlatform.IsSet() { + toSerialize["fc_platform"] = o.FcPlatform.Get() + } + if !IsNil(o.FcSupport) { + toSerialize["fc_support"] = o.FcSupport + } + if o.GarageId.IsSet() { + toSerialize["garage_id"] = o.GarageId.Get() + } + if !IsNil(o.GcBranch) { + toSerialize["gc_branch"] = o.GcBranch + } + if !IsNil(o.GpuCount) { + toSerialize["gpu_count"] = o.GpuCount + } + toSerialize["gpu_os"] = o.GpuOs + toSerialize["id"] = o.Id + if !IsNil(o.InactivityMax) { + toSerialize["inactivity_max"] = o.InactivityMax + } + if o.Lifetime.IsSet() { + toSerialize["lifetime"] = o.Lifetime.Get() + } + toSerialize["modified"] = o.Modified + if !IsNil(o.NodeCount) { + toSerialize["node_count"] = o.NodeCount + } + toSerialize["persona"] = o.Persona + toSerialize["pipeline"] = o.Pipeline + toSerialize["platform"] = o.Platform + if o.Provider.IsSet() { + toSerialize["provider"] = o.Provider.Get() + } + if !IsNil(o.Published) { + toSerialize["published"] = o.Published + } + if o.Repo.IsSet() { + toSerialize["repo"] = o.Repo.Get() + } + if !IsNil(o.RequiredGpus) { + toSerialize["required_gpus"] = o.RequiredGpus + } + if !IsNil(o.SaLab) { + toSerialize["sa_lab"] = o.SaLab + } + toSerialize["system_arch"] = o.SystemArch + toSerialize["title"] = o.Title + if o.VgpuProfile.IsSet() { + toSerialize["vgpu_profile"] = o.VgpuProfile.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Experience) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "catalog_id", + "category", + "created", + "experience", + "gpu_os", + "id", + "modified", + "persona", + "pipeline", + "platform", + "system_arch", + "title", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varExperience := _Experience{} + + err = json.Unmarshal(data, &varExperience) + + if err != nil { + return err + } + + *o = Experience(varExperience) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "assignee") + delete(additionalProperties, "autoapprove") + delete(additionalProperties, "autoprovision") + delete(additionalProperties, "bootstrap") + delete(additionalProperties, "catalog_id") + delete(additionalProperties, "catalog_id_alias") + delete(additionalProperties, "category") + delete(additionalProperties, "collection_branch") + delete(additionalProperties, "created") + delete(additionalProperties, "description") + delete(additionalProperties, "experience") + delete(additionalProperties, "experience_branch") + delete(additionalProperties, "fc_platform") + delete(additionalProperties, "fc_support") + delete(additionalProperties, "garage_id") + delete(additionalProperties, "gc_branch") + delete(additionalProperties, "gpu_count") + delete(additionalProperties, "gpu_os") + delete(additionalProperties, "id") + delete(additionalProperties, "inactivity_max") + delete(additionalProperties, "lifetime") + delete(additionalProperties, "modified") + delete(additionalProperties, "node_count") + delete(additionalProperties, "persona") + delete(additionalProperties, "pipeline") + delete(additionalProperties, "platform") + delete(additionalProperties, "provider") + delete(additionalProperties, "published") + delete(additionalProperties, "repo") + delete(additionalProperties, "required_gpus") + delete(additionalProperties, "sa_lab") + delete(additionalProperties, "system_arch") + delete(additionalProperties, "title") + delete(additionalProperties, "vgpu_profile") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableExperience struct { + value *Experience + isSet bool +} + +func (v NullableExperience) Get() *Experience { + return v.value +} + +func (v *NullableExperience) Set(val *Experience) { + v.value = val + v.isSet = true +} + +func (v NullableExperience) IsSet() bool { + return v.isSet +} + +func (v *NullableExperience) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExperience(val *Experience) *NullableExperience { + return &NullableExperience{value: val, isSet: true} +} + +func (v NullableExperience) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExperience) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_experience_bulk.go b/v1/providers/launchpad/gen/launchpad/model_experience_bulk.go new file mode 100644 index 0000000..9271f99 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_experience_bulk.go @@ -0,0 +1,195 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the ExperienceBulk type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ExperienceBulk{} + +// ExperienceBulk struct for ExperienceBulk +type ExperienceBulk struct { + CsvFile string `json:"csv_file"` + Experiences []Experience `json:"experiences"` + AdditionalProperties map[string]interface{} +} + +type _ExperienceBulk ExperienceBulk + +// NewExperienceBulk instantiates a new ExperienceBulk 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 NewExperienceBulk(csvFile string, experiences []Experience) *ExperienceBulk { + this := ExperienceBulk{} + this.CsvFile = csvFile + this.Experiences = experiences + return &this +} + +// NewExperienceBulkWithDefaults instantiates a new ExperienceBulk 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 NewExperienceBulkWithDefaults() *ExperienceBulk { + this := ExperienceBulk{} + return &this +} + +// GetCsvFile returns the CsvFile field value +func (o *ExperienceBulk) GetCsvFile() string { + if o == nil { + var ret string + return ret + } + + return o.CsvFile +} + +// GetCsvFileOk returns a tuple with the CsvFile field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulk) GetCsvFileOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CsvFile, true +} + +// SetCsvFile sets field value +func (o *ExperienceBulk) SetCsvFile(v string) { + o.CsvFile = v +} + +// GetExperiences returns the Experiences field value +func (o *ExperienceBulk) GetExperiences() []Experience { + if o == nil { + var ret []Experience + return ret + } + + return o.Experiences +} + +// GetExperiencesOk returns a tuple with the Experiences field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulk) GetExperiencesOk() ([]Experience, bool) { + if o == nil { + return nil, false + } + return o.Experiences, true +} + +// SetExperiences sets field value +func (o *ExperienceBulk) SetExperiences(v []Experience) { + o.Experiences = v +} + +func (o ExperienceBulk) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ExperienceBulk) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["csv_file"] = o.CsvFile + toSerialize["experiences"] = o.Experiences + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ExperienceBulk) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "csv_file", + "experiences", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varExperienceBulk := _ExperienceBulk{} + + err = json.Unmarshal(data, &varExperienceBulk) + + if err != nil { + return err + } + + *o = ExperienceBulk(varExperienceBulk) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "csv_file") + delete(additionalProperties, "experiences") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableExperienceBulk struct { + value *ExperienceBulk + isSet bool +} + +func (v NullableExperienceBulk) Get() *ExperienceBulk { + return v.value +} + +func (v *NullableExperienceBulk) Set(val *ExperienceBulk) { + v.value = val + v.isSet = true +} + +func (v NullableExperienceBulk) IsSet() bool { + return v.isSet +} + +func (v *NullableExperienceBulk) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExperienceBulk(val *ExperienceBulk) *NullableExperienceBulk { + return &NullableExperienceBulk{value: val, isSet: true} +} + +func (v NullableExperienceBulk) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExperienceBulk) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_experience_bulk_update.go b/v1/providers/launchpad/gen/launchpad/model_experience_bulk_update.go new file mode 100644 index 0000000..d044fb3 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_experience_bulk_update.go @@ -0,0 +1,1496 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the ExperienceBulkUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ExperienceBulkUpdate{} + +// ExperienceBulkUpdate struct for ExperienceBulkUpdate +type ExperienceBulkUpdate struct { + // User ID who is responsible for manual provisioning + Assignee NullableString `json:"assignee,omitempty"` + // Can the experience be provisioned without human approval? + Autoapprove *bool `json:"autoapprove,omitempty"` + // Can the experience be provisioned without human intervention? + Autoprovision *bool `json:"autoprovision,omitempty"` + // Can this experience be used to bootstrap another compatible experience? + Bootstrap *bool `json:"bootstrap,omitempty"` + // Unique ID for this experience in the sales catalog. Must be unique. + CatalogId string `json:"catalog_id"` + // Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique. + CatalogIdAlias NullableString `json:"catalog_id_alias"` + // Functional group that this experience is targetting * `AI` - AI * `Clara` - Clara * `Data Science` - Data Science * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation * `Developer` - Developer * `Infrastructure Optimization` - Infrastructure Optimization + Category CategoryEnum `json:"category"` + // Ansible collection branch initialized within the pipeline + CollectionBranch *string `json:"collection_branch,omitempty"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + Description NullableString `json:"description,omitempty"` + // Experience name slug + Experience string `json:"experience"` + // Experience branch name used during deployment (default: origin/main) + ExperienceBranch *string `json:"experience_branch,omitempty"` + FcPlatform NullableFcPlatformEnum `json:"fc_platform,omitempty"` + // Does the experience support Flight Control? + FcSupport *bool `json:"fc_support,omitempty"` + // ID of the garage where nodes for this experience should be selected from + GarageId NullableString `json:"garage_id,omitempty"` + // Ground Control branch name (default: main) + GcBranch *string `json:"gc_branch,omitempty"` + // Number of GPUs used + GpuCount *int32 `json:"gpu_count,omitempty"` + GpuOs GpuOs `json:"gpu_os"` + Id string `json:"id"` + // Number of days without user interaction before the experience is torn down (default: 3) + InactivityMax *int32 `json:"inactivity_max,omitempty"` + // Default number of days a provisioned experience should remain active (default: 3). A null lifetime will cause a deployment to remain active indefinitely. + Lifetime NullableInt32 `json:"lifetime,omitempty"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Number of Nodes used + NodeCount *int32 `json:"node_count,omitempty"` + Persona string `json:"persona"` + // Pipeline ID used for provisioning + Pipeline int64 `json:"pipeline"` + // Base platform that the experience will be provisioned onto * `air` - NVIDIA Air * `flight_deck` - Flight Deck * `kvm_bastion` - KVM Bastion * `lp-vmware-platform` - lp-vmware-platform * `minimal` - minimal * `openshift` - OpenShift * `vsphere` - vSphere * `vsphere_horizon` - VMware Horizon * `vsphere7` - vSphere 7 * `vsphere8` - vSphere 8 + Platform PlatformEnum `json:"platform"` + // If set, the experience must be provisioned to the given provider + Provider NullableString `json:"provider,omitempty"` + // Is the experience published for use? * `draft` - draft * `no` - no * `yes` - yes + Published *PublishedEnum `json:"published,omitempty"` + // URL of the repository for provisioning automation + Repo NullableString `json:"repo,omitempty"` + // If set, the experience must be provisioned using one of the given GPU types. GPU requirements are evaluated in the order they are set (ex: [\"{l40s_gpu_uuid}\", \"{a100_gpu_uuid}\"] will prefer an l40s). + RequiredGpus []string `json:"required_gpus,omitempty"` + // Is this a persistent experience for SAs? + SaLab *bool `json:"sa_lab,omitempty"` + // Required CPU architecture * `amd64` - amd64 * `arm64` - arm64 + SystemArch SystemArchEnum `json:"system_arch"` + Title string `json:"title"` + VgpuProfile NullableVgpuProfileEnum `json:"vgpu_profile,omitempty"` + Count int32 `json:"count"` + Ids []string `json:"ids"` + Result string `json:"result"` + AdditionalProperties map[string]interface{} +} + +type _ExperienceBulkUpdate ExperienceBulkUpdate + +// NewExperienceBulkUpdate instantiates a new ExperienceBulkUpdate 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 NewExperienceBulkUpdate(catalogId string, catalogIdAlias NullableString, category CategoryEnum, created time.Time, experience string, gpuOs GpuOs, id string, modified time.Time, persona string, pipeline int64, platform PlatformEnum, systemArch SystemArchEnum, title string, count int32, ids []string, result string) *ExperienceBulkUpdate { + this := ExperienceBulkUpdate{} + this.CatalogId = catalogId + this.CatalogIdAlias = catalogIdAlias + this.Category = category + this.Created = created + this.Experience = experience + this.GpuOs = gpuOs + this.Id = id + this.Modified = modified + this.Persona = persona + this.Pipeline = pipeline + this.Platform = platform + this.SystemArch = systemArch + this.Title = title + this.Count = count + this.Ids = ids + this.Result = result + return &this +} + +// NewExperienceBulkUpdateWithDefaults instantiates a new ExperienceBulkUpdate 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 NewExperienceBulkUpdateWithDefaults() *ExperienceBulkUpdate { + this := ExperienceBulkUpdate{} + return &this +} + +// GetAssignee returns the Assignee field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ExperienceBulkUpdate) GetAssignee() string { + if o == nil || IsNil(o.Assignee.Get()) { + var ret string + return ret + } + return *o.Assignee.Get() +} + +// GetAssigneeOk returns a tuple with the Assignee field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ExperienceBulkUpdate) GetAssigneeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Assignee.Get(), o.Assignee.IsSet() +} + +// HasAssignee returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasAssignee() bool { + if o != nil && o.Assignee.IsSet() { + return true + } + + return false +} + +// SetAssignee gets a reference to the given NullableString and assigns it to the Assignee field. +func (o *ExperienceBulkUpdate) SetAssignee(v string) { + o.Assignee.Set(&v) +} + +// SetAssigneeNil sets the value for Assignee to be an explicit nil +func (o *ExperienceBulkUpdate) SetAssigneeNil() { + o.Assignee.Set(nil) +} + +// UnsetAssignee ensures that no value is present for Assignee, not even an explicit nil +func (o *ExperienceBulkUpdate) UnsetAssignee() { + o.Assignee.Unset() +} + +// GetAutoapprove returns the Autoapprove field value if set, zero value otherwise. +func (o *ExperienceBulkUpdate) GetAutoapprove() bool { + if o == nil || IsNil(o.Autoapprove) { + var ret bool + return ret + } + return *o.Autoapprove +} + +// GetAutoapproveOk returns a tuple with the Autoapprove field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetAutoapproveOk() (*bool, bool) { + if o == nil || IsNil(o.Autoapprove) { + return nil, false + } + return o.Autoapprove, true +} + +// HasAutoapprove returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasAutoapprove() bool { + if o != nil && !IsNil(o.Autoapprove) { + return true + } + + return false +} + +// SetAutoapprove gets a reference to the given bool and assigns it to the Autoapprove field. +func (o *ExperienceBulkUpdate) SetAutoapprove(v bool) { + o.Autoapprove = &v +} + +// GetAutoprovision returns the Autoprovision field value if set, zero value otherwise. +func (o *ExperienceBulkUpdate) GetAutoprovision() bool { + if o == nil || IsNil(o.Autoprovision) { + var ret bool + return ret + } + return *o.Autoprovision +} + +// GetAutoprovisionOk returns a tuple with the Autoprovision field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetAutoprovisionOk() (*bool, bool) { + if o == nil || IsNil(o.Autoprovision) { + return nil, false + } + return o.Autoprovision, true +} + +// HasAutoprovision returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasAutoprovision() bool { + if o != nil && !IsNil(o.Autoprovision) { + return true + } + + return false +} + +// SetAutoprovision gets a reference to the given bool and assigns it to the Autoprovision field. +func (o *ExperienceBulkUpdate) SetAutoprovision(v bool) { + o.Autoprovision = &v +} + +// GetBootstrap returns the Bootstrap field value if set, zero value otherwise. +func (o *ExperienceBulkUpdate) GetBootstrap() bool { + if o == nil || IsNil(o.Bootstrap) { + var ret bool + return ret + } + return *o.Bootstrap +} + +// GetBootstrapOk returns a tuple with the Bootstrap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetBootstrapOk() (*bool, bool) { + if o == nil || IsNil(o.Bootstrap) { + return nil, false + } + return o.Bootstrap, true +} + +// HasBootstrap returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasBootstrap() bool { + if o != nil && !IsNil(o.Bootstrap) { + return true + } + + return false +} + +// SetBootstrap gets a reference to the given bool and assigns it to the Bootstrap field. +func (o *ExperienceBulkUpdate) SetBootstrap(v bool) { + o.Bootstrap = &v +} + +// GetCatalogId returns the CatalogId field value +func (o *ExperienceBulkUpdate) GetCatalogId() string { + if o == nil { + var ret string + return ret + } + + return o.CatalogId +} + +// GetCatalogIdOk returns a tuple with the CatalogId field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetCatalogIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CatalogId, true +} + +// SetCatalogId sets field value +func (o *ExperienceBulkUpdate) SetCatalogId(v string) { + o.CatalogId = v +} + +// GetCatalogIdAlias returns the CatalogIdAlias field value +// If the value is explicit nil, the zero value for string will be returned +func (o *ExperienceBulkUpdate) GetCatalogIdAlias() string { + if o == nil || o.CatalogIdAlias.Get() == nil { + var ret string + return ret + } + + return *o.CatalogIdAlias.Get() +} + +// GetCatalogIdAliasOk returns a tuple with the CatalogIdAlias field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ExperienceBulkUpdate) GetCatalogIdAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CatalogIdAlias.Get(), o.CatalogIdAlias.IsSet() +} + +// SetCatalogIdAlias sets field value +func (o *ExperienceBulkUpdate) SetCatalogIdAlias(v string) { + o.CatalogIdAlias.Set(&v) +} + +// GetCategory returns the Category field value +func (o *ExperienceBulkUpdate) GetCategory() CategoryEnum { + if o == nil { + var ret CategoryEnum + return ret + } + + return o.Category +} + +// GetCategoryOk returns a tuple with the Category field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetCategoryOk() (*CategoryEnum, bool) { + if o == nil { + return nil, false + } + return &o.Category, true +} + +// SetCategory sets field value +func (o *ExperienceBulkUpdate) SetCategory(v CategoryEnum) { + o.Category = v +} + +// GetCollectionBranch returns the CollectionBranch field value if set, zero value otherwise. +func (o *ExperienceBulkUpdate) GetCollectionBranch() string { + if o == nil || IsNil(o.CollectionBranch) { + var ret string + return ret + } + return *o.CollectionBranch +} + +// GetCollectionBranchOk returns a tuple with the CollectionBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetCollectionBranchOk() (*string, bool) { + if o == nil || IsNil(o.CollectionBranch) { + return nil, false + } + return o.CollectionBranch, true +} + +// HasCollectionBranch returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasCollectionBranch() bool { + if o != nil && !IsNil(o.CollectionBranch) { + return true + } + + return false +} + +// SetCollectionBranch gets a reference to the given string and assigns it to the CollectionBranch field. +func (o *ExperienceBulkUpdate) SetCollectionBranch(v string) { + o.CollectionBranch = &v +} + +// GetCreated returns the Created field value +func (o *ExperienceBulkUpdate) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *ExperienceBulkUpdate) SetCreated(v time.Time) { + o.Created = v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ExperienceBulkUpdate) GetDescription() string { + if o == nil || IsNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ExperienceBulkUpdate) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *ExperienceBulkUpdate) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *ExperienceBulkUpdate) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *ExperienceBulkUpdate) UnsetDescription() { + o.Description.Unset() +} + +// GetExperience returns the Experience field value +func (o *ExperienceBulkUpdate) GetExperience() string { + if o == nil { + var ret string + return ret + } + + return o.Experience +} + +// GetExperienceOk returns a tuple with the Experience field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetExperienceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Experience, true +} + +// SetExperience sets field value +func (o *ExperienceBulkUpdate) SetExperience(v string) { + o.Experience = v +} + +// GetExperienceBranch returns the ExperienceBranch field value if set, zero value otherwise. +func (o *ExperienceBulkUpdate) GetExperienceBranch() string { + if o == nil || IsNil(o.ExperienceBranch) { + var ret string + return ret + } + return *o.ExperienceBranch +} + +// GetExperienceBranchOk returns a tuple with the ExperienceBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetExperienceBranchOk() (*string, bool) { + if o == nil || IsNil(o.ExperienceBranch) { + return nil, false + } + return o.ExperienceBranch, true +} + +// HasExperienceBranch returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasExperienceBranch() bool { + if o != nil && !IsNil(o.ExperienceBranch) { + return true + } + + return false +} + +// SetExperienceBranch gets a reference to the given string and assigns it to the ExperienceBranch field. +func (o *ExperienceBulkUpdate) SetExperienceBranch(v string) { + o.ExperienceBranch = &v +} + +// GetFcPlatform returns the FcPlatform field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ExperienceBulkUpdate) GetFcPlatform() FcPlatformEnum { + if o == nil || IsNil(o.FcPlatform.Get()) { + var ret FcPlatformEnum + return ret + } + return *o.FcPlatform.Get() +} + +// GetFcPlatformOk returns a tuple with the FcPlatform field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ExperienceBulkUpdate) GetFcPlatformOk() (*FcPlatformEnum, bool) { + if o == nil { + return nil, false + } + return o.FcPlatform.Get(), o.FcPlatform.IsSet() +} + +// HasFcPlatform returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasFcPlatform() bool { + if o != nil && o.FcPlatform.IsSet() { + return true + } + + return false +} + +// SetFcPlatform gets a reference to the given NullableFcPlatformEnum and assigns it to the FcPlatform field. +func (o *ExperienceBulkUpdate) SetFcPlatform(v FcPlatformEnum) { + o.FcPlatform.Set(&v) +} + +// SetFcPlatformNil sets the value for FcPlatform to be an explicit nil +func (o *ExperienceBulkUpdate) SetFcPlatformNil() { + o.FcPlatform.Set(nil) +} + +// UnsetFcPlatform ensures that no value is present for FcPlatform, not even an explicit nil +func (o *ExperienceBulkUpdate) UnsetFcPlatform() { + o.FcPlatform.Unset() +} + +// GetFcSupport returns the FcSupport field value if set, zero value otherwise. +func (o *ExperienceBulkUpdate) GetFcSupport() bool { + if o == nil || IsNil(o.FcSupport) { + var ret bool + return ret + } + return *o.FcSupport +} + +// GetFcSupportOk returns a tuple with the FcSupport field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetFcSupportOk() (*bool, bool) { + if o == nil || IsNil(o.FcSupport) { + return nil, false + } + return o.FcSupport, true +} + +// HasFcSupport returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasFcSupport() bool { + if o != nil && !IsNil(o.FcSupport) { + return true + } + + return false +} + +// SetFcSupport gets a reference to the given bool and assigns it to the FcSupport field. +func (o *ExperienceBulkUpdate) SetFcSupport(v bool) { + o.FcSupport = &v +} + +// GetGarageId returns the GarageId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ExperienceBulkUpdate) GetGarageId() string { + if o == nil || IsNil(o.GarageId.Get()) { + var ret string + return ret + } + return *o.GarageId.Get() +} + +// GetGarageIdOk returns a tuple with the GarageId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ExperienceBulkUpdate) GetGarageIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GarageId.Get(), o.GarageId.IsSet() +} + +// HasGarageId returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasGarageId() bool { + if o != nil && o.GarageId.IsSet() { + return true + } + + return false +} + +// SetGarageId gets a reference to the given NullableString and assigns it to the GarageId field. +func (o *ExperienceBulkUpdate) SetGarageId(v string) { + o.GarageId.Set(&v) +} + +// SetGarageIdNil sets the value for GarageId to be an explicit nil +func (o *ExperienceBulkUpdate) SetGarageIdNil() { + o.GarageId.Set(nil) +} + +// UnsetGarageId ensures that no value is present for GarageId, not even an explicit nil +func (o *ExperienceBulkUpdate) UnsetGarageId() { + o.GarageId.Unset() +} + +// GetGcBranch returns the GcBranch field value if set, zero value otherwise. +func (o *ExperienceBulkUpdate) GetGcBranch() string { + if o == nil || IsNil(o.GcBranch) { + var ret string + return ret + } + return *o.GcBranch +} + +// GetGcBranchOk returns a tuple with the GcBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetGcBranchOk() (*string, bool) { + if o == nil || IsNil(o.GcBranch) { + return nil, false + } + return o.GcBranch, true +} + +// HasGcBranch returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasGcBranch() bool { + if o != nil && !IsNil(o.GcBranch) { + return true + } + + return false +} + +// SetGcBranch gets a reference to the given string and assigns it to the GcBranch field. +func (o *ExperienceBulkUpdate) SetGcBranch(v string) { + o.GcBranch = &v +} + +// GetGpuCount returns the GpuCount field value if set, zero value otherwise. +func (o *ExperienceBulkUpdate) GetGpuCount() int32 { + if o == nil || IsNil(o.GpuCount) { + var ret int32 + return ret + } + return *o.GpuCount +} + +// GetGpuCountOk returns a tuple with the GpuCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetGpuCountOk() (*int32, bool) { + if o == nil || IsNil(o.GpuCount) { + return nil, false + } + return o.GpuCount, true +} + +// HasGpuCount returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasGpuCount() bool { + if o != nil && !IsNil(o.GpuCount) { + return true + } + + return false +} + +// SetGpuCount gets a reference to the given int32 and assigns it to the GpuCount field. +func (o *ExperienceBulkUpdate) SetGpuCount(v int32) { + o.GpuCount = &v +} + +// GetGpuOs returns the GpuOs field value +func (o *ExperienceBulkUpdate) GetGpuOs() GpuOs { + if o == nil { + var ret GpuOs + return ret + } + + return o.GpuOs +} + +// GetGpuOsOk returns a tuple with the GpuOs field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetGpuOsOk() (*GpuOs, bool) { + if o == nil { + return nil, false + } + return &o.GpuOs, true +} + +// SetGpuOs sets field value +func (o *ExperienceBulkUpdate) SetGpuOs(v GpuOs) { + o.GpuOs = v +} + +// GetId returns the Id field value +func (o *ExperienceBulkUpdate) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ExperienceBulkUpdate) SetId(v string) { + o.Id = v +} + +// GetInactivityMax returns the InactivityMax field value if set, zero value otherwise. +func (o *ExperienceBulkUpdate) GetInactivityMax() int32 { + if o == nil || IsNil(o.InactivityMax) { + var ret int32 + return ret + } + return *o.InactivityMax +} + +// GetInactivityMaxOk returns a tuple with the InactivityMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetInactivityMaxOk() (*int32, bool) { + if o == nil || IsNil(o.InactivityMax) { + return nil, false + } + return o.InactivityMax, true +} + +// HasInactivityMax returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasInactivityMax() bool { + if o != nil && !IsNil(o.InactivityMax) { + return true + } + + return false +} + +// SetInactivityMax gets a reference to the given int32 and assigns it to the InactivityMax field. +func (o *ExperienceBulkUpdate) SetInactivityMax(v int32) { + o.InactivityMax = &v +} + +// GetLifetime returns the Lifetime field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ExperienceBulkUpdate) GetLifetime() int32 { + if o == nil || IsNil(o.Lifetime.Get()) { + var ret int32 + return ret + } + return *o.Lifetime.Get() +} + +// GetLifetimeOk returns a tuple with the Lifetime field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ExperienceBulkUpdate) GetLifetimeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Lifetime.Get(), o.Lifetime.IsSet() +} + +// HasLifetime returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasLifetime() bool { + if o != nil && o.Lifetime.IsSet() { + return true + } + + return false +} + +// SetLifetime gets a reference to the given NullableInt32 and assigns it to the Lifetime field. +func (o *ExperienceBulkUpdate) SetLifetime(v int32) { + o.Lifetime.Set(&v) +} + +// SetLifetimeNil sets the value for Lifetime to be an explicit nil +func (o *ExperienceBulkUpdate) SetLifetimeNil() { + o.Lifetime.Set(nil) +} + +// UnsetLifetime ensures that no value is present for Lifetime, not even an explicit nil +func (o *ExperienceBulkUpdate) UnsetLifetime() { + o.Lifetime.Unset() +} + +// GetModified returns the Modified field value +func (o *ExperienceBulkUpdate) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *ExperienceBulkUpdate) SetModified(v time.Time) { + o.Modified = v +} + +// GetNodeCount returns the NodeCount field value if set, zero value otherwise. +func (o *ExperienceBulkUpdate) 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 *ExperienceBulkUpdate) 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 *ExperienceBulkUpdate) 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 *ExperienceBulkUpdate) SetNodeCount(v int32) { + o.NodeCount = &v +} + +// GetPersona returns the Persona field value +func (o *ExperienceBulkUpdate) GetPersona() string { + if o == nil { + var ret string + return ret + } + + return o.Persona +} + +// GetPersonaOk returns a tuple with the Persona field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetPersonaOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Persona, true +} + +// SetPersona sets field value +func (o *ExperienceBulkUpdate) SetPersona(v string) { + o.Persona = v +} + +// GetPipeline returns the Pipeline field value +func (o *ExperienceBulkUpdate) GetPipeline() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Pipeline +} + +// GetPipelineOk returns a tuple with the Pipeline field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetPipelineOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Pipeline, true +} + +// SetPipeline sets field value +func (o *ExperienceBulkUpdate) SetPipeline(v int64) { + o.Pipeline = v +} + +// GetPlatform returns the Platform field value +func (o *ExperienceBulkUpdate) GetPlatform() PlatformEnum { + if o == nil { + var ret PlatformEnum + return ret + } + + return o.Platform +} + +// GetPlatformOk returns a tuple with the Platform field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetPlatformOk() (*PlatformEnum, bool) { + if o == nil { + return nil, false + } + return &o.Platform, true +} + +// SetPlatform sets field value +func (o *ExperienceBulkUpdate) SetPlatform(v PlatformEnum) { + o.Platform = v +} + +// GetProvider returns the Provider field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ExperienceBulkUpdate) GetProvider() string { + if o == nil || IsNil(o.Provider.Get()) { + var ret string + return ret + } + return *o.Provider.Get() +} + +// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ExperienceBulkUpdate) GetProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Provider.Get(), o.Provider.IsSet() +} + +// HasProvider returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasProvider() bool { + if o != nil && o.Provider.IsSet() { + return true + } + + return false +} + +// SetProvider gets a reference to the given NullableString and assigns it to the Provider field. +func (o *ExperienceBulkUpdate) SetProvider(v string) { + o.Provider.Set(&v) +} + +// SetProviderNil sets the value for Provider to be an explicit nil +func (o *ExperienceBulkUpdate) SetProviderNil() { + o.Provider.Set(nil) +} + +// UnsetProvider ensures that no value is present for Provider, not even an explicit nil +func (o *ExperienceBulkUpdate) UnsetProvider() { + o.Provider.Unset() +} + +// GetPublished returns the Published field value if set, zero value otherwise. +func (o *ExperienceBulkUpdate) GetPublished() PublishedEnum { + if o == nil || IsNil(o.Published) { + var ret PublishedEnum + return ret + } + return *o.Published +} + +// GetPublishedOk returns a tuple with the Published field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetPublishedOk() (*PublishedEnum, bool) { + if o == nil || IsNil(o.Published) { + return nil, false + } + return o.Published, true +} + +// HasPublished returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasPublished() bool { + if o != nil && !IsNil(o.Published) { + return true + } + + return false +} + +// SetPublished gets a reference to the given PublishedEnum and assigns it to the Published field. +func (o *ExperienceBulkUpdate) SetPublished(v PublishedEnum) { + o.Published = &v +} + +// GetRepo returns the Repo field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ExperienceBulkUpdate) GetRepo() string { + if o == nil || IsNil(o.Repo.Get()) { + var ret string + return ret + } + return *o.Repo.Get() +} + +// GetRepoOk returns a tuple with the Repo field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ExperienceBulkUpdate) GetRepoOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Repo.Get(), o.Repo.IsSet() +} + +// HasRepo returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasRepo() bool { + if o != nil && o.Repo.IsSet() { + return true + } + + return false +} + +// SetRepo gets a reference to the given NullableString and assigns it to the Repo field. +func (o *ExperienceBulkUpdate) SetRepo(v string) { + o.Repo.Set(&v) +} + +// SetRepoNil sets the value for Repo to be an explicit nil +func (o *ExperienceBulkUpdate) SetRepoNil() { + o.Repo.Set(nil) +} + +// UnsetRepo ensures that no value is present for Repo, not even an explicit nil +func (o *ExperienceBulkUpdate) UnsetRepo() { + o.Repo.Unset() +} + +// GetRequiredGpus returns the RequiredGpus field value if set, zero value otherwise. +func (o *ExperienceBulkUpdate) GetRequiredGpus() []string { + if o == nil || IsNil(o.RequiredGpus) { + var ret []string + return ret + } + return o.RequiredGpus +} + +// GetRequiredGpusOk returns a tuple with the RequiredGpus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetRequiredGpusOk() ([]string, bool) { + if o == nil || IsNil(o.RequiredGpus) { + return nil, false + } + return o.RequiredGpus, true +} + +// HasRequiredGpus returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasRequiredGpus() bool { + if o != nil && !IsNil(o.RequiredGpus) { + return true + } + + return false +} + +// SetRequiredGpus gets a reference to the given []string and assigns it to the RequiredGpus field. +func (o *ExperienceBulkUpdate) SetRequiredGpus(v []string) { + o.RequiredGpus = v +} + +// GetSaLab returns the SaLab field value if set, zero value otherwise. +func (o *ExperienceBulkUpdate) GetSaLab() bool { + if o == nil || IsNil(o.SaLab) { + var ret bool + return ret + } + return *o.SaLab +} + +// GetSaLabOk returns a tuple with the SaLab field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetSaLabOk() (*bool, bool) { + if o == nil || IsNil(o.SaLab) { + return nil, false + } + return o.SaLab, true +} + +// HasSaLab returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasSaLab() bool { + if o != nil && !IsNil(o.SaLab) { + return true + } + + return false +} + +// SetSaLab gets a reference to the given bool and assigns it to the SaLab field. +func (o *ExperienceBulkUpdate) SetSaLab(v bool) { + o.SaLab = &v +} + +// GetSystemArch returns the SystemArch field value +func (o *ExperienceBulkUpdate) GetSystemArch() SystemArchEnum { + if o == nil { + var ret SystemArchEnum + return ret + } + + return o.SystemArch +} + +// GetSystemArchOk returns a tuple with the SystemArch field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetSystemArchOk() (*SystemArchEnum, bool) { + if o == nil { + return nil, false + } + return &o.SystemArch, true +} + +// SetSystemArch sets field value +func (o *ExperienceBulkUpdate) SetSystemArch(v SystemArchEnum) { + o.SystemArch = v +} + +// GetTitle returns the Title field value +func (o *ExperienceBulkUpdate) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *ExperienceBulkUpdate) SetTitle(v string) { + o.Title = v +} + +// GetVgpuProfile returns the VgpuProfile field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ExperienceBulkUpdate) GetVgpuProfile() VgpuProfileEnum { + if o == nil || IsNil(o.VgpuProfile.Get()) { + var ret VgpuProfileEnum + return ret + } + return *o.VgpuProfile.Get() +} + +// GetVgpuProfileOk returns a tuple with the VgpuProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ExperienceBulkUpdate) GetVgpuProfileOk() (*VgpuProfileEnum, bool) { + if o == nil { + return nil, false + } + return o.VgpuProfile.Get(), o.VgpuProfile.IsSet() +} + +// HasVgpuProfile returns a boolean if a field has been set. +func (o *ExperienceBulkUpdate) HasVgpuProfile() bool { + if o != nil && o.VgpuProfile.IsSet() { + return true + } + + return false +} + +// SetVgpuProfile gets a reference to the given NullableVgpuProfileEnum and assigns it to the VgpuProfile field. +func (o *ExperienceBulkUpdate) SetVgpuProfile(v VgpuProfileEnum) { + o.VgpuProfile.Set(&v) +} + +// SetVgpuProfileNil sets the value for VgpuProfile to be an explicit nil +func (o *ExperienceBulkUpdate) SetVgpuProfileNil() { + o.VgpuProfile.Set(nil) +} + +// UnsetVgpuProfile ensures that no value is present for VgpuProfile, not even an explicit nil +func (o *ExperienceBulkUpdate) UnsetVgpuProfile() { + o.VgpuProfile.Unset() +} + +// GetCount returns the Count field value +func (o *ExperienceBulkUpdate) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *ExperienceBulkUpdate) SetCount(v int32) { + o.Count = v +} + +// GetIds returns the Ids field value +func (o *ExperienceBulkUpdate) GetIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ids +} + +// GetIdsOk returns a tuple with the Ids field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ids, true +} + +// SetIds sets field value +func (o *ExperienceBulkUpdate) SetIds(v []string) { + o.Ids = v +} + +// GetResult returns the Result field value +func (o *ExperienceBulkUpdate) GetResult() string { + if o == nil { + var ret string + return ret + } + + return o.Result +} + +// GetResultOk returns a tuple with the Result field value +// and a boolean to check if the value has been set. +func (o *ExperienceBulkUpdate) GetResultOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Result, true +} + +// SetResult sets field value +func (o *ExperienceBulkUpdate) SetResult(v string) { + o.Result = v +} + +func (o ExperienceBulkUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ExperienceBulkUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Assignee.IsSet() { + toSerialize["assignee"] = o.Assignee.Get() + } + if !IsNil(o.Autoapprove) { + toSerialize["autoapprove"] = o.Autoapprove + } + if !IsNil(o.Autoprovision) { + toSerialize["autoprovision"] = o.Autoprovision + } + if !IsNil(o.Bootstrap) { + toSerialize["bootstrap"] = o.Bootstrap + } + toSerialize["catalog_id"] = o.CatalogId + toSerialize["catalog_id_alias"] = o.CatalogIdAlias.Get() + toSerialize["category"] = o.Category + if !IsNil(o.CollectionBranch) { + toSerialize["collection_branch"] = o.CollectionBranch + } + toSerialize["created"] = o.Created + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + toSerialize["experience"] = o.Experience + if !IsNil(o.ExperienceBranch) { + toSerialize["experience_branch"] = o.ExperienceBranch + } + if o.FcPlatform.IsSet() { + toSerialize["fc_platform"] = o.FcPlatform.Get() + } + if !IsNil(o.FcSupport) { + toSerialize["fc_support"] = o.FcSupport + } + if o.GarageId.IsSet() { + toSerialize["garage_id"] = o.GarageId.Get() + } + if !IsNil(o.GcBranch) { + toSerialize["gc_branch"] = o.GcBranch + } + if !IsNil(o.GpuCount) { + toSerialize["gpu_count"] = o.GpuCount + } + toSerialize["gpu_os"] = o.GpuOs + toSerialize["id"] = o.Id + if !IsNil(o.InactivityMax) { + toSerialize["inactivity_max"] = o.InactivityMax + } + if o.Lifetime.IsSet() { + toSerialize["lifetime"] = o.Lifetime.Get() + } + toSerialize["modified"] = o.Modified + if !IsNil(o.NodeCount) { + toSerialize["node_count"] = o.NodeCount + } + toSerialize["persona"] = o.Persona + toSerialize["pipeline"] = o.Pipeline + toSerialize["platform"] = o.Platform + if o.Provider.IsSet() { + toSerialize["provider"] = o.Provider.Get() + } + if !IsNil(o.Published) { + toSerialize["published"] = o.Published + } + if o.Repo.IsSet() { + toSerialize["repo"] = o.Repo.Get() + } + if !IsNil(o.RequiredGpus) { + toSerialize["required_gpus"] = o.RequiredGpus + } + if !IsNil(o.SaLab) { + toSerialize["sa_lab"] = o.SaLab + } + toSerialize["system_arch"] = o.SystemArch + toSerialize["title"] = o.Title + if o.VgpuProfile.IsSet() { + toSerialize["vgpu_profile"] = o.VgpuProfile.Get() + } + toSerialize["count"] = o.Count + toSerialize["ids"] = o.Ids + toSerialize["result"] = o.Result + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ExperienceBulkUpdate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "catalog_id", + "catalog_id_alias", + "category", + "created", + "experience", + "gpu_os", + "id", + "modified", + "persona", + "pipeline", + "platform", + "system_arch", + "title", + "count", + "ids", + "result", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varExperienceBulkUpdate := _ExperienceBulkUpdate{} + + err = json.Unmarshal(data, &varExperienceBulkUpdate) + + if err != nil { + return err + } + + *o = ExperienceBulkUpdate(varExperienceBulkUpdate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "assignee") + delete(additionalProperties, "autoapprove") + delete(additionalProperties, "autoprovision") + delete(additionalProperties, "bootstrap") + delete(additionalProperties, "catalog_id") + delete(additionalProperties, "catalog_id_alias") + delete(additionalProperties, "category") + delete(additionalProperties, "collection_branch") + delete(additionalProperties, "created") + delete(additionalProperties, "description") + delete(additionalProperties, "experience") + delete(additionalProperties, "experience_branch") + delete(additionalProperties, "fc_platform") + delete(additionalProperties, "fc_support") + delete(additionalProperties, "garage_id") + delete(additionalProperties, "gc_branch") + delete(additionalProperties, "gpu_count") + delete(additionalProperties, "gpu_os") + delete(additionalProperties, "id") + delete(additionalProperties, "inactivity_max") + delete(additionalProperties, "lifetime") + delete(additionalProperties, "modified") + delete(additionalProperties, "node_count") + delete(additionalProperties, "persona") + delete(additionalProperties, "pipeline") + delete(additionalProperties, "platform") + delete(additionalProperties, "provider") + delete(additionalProperties, "published") + delete(additionalProperties, "repo") + delete(additionalProperties, "required_gpus") + delete(additionalProperties, "sa_lab") + delete(additionalProperties, "system_arch") + delete(additionalProperties, "title") + delete(additionalProperties, "vgpu_profile") + delete(additionalProperties, "count") + delete(additionalProperties, "ids") + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableExperienceBulkUpdate struct { + value *ExperienceBulkUpdate + isSet bool +} + +func (v NullableExperienceBulkUpdate) Get() *ExperienceBulkUpdate { + return v.value +} + +func (v *NullableExperienceBulkUpdate) Set(val *ExperienceBulkUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableExperienceBulkUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableExperienceBulkUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExperienceBulkUpdate(val *ExperienceBulkUpdate) *NullableExperienceBulkUpdate { + return &NullableExperienceBulkUpdate{value: val, isSet: true} +} + +func (v NullableExperienceBulkUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExperienceBulkUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_experience_note.go b/v1/providers/launchpad/gen/launchpad/model_experience_note.go new file mode 100644 index 0000000..d088d0c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_experience_note.go @@ -0,0 +1,352 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the ExperienceNote type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ExperienceNote{} + +// ExperienceNote struct for ExperienceNote +type ExperienceNote struct { + // Text content of the note + Content *string `json:"content,omitempty"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + CreatedBy string `json:"created_by"` + Experience DeploymentExperience `json:"experience"` + Id string `json:"id"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + ModifiedBy string `json:"modified_by"` + AdditionalProperties map[string]interface{} +} + +type _ExperienceNote ExperienceNote + +// NewExperienceNote instantiates a new ExperienceNote 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 NewExperienceNote(created time.Time, createdBy string, experience DeploymentExperience, id string, modified time.Time, modifiedBy string) *ExperienceNote { + this := ExperienceNote{} + this.Created = created + this.CreatedBy = createdBy + this.Experience = experience + this.Id = id + this.Modified = modified + this.ModifiedBy = modifiedBy + return &this +} + +// NewExperienceNoteWithDefaults instantiates a new ExperienceNote 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 NewExperienceNoteWithDefaults() *ExperienceNote { + this := ExperienceNote{} + return &this +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *ExperienceNote) GetContent() string { + if o == nil || IsNil(o.Content) { + var ret string + return ret + } + return *o.Content +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExperienceNote) GetContentOk() (*string, bool) { + if o == nil || IsNil(o.Content) { + return nil, false + } + return o.Content, true +} + +// HasContent returns a boolean if a field has been set. +func (o *ExperienceNote) HasContent() bool { + if o != nil && !IsNil(o.Content) { + return true + } + + return false +} + +// SetContent gets a reference to the given string and assigns it to the Content field. +func (o *ExperienceNote) SetContent(v string) { + o.Content = &v +} + +// GetCreated returns the Created field value +func (o *ExperienceNote) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *ExperienceNote) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *ExperienceNote) SetCreated(v time.Time) { + o.Created = v +} + +// GetCreatedBy returns the CreatedBy field value +func (o *ExperienceNote) GetCreatedBy() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value +// and a boolean to check if the value has been set. +func (o *ExperienceNote) GetCreatedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedBy, true +} + +// SetCreatedBy sets field value +func (o *ExperienceNote) SetCreatedBy(v string) { + o.CreatedBy = v +} + +// GetExperience returns the Experience field value +func (o *ExperienceNote) GetExperience() DeploymentExperience { + if o == nil { + var ret DeploymentExperience + return ret + } + + return o.Experience +} + +// GetExperienceOk returns a tuple with the Experience field value +// and a boolean to check if the value has been set. +func (o *ExperienceNote) GetExperienceOk() (*DeploymentExperience, bool) { + if o == nil { + return nil, false + } + return &o.Experience, true +} + +// SetExperience sets field value +func (o *ExperienceNote) SetExperience(v DeploymentExperience) { + o.Experience = v +} + +// GetId returns the Id field value +func (o *ExperienceNote) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ExperienceNote) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ExperienceNote) SetId(v string) { + o.Id = v +} + +// GetModified returns the Modified field value +func (o *ExperienceNote) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *ExperienceNote) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *ExperienceNote) SetModified(v time.Time) { + o.Modified = v +} + +// GetModifiedBy returns the ModifiedBy field value +func (o *ExperienceNote) GetModifiedBy() string { + if o == nil { + var ret string + return ret + } + + return o.ModifiedBy +} + +// GetModifiedByOk returns a tuple with the ModifiedBy field value +// and a boolean to check if the value has been set. +func (o *ExperienceNote) GetModifiedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ModifiedBy, true +} + +// SetModifiedBy sets field value +func (o *ExperienceNote) SetModifiedBy(v string) { + o.ModifiedBy = v +} + +func (o ExperienceNote) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ExperienceNote) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Content) { + toSerialize["content"] = o.Content + } + toSerialize["created"] = o.Created + toSerialize["created_by"] = o.CreatedBy + toSerialize["experience"] = o.Experience + toSerialize["id"] = o.Id + toSerialize["modified"] = o.Modified + toSerialize["modified_by"] = o.ModifiedBy + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ExperienceNote) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "created_by", + "experience", + "id", + "modified", + "modified_by", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varExperienceNote := _ExperienceNote{} + + err = json.Unmarshal(data, &varExperienceNote) + + if err != nil { + return err + } + + *o = ExperienceNote(varExperienceNote) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "content") + delete(additionalProperties, "created") + delete(additionalProperties, "created_by") + delete(additionalProperties, "experience") + delete(additionalProperties, "id") + delete(additionalProperties, "modified") + delete(additionalProperties, "modified_by") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableExperienceNote struct { + value *ExperienceNote + isSet bool +} + +func (v NullableExperienceNote) Get() *ExperienceNote { + return v.value +} + +func (v *NullableExperienceNote) Set(val *ExperienceNote) { + v.value = val + v.isSet = true +} + +func (v NullableExperienceNote) IsSet() bool { + return v.isSet +} + +func (v *NullableExperienceNote) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExperienceNote(val *ExperienceNote) *NullableExperienceNote { + return &NullableExperienceNote{value: val, isSet: true} +} + +func (v NullableExperienceNote) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExperienceNote) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_fc_platform_enum.go b/v1/providers/launchpad/gen/launchpad/model_fc_platform_enum.go new file mode 100644 index 0000000..d0f9e04 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_fc_platform_enum.go @@ -0,0 +1,110 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// FcPlatformEnum * `docker` - docker * `k8s` - k8s +type FcPlatformEnum string + +// List of FcPlatformEnum +const ( + FcPlatformDocker FcPlatformEnum = "docker" + FcPlatformK8s FcPlatformEnum = "k8s" +) + +// All allowed values of FcPlatformEnum enum +var AllowedFcPlatformEnumEnumValues = []FcPlatformEnum{ + "docker", + "k8s", +} + +func (v *FcPlatformEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := FcPlatformEnum(value) + for _, existing := range AllowedFcPlatformEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid FcPlatformEnum", value) +} + +// NewFcPlatformEnumFromValue returns a pointer to a valid FcPlatformEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewFcPlatformEnumFromValue(v string) (*FcPlatformEnum, error) { + ev := FcPlatformEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for FcPlatformEnum: valid values are %v", v, AllowedFcPlatformEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v FcPlatformEnum) IsValid() bool { + for _, existing := range AllowedFcPlatformEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to FcPlatformEnum value +func (v FcPlatformEnum) Ptr() *FcPlatformEnum { + return &v +} + +type NullableFcPlatformEnum struct { + value *FcPlatformEnum + isSet bool +} + +func (v NullableFcPlatformEnum) Get() *FcPlatformEnum { + return v.value +} + +func (v *NullableFcPlatformEnum) Set(val *FcPlatformEnum) { + v.value = val + v.isSet = true +} + +func (v NullableFcPlatformEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableFcPlatformEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFcPlatformEnum(val *FcPlatformEnum) *NullableFcPlatformEnum { + return &NullableFcPlatformEnum{value: val, isSet: true} +} + +func (v NullableFcPlatformEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFcPlatformEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_gpu.go b/v1/providers/launchpad/gen/launchpad/model_gpu.go new file mode 100644 index 0000000..bccc273 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_gpu.go @@ -0,0 +1,416 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the Gpu type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Gpu{} + +// Gpu struct for Gpu +type Gpu struct { + // Timestamp of when the object was created + Created time.Time `json:"created"` + // GPU form factor * `pcie` - PCIe * `sxm` - SXM + FormFactor *InterconnectionTypeEnum `json:"form_factor,omitempty"` + Id string `json:"id"` + // Total GPU memory (in GB) + Memory *int32 `json:"memory,omitempty"` + // GPU model name + Model string `json:"model"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + NodeCount *int32 `json:"node_count,omitempty"` + // Weighted preference to use in selecting a GPU for a deployment. A higher priority means the GPU is in higher demand. Lower priority values will be preferred over higher ones during cluster selection. + Priority *int32 `json:"priority,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Gpu Gpu + +// NewGpu instantiates a new Gpu 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 NewGpu(created time.Time, id string, model string, modified time.Time) *Gpu { + this := Gpu{} + this.Created = created + var formFactor InterconnectionTypeEnum = InterconnectionTypePCIe + this.FormFactor = &formFactor + this.Id = id + var memory int32 = 0 + this.Memory = &memory + this.Model = model + this.Modified = modified + return &this +} + +// NewGpuWithDefaults instantiates a new Gpu 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 NewGpuWithDefaults() *Gpu { + this := Gpu{} + var formFactor InterconnectionTypeEnum = InterconnectionTypePCIe + this.FormFactor = &formFactor + var memory int32 = 0 + this.Memory = &memory + return &this +} + +// GetCreated returns the Created field value +func (o *Gpu) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *Gpu) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *Gpu) SetCreated(v time.Time) { + o.Created = v +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise. +func (o *Gpu) GetFormFactor() InterconnectionTypeEnum { + if o == nil || IsNil(o.FormFactor) { + var ret InterconnectionTypeEnum + return ret + } + return *o.FormFactor +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Gpu) GetFormFactorOk() (*InterconnectionTypeEnum, bool) { + if o == nil || IsNil(o.FormFactor) { + return nil, false + } + return o.FormFactor, true +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *Gpu) HasFormFactor() bool { + if o != nil && !IsNil(o.FormFactor) { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given InterconnectionTypeEnum and assigns it to the FormFactor field. +func (o *Gpu) SetFormFactor(v InterconnectionTypeEnum) { + o.FormFactor = &v +} + +// GetId returns the Id field value +func (o *Gpu) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Gpu) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Gpu) SetId(v string) { + o.Id = v +} + +// GetMemory returns the Memory field value if set, zero value otherwise. +func (o *Gpu) 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 *Gpu) 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 *Gpu) 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 *Gpu) SetMemory(v int32) { + o.Memory = &v +} + +// GetModel returns the Model field value +func (o *Gpu) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *Gpu) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *Gpu) SetModel(v string) { + o.Model = v +} + +// GetModified returns the Modified field value +func (o *Gpu) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *Gpu) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *Gpu) SetModified(v time.Time) { + o.Modified = v +} + +// GetNodeCount returns the NodeCount field value if set, zero value otherwise. +func (o *Gpu) 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 *Gpu) 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 *Gpu) 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 *Gpu) SetNodeCount(v int32) { + o.NodeCount = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *Gpu) GetPriority() int32 { + if o == nil || IsNil(o.Priority) { + var ret int32 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Gpu) GetPriorityOk() (*int32, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *Gpu) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int32 and assigns it to the Priority field. +func (o *Gpu) SetPriority(v int32) { + o.Priority = &v +} + +func (o Gpu) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Gpu) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created"] = o.Created + if !IsNil(o.FormFactor) { + toSerialize["form_factor"] = o.FormFactor + } + toSerialize["id"] = o.Id + if !IsNil(o.Memory) { + toSerialize["memory"] = o.Memory + } + toSerialize["model"] = o.Model + toSerialize["modified"] = o.Modified + if !IsNil(o.NodeCount) { + toSerialize["node_count"] = o.NodeCount + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Gpu) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "id", + "model", + "modified", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGpu := _Gpu{} + + err = json.Unmarshal(data, &varGpu) + + if err != nil { + return err + } + + *o = Gpu(varGpu) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "id") + delete(additionalProperties, "memory") + delete(additionalProperties, "model") + delete(additionalProperties, "modified") + delete(additionalProperties, "node_count") + delete(additionalProperties, "priority") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGpu struct { + value *Gpu + isSet bool +} + +func (v NullableGpu) Get() *Gpu { + return v.value +} + +func (v *NullableGpu) Set(val *Gpu) { + v.value = val + v.isSet = true +} + +func (v NullableGpu) IsSet() bool { + return v.isSet +} + +func (v *NullableGpu) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGpu(val *Gpu) *NullableGpu { + return &NullableGpu{value: val, isSet: true} +} + +func (v NullableGpu) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGpu) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_gpu_bulk_update.go b/v1/providers/launchpad/gen/launchpad/model_gpu_bulk_update.go new file mode 100644 index 0000000..4a31fe3 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_gpu_bulk_update.go @@ -0,0 +1,495 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the GpuBulkUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GpuBulkUpdate{} + +// GpuBulkUpdate struct for GpuBulkUpdate +type GpuBulkUpdate struct { + // Timestamp of when the object was created + Created time.Time `json:"created"` + // GPU form factor * `pcie` - PCIe * `sxm` - SXM + FormFactor *InterconnectionTypeEnum `json:"form_factor,omitempty"` + Id string `json:"id"` + // Total GPU memory (in GB) + Memory *int32 `json:"memory,omitempty"` + // GPU model name + Model string `json:"model"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + NodeCount int32 `json:"node_count"` + // Weighted preference to use in selecting a GPU for a deployment. A higher priority means the GPU is in higher demand. Lower priority values will be preferred over higher ones during cluster selection. + Priority *int32 `json:"priority,omitempty"` + Count int32 `json:"count"` + Ids []string `json:"ids"` + Result string `json:"result"` + AdditionalProperties map[string]interface{} +} + +type _GpuBulkUpdate GpuBulkUpdate + +// NewGpuBulkUpdate instantiates a new GpuBulkUpdate 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 NewGpuBulkUpdate(created time.Time, id string, model string, modified time.Time, nodeCount int32, count int32, ids []string, result string) *GpuBulkUpdate { + this := GpuBulkUpdate{} + this.Created = created + var formFactor InterconnectionTypeEnum = InterconnectionTypePCIe + this.FormFactor = &formFactor + this.Id = id + var memory int32 = 0 + this.Memory = &memory + this.Model = model + this.Modified = modified + this.NodeCount = nodeCount + this.Count = count + this.Ids = ids + this.Result = result + return &this +} + +// NewGpuBulkUpdateWithDefaults instantiates a new GpuBulkUpdate 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 NewGpuBulkUpdateWithDefaults() *GpuBulkUpdate { + this := GpuBulkUpdate{} + var formFactor InterconnectionTypeEnum = InterconnectionTypePCIe + this.FormFactor = &formFactor + var memory int32 = 0 + this.Memory = &memory + return &this +} + +// GetCreated returns the Created field value +func (o *GpuBulkUpdate) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *GpuBulkUpdate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *GpuBulkUpdate) SetCreated(v time.Time) { + o.Created = v +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise. +func (o *GpuBulkUpdate) GetFormFactor() InterconnectionTypeEnum { + if o == nil || IsNil(o.FormFactor) { + var ret InterconnectionTypeEnum + return ret + } + return *o.FormFactor +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GpuBulkUpdate) GetFormFactorOk() (*InterconnectionTypeEnum, bool) { + if o == nil || IsNil(o.FormFactor) { + return nil, false + } + return o.FormFactor, true +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *GpuBulkUpdate) HasFormFactor() bool { + if o != nil && !IsNil(o.FormFactor) { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given InterconnectionTypeEnum and assigns it to the FormFactor field. +func (o *GpuBulkUpdate) SetFormFactor(v InterconnectionTypeEnum) { + o.FormFactor = &v +} + +// GetId returns the Id field value +func (o *GpuBulkUpdate) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *GpuBulkUpdate) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *GpuBulkUpdate) SetId(v string) { + o.Id = v +} + +// GetMemory returns the Memory field value if set, zero value otherwise. +func (o *GpuBulkUpdate) 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 *GpuBulkUpdate) 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 *GpuBulkUpdate) 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 *GpuBulkUpdate) SetMemory(v int32) { + o.Memory = &v +} + +// GetModel returns the Model field value +func (o *GpuBulkUpdate) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *GpuBulkUpdate) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *GpuBulkUpdate) SetModel(v string) { + o.Model = v +} + +// GetModified returns the Modified field value +func (o *GpuBulkUpdate) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *GpuBulkUpdate) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *GpuBulkUpdate) SetModified(v time.Time) { + o.Modified = v +} + +// GetNodeCount returns the NodeCount field value +func (o *GpuBulkUpdate) GetNodeCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.NodeCount +} + +// GetNodeCountOk returns a tuple with the NodeCount field value +// and a boolean to check if the value has been set. +func (o *GpuBulkUpdate) GetNodeCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.NodeCount, true +} + +// SetNodeCount sets field value +func (o *GpuBulkUpdate) SetNodeCount(v int32) { + o.NodeCount = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *GpuBulkUpdate) GetPriority() int32 { + if o == nil || IsNil(o.Priority) { + var ret int32 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GpuBulkUpdate) GetPriorityOk() (*int32, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *GpuBulkUpdate) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int32 and assigns it to the Priority field. +func (o *GpuBulkUpdate) SetPriority(v int32) { + o.Priority = &v +} + +// GetCount returns the Count field value +func (o *GpuBulkUpdate) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *GpuBulkUpdate) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *GpuBulkUpdate) SetCount(v int32) { + o.Count = v +} + +// GetIds returns the Ids field value +func (o *GpuBulkUpdate) GetIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ids +} + +// GetIdsOk returns a tuple with the Ids field value +// and a boolean to check if the value has been set. +func (o *GpuBulkUpdate) GetIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ids, true +} + +// SetIds sets field value +func (o *GpuBulkUpdate) SetIds(v []string) { + o.Ids = v +} + +// GetResult returns the Result field value +func (o *GpuBulkUpdate) GetResult() string { + if o == nil { + var ret string + return ret + } + + return o.Result +} + +// GetResultOk returns a tuple with the Result field value +// and a boolean to check if the value has been set. +func (o *GpuBulkUpdate) GetResultOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Result, true +} + +// SetResult sets field value +func (o *GpuBulkUpdate) SetResult(v string) { + o.Result = v +} + +func (o GpuBulkUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GpuBulkUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created"] = o.Created + if !IsNil(o.FormFactor) { + toSerialize["form_factor"] = o.FormFactor + } + toSerialize["id"] = o.Id + if !IsNil(o.Memory) { + toSerialize["memory"] = o.Memory + } + toSerialize["model"] = o.Model + toSerialize["modified"] = o.Modified + toSerialize["node_count"] = o.NodeCount + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + toSerialize["count"] = o.Count + toSerialize["ids"] = o.Ids + toSerialize["result"] = o.Result + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GpuBulkUpdate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "id", + "model", + "modified", + "node_count", + "count", + "ids", + "result", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGpuBulkUpdate := _GpuBulkUpdate{} + + err = json.Unmarshal(data, &varGpuBulkUpdate) + + if err != nil { + return err + } + + *o = GpuBulkUpdate(varGpuBulkUpdate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "id") + delete(additionalProperties, "memory") + delete(additionalProperties, "model") + delete(additionalProperties, "modified") + delete(additionalProperties, "node_count") + delete(additionalProperties, "priority") + delete(additionalProperties, "count") + delete(additionalProperties, "ids") + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGpuBulkUpdate struct { + value *GpuBulkUpdate + isSet bool +} + +func (v NullableGpuBulkUpdate) Get() *GpuBulkUpdate { + return v.value +} + +func (v *NullableGpuBulkUpdate) Set(val *GpuBulkUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableGpuBulkUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableGpuBulkUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGpuBulkUpdate(val *GpuBulkUpdate) *NullableGpuBulkUpdate { + return &NullableGpuBulkUpdate{value: val, isSet: true} +} + +func (v NullableGpuBulkUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGpuBulkUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_gpu_os.go b/v1/providers/launchpad/gen/launchpad/model_gpu_os.go new file mode 100644 index 0000000..7b91671 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_gpu_os.go @@ -0,0 +1,224 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the GpuOs type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GpuOs{} + +// GpuOs struct for GpuOs +type GpuOs struct { + Name string `json:"name"` + Release string `json:"release"` + Version string `json:"version"` + AdditionalProperties map[string]interface{} +} + +type _GpuOs GpuOs + +// NewGpuOs instantiates a new GpuOs 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 NewGpuOs(name string, release string, version string) *GpuOs { + this := GpuOs{} + this.Name = name + this.Release = release + this.Version = version + return &this +} + +// NewGpuOsWithDefaults instantiates a new GpuOs 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 NewGpuOsWithDefaults() *GpuOs { + this := GpuOs{} + return &this +} + +// GetName returns the Name field value +func (o *GpuOs) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *GpuOs) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *GpuOs) SetName(v string) { + o.Name = v +} + +// GetRelease returns the Release field value +func (o *GpuOs) GetRelease() string { + if o == nil { + var ret string + return ret + } + + return o.Release +} + +// GetReleaseOk returns a tuple with the Release field value +// and a boolean to check if the value has been set. +func (o *GpuOs) GetReleaseOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Release, true +} + +// SetRelease sets field value +func (o *GpuOs) SetRelease(v string) { + o.Release = v +} + +// GetVersion returns the Version field value +func (o *GpuOs) GetVersion() string { + if o == nil { + var ret string + return ret + } + + return o.Version +} + +// GetVersionOk returns a tuple with the Version field value +// and a boolean to check if the value has been set. +func (o *GpuOs) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Version, true +} + +// SetVersion sets field value +func (o *GpuOs) SetVersion(v string) { + o.Version = v +} + +func (o GpuOs) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GpuOs) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["release"] = o.Release + toSerialize["version"] = o.Version + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GpuOs) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "release", + "version", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGpuOs := _GpuOs{} + + err = json.Unmarshal(data, &varGpuOs) + + if err != nil { + return err + } + + *o = GpuOs(varGpuOs) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "release") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGpuOs struct { + value *GpuOs + isSet bool +} + +func (v NullableGpuOs) Get() *GpuOs { + return v.value +} + +func (v *NullableGpuOs) Set(val *GpuOs) { + v.value = val + v.isSet = true +} + +func (v NullableGpuOs) IsSet() bool { + return v.isSet +} + +func (v *NullableGpuOs) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGpuOs(val *GpuOs) *NullableGpuOs { + return &NullableGpuOs{value: val, isSet: true} +} + +func (v NullableGpuOs) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGpuOs) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_gpu_os_choice.go b/v1/providers/launchpad/gen/launchpad/model_gpu_os_choice.go new file mode 100644 index 0000000..c931a78 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_gpu_os_choice.go @@ -0,0 +1,317 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the GpuOsChoice type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GpuOsChoice{} + +// GpuOsChoice struct for GpuOsChoice +type GpuOsChoice struct { + // Timestamp of when the object was created + Created time.Time `json:"created"` + Id int32 `json:"id"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Name of the OS to be provisioned onto GPU Node(s) (ex: ubuntu) + Name string `json:"name"` + // Release name of the OS to be provisioned onto GPU Node(s) (ex: jammy) + Release string `json:"release"` + // Version number of the OS to be provisioned onto GPU Node(s) (ex: 22.04) + Version string `json:"version"` + AdditionalProperties map[string]interface{} +} + +type _GpuOsChoice GpuOsChoice + +// NewGpuOsChoice instantiates a new GpuOsChoice 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 NewGpuOsChoice(created time.Time, id int32, modified time.Time, name string, release string, version string) *GpuOsChoice { + this := GpuOsChoice{} + this.Created = created + this.Id = id + this.Modified = modified + this.Name = name + this.Release = release + this.Version = version + return &this +} + +// NewGpuOsChoiceWithDefaults instantiates a new GpuOsChoice 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 NewGpuOsChoiceWithDefaults() *GpuOsChoice { + this := GpuOsChoice{} + return &this +} + +// GetCreated returns the Created field value +func (o *GpuOsChoice) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *GpuOsChoice) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *GpuOsChoice) SetCreated(v time.Time) { + o.Created = v +} + +// GetId returns the Id field value +func (o *GpuOsChoice) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *GpuOsChoice) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *GpuOsChoice) SetId(v int32) { + o.Id = v +} + +// GetModified returns the Modified field value +func (o *GpuOsChoice) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *GpuOsChoice) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *GpuOsChoice) SetModified(v time.Time) { + o.Modified = v +} + +// GetName returns the Name field value +func (o *GpuOsChoice) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *GpuOsChoice) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *GpuOsChoice) SetName(v string) { + o.Name = v +} + +// GetRelease returns the Release field value +func (o *GpuOsChoice) GetRelease() string { + if o == nil { + var ret string + return ret + } + + return o.Release +} + +// GetReleaseOk returns a tuple with the Release field value +// and a boolean to check if the value has been set. +func (o *GpuOsChoice) GetReleaseOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Release, true +} + +// SetRelease sets field value +func (o *GpuOsChoice) SetRelease(v string) { + o.Release = v +} + +// GetVersion returns the Version field value +func (o *GpuOsChoice) GetVersion() string { + if o == nil { + var ret string + return ret + } + + return o.Version +} + +// GetVersionOk returns a tuple with the Version field value +// and a boolean to check if the value has been set. +func (o *GpuOsChoice) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Version, true +} + +// SetVersion sets field value +func (o *GpuOsChoice) SetVersion(v string) { + o.Version = v +} + +func (o GpuOsChoice) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GpuOsChoice) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created"] = o.Created + toSerialize["id"] = o.Id + toSerialize["modified"] = o.Modified + toSerialize["name"] = o.Name + toSerialize["release"] = o.Release + toSerialize["version"] = o.Version + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GpuOsChoice) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "id", + "modified", + "name", + "release", + "version", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGpuOsChoice := _GpuOsChoice{} + + err = json.Unmarshal(data, &varGpuOsChoice) + + if err != nil { + return err + } + + *o = GpuOsChoice(varGpuOsChoice) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created") + delete(additionalProperties, "id") + delete(additionalProperties, "modified") + delete(additionalProperties, "name") + delete(additionalProperties, "release") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGpuOsChoice struct { + value *GpuOsChoice + isSet bool +} + +func (v NullableGpuOsChoice) Get() *GpuOsChoice { + return v.value +} + +func (v *NullableGpuOsChoice) Set(val *GpuOsChoice) { + v.value = val + v.isSet = true +} + +func (v NullableGpuOsChoice) IsSet() bool { + return v.isSet +} + +func (v *NullableGpuOsChoice) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGpuOsChoice(val *GpuOsChoice) *NullableGpuOsChoice { + return &NullableGpuOsChoice{value: val, isSet: true} +} + +func (v NullableGpuOsChoice) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGpuOsChoice) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_instance.go b/v1/providers/launchpad/gen/launchpad/model_instance.go new file mode 100644 index 0000000..6c703a5 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_instance.go @@ -0,0 +1,440 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the Instance type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Instance{} + +// Instance struct for Instance +type Instance struct { + Cluster DeploymentCluster `json:"cluster"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + Id string `json:"id"` + // Unique ID for this instance assigned by its provider + InstanceId string `json:"instance_id"` + // User-friendly name of this instance + Name NullableString `json:"name,omitempty"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Current lifecycle state of this instance * `running` - Instance is running * `starting` - Instance is starting * `stopped` - Instance is stopped * `stopping` - Instance is stopping * `unknown` - Instance state is currently unknown + State *InstanceState `json:"state,omitempty"` + StateModified time.Time `json:"state_modified"` + // Tags associated with this instance + Tags []string `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Instance Instance + +// NewInstance instantiates a new Instance 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 NewInstance(cluster DeploymentCluster, created time.Time, id string, instanceId string, modified time.Time, stateModified time.Time) *Instance { + this := Instance{} + this.Cluster = cluster + this.Created = created + this.Id = id + this.InstanceId = instanceId + this.Modified = modified + this.StateModified = stateModified + return &this +} + +// NewInstanceWithDefaults instantiates a new Instance 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 NewInstanceWithDefaults() *Instance { + this := Instance{} + return &this +} + +// GetCluster returns the Cluster field value +func (o *Instance) GetCluster() DeploymentCluster { + if o == nil { + var ret DeploymentCluster + return ret + } + + return o.Cluster +} + +// GetClusterOk returns a tuple with the Cluster field value +// and a boolean to check if the value has been set. +func (o *Instance) GetClusterOk() (*DeploymentCluster, bool) { + if o == nil { + return nil, false + } + return &o.Cluster, true +} + +// SetCluster sets field value +func (o *Instance) SetCluster(v DeploymentCluster) { + o.Cluster = v +} + +// GetCreated returns the Created field value +func (o *Instance) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *Instance) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *Instance) SetCreated(v time.Time) { + o.Created = v +} + +// GetId returns the Id field value +func (o *Instance) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Instance) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Instance) SetId(v string) { + o.Id = v +} + +// GetInstanceId returns the InstanceId field value +func (o *Instance) GetInstanceId() string { + if o == nil { + var ret string + return ret + } + + return o.InstanceId +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value +// and a boolean to check if the value has been set. +func (o *Instance) GetInstanceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.InstanceId, true +} + +// SetInstanceId sets field value +func (o *Instance) SetInstanceId(v string) { + o.InstanceId = v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Instance) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Instance) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *Instance) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *Instance) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *Instance) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *Instance) UnsetName() { + o.Name.Unset() +} + +// GetModified returns the Modified field value +func (o *Instance) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *Instance) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *Instance) SetModified(v time.Time) { + o.Modified = v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *Instance) GetState() InstanceState { + if o == nil || IsNil(o.State) { + var ret InstanceState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Instance) GetStateOk() (*InstanceState, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *Instance) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given InstanceState and assigns it to the State field. +func (o *Instance) SetState(v InstanceState) { + o.State = &v +} + +// GetStateModified returns the StateModified field value +func (o *Instance) GetStateModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.StateModified +} + +// GetStateModifiedOk returns a tuple with the StateModified field value +// and a boolean to check if the value has been set. +func (o *Instance) GetStateModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.StateModified, true +} + +// SetStateModified sets field value +func (o *Instance) SetStateModified(v time.Time) { + o.StateModified = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Instance) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Instance) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Instance) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *Instance) SetTags(v []string) { + o.Tags = v +} + +func (o Instance) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Instance) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cluster"] = o.Cluster + toSerialize["created"] = o.Created + toSerialize["id"] = o.Id + toSerialize["instance_id"] = o.InstanceId + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + toSerialize["modified"] = o.Modified + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + toSerialize["state_modified"] = o.StateModified + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Instance) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "cluster", + "created", + "id", + "instance_id", + "modified", + "state_modified", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varInstance := _Instance{} + + err = json.Unmarshal(data, &varInstance) + + if err != nil { + return err + } + + *o = Instance(varInstance) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cluster") + delete(additionalProperties, "created") + delete(additionalProperties, "id") + delete(additionalProperties, "instance_id") + delete(additionalProperties, "name") + delete(additionalProperties, "modified") + delete(additionalProperties, "state") + delete(additionalProperties, "state_modified") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInstance struct { + value *Instance + isSet bool +} + +func (v NullableInstance) Get() *Instance { + return v.value +} + +func (v *NullableInstance) Set(val *Instance) { + v.value = val + v.isSet = true +} + +func (v NullableInstance) IsSet() bool { + return v.isSet +} + +func (v *NullableInstance) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstance(val *Instance) *NullableInstance { + return &NullableInstance{value: val, isSet: true} +} + +func (v NullableInstance) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstance) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_instance_bulk_update.go b/v1/providers/launchpad/gen/launchpad/model_instance_bulk_update.go new file mode 100644 index 0000000..540b90b --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_instance_bulk_update.go @@ -0,0 +1,527 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the InstanceBulkUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstanceBulkUpdate{} + +// InstanceBulkUpdate struct for InstanceBulkUpdate +type InstanceBulkUpdate struct { + Cluster DeploymentCluster `json:"cluster"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + Id string `json:"id"` + // Unique ID for this instance assigned by its provider + InstanceId string `json:"instance_id"` + // User-friendly name of this instance + Name NullableString `json:"name,omitempty"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Current lifecycle state of this instance * `running` - Instance is running * `starting` - Instance is starting * `stopped` - Instance is stopped * `stopping` - Instance is stopping * `unknown` - Instance state is currently unknown + State *InstanceState `json:"state,omitempty"` + StateModified time.Time `json:"state_modified"` + // Tags associated with this instance + Tags []string `json:"tags,omitempty"` + Count int32 `json:"count"` + Ids []string `json:"ids"` + Result string `json:"result"` + AdditionalProperties map[string]interface{} +} + +type _InstanceBulkUpdate InstanceBulkUpdate + +// NewInstanceBulkUpdate instantiates a new InstanceBulkUpdate 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 NewInstanceBulkUpdate(cluster DeploymentCluster, created time.Time, id string, instanceId string, modified time.Time, stateModified time.Time, count int32, ids []string, result string) *InstanceBulkUpdate { + this := InstanceBulkUpdate{} + this.Cluster = cluster + this.Created = created + this.Id = id + this.InstanceId = instanceId + this.Modified = modified + this.StateModified = stateModified + this.Count = count + this.Ids = ids + this.Result = result + return &this +} + +// NewInstanceBulkUpdateWithDefaults instantiates a new InstanceBulkUpdate 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 NewInstanceBulkUpdateWithDefaults() *InstanceBulkUpdate { + this := InstanceBulkUpdate{} + return &this +} + +// GetCluster returns the Cluster field value +func (o *InstanceBulkUpdate) GetCluster() DeploymentCluster { + if o == nil { + var ret DeploymentCluster + return ret + } + + return o.Cluster +} + +// GetClusterOk returns a tuple with the Cluster field value +// and a boolean to check if the value has been set. +func (o *InstanceBulkUpdate) GetClusterOk() (*DeploymentCluster, bool) { + if o == nil { + return nil, false + } + return &o.Cluster, true +} + +// SetCluster sets field value +func (o *InstanceBulkUpdate) SetCluster(v DeploymentCluster) { + o.Cluster = v +} + +// GetCreated returns the Created field value +func (o *InstanceBulkUpdate) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *InstanceBulkUpdate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *InstanceBulkUpdate) SetCreated(v time.Time) { + o.Created = v +} + +// GetId returns the Id field value +func (o *InstanceBulkUpdate) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *InstanceBulkUpdate) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *InstanceBulkUpdate) SetId(v string) { + o.Id = v +} + +// GetInstanceId returns the InstanceId field value +func (o *InstanceBulkUpdate) GetInstanceId() string { + if o == nil { + var ret string + return ret + } + + return o.InstanceId +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value +// and a boolean to check if the value has been set. +func (o *InstanceBulkUpdate) GetInstanceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.InstanceId, true +} + +// SetInstanceId sets field value +func (o *InstanceBulkUpdate) SetInstanceId(v string) { + o.InstanceId = v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InstanceBulkUpdate) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InstanceBulkUpdate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *InstanceBulkUpdate) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *InstanceBulkUpdate) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *InstanceBulkUpdate) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *InstanceBulkUpdate) UnsetName() { + o.Name.Unset() +} + +// GetModified returns the Modified field value +func (o *InstanceBulkUpdate) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *InstanceBulkUpdate) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *InstanceBulkUpdate) SetModified(v time.Time) { + o.Modified = v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *InstanceBulkUpdate) GetState() InstanceState { + if o == nil || IsNil(o.State) { + var ret InstanceState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceBulkUpdate) GetStateOk() (*InstanceState, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *InstanceBulkUpdate) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given InstanceState and assigns it to the State field. +func (o *InstanceBulkUpdate) SetState(v InstanceState) { + o.State = &v +} + +// GetStateModified returns the StateModified field value +func (o *InstanceBulkUpdate) GetStateModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.StateModified +} + +// GetStateModifiedOk returns a tuple with the StateModified field value +// and a boolean to check if the value has been set. +func (o *InstanceBulkUpdate) GetStateModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.StateModified, true +} + +// SetStateModified sets field value +func (o *InstanceBulkUpdate) SetStateModified(v time.Time) { + o.StateModified = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *InstanceBulkUpdate) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceBulkUpdate) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *InstanceBulkUpdate) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *InstanceBulkUpdate) SetTags(v []string) { + o.Tags = v +} + +// GetCount returns the Count field value +func (o *InstanceBulkUpdate) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *InstanceBulkUpdate) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *InstanceBulkUpdate) SetCount(v int32) { + o.Count = v +} + +// GetIds returns the Ids field value +func (o *InstanceBulkUpdate) GetIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ids +} + +// GetIdsOk returns a tuple with the Ids field value +// and a boolean to check if the value has been set. +func (o *InstanceBulkUpdate) GetIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ids, true +} + +// SetIds sets field value +func (o *InstanceBulkUpdate) SetIds(v []string) { + o.Ids = v +} + +// GetResult returns the Result field value +func (o *InstanceBulkUpdate) GetResult() string { + if o == nil { + var ret string + return ret + } + + return o.Result +} + +// GetResultOk returns a tuple with the Result field value +// and a boolean to check if the value has been set. +func (o *InstanceBulkUpdate) GetResultOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Result, true +} + +// SetResult sets field value +func (o *InstanceBulkUpdate) SetResult(v string) { + o.Result = v +} + +func (o InstanceBulkUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstanceBulkUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cluster"] = o.Cluster + toSerialize["created"] = o.Created + toSerialize["id"] = o.Id + toSerialize["instance_id"] = o.InstanceId + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + toSerialize["modified"] = o.Modified + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + toSerialize["state_modified"] = o.StateModified + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + toSerialize["count"] = o.Count + toSerialize["ids"] = o.Ids + toSerialize["result"] = o.Result + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InstanceBulkUpdate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "cluster", + "created", + "id", + "instance_id", + "modified", + "state_modified", + "count", + "ids", + "result", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varInstanceBulkUpdate := _InstanceBulkUpdate{} + + err = json.Unmarshal(data, &varInstanceBulkUpdate) + + if err != nil { + return err + } + + *o = InstanceBulkUpdate(varInstanceBulkUpdate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cluster") + delete(additionalProperties, "created") + delete(additionalProperties, "id") + delete(additionalProperties, "instance_id") + delete(additionalProperties, "name") + delete(additionalProperties, "modified") + delete(additionalProperties, "state") + delete(additionalProperties, "state_modified") + delete(additionalProperties, "tags") + delete(additionalProperties, "count") + delete(additionalProperties, "ids") + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInstanceBulkUpdate struct { + value *InstanceBulkUpdate + isSet bool +} + +func (v NullableInstanceBulkUpdate) Get() *InstanceBulkUpdate { + return v.value +} + +func (v *NullableInstanceBulkUpdate) Set(val *InstanceBulkUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableInstanceBulkUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableInstanceBulkUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstanceBulkUpdate(val *InstanceBulkUpdate) *NullableInstanceBulkUpdate { + return &NullableInstanceBulkUpdate{value: val, isSet: true} +} + +func (v NullableInstanceBulkUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstanceBulkUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_instance_state.go b/v1/providers/launchpad/gen/launchpad/model_instance_state.go new file mode 100644 index 0000000..c2c79cb --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_instance_state.go @@ -0,0 +1,116 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// InstanceState * `running` - Instance is running * `starting` - Instance is starting * `stopped` - Instance is stopped * `stopping` - Instance is stopping * `unknown` - Instance state is currently unknown +type InstanceState string + +// List of InstanceState +const ( + InstanceStateRunning InstanceState = "running" + InstanceStateStarting InstanceState = "starting" + InstanceStateStopped InstanceState = "stopped" + InstanceStateStopping InstanceState = "stopping" + InstanceStateUnknown InstanceState = "unknown" +) + +// All allowed values of InstanceState enum +var AllowedInstanceStateEnumValues = []InstanceState{ + "running", + "starting", + "stopped", + "stopping", + "unknown", +} + +func (v *InstanceState) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := InstanceState(value) + for _, existing := range AllowedInstanceStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid InstanceState", value) +} + +// NewInstanceStateFromValue returns a pointer to a valid InstanceState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewInstanceStateFromValue(v string) (*InstanceState, error) { + ev := InstanceState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for InstanceState: valid values are %v", v, AllowedInstanceStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v InstanceState) IsValid() bool { + for _, existing := range AllowedInstanceStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to InstanceState value +func (v InstanceState) Ptr() *InstanceState { + return &v +} + +type NullableInstanceState struct { + value *InstanceState + isSet bool +} + +func (v NullableInstanceState) Get() *InstanceState { + return v.value +} + +func (v *NullableInstanceState) Set(val *InstanceState) { + v.value = val + v.isSet = true +} + +func (v NullableInstanceState) IsSet() bool { + return v.isSet +} + +func (v *NullableInstanceState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstanceState(val *InstanceState) *NullableInstanceState { + return &NullableInstanceState{value: val, isSet: true} +} + +func (v NullableInstanceState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstanceState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_instance_type.go b/v1/providers/launchpad/gen/launchpad/model_instance_type.go new file mode 100644 index 0000000..f1bde78 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_instance_type.go @@ -0,0 +1,434 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the InstanceType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstanceType{} + +// InstanceType struct for InstanceType +type InstanceType struct { + // Key/value pairs of region name and total available capacity for the instance type + Capacity map[string]int32 `json:"capacity"` + // Cloud provider name + Cloud string `json:"cloud"` + // Total number of CPUs/vCPUs available + Cpu int32 `json:"cpu"` + Gpu InstanceTypeGpu `json:"gpu"` + // Total system memory (in GB) + MemoryGb int32 `json:"memory_gb"` + Price InstanceTypePrice `json:"price"` + // List of regions names that have available capacity for the instance type + Regions []string `json:"regions"` + Storage []InstanceTypeStorage `json:"storage"` + // CPU architecture * `amd64` - amd64 * `arm64` - arm64 + SystemArch SystemArchEnum `json:"system_arch"` + // ID of the workshop this instance type is reserved for + WorkshopId string `json:"workshop_id"` + AdditionalProperties map[string]interface{} +} + +type _InstanceType InstanceType + +// NewInstanceType instantiates a new InstanceType 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 NewInstanceType(capacity map[string]int32, cloud string, cpu int32, gpu InstanceTypeGpu, memoryGb int32, price InstanceTypePrice, regions []string, storage []InstanceTypeStorage, systemArch SystemArchEnum, workshopId string) *InstanceType { + this := InstanceType{} + this.Capacity = capacity + this.Cloud = cloud + this.Cpu = cpu + this.Gpu = gpu + this.MemoryGb = memoryGb + this.Price = price + this.Regions = regions + this.Storage = storage + this.SystemArch = systemArch + this.WorkshopId = workshopId + return &this +} + +// NewInstanceTypeWithDefaults instantiates a new InstanceType 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 NewInstanceTypeWithDefaults() *InstanceType { + this := InstanceType{} + return &this +} + +// GetCapacity returns the Capacity field value +func (o *InstanceType) GetCapacity() map[string]int32 { + if o == nil { + var ret map[string]int32 + return ret + } + + return o.Capacity +} + +// GetCapacityOk returns a tuple with the Capacity field value +// and a boolean to check if the value has been set. +func (o *InstanceType) GetCapacityOk() (map[string]int32, bool) { + if o == nil { + return map[string]int32{}, false + } + return o.Capacity, true +} + +// SetCapacity sets field value +func (o *InstanceType) SetCapacity(v map[string]int32) { + o.Capacity = v +} + +// GetCloud returns the Cloud field value +func (o *InstanceType) GetCloud() string { + if o == nil { + var ret string + return ret + } + + return o.Cloud +} + +// GetCloudOk returns a tuple with the Cloud field value +// and a boolean to check if the value has been set. +func (o *InstanceType) GetCloudOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cloud, true +} + +// SetCloud sets field value +func (o *InstanceType) SetCloud(v string) { + o.Cloud = v +} + +// GetCpu returns the Cpu field value +func (o *InstanceType) GetCpu() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Cpu +} + +// GetCpuOk returns a tuple with the Cpu field value +// and a boolean to check if the value has been set. +func (o *InstanceType) GetCpuOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Cpu, true +} + +// SetCpu sets field value +func (o *InstanceType) SetCpu(v int32) { + o.Cpu = v +} + +// GetGpu returns the Gpu field value +func (o *InstanceType) GetGpu() InstanceTypeGpu { + if o == nil { + var ret InstanceTypeGpu + return ret + } + + return o.Gpu +} + +// GetGpuOk returns a tuple with the Gpu field value +// and a boolean to check if the value has been set. +func (o *InstanceType) GetGpuOk() (*InstanceTypeGpu, bool) { + if o == nil { + return nil, false + } + return &o.Gpu, true +} + +// SetGpu sets field value +func (o *InstanceType) SetGpu(v InstanceTypeGpu) { + o.Gpu = v +} + +// GetMemoryGb returns the MemoryGb field value +func (o *InstanceType) GetMemoryGb() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MemoryGb +} + +// GetMemoryGbOk returns a tuple with the MemoryGb field value +// and a boolean to check if the value has been set. +func (o *InstanceType) GetMemoryGbOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MemoryGb, true +} + +// SetMemoryGb sets field value +func (o *InstanceType) SetMemoryGb(v int32) { + o.MemoryGb = v +} + +// GetPrice returns the Price field value +func (o *InstanceType) GetPrice() InstanceTypePrice { + if o == nil { + var ret InstanceTypePrice + return ret + } + + return o.Price +} + +// GetPriceOk returns a tuple with the Price field value +// and a boolean to check if the value has been set. +func (o *InstanceType) GetPriceOk() (*InstanceTypePrice, bool) { + if o == nil { + return nil, false + } + return &o.Price, true +} + +// SetPrice sets field value +func (o *InstanceType) SetPrice(v InstanceTypePrice) { + o.Price = v +} + +// GetRegions returns the Regions field value +func (o *InstanceType) GetRegions() []string { + if o == nil { + var ret []string + return ret + } + + return o.Regions +} + +// GetRegionsOk returns a tuple with the Regions field value +// and a boolean to check if the value has been set. +func (o *InstanceType) GetRegionsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Regions, true +} + +// SetRegions sets field value +func (o *InstanceType) SetRegions(v []string) { + o.Regions = v +} + +// GetStorage returns the Storage field value +func (o *InstanceType) GetStorage() []InstanceTypeStorage { + if o == nil { + var ret []InstanceTypeStorage + return ret + } + + return o.Storage +} + +// GetStorageOk returns a tuple with the Storage field value +// and a boolean to check if the value has been set. +func (o *InstanceType) GetStorageOk() ([]InstanceTypeStorage, bool) { + if o == nil { + return nil, false + } + return o.Storage, true +} + +// SetStorage sets field value +func (o *InstanceType) SetStorage(v []InstanceTypeStorage) { + o.Storage = v +} + +// GetSystemArch returns the SystemArch field value +func (o *InstanceType) GetSystemArch() SystemArchEnum { + if o == nil { + var ret SystemArchEnum + return ret + } + + return o.SystemArch +} + +// GetSystemArchOk returns a tuple with the SystemArch field value +// and a boolean to check if the value has been set. +func (o *InstanceType) GetSystemArchOk() (*SystemArchEnum, bool) { + if o == nil { + return nil, false + } + return &o.SystemArch, true +} + +// SetSystemArch sets field value +func (o *InstanceType) SetSystemArch(v SystemArchEnum) { + o.SystemArch = v +} + +// GetWorkshopId returns the WorkshopId field value +func (o *InstanceType) GetWorkshopId() string { + if o == nil { + var ret string + return ret + } + + return o.WorkshopId +} + +// GetWorkshopIdOk returns a tuple with the WorkshopId field value +// and a boolean to check if the value has been set. +func (o *InstanceType) GetWorkshopIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkshopId, true +} + +// SetWorkshopId sets field value +func (o *InstanceType) SetWorkshopId(v string) { + o.WorkshopId = v +} + +func (o InstanceType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstanceType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["capacity"] = o.Capacity + toSerialize["cloud"] = o.Cloud + toSerialize["cpu"] = o.Cpu + toSerialize["gpu"] = o.Gpu + toSerialize["memory_gb"] = o.MemoryGb + toSerialize["price"] = o.Price + toSerialize["regions"] = o.Regions + toSerialize["storage"] = o.Storage + toSerialize["system_arch"] = o.SystemArch + toSerialize["workshop_id"] = o.WorkshopId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InstanceType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "capacity", + "cloud", + "cpu", + "gpu", + "memory_gb", + "price", + "regions", + "storage", + "system_arch", + "workshop_id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varInstanceType := _InstanceType{} + + err = json.Unmarshal(data, &varInstanceType) + + if err != nil { + return err + } + + *o = InstanceType(varInstanceType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "capacity") + delete(additionalProperties, "cloud") + delete(additionalProperties, "cpu") + delete(additionalProperties, "gpu") + delete(additionalProperties, "memory_gb") + delete(additionalProperties, "price") + delete(additionalProperties, "regions") + delete(additionalProperties, "storage") + delete(additionalProperties, "system_arch") + delete(additionalProperties, "workshop_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInstanceType struct { + value *InstanceType + isSet bool +} + +func (v NullableInstanceType) Get() *InstanceType { + return v.value +} + +func (v *NullableInstanceType) Set(val *InstanceType) { + v.value = val + v.isSet = true +} + +func (v NullableInstanceType) IsSet() bool { + return v.isSet +} + +func (v *NullableInstanceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstanceType(val *InstanceType) *NullableInstanceType { + return &NullableInstanceType{value: val, isSet: true} +} + +func (v NullableInstanceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstanceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_instance_type_gpu.go b/v1/providers/launchpad/gen/launchpad/model_instance_type_gpu.go new file mode 100644 index 0000000..16e964e --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_instance_type_gpu.go @@ -0,0 +1,317 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the InstanceTypeGpu type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstanceTypeGpu{} + +// InstanceTypeGpu struct for InstanceTypeGpu +type InstanceTypeGpu struct { + // Total number of GPUs + Count int32 `json:"count"` + // GPU family name + Family string `json:"family"` + // GPU form factor * `pcie` - PCIe * `sxm` - SXM + InterconnectionType InterconnectionTypeEnum `json:"interconnection_type"` + // GPU manufacturer name + Manufacturer string `json:"manufacturer"` + // Total GPU memory (in GB) + MemoryGb int32 `json:"memory_gb"` + // GPU model name + Model string `json:"model"` + AdditionalProperties map[string]interface{} +} + +type _InstanceTypeGpu InstanceTypeGpu + +// NewInstanceTypeGpu instantiates a new InstanceTypeGpu 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 NewInstanceTypeGpu(count int32, family string, interconnectionType InterconnectionTypeEnum, manufacturer string, memoryGb int32, model string) *InstanceTypeGpu { + this := InstanceTypeGpu{} + this.Count = count + this.Family = family + this.InterconnectionType = interconnectionType + this.Manufacturer = manufacturer + this.MemoryGb = memoryGb + this.Model = model + return &this +} + +// NewInstanceTypeGpuWithDefaults instantiates a new InstanceTypeGpu 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 NewInstanceTypeGpuWithDefaults() *InstanceTypeGpu { + this := InstanceTypeGpu{} + return &this +} + +// GetCount returns the Count field value +func (o *InstanceTypeGpu) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *InstanceTypeGpu) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *InstanceTypeGpu) SetCount(v int32) { + o.Count = v +} + +// GetFamily returns the Family field value +func (o *InstanceTypeGpu) GetFamily() string { + if o == nil { + var ret string + return ret + } + + return o.Family +} + +// GetFamilyOk returns a tuple with the Family field value +// and a boolean to check if the value has been set. +func (o *InstanceTypeGpu) GetFamilyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Family, true +} + +// SetFamily sets field value +func (o *InstanceTypeGpu) SetFamily(v string) { + o.Family = v +} + +// GetInterconnectionType returns the InterconnectionType field value +func (o *InstanceTypeGpu) GetInterconnectionType() InterconnectionTypeEnum { + if o == nil { + var ret InterconnectionTypeEnum + return ret + } + + return o.InterconnectionType +} + +// GetInterconnectionTypeOk returns a tuple with the InterconnectionType field value +// and a boolean to check if the value has been set. +func (o *InstanceTypeGpu) GetInterconnectionTypeOk() (*InterconnectionTypeEnum, bool) { + if o == nil { + return nil, false + } + return &o.InterconnectionType, true +} + +// SetInterconnectionType sets field value +func (o *InstanceTypeGpu) SetInterconnectionType(v InterconnectionTypeEnum) { + o.InterconnectionType = v +} + +// GetManufacturer returns the Manufacturer field value +func (o *InstanceTypeGpu) GetManufacturer() string { + if o == nil { + var ret string + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *InstanceTypeGpu) GetManufacturerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *InstanceTypeGpu) SetManufacturer(v string) { + o.Manufacturer = v +} + +// GetMemoryGb returns the MemoryGb field value +func (o *InstanceTypeGpu) GetMemoryGb() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MemoryGb +} + +// GetMemoryGbOk returns a tuple with the MemoryGb field value +// and a boolean to check if the value has been set. +func (o *InstanceTypeGpu) GetMemoryGbOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MemoryGb, true +} + +// SetMemoryGb sets field value +func (o *InstanceTypeGpu) SetMemoryGb(v int32) { + o.MemoryGb = v +} + +// GetModel returns the Model field value +func (o *InstanceTypeGpu) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *InstanceTypeGpu) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *InstanceTypeGpu) SetModel(v string) { + o.Model = v +} + +func (o InstanceTypeGpu) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstanceTypeGpu) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + toSerialize["family"] = o.Family + toSerialize["interconnection_type"] = o.InterconnectionType + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["memory_gb"] = o.MemoryGb + toSerialize["model"] = o.Model + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InstanceTypeGpu) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "family", + "interconnection_type", + "manufacturer", + "memory_gb", + "model", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varInstanceTypeGpu := _InstanceTypeGpu{} + + err = json.Unmarshal(data, &varInstanceTypeGpu) + + if err != nil { + return err + } + + *o = InstanceTypeGpu(varInstanceTypeGpu) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "family") + delete(additionalProperties, "interconnection_type") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "memory_gb") + delete(additionalProperties, "model") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInstanceTypeGpu struct { + value *InstanceTypeGpu + isSet bool +} + +func (v NullableInstanceTypeGpu) Get() *InstanceTypeGpu { + return v.value +} + +func (v *NullableInstanceTypeGpu) Set(val *InstanceTypeGpu) { + v.value = val + v.isSet = true +} + +func (v NullableInstanceTypeGpu) IsSet() bool { + return v.isSet +} + +func (v *NullableInstanceTypeGpu) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstanceTypeGpu(val *InstanceTypeGpu) *NullableInstanceTypeGpu { + return &NullableInstanceTypeGpu{value: val, isSet: true} +} + +func (v NullableInstanceTypeGpu) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstanceTypeGpu) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_instance_type_price.go b/v1/providers/launchpad/gen/launchpad/model_instance_type_price.go new file mode 100644 index 0000000..6c28636 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_instance_type_price.go @@ -0,0 +1,197 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the InstanceTypePrice type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstanceTypePrice{} + +// InstanceTypePrice struct for InstanceTypePrice +type InstanceTypePrice struct { + // Currency code + Currency string `json:"currency"` + // Price per hour + OnDemandPerHour float64 `json:"on_demand_per_hour"` + AdditionalProperties map[string]interface{} +} + +type _InstanceTypePrice InstanceTypePrice + +// NewInstanceTypePrice instantiates a new InstanceTypePrice 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 NewInstanceTypePrice(currency string, onDemandPerHour float64) *InstanceTypePrice { + this := InstanceTypePrice{} + this.Currency = currency + this.OnDemandPerHour = onDemandPerHour + return &this +} + +// NewInstanceTypePriceWithDefaults instantiates a new InstanceTypePrice 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 NewInstanceTypePriceWithDefaults() *InstanceTypePrice { + this := InstanceTypePrice{} + return &this +} + +// GetCurrency returns the Currency field value +func (o *InstanceTypePrice) GetCurrency() string { + if o == nil { + var ret string + return ret + } + + return o.Currency +} + +// GetCurrencyOk returns a tuple with the Currency field value +// and a boolean to check if the value has been set. +func (o *InstanceTypePrice) GetCurrencyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Currency, true +} + +// SetCurrency sets field value +func (o *InstanceTypePrice) SetCurrency(v string) { + o.Currency = v +} + +// GetOnDemandPerHour returns the OnDemandPerHour field value +func (o *InstanceTypePrice) GetOnDemandPerHour() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.OnDemandPerHour +} + +// GetOnDemandPerHourOk returns a tuple with the OnDemandPerHour field value +// and a boolean to check if the value has been set. +func (o *InstanceTypePrice) GetOnDemandPerHourOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.OnDemandPerHour, true +} + +// SetOnDemandPerHour sets field value +func (o *InstanceTypePrice) SetOnDemandPerHour(v float64) { + o.OnDemandPerHour = v +} + +func (o InstanceTypePrice) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstanceTypePrice) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["currency"] = o.Currency + toSerialize["on_demand_per_hour"] = o.OnDemandPerHour + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InstanceTypePrice) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "currency", + "on_demand_per_hour", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varInstanceTypePrice := _InstanceTypePrice{} + + err = json.Unmarshal(data, &varInstanceTypePrice) + + if err != nil { + return err + } + + *o = InstanceTypePrice(varInstanceTypePrice) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "currency") + delete(additionalProperties, "on_demand_per_hour") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInstanceTypePrice struct { + value *InstanceTypePrice + isSet bool +} + +func (v NullableInstanceTypePrice) Get() *InstanceTypePrice { + return v.value +} + +func (v *NullableInstanceTypePrice) Set(val *InstanceTypePrice) { + v.value = val + v.isSet = true +} + +func (v NullableInstanceTypePrice) IsSet() bool { + return v.isSet +} + +func (v *NullableInstanceTypePrice) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstanceTypePrice(val *InstanceTypePrice) *NullableInstanceTypePrice { + return &NullableInstanceTypePrice{value: val, isSet: true} +} + +func (v NullableInstanceTypePrice) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstanceTypePrice) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_instance_type_storage.go b/v1/providers/launchpad/gen/launchpad/model_instance_type_storage.go new file mode 100644 index 0000000..6bde915 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_instance_type_storage.go @@ -0,0 +1,197 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the InstanceTypeStorage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstanceTypeStorage{} + +// InstanceTypeStorage struct for InstanceTypeStorage +type InstanceTypeStorage struct { + // System storage size (in GB) + SizeGb int32 `json:"size_gb"` + // Disk type * `nvme` - NVMe * `ssd` - ssd + Type TypeEnum `json:"type"` + AdditionalProperties map[string]interface{} +} + +type _InstanceTypeStorage InstanceTypeStorage + +// NewInstanceTypeStorage instantiates a new InstanceTypeStorage 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 NewInstanceTypeStorage(sizeGb int32, type_ TypeEnum) *InstanceTypeStorage { + this := InstanceTypeStorage{} + this.SizeGb = sizeGb + this.Type = type_ + return &this +} + +// NewInstanceTypeStorageWithDefaults instantiates a new InstanceTypeStorage 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 NewInstanceTypeStorageWithDefaults() *InstanceTypeStorage { + this := InstanceTypeStorage{} + return &this +} + +// GetSizeGb returns the SizeGb field value +func (o *InstanceTypeStorage) GetSizeGb() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SizeGb +} + +// GetSizeGbOk returns a tuple with the SizeGb field value +// and a boolean to check if the value has been set. +func (o *InstanceTypeStorage) GetSizeGbOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SizeGb, true +} + +// SetSizeGb sets field value +func (o *InstanceTypeStorage) SetSizeGb(v int32) { + o.SizeGb = v +} + +// GetType returns the Type field value +func (o *InstanceTypeStorage) GetType() TypeEnum { + if o == nil { + var ret TypeEnum + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *InstanceTypeStorage) GetTypeOk() (*TypeEnum, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *InstanceTypeStorage) SetType(v TypeEnum) { + o.Type = v +} + +func (o InstanceTypeStorage) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstanceTypeStorage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["size_gb"] = o.SizeGb + toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InstanceTypeStorage) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "size_gb", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varInstanceTypeStorage := _InstanceTypeStorage{} + + err = json.Unmarshal(data, &varInstanceTypeStorage) + + if err != nil { + return err + } + + *o = InstanceTypeStorage(varInstanceTypeStorage) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "size_gb") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInstanceTypeStorage struct { + value *InstanceTypeStorage + isSet bool +} + +func (v NullableInstanceTypeStorage) Get() *InstanceTypeStorage { + return v.value +} + +func (v *NullableInstanceTypeStorage) Set(val *InstanceTypeStorage) { + v.value = val + v.isSet = true +} + +func (v NullableInstanceTypeStorage) IsSet() bool { + return v.isSet +} + +func (v *NullableInstanceTypeStorage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstanceTypeStorage(val *InstanceTypeStorage) *NullableInstanceTypeStorage { + return &NullableInstanceTypeStorage{value: val, isSet: true} +} + +func (v NullableInstanceTypeStorage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstanceTypeStorage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_interconnection_type_enum.go b/v1/providers/launchpad/gen/launchpad/model_interconnection_type_enum.go new file mode 100644 index 0000000..7e5e31d --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_interconnection_type_enum.go @@ -0,0 +1,110 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// InterconnectionTypeEnum * `pcie` - PCIe * `sxm` - SXM +type InterconnectionTypeEnum string + +// List of InterconnectionTypeEnum +const ( + InterconnectionTypePCIe InterconnectionTypeEnum = "pcie" + InterconnectionTypeSXM InterconnectionTypeEnum = "sxm" +) + +// All allowed values of InterconnectionTypeEnum enum +var AllowedInterconnectionTypeEnumEnumValues = []InterconnectionTypeEnum{ + "pcie", + "sxm", +} + +func (v *InterconnectionTypeEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := InterconnectionTypeEnum(value) + for _, existing := range AllowedInterconnectionTypeEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid InterconnectionTypeEnum", value) +} + +// NewInterconnectionTypeEnumFromValue returns a pointer to a valid InterconnectionTypeEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewInterconnectionTypeEnumFromValue(v string) (*InterconnectionTypeEnum, error) { + ev := InterconnectionTypeEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for InterconnectionTypeEnum: valid values are %v", v, AllowedInterconnectionTypeEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v InterconnectionTypeEnum) IsValid() bool { + for _, existing := range AllowedInterconnectionTypeEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to InterconnectionTypeEnum value +func (v InterconnectionTypeEnum) Ptr() *InterconnectionTypeEnum { + return &v +} + +type NullableInterconnectionTypeEnum struct { + value *InterconnectionTypeEnum + isSet bool +} + +func (v NullableInterconnectionTypeEnum) Get() *InterconnectionTypeEnum { + return v.value +} + +func (v *NullableInterconnectionTypeEnum) Set(val *InterconnectionTypeEnum) { + v.value = val + v.isSet = true +} + +func (v NullableInterconnectionTypeEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableInterconnectionTypeEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInterconnectionTypeEnum(val *InterconnectionTypeEnum) *NullableInterconnectionTypeEnum { + return &NullableInterconnectionTypeEnum{value: val, isSet: true} +} + +func (v NullableInterconnectionTypeEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInterconnectionTypeEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_location.go b/v1/providers/launchpad/gen/launchpad/model_location.go new file mode 100644 index 0000000..e5d3ceb --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_location.go @@ -0,0 +1,334 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the Location type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Location{} + +// Location struct for Location +type Location struct { + // Timestamp of when the object was created + Created time.Time `json:"created"` + Id string `json:"id"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + Name string `json:"name"` + Provider LocationProvider `json:"provider"` + // Name of the region the location is in + Region NullableString `json:"region,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Location Location + +// NewLocation instantiates a new Location 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 NewLocation(created time.Time, id string, modified time.Time, name string, provider LocationProvider) *Location { + this := Location{} + this.Created = created + this.Id = id + this.Modified = modified + this.Name = name + this.Provider = provider + return &this +} + +// NewLocationWithDefaults instantiates a new Location 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 NewLocationWithDefaults() *Location { + this := Location{} + return &this +} + +// GetCreated returns the Created field value +func (o *Location) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *Location) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *Location) SetCreated(v time.Time) { + o.Created = v +} + +// GetId returns the Id field value +func (o *Location) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Location) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Location) SetId(v string) { + o.Id = v +} + +// GetModified returns the Modified field value +func (o *Location) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *Location) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *Location) SetModified(v time.Time) { + o.Modified = v +} + +// GetName returns the Name field value +func (o *Location) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Location) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Location) SetName(v string) { + o.Name = v +} + +// GetProvider returns the Provider field value +func (o *Location) GetProvider() LocationProvider { + if o == nil { + var ret LocationProvider + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *Location) GetProviderOk() (*LocationProvider, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *Location) SetProvider(v LocationProvider) { + o.Provider = v +} + +// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Location) GetRegion() string { + if o == nil || IsNil(o.Region.Get()) { + var ret string + return ret + } + return *o.Region.Get() +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Location) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Region.Get(), o.Region.IsSet() +} + +// HasRegion returns a boolean if a field has been set. +func (o *Location) HasRegion() bool { + if o != nil && o.Region.IsSet() { + return true + } + + return false +} + +// SetRegion gets a reference to the given NullableString and assigns it to the Region field. +func (o *Location) SetRegion(v string) { + o.Region.Set(&v) +} + +// SetRegionNil sets the value for Region to be an explicit nil +func (o *Location) SetRegionNil() { + o.Region.Set(nil) +} + +// UnsetRegion ensures that no value is present for Region, not even an explicit nil +func (o *Location) UnsetRegion() { + o.Region.Unset() +} + +func (o Location) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Location) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created"] = o.Created + toSerialize["id"] = o.Id + toSerialize["modified"] = o.Modified + toSerialize["name"] = o.Name + toSerialize["provider"] = o.Provider + if o.Region.IsSet() { + toSerialize["region"] = o.Region.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Location) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "id", + "modified", + "name", + "provider", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varLocation := _Location{} + + err = json.Unmarshal(data, &varLocation) + + if err != nil { + return err + } + + *o = Location(varLocation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created") + delete(additionalProperties, "id") + delete(additionalProperties, "modified") + delete(additionalProperties, "name") + delete(additionalProperties, "provider") + delete(additionalProperties, "region") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableLocation struct { + value *Location + isSet bool +} + +func (v NullableLocation) Get() *Location { + return v.value +} + +func (v *NullableLocation) Set(val *Location) { + v.value = val + v.isSet = true +} + +func (v NullableLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocation(val *Location) *NullableLocation { + return &NullableLocation{value: val, isSet: true} +} + +func (v NullableLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_location_provider.go b/v1/providers/launchpad/gen/launchpad/model_location_provider.go new file mode 100644 index 0000000..749c9bb --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_location_provider.go @@ -0,0 +1,154 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// LocationProvider - struct for LocationProvider +type LocationProvider struct { + Provider *Provider + String *string +} + +// ProviderAsLocationProvider is a convenience function that returns Provider wrapped in LocationProvider +func ProviderAsLocationProvider(v *Provider) LocationProvider { + return LocationProvider{ + Provider: v, + } +} + +// stringAsLocationProvider is a convenience function that returns string wrapped in LocationProvider +func StringAsLocationProvider(v *string) LocationProvider { + return LocationProvider{ + String: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *LocationProvider) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Provider + err = newStrictDecoder(data).Decode(&dst.Provider) + if err == nil { + jsonProvider, _ := json.Marshal(dst.Provider) + if string(jsonProvider) == "{}" { // empty struct + dst.Provider = nil + } else { + if err = validator.Validate(dst.Provider); err != nil { + dst.Provider = nil + } else { + match++ + } + } + } else { + dst.Provider = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + if err = validator.Validate(dst.String); err != nil { + dst.String = nil + } else { + match++ + } + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Provider = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(LocationProvider)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(LocationProvider)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src LocationProvider) MarshalJSON() ([]byte, error) { + if src.Provider != nil { + return json.Marshal(&src.Provider) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *LocationProvider) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.Provider != nil { + return obj.Provider + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableLocationProvider struct { + value *LocationProvider + isSet bool +} + +func (v NullableLocationProvider) Get() *LocationProvider { + return v.value +} + +func (v *NullableLocationProvider) Set(val *LocationProvider) { + v.value = val + v.isSet = true +} + +func (v NullableLocationProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableLocationProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocationProvider(val *LocationProvider) *NullableLocationProvider { + return &NullableLocationProvider{value: val, isSet: true} +} + +func (v NullableLocationProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocationProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_logout.go b/v1/providers/launchpad/gen/launchpad/model_logout.go new file mode 100644 index 0000000..0f040e5 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_logout.go @@ -0,0 +1,166 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the Logout type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Logout{} + +// Logout struct for Logout +type Logout struct { + Result string `json:"result"` + AdditionalProperties map[string]interface{} +} + +type _Logout Logout + +// NewLogout instantiates a new Logout 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 NewLogout(result string) *Logout { + this := Logout{} + this.Result = result + return &this +} + +// NewLogoutWithDefaults instantiates a new Logout 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 NewLogoutWithDefaults() *Logout { + this := Logout{} + return &this +} + +// GetResult returns the Result field value +func (o *Logout) GetResult() string { + if o == nil { + var ret string + return ret + } + + return o.Result +} + +// GetResultOk returns a tuple with the Result field value +// and a boolean to check if the value has been set. +func (o *Logout) GetResultOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Result, true +} + +// SetResult sets field value +func (o *Logout) SetResult(v string) { + o.Result = v +} + +func (o Logout) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Logout) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["result"] = o.Result + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Logout) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "result", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varLogout := _Logout{} + + err = json.Unmarshal(data, &varLogout) + + if err != nil { + return err + } + + *o = Logout(varLogout) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableLogout struct { + value *Logout + isSet bool +} + +func (v NullableLogout) Get() *Logout { + return v.value +} + +func (v *NullableLogout) Set(val *Logout) { + v.value = val + v.isSet = true +} + +func (v NullableLogout) IsSet() bool { + return v.isSet +} + +func (v *NullableLogout) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLogout(val *Logout) *NullableLogout { + return &NullableLogout{value: val, isSet: true} +} + +func (v NullableLogout) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLogout) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_model_change.go b/v1/providers/launchpad/gen/launchpad/model_model_change.go new file mode 100644 index 0000000..69fda21 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_model_change.go @@ -0,0 +1,283 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the ModelChange type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelChange{} + +// ModelChange struct for ModelChange +type ModelChange struct { + ChangeType string `json:"change_type"` + Changes []ModelChangeChangesInner `json:"changes"` + Created time.Time `json:"created"` + Id int32 `json:"id"` + Username string `json:"username"` + AdditionalProperties map[string]interface{} +} + +type _ModelChange ModelChange + +// NewModelChange instantiates a new ModelChange 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 NewModelChange(changeType string, changes []ModelChangeChangesInner, created time.Time, id int32, username string) *ModelChange { + this := ModelChange{} + this.ChangeType = changeType + this.Changes = changes + this.Created = created + this.Id = id + this.Username = username + return &this +} + +// NewModelChangeWithDefaults instantiates a new ModelChange 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 NewModelChangeWithDefaults() *ModelChange { + this := ModelChange{} + return &this +} + +// GetChangeType returns the ChangeType field value +func (o *ModelChange) GetChangeType() string { + if o == nil { + var ret string + return ret + } + + return o.ChangeType +} + +// GetChangeTypeOk returns a tuple with the ChangeType field value +// and a boolean to check if the value has been set. +func (o *ModelChange) GetChangeTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ChangeType, true +} + +// SetChangeType sets field value +func (o *ModelChange) SetChangeType(v string) { + o.ChangeType = v +} + +// GetChanges returns the Changes field value +func (o *ModelChange) GetChanges() []ModelChangeChangesInner { + if o == nil { + var ret []ModelChangeChangesInner + return ret + } + + return o.Changes +} + +// GetChangesOk returns a tuple with the Changes field value +// and a boolean to check if the value has been set. +func (o *ModelChange) GetChangesOk() ([]ModelChangeChangesInner, bool) { + if o == nil { + return nil, false + } + return o.Changes, true +} + +// SetChanges sets field value +func (o *ModelChange) SetChanges(v []ModelChangeChangesInner) { + o.Changes = v +} + +// GetCreated returns the Created field value +func (o *ModelChange) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *ModelChange) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *ModelChange) SetCreated(v time.Time) { + o.Created = v +} + +// GetId returns the Id field value +func (o *ModelChange) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ModelChange) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ModelChange) SetId(v int32) { + o.Id = v +} + +// GetUsername returns the Username field value +func (o *ModelChange) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *ModelChange) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *ModelChange) SetUsername(v string) { + o.Username = v +} + +func (o ModelChange) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelChange) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["change_type"] = o.ChangeType + toSerialize["changes"] = o.Changes + toSerialize["created"] = o.Created + toSerialize["id"] = o.Id + toSerialize["username"] = o.Username + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelChange) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "change_type", + "changes", + "created", + "id", + "username", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModelChange := _ModelChange{} + + err = json.Unmarshal(data, &varModelChange) + + if err != nil { + return err + } + + *o = ModelChange(varModelChange) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "change_type") + delete(additionalProperties, "changes") + delete(additionalProperties, "created") + delete(additionalProperties, "id") + delete(additionalProperties, "username") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelChange struct { + value *ModelChange + isSet bool +} + +func (v NullableModelChange) Get() *ModelChange { + return v.value +} + +func (v *NullableModelChange) Set(val *ModelChange) { + v.value = val + v.isSet = true +} + +func (v NullableModelChange) IsSet() bool { + return v.isSet +} + +func (v *NullableModelChange) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelChange(val *ModelChange) *NullableModelChange { + return &NullableModelChange{value: val, isSet: true} +} + +func (v NullableModelChange) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelChange) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_model_change_changes_inner.go b/v1/providers/launchpad/gen/launchpad/model_model_change_changes_inner.go new file mode 100644 index 0000000..9daf2e2 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_model_change_changes_inner.go @@ -0,0 +1,224 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the ModelChangeChangesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelChangeChangesInner{} + +// ModelChangeChangesInner struct for ModelChangeChangesInner +type ModelChangeChangesInner struct { + Field string `json:"field"` + NewValue ModelChangeChangesInnerNewValue `json:"new_value"` + OldValue ModelChangeChangesInnerNewValue `json:"old_value"` + AdditionalProperties map[string]interface{} +} + +type _ModelChangeChangesInner ModelChangeChangesInner + +// NewModelChangeChangesInner instantiates a new ModelChangeChangesInner 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 NewModelChangeChangesInner(field string, newValue ModelChangeChangesInnerNewValue, oldValue ModelChangeChangesInnerNewValue) *ModelChangeChangesInner { + this := ModelChangeChangesInner{} + this.Field = field + this.NewValue = newValue + this.OldValue = oldValue + return &this +} + +// NewModelChangeChangesInnerWithDefaults instantiates a new ModelChangeChangesInner 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 NewModelChangeChangesInnerWithDefaults() *ModelChangeChangesInner { + this := ModelChangeChangesInner{} + return &this +} + +// GetField returns the Field field value +func (o *ModelChangeChangesInner) GetField() string { + if o == nil { + var ret string + return ret + } + + return o.Field +} + +// GetFieldOk returns a tuple with the Field field value +// and a boolean to check if the value has been set. +func (o *ModelChangeChangesInner) GetFieldOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Field, true +} + +// SetField sets field value +func (o *ModelChangeChangesInner) SetField(v string) { + o.Field = v +} + +// GetNewValue returns the NewValue field value +func (o *ModelChangeChangesInner) GetNewValue() ModelChangeChangesInnerNewValue { + if o == nil { + var ret ModelChangeChangesInnerNewValue + return ret + } + + return o.NewValue +} + +// GetNewValueOk returns a tuple with the NewValue field value +// and a boolean to check if the value has been set. +func (o *ModelChangeChangesInner) GetNewValueOk() (*ModelChangeChangesInnerNewValue, bool) { + if o == nil { + return nil, false + } + return &o.NewValue, true +} + +// SetNewValue sets field value +func (o *ModelChangeChangesInner) SetNewValue(v ModelChangeChangesInnerNewValue) { + o.NewValue = v +} + +// GetOldValue returns the OldValue field value +func (o *ModelChangeChangesInner) GetOldValue() ModelChangeChangesInnerNewValue { + if o == nil { + var ret ModelChangeChangesInnerNewValue + return ret + } + + return o.OldValue +} + +// GetOldValueOk returns a tuple with the OldValue field value +// and a boolean to check if the value has been set. +func (o *ModelChangeChangesInner) GetOldValueOk() (*ModelChangeChangesInnerNewValue, bool) { + if o == nil { + return nil, false + } + return &o.OldValue, true +} + +// SetOldValue sets field value +func (o *ModelChangeChangesInner) SetOldValue(v ModelChangeChangesInnerNewValue) { + o.OldValue = v +} + +func (o ModelChangeChangesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelChangeChangesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["field"] = o.Field + toSerialize["new_value"] = o.NewValue + toSerialize["old_value"] = o.OldValue + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelChangeChangesInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "field", + "new_value", + "old_value", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModelChangeChangesInner := _ModelChangeChangesInner{} + + err = json.Unmarshal(data, &varModelChangeChangesInner) + + if err != nil { + return err + } + + *o = ModelChangeChangesInner(varModelChangeChangesInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "field") + delete(additionalProperties, "new_value") + delete(additionalProperties, "old_value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelChangeChangesInner struct { + value *ModelChangeChangesInner + isSet bool +} + +func (v NullableModelChangeChangesInner) Get() *ModelChangeChangesInner { + return v.value +} + +func (v *NullableModelChangeChangesInner) Set(val *ModelChangeChangesInner) { + v.value = val + v.isSet = true +} + +func (v NullableModelChangeChangesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableModelChangeChangesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelChangeChangesInner(val *ModelChangeChangesInner) *NullableModelChangeChangesInner { + return &NullableModelChangeChangesInner{value: val, isSet: true} +} + +func (v NullableModelChangeChangesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelChangeChangesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_model_change_changes_inner_new_value.go b/v1/providers/launchpad/gen/launchpad/model_model_change_changes_inner_new_value.go new file mode 100644 index 0000000..5336d77 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_model_change_changes_inner_new_value.go @@ -0,0 +1,188 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// ModelChangeChangesInnerNewValue - struct for ModelChangeChangesInnerNewValue +type ModelChangeChangesInnerNewValue struct { + Bool *bool + Int32 *int32 + String *string +} + +// boolAsModelChangeChangesInnerNewValue is a convenience function that returns bool wrapped in ModelChangeChangesInnerNewValue +func BoolAsModelChangeChangesInnerNewValue(v *bool) ModelChangeChangesInnerNewValue { + return ModelChangeChangesInnerNewValue{ + Bool: v, + } +} + +// int32AsModelChangeChangesInnerNewValue is a convenience function that returns int32 wrapped in ModelChangeChangesInnerNewValue +func Int32AsModelChangeChangesInnerNewValue(v *int32) ModelChangeChangesInnerNewValue { + return ModelChangeChangesInnerNewValue{ + Int32: v, + } +} + +// stringAsModelChangeChangesInnerNewValue is a convenience function that returns string wrapped in ModelChangeChangesInnerNewValue +func StringAsModelChangeChangesInnerNewValue(v *string) ModelChangeChangesInnerNewValue { + return ModelChangeChangesInnerNewValue{ + String: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *ModelChangeChangesInnerNewValue) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Bool + err = newStrictDecoder(data).Decode(&dst.Bool) + if err == nil { + jsonBool, _ := json.Marshal(dst.Bool) + if string(jsonBool) == "{}" { // empty struct + dst.Bool = nil + } else { + if err = validator.Validate(dst.Bool); err != nil { + dst.Bool = nil + } else { + match++ + } + } + } else { + dst.Bool = nil + } + + // try to unmarshal data into Int32 + err = newStrictDecoder(data).Decode(&dst.Int32) + if err == nil { + jsonInt32, _ := json.Marshal(dst.Int32) + if string(jsonInt32) == "{}" { // empty struct + dst.Int32 = nil + } else { + if err = validator.Validate(dst.Int32); err != nil { + dst.Int32 = nil + } else { + match++ + } + } + } else { + dst.Int32 = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + if err = validator.Validate(dst.String); err != nil { + dst.String = nil + } else { + match++ + } + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Bool = nil + dst.Int32 = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(ModelChangeChangesInnerNewValue)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(ModelChangeChangesInnerNewValue)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src ModelChangeChangesInnerNewValue) MarshalJSON() ([]byte, error) { + if src.Bool != nil { + return json.Marshal(&src.Bool) + } + + if src.Int32 != nil { + return json.Marshal(&src.Int32) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *ModelChangeChangesInnerNewValue) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.Bool != nil { + return obj.Bool + } + + if obj.Int32 != nil { + return obj.Int32 + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableModelChangeChangesInnerNewValue struct { + value *ModelChangeChangesInnerNewValue + isSet bool +} + +func (v NullableModelChangeChangesInnerNewValue) Get() *ModelChangeChangesInnerNewValue { + return v.value +} + +func (v *NullableModelChangeChangesInnerNewValue) Set(val *ModelChangeChangesInnerNewValue) { + v.value = val + v.isSet = true +} + +func (v NullableModelChangeChangesInnerNewValue) IsSet() bool { + return v.isSet +} + +func (v *NullableModelChangeChangesInnerNewValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelChangeChangesInnerNewValue(val *ModelChangeChangesInnerNewValue) *NullableModelChangeChangesInnerNewValue { + return &NullableModelChangeChangesInnerNewValue{value: val, isSet: true} +} + +func (v NullableModelChangeChangesInnerNewValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelChangeChangesInnerNewValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_network_type_enum.go b/v1/providers/launchpad/gen/launchpad/model_network_type_enum.go new file mode 100644 index 0000000..24e2865 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_network_type_enum.go @@ -0,0 +1,110 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// NetworkTypeEnum * `ethernet` - Ethernet * `infiniband` - InfiniBand +type NetworkTypeEnum string + +// List of NetworkTypeEnum +const ( + NetworkTypeEthernet NetworkTypeEnum = "ethernet" + NetworkTypeInfiniband NetworkTypeEnum = "infiniband" +) + +// All allowed values of NetworkTypeEnum enum +var AllowedNetworkTypeEnumEnumValues = []NetworkTypeEnum{ + "ethernet", + "infiniband", +} + +func (v *NetworkTypeEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := NetworkTypeEnum(value) + for _, existing := range AllowedNetworkTypeEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid NetworkTypeEnum", value) +} + +// NewNetworkTypeEnumFromValue returns a pointer to a valid NetworkTypeEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewNetworkTypeEnumFromValue(v string) (*NetworkTypeEnum, error) { + ev := NetworkTypeEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for NetworkTypeEnum: valid values are %v", v, AllowedNetworkTypeEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v NetworkTypeEnum) IsValid() bool { + for _, existing := range AllowedNetworkTypeEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to NetworkTypeEnum value +func (v NetworkTypeEnum) Ptr() *NetworkTypeEnum { + return &v +} + +type NullableNetworkTypeEnum struct { + value *NetworkTypeEnum + isSet bool +} + +func (v NullableNetworkTypeEnum) Get() *NetworkTypeEnum { + return v.value +} + +func (v *NullableNetworkTypeEnum) Set(val *NetworkTypeEnum) { + v.value = val + v.isSet = true +} + +func (v NullableNetworkTypeEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableNetworkTypeEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNetworkTypeEnum(val *NetworkTypeEnum) *NullableNetworkTypeEnum { + return &NullableNetworkTypeEnum{value: val, isSet: true} +} + +func (v NullableNetworkTypeEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNetworkTypeEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_node.go b/v1/providers/launchpad/gen/launchpad/model_node.go new file mode 100644 index 0000000..901bf67 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_node.go @@ -0,0 +1,1502 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the Node type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Node{} + +// Node struct for Node +type Node struct { + // IP address of the BMC + BmcIp NullableString `json:"bmc_ip,omitempty"` + // MAC address of the BMC + BmcMac NullableString `json:"bmc_mac,omitempty"` + // Password for the BMC + BmcPassword NullableString `json:"bmc_password,omitempty"` + // Username for the BMC + BmcUser NullableString `json:"bmc_user,omitempty"` + // UUID of the node's parent cluster + Cluster NullableString `json:"cluster,omitempty"` + // Number of CPU cores installed + Cpu *int32 `json:"cpu,omitempty"` + CpuManufacturer NullableCpuManufacturerEnum `json:"cpu_manufacturer,omitempty"` + // Model information for the node's CPU + CpuModel NullableString `json:"cpu_model,omitempty"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + // ID for the garage where a node is parked when unprovisioned + GarageId NullableString `json:"garage_id,omitempty"` + Gpu ClusterGpusInner `json:"gpu"` + // Alias for GPU plan (i.e. installed GPU type and count) + GpuAlias string `json:"gpu_alias"` + // Number of GPUs installed + GpuCount *int32 `json:"gpu_count,omitempty"` + // Model of GPU(s) installed + GpuModel string `json:"gpu_model"` + // VBIOS version used by installed GPU(s) + GpuVbios NullableString `json:"gpu_vbios,omitempty"` + Id string `json:"id"` + Location NodeLocation `json:"location"` + // Amount of RAM installed (in GB) + Memory *int32 `json:"memory,omitempty"` + // Management IP address + MgmtIp *string `json:"mgmt_ip,omitempty"` + // Management MAC address + MgmtMac NullableString `json:"mgmt_mac,omitempty"` + // Hardware model of the node + Model NullableString `json:"model,omitempty"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Type of networking technology used * `ethernet` - Ethernet * `infiniband` - InfiniBand + NetworkType *NetworkTypeEnum `json:"network_type,omitempty"` + // Prefixes for the node's network interface(s) + NicPrefixes []string `json:"nic_prefixes,omitempty"` + // Administrative comments about the node + Notes NullableString `json:"notes,omitempty"` + // UUID of the node's OEM + Oem NullableString `json:"oem,omitempty"` + // Unique ID for this node assigned by its provider + ProviderNodeId NullableString `json:"provider_node_id,omitempty"` + // Physical rack identifier + Rack NullableString `json:"rack,omitempty"` + // The rack unit (RU) within the rack where the node is installed + RackUnit NullableInt32 `json:"rack_unit,omitempty"` + // Serial number of the node + SerialNumber NullableString `json:"serial_number,omitempty"` + Storage []NodeStorage `json:"storage"` + // CPU architecture * `amd64` - amd64 * `arm64` - arm64 + SystemArch SystemArchEnum `json:"system_arch"` + // Does the node support Trusted Execution Environment (TEE)? + Tee *bool `json:"tee,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Node Node + +// NewNode instantiates a new Node 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 NewNode(created time.Time, gpu ClusterGpusInner, gpuAlias string, gpuModel string, id string, location NodeLocation, modified time.Time, storage []NodeStorage, systemArch SystemArchEnum) *Node { + this := Node{} + this.Created = created + this.Gpu = gpu + this.GpuAlias = gpuAlias + this.GpuModel = gpuModel + this.Id = id + this.Location = location + this.Modified = modified + this.Storage = storage + this.SystemArch = systemArch + return &this +} + +// NewNodeWithDefaults instantiates a new Node 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 NewNodeWithDefaults() *Node { + this := Node{} + return &this +} + +// GetBmcIp returns the BmcIp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetBmcIp() string { + if o == nil || IsNil(o.BmcIp.Get()) { + var ret string + return ret + } + return *o.BmcIp.Get() +} + +// GetBmcIpOk returns a tuple with the BmcIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetBmcIpOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BmcIp.Get(), o.BmcIp.IsSet() +} + +// HasBmcIp returns a boolean if a field has been set. +func (o *Node) HasBmcIp() bool { + if o != nil && o.BmcIp.IsSet() { + return true + } + + return false +} + +// SetBmcIp gets a reference to the given NullableString and assigns it to the BmcIp field. +func (o *Node) SetBmcIp(v string) { + o.BmcIp.Set(&v) +} + +// SetBmcIpNil sets the value for BmcIp to be an explicit nil +func (o *Node) SetBmcIpNil() { + o.BmcIp.Set(nil) +} + +// UnsetBmcIp ensures that no value is present for BmcIp, not even an explicit nil +func (o *Node) UnsetBmcIp() { + o.BmcIp.Unset() +} + +// GetBmcMac returns the BmcMac field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetBmcMac() string { + if o == nil || IsNil(o.BmcMac.Get()) { + var ret string + return ret + } + return *o.BmcMac.Get() +} + +// GetBmcMacOk returns a tuple with the BmcMac field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetBmcMacOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BmcMac.Get(), o.BmcMac.IsSet() +} + +// HasBmcMac returns a boolean if a field has been set. +func (o *Node) HasBmcMac() bool { + if o != nil && o.BmcMac.IsSet() { + return true + } + + return false +} + +// SetBmcMac gets a reference to the given NullableString and assigns it to the BmcMac field. +func (o *Node) SetBmcMac(v string) { + o.BmcMac.Set(&v) +} + +// SetBmcMacNil sets the value for BmcMac to be an explicit nil +func (o *Node) SetBmcMacNil() { + o.BmcMac.Set(nil) +} + +// UnsetBmcMac ensures that no value is present for BmcMac, not even an explicit nil +func (o *Node) UnsetBmcMac() { + o.BmcMac.Unset() +} + +// GetBmcPassword returns the BmcPassword field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetBmcPassword() string { + if o == nil || IsNil(o.BmcPassword.Get()) { + var ret string + return ret + } + return *o.BmcPassword.Get() +} + +// GetBmcPasswordOk returns a tuple with the BmcPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetBmcPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BmcPassword.Get(), o.BmcPassword.IsSet() +} + +// HasBmcPassword returns a boolean if a field has been set. +func (o *Node) HasBmcPassword() bool { + if o != nil && o.BmcPassword.IsSet() { + return true + } + + return false +} + +// SetBmcPassword gets a reference to the given NullableString and assigns it to the BmcPassword field. +func (o *Node) SetBmcPassword(v string) { + o.BmcPassword.Set(&v) +} + +// SetBmcPasswordNil sets the value for BmcPassword to be an explicit nil +func (o *Node) SetBmcPasswordNil() { + o.BmcPassword.Set(nil) +} + +// UnsetBmcPassword ensures that no value is present for BmcPassword, not even an explicit nil +func (o *Node) UnsetBmcPassword() { + o.BmcPassword.Unset() +} + +// GetBmcUser returns the BmcUser field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetBmcUser() string { + if o == nil || IsNil(o.BmcUser.Get()) { + var ret string + return ret + } + return *o.BmcUser.Get() +} + +// GetBmcUserOk returns a tuple with the BmcUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetBmcUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BmcUser.Get(), o.BmcUser.IsSet() +} + +// HasBmcUser returns a boolean if a field has been set. +func (o *Node) HasBmcUser() bool { + if o != nil && o.BmcUser.IsSet() { + return true + } + + return false +} + +// SetBmcUser gets a reference to the given NullableString and assigns it to the BmcUser field. +func (o *Node) SetBmcUser(v string) { + o.BmcUser.Set(&v) +} + +// SetBmcUserNil sets the value for BmcUser to be an explicit nil +func (o *Node) SetBmcUserNil() { + o.BmcUser.Set(nil) +} + +// UnsetBmcUser ensures that no value is present for BmcUser, not even an explicit nil +func (o *Node) UnsetBmcUser() { + o.BmcUser.Unset() +} + +// GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetCluster() string { + if o == nil || IsNil(o.Cluster.Get()) { + var ret string + return ret + } + return *o.Cluster.Get() +} + +// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetClusterOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Cluster.Get(), o.Cluster.IsSet() +} + +// HasCluster returns a boolean if a field has been set. +func (o *Node) HasCluster() bool { + if o != nil && o.Cluster.IsSet() { + return true + } + + return false +} + +// SetCluster gets a reference to the given NullableString and assigns it to the Cluster field. +func (o *Node) SetCluster(v string) { + o.Cluster.Set(&v) +} + +// SetClusterNil sets the value for Cluster to be an explicit nil +func (o *Node) SetClusterNil() { + o.Cluster.Set(nil) +} + +// UnsetCluster ensures that no value is present for Cluster, not even an explicit nil +func (o *Node) UnsetCluster() { + o.Cluster.Unset() +} + +// GetCpu returns the Cpu field value if set, zero value otherwise. +func (o *Node) GetCpu() int32 { + if o == nil || IsNil(o.Cpu) { + var ret int32 + return ret + } + return *o.Cpu +} + +// GetCpuOk returns a tuple with the Cpu field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Node) GetCpuOk() (*int32, bool) { + if o == nil || IsNil(o.Cpu) { + return nil, false + } + return o.Cpu, true +} + +// HasCpu returns a boolean if a field has been set. +func (o *Node) HasCpu() bool { + if o != nil && !IsNil(o.Cpu) { + return true + } + + return false +} + +// SetCpu gets a reference to the given int32 and assigns it to the Cpu field. +func (o *Node) SetCpu(v int32) { + o.Cpu = &v +} + +// GetCpuManufacturer returns the CpuManufacturer field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetCpuManufacturer() CpuManufacturerEnum { + if o == nil || IsNil(o.CpuManufacturer.Get()) { + var ret CpuManufacturerEnum + return ret + } + return *o.CpuManufacturer.Get() +} + +// GetCpuManufacturerOk returns a tuple with the CpuManufacturer field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetCpuManufacturerOk() (*CpuManufacturerEnum, bool) { + if o == nil { + return nil, false + } + return o.CpuManufacturer.Get(), o.CpuManufacturer.IsSet() +} + +// HasCpuManufacturer returns a boolean if a field has been set. +func (o *Node) HasCpuManufacturer() bool { + if o != nil && o.CpuManufacturer.IsSet() { + return true + } + + return false +} + +// SetCpuManufacturer gets a reference to the given NullableCpuManufacturerEnum and assigns it to the CpuManufacturer field. +func (o *Node) SetCpuManufacturer(v CpuManufacturerEnum) { + o.CpuManufacturer.Set(&v) +} + +// SetCpuManufacturerNil sets the value for CpuManufacturer to be an explicit nil +func (o *Node) SetCpuManufacturerNil() { + o.CpuManufacturer.Set(nil) +} + +// UnsetCpuManufacturer ensures that no value is present for CpuManufacturer, not even an explicit nil +func (o *Node) UnsetCpuManufacturer() { + o.CpuManufacturer.Unset() +} + +// GetCpuModel returns the CpuModel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetCpuModel() string { + if o == nil || IsNil(o.CpuModel.Get()) { + var ret string + return ret + } + return *o.CpuModel.Get() +} + +// GetCpuModelOk returns a tuple with the CpuModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetCpuModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CpuModel.Get(), o.CpuModel.IsSet() +} + +// HasCpuModel returns a boolean if a field has been set. +func (o *Node) HasCpuModel() bool { + if o != nil && o.CpuModel.IsSet() { + return true + } + + return false +} + +// SetCpuModel gets a reference to the given NullableString and assigns it to the CpuModel field. +func (o *Node) SetCpuModel(v string) { + o.CpuModel.Set(&v) +} + +// SetCpuModelNil sets the value for CpuModel to be an explicit nil +func (o *Node) SetCpuModelNil() { + o.CpuModel.Set(nil) +} + +// UnsetCpuModel ensures that no value is present for CpuModel, not even an explicit nil +func (o *Node) UnsetCpuModel() { + o.CpuModel.Unset() +} + +// GetCreated returns the Created field value +func (o *Node) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *Node) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *Node) SetCreated(v time.Time) { + o.Created = v +} + +// GetGarageId returns the GarageId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetGarageId() string { + if o == nil || IsNil(o.GarageId.Get()) { + var ret string + return ret + } + return *o.GarageId.Get() +} + +// GetGarageIdOk returns a tuple with the GarageId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetGarageIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GarageId.Get(), o.GarageId.IsSet() +} + +// HasGarageId returns a boolean if a field has been set. +func (o *Node) HasGarageId() bool { + if o != nil && o.GarageId.IsSet() { + return true + } + + return false +} + +// SetGarageId gets a reference to the given NullableString and assigns it to the GarageId field. +func (o *Node) SetGarageId(v string) { + o.GarageId.Set(&v) +} + +// SetGarageIdNil sets the value for GarageId to be an explicit nil +func (o *Node) SetGarageIdNil() { + o.GarageId.Set(nil) +} + +// UnsetGarageId ensures that no value is present for GarageId, not even an explicit nil +func (o *Node) UnsetGarageId() { + o.GarageId.Unset() +} + +// GetGpu returns the Gpu field value +func (o *Node) GetGpu() ClusterGpusInner { + if o == nil { + var ret ClusterGpusInner + return ret + } + + return o.Gpu +} + +// GetGpuOk returns a tuple with the Gpu field value +// and a boolean to check if the value has been set. +func (o *Node) GetGpuOk() (*ClusterGpusInner, bool) { + if o == nil { + return nil, false + } + return &o.Gpu, true +} + +// SetGpu sets field value +func (o *Node) SetGpu(v ClusterGpusInner) { + o.Gpu = v +} + +// GetGpuAlias returns the GpuAlias field value +func (o *Node) GetGpuAlias() string { + if o == nil { + var ret string + return ret + } + + return o.GpuAlias +} + +// GetGpuAliasOk returns a tuple with the GpuAlias field value +// and a boolean to check if the value has been set. +func (o *Node) GetGpuAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GpuAlias, true +} + +// SetGpuAlias sets field value +func (o *Node) SetGpuAlias(v string) { + o.GpuAlias = v +} + +// GetGpuCount returns the GpuCount field value if set, zero value otherwise. +func (o *Node) GetGpuCount() int32 { + if o == nil || IsNil(o.GpuCount) { + var ret int32 + return ret + } + return *o.GpuCount +} + +// GetGpuCountOk returns a tuple with the GpuCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Node) GetGpuCountOk() (*int32, bool) { + if o == nil || IsNil(o.GpuCount) { + return nil, false + } + return o.GpuCount, true +} + +// HasGpuCount returns a boolean if a field has been set. +func (o *Node) HasGpuCount() bool { + if o != nil && !IsNil(o.GpuCount) { + return true + } + + return false +} + +// SetGpuCount gets a reference to the given int32 and assigns it to the GpuCount field. +func (o *Node) SetGpuCount(v int32) { + o.GpuCount = &v +} + +// GetGpuModel returns the GpuModel field value +func (o *Node) GetGpuModel() string { + if o == nil { + var ret string + return ret + } + + return o.GpuModel +} + +// GetGpuModelOk returns a tuple with the GpuModel field value +// and a boolean to check if the value has been set. +func (o *Node) GetGpuModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GpuModel, true +} + +// SetGpuModel sets field value +func (o *Node) SetGpuModel(v string) { + o.GpuModel = v +} + +// GetGpuVbios returns the GpuVbios field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetGpuVbios() string { + if o == nil || IsNil(o.GpuVbios.Get()) { + var ret string + return ret + } + return *o.GpuVbios.Get() +} + +// GetGpuVbiosOk returns a tuple with the GpuVbios field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetGpuVbiosOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuVbios.Get(), o.GpuVbios.IsSet() +} + +// HasGpuVbios returns a boolean if a field has been set. +func (o *Node) HasGpuVbios() bool { + if o != nil && o.GpuVbios.IsSet() { + return true + } + + return false +} + +// SetGpuVbios gets a reference to the given NullableString and assigns it to the GpuVbios field. +func (o *Node) SetGpuVbios(v string) { + o.GpuVbios.Set(&v) +} + +// SetGpuVbiosNil sets the value for GpuVbios to be an explicit nil +func (o *Node) SetGpuVbiosNil() { + o.GpuVbios.Set(nil) +} + +// UnsetGpuVbios ensures that no value is present for GpuVbios, not even an explicit nil +func (o *Node) UnsetGpuVbios() { + o.GpuVbios.Unset() +} + +// GetId returns the Id field value +func (o *Node) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Node) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Node) SetId(v string) { + o.Id = v +} + +// GetLocation returns the Location field value +func (o *Node) GetLocation() NodeLocation { + if o == nil { + var ret NodeLocation + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *Node) GetLocationOk() (*NodeLocation, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *Node) SetLocation(v NodeLocation) { + o.Location = v +} + +// GetMemory returns the Memory field value if set, zero value otherwise. +func (o *Node) 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 *Node) 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 *Node) 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 *Node) SetMemory(v int32) { + o.Memory = &v +} + +// GetMgmtIp returns the MgmtIp field value if set, zero value otherwise. +func (o *Node) GetMgmtIp() string { + if o == nil || IsNil(o.MgmtIp) { + var ret string + return ret + } + return *o.MgmtIp +} + +// GetMgmtIpOk returns a tuple with the MgmtIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Node) GetMgmtIpOk() (*string, bool) { + if o == nil || IsNil(o.MgmtIp) { + return nil, false + } + return o.MgmtIp, true +} + +// HasMgmtIp returns a boolean if a field has been set. +func (o *Node) HasMgmtIp() bool { + if o != nil && !IsNil(o.MgmtIp) { + return true + } + + return false +} + +// SetMgmtIp gets a reference to the given string and assigns it to the MgmtIp field. +func (o *Node) SetMgmtIp(v string) { + o.MgmtIp = &v +} + +// GetMgmtMac returns the MgmtMac field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetMgmtMac() string { + if o == nil || IsNil(o.MgmtMac.Get()) { + var ret string + return ret + } + return *o.MgmtMac.Get() +} + +// GetMgmtMacOk returns a tuple with the MgmtMac field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetMgmtMacOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MgmtMac.Get(), o.MgmtMac.IsSet() +} + +// HasMgmtMac returns a boolean if a field has been set. +func (o *Node) HasMgmtMac() bool { + if o != nil && o.MgmtMac.IsSet() { + return true + } + + return false +} + +// SetMgmtMac gets a reference to the given NullableString and assigns it to the MgmtMac field. +func (o *Node) SetMgmtMac(v string) { + o.MgmtMac.Set(&v) +} + +// SetMgmtMacNil sets the value for MgmtMac to be an explicit nil +func (o *Node) SetMgmtMacNil() { + o.MgmtMac.Set(nil) +} + +// UnsetMgmtMac ensures that no value is present for MgmtMac, not even an explicit nil +func (o *Node) UnsetMgmtMac() { + o.MgmtMac.Unset() +} + +// GetModel returns the Model field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetModel() string { + if o == nil || IsNil(o.Model.Get()) { + var ret string + return ret + } + return *o.Model.Get() +} + +// GetModelOk returns a tuple with the Model field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Model.Get(), o.Model.IsSet() +} + +// HasModel returns a boolean if a field has been set. +func (o *Node) HasModel() bool { + if o != nil && o.Model.IsSet() { + return true + } + + return false +} + +// SetModel gets a reference to the given NullableString and assigns it to the Model field. +func (o *Node) SetModel(v string) { + o.Model.Set(&v) +} + +// SetModelNil sets the value for Model to be an explicit nil +func (o *Node) SetModelNil() { + o.Model.Set(nil) +} + +// UnsetModel ensures that no value is present for Model, not even an explicit nil +func (o *Node) UnsetModel() { + o.Model.Unset() +} + +// GetModified returns the Modified field value +func (o *Node) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *Node) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *Node) SetModified(v time.Time) { + o.Modified = v +} + +// GetNetworkType returns the NetworkType field value if set, zero value otherwise. +func (o *Node) GetNetworkType() NetworkTypeEnum { + if o == nil || IsNil(o.NetworkType) { + var ret NetworkTypeEnum + return ret + } + return *o.NetworkType +} + +// GetNetworkTypeOk returns a tuple with the NetworkType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Node) GetNetworkTypeOk() (*NetworkTypeEnum, bool) { + if o == nil || IsNil(o.NetworkType) { + return nil, false + } + return o.NetworkType, true +} + +// HasNetworkType returns a boolean if a field has been set. +func (o *Node) HasNetworkType() bool { + if o != nil && !IsNil(o.NetworkType) { + return true + } + + return false +} + +// SetNetworkType gets a reference to the given NetworkTypeEnum and assigns it to the NetworkType field. +func (o *Node) SetNetworkType(v NetworkTypeEnum) { + o.NetworkType = &v +} + +// GetNicPrefixes returns the NicPrefixes field value if set, zero value otherwise. +func (o *Node) GetNicPrefixes() []string { + if o == nil || IsNil(o.NicPrefixes) { + var ret []string + return ret + } + return o.NicPrefixes +} + +// GetNicPrefixesOk returns a tuple with the NicPrefixes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Node) GetNicPrefixesOk() ([]string, bool) { + if o == nil || IsNil(o.NicPrefixes) { + return nil, false + } + return o.NicPrefixes, true +} + +// HasNicPrefixes returns a boolean if a field has been set. +func (o *Node) HasNicPrefixes() bool { + if o != nil && !IsNil(o.NicPrefixes) { + return true + } + + return false +} + +// SetNicPrefixes gets a reference to the given []string and assigns it to the NicPrefixes field. +func (o *Node) SetNicPrefixes(v []string) { + o.NicPrefixes = v +} + +// GetNotes returns the Notes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetNotes() string { + if o == nil || IsNil(o.Notes.Get()) { + var ret string + return ret + } + return *o.Notes.Get() +} + +// GetNotesOk returns a tuple with the Notes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetNotesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Notes.Get(), o.Notes.IsSet() +} + +// HasNotes returns a boolean if a field has been set. +func (o *Node) HasNotes() bool { + if o != nil && o.Notes.IsSet() { + return true + } + + return false +} + +// SetNotes gets a reference to the given NullableString and assigns it to the Notes field. +func (o *Node) SetNotes(v string) { + o.Notes.Set(&v) +} + +// SetNotesNil sets the value for Notes to be an explicit nil +func (o *Node) SetNotesNil() { + o.Notes.Set(nil) +} + +// UnsetNotes ensures that no value is present for Notes, not even an explicit nil +func (o *Node) UnsetNotes() { + o.Notes.Unset() +} + +// GetOem returns the Oem field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetOem() string { + if o == nil || IsNil(o.Oem.Get()) { + var ret string + return ret + } + return *o.Oem.Get() +} + +// GetOemOk returns a tuple with the Oem field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetOemOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Oem.Get(), o.Oem.IsSet() +} + +// HasOem returns a boolean if a field has been set. +func (o *Node) HasOem() bool { + if o != nil && o.Oem.IsSet() { + return true + } + + return false +} + +// SetOem gets a reference to the given NullableString and assigns it to the Oem field. +func (o *Node) SetOem(v string) { + o.Oem.Set(&v) +} + +// SetOemNil sets the value for Oem to be an explicit nil +func (o *Node) SetOemNil() { + o.Oem.Set(nil) +} + +// UnsetOem ensures that no value is present for Oem, not even an explicit nil +func (o *Node) UnsetOem() { + o.Oem.Unset() +} + +// GetProviderNodeId returns the ProviderNodeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetProviderNodeId() string { + if o == nil || IsNil(o.ProviderNodeId.Get()) { + var ret string + return ret + } + return *o.ProviderNodeId.Get() +} + +// GetProviderNodeIdOk returns a tuple with the ProviderNodeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetProviderNodeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ProviderNodeId.Get(), o.ProviderNodeId.IsSet() +} + +// HasProviderNodeId returns a boolean if a field has been set. +func (o *Node) HasProviderNodeId() bool { + if o != nil && o.ProviderNodeId.IsSet() { + return true + } + + return false +} + +// SetProviderNodeId gets a reference to the given NullableString and assigns it to the ProviderNodeId field. +func (o *Node) SetProviderNodeId(v string) { + o.ProviderNodeId.Set(&v) +} + +// SetProviderNodeIdNil sets the value for ProviderNodeId to be an explicit nil +func (o *Node) SetProviderNodeIdNil() { + o.ProviderNodeId.Set(nil) +} + +// UnsetProviderNodeId ensures that no value is present for ProviderNodeId, not even an explicit nil +func (o *Node) UnsetProviderNodeId() { + o.ProviderNodeId.Unset() +} + +// GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetRack() string { + if o == nil || IsNil(o.Rack.Get()) { + var ret string + return ret + } + return *o.Rack.Get() +} + +// GetRackOk returns a tuple with the Rack field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetRackOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Rack.Get(), o.Rack.IsSet() +} + +// HasRack returns a boolean if a field has been set. +func (o *Node) HasRack() bool { + if o != nil && o.Rack.IsSet() { + return true + } + + return false +} + +// SetRack gets a reference to the given NullableString and assigns it to the Rack field. +func (o *Node) SetRack(v string) { + o.Rack.Set(&v) +} + +// SetRackNil sets the value for Rack to be an explicit nil +func (o *Node) SetRackNil() { + o.Rack.Set(nil) +} + +// UnsetRack ensures that no value is present for Rack, not even an explicit nil +func (o *Node) UnsetRack() { + o.Rack.Unset() +} + +// GetRackUnit returns the RackUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetRackUnit() int32 { + if o == nil || IsNil(o.RackUnit.Get()) { + var ret int32 + return ret + } + return *o.RackUnit.Get() +} + +// GetRackUnitOk returns a tuple with the RackUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetRackUnitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.RackUnit.Get(), o.RackUnit.IsSet() +} + +// HasRackUnit returns a boolean if a field has been set. +func (o *Node) HasRackUnit() bool { + if o != nil && o.RackUnit.IsSet() { + return true + } + + return false +} + +// SetRackUnit gets a reference to the given NullableInt32 and assigns it to the RackUnit field. +func (o *Node) SetRackUnit(v int32) { + o.RackUnit.Set(&v) +} + +// SetRackUnitNil sets the value for RackUnit to be an explicit nil +func (o *Node) SetRackUnitNil() { + o.RackUnit.Set(nil) +} + +// UnsetRackUnit ensures that no value is present for RackUnit, not even an explicit nil +func (o *Node) UnsetRackUnit() { + o.RackUnit.Unset() +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Node) GetSerialNumber() string { + if o == nil || IsNil(o.SerialNumber.Get()) { + var ret string + return ret + } + return *o.SerialNumber.Get() +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Node) GetSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SerialNumber.Get(), o.SerialNumber.IsSet() +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *Node) HasSerialNumber() bool { + if o != nil && o.SerialNumber.IsSet() { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given NullableString and assigns it to the SerialNumber field. +func (o *Node) SetSerialNumber(v string) { + o.SerialNumber.Set(&v) +} + +// SetSerialNumberNil sets the value for SerialNumber to be an explicit nil +func (o *Node) SetSerialNumberNil() { + o.SerialNumber.Set(nil) +} + +// UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +func (o *Node) UnsetSerialNumber() { + o.SerialNumber.Unset() +} + +// GetStorage returns the Storage field value +func (o *Node) GetStorage() []NodeStorage { + if o == nil { + var ret []NodeStorage + return ret + } + + return o.Storage +} + +// GetStorageOk returns a tuple with the Storage field value +// and a boolean to check if the value has been set. +func (o *Node) GetStorageOk() ([]NodeStorage, bool) { + if o == nil { + return nil, false + } + return o.Storage, true +} + +// SetStorage sets field value +func (o *Node) SetStorage(v []NodeStorage) { + o.Storage = v +} + +// GetSystemArch returns the SystemArch field value +func (o *Node) GetSystemArch() SystemArchEnum { + if o == nil { + var ret SystemArchEnum + return ret + } + + return o.SystemArch +} + +// GetSystemArchOk returns a tuple with the SystemArch field value +// and a boolean to check if the value has been set. +func (o *Node) GetSystemArchOk() (*SystemArchEnum, bool) { + if o == nil { + return nil, false + } + return &o.SystemArch, true +} + +// SetSystemArch sets field value +func (o *Node) SetSystemArch(v SystemArchEnum) { + o.SystemArch = v +} + +// GetTee returns the Tee field value if set, zero value otherwise. +func (o *Node) GetTee() bool { + if o == nil || IsNil(o.Tee) { + var ret bool + return ret + } + return *o.Tee +} + +// GetTeeOk returns a tuple with the Tee field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Node) GetTeeOk() (*bool, bool) { + if o == nil || IsNil(o.Tee) { + return nil, false + } + return o.Tee, true +} + +// HasTee returns a boolean if a field has been set. +func (o *Node) HasTee() bool { + if o != nil && !IsNil(o.Tee) { + return true + } + + return false +} + +// SetTee gets a reference to the given bool and assigns it to the Tee field. +func (o *Node) SetTee(v bool) { + o.Tee = &v +} + +func (o Node) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Node) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.BmcIp.IsSet() { + toSerialize["bmc_ip"] = o.BmcIp.Get() + } + if o.BmcMac.IsSet() { + toSerialize["bmc_mac"] = o.BmcMac.Get() + } + if o.BmcPassword.IsSet() { + toSerialize["bmc_password"] = o.BmcPassword.Get() + } + if o.BmcUser.IsSet() { + toSerialize["bmc_user"] = o.BmcUser.Get() + } + if o.Cluster.IsSet() { + toSerialize["cluster"] = o.Cluster.Get() + } + if !IsNil(o.Cpu) { + toSerialize["cpu"] = o.Cpu + } + if o.CpuManufacturer.IsSet() { + toSerialize["cpu_manufacturer"] = o.CpuManufacturer.Get() + } + if o.CpuModel.IsSet() { + toSerialize["cpu_model"] = o.CpuModel.Get() + } + toSerialize["created"] = o.Created + if o.GarageId.IsSet() { + toSerialize["garage_id"] = o.GarageId.Get() + } + toSerialize["gpu"] = o.Gpu + toSerialize["gpu_alias"] = o.GpuAlias + if !IsNil(o.GpuCount) { + toSerialize["gpu_count"] = o.GpuCount + } + toSerialize["gpu_model"] = o.GpuModel + if o.GpuVbios.IsSet() { + toSerialize["gpu_vbios"] = o.GpuVbios.Get() + } + toSerialize["id"] = o.Id + toSerialize["location"] = o.Location + if !IsNil(o.Memory) { + toSerialize["memory"] = o.Memory + } + if !IsNil(o.MgmtIp) { + toSerialize["mgmt_ip"] = o.MgmtIp + } + if o.MgmtMac.IsSet() { + toSerialize["mgmt_mac"] = o.MgmtMac.Get() + } + if o.Model.IsSet() { + toSerialize["model"] = o.Model.Get() + } + toSerialize["modified"] = o.Modified + if !IsNil(o.NetworkType) { + toSerialize["network_type"] = o.NetworkType + } + if !IsNil(o.NicPrefixes) { + toSerialize["nic_prefixes"] = o.NicPrefixes + } + if o.Notes.IsSet() { + toSerialize["notes"] = o.Notes.Get() + } + if o.Oem.IsSet() { + toSerialize["oem"] = o.Oem.Get() + } + if o.ProviderNodeId.IsSet() { + toSerialize["provider_node_id"] = o.ProviderNodeId.Get() + } + if o.Rack.IsSet() { + toSerialize["rack"] = o.Rack.Get() + } + if o.RackUnit.IsSet() { + toSerialize["rack_unit"] = o.RackUnit.Get() + } + if o.SerialNumber.IsSet() { + toSerialize["serial_number"] = o.SerialNumber.Get() + } + toSerialize["storage"] = o.Storage + toSerialize["system_arch"] = o.SystemArch + if !IsNil(o.Tee) { + toSerialize["tee"] = o.Tee + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Node) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "gpu", + "gpu_alias", + "gpu_model", + "id", + "location", + "modified", + "storage", + "system_arch", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNode := _Node{} + + err = json.Unmarshal(data, &varNode) + + if err != nil { + return err + } + + *o = Node(varNode) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "bmc_ip") + delete(additionalProperties, "bmc_mac") + delete(additionalProperties, "bmc_password") + delete(additionalProperties, "bmc_user") + delete(additionalProperties, "cluster") + delete(additionalProperties, "cpu") + delete(additionalProperties, "cpu_manufacturer") + delete(additionalProperties, "cpu_model") + delete(additionalProperties, "created") + delete(additionalProperties, "garage_id") + delete(additionalProperties, "gpu") + delete(additionalProperties, "gpu_alias") + delete(additionalProperties, "gpu_count") + delete(additionalProperties, "gpu_model") + delete(additionalProperties, "gpu_vbios") + delete(additionalProperties, "id") + delete(additionalProperties, "location") + delete(additionalProperties, "memory") + delete(additionalProperties, "mgmt_ip") + delete(additionalProperties, "mgmt_mac") + delete(additionalProperties, "model") + delete(additionalProperties, "modified") + delete(additionalProperties, "network_type") + delete(additionalProperties, "nic_prefixes") + delete(additionalProperties, "notes") + delete(additionalProperties, "oem") + delete(additionalProperties, "provider_node_id") + delete(additionalProperties, "rack") + delete(additionalProperties, "rack_unit") + delete(additionalProperties, "serial_number") + delete(additionalProperties, "storage") + delete(additionalProperties, "system_arch") + delete(additionalProperties, "tee") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNode struct { + value *Node + isSet bool +} + +func (v NullableNode) Get() *Node { + return v.value +} + +func (v *NullableNode) Set(val *Node) { + v.value = val + v.isSet = true +} + +func (v NullableNode) IsSet() bool { + return v.isSet +} + +func (v *NullableNode) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNode(val *Node) *NullableNode { + return &NullableNode{value: val, isSet: true} +} + +func (v NullableNode) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNode) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_node_bulk.go b/v1/providers/launchpad/gen/launchpad/model_node_bulk.go new file mode 100644 index 0000000..75637a8 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_node_bulk.go @@ -0,0 +1,195 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the NodeBulk type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NodeBulk{} + +// NodeBulk struct for NodeBulk +type NodeBulk struct { + CsvFile string `json:"csv_file"` + Nodes []Node `json:"nodes"` + AdditionalProperties map[string]interface{} +} + +type _NodeBulk NodeBulk + +// NewNodeBulk instantiates a new NodeBulk 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 NewNodeBulk(csvFile string, nodes []Node) *NodeBulk { + this := NodeBulk{} + this.CsvFile = csvFile + this.Nodes = nodes + return &this +} + +// NewNodeBulkWithDefaults instantiates a new NodeBulk 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 NewNodeBulkWithDefaults() *NodeBulk { + this := NodeBulk{} + return &this +} + +// GetCsvFile returns the CsvFile field value +func (o *NodeBulk) GetCsvFile() string { + if o == nil { + var ret string + return ret + } + + return o.CsvFile +} + +// GetCsvFileOk returns a tuple with the CsvFile field value +// and a boolean to check if the value has been set. +func (o *NodeBulk) GetCsvFileOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CsvFile, true +} + +// SetCsvFile sets field value +func (o *NodeBulk) SetCsvFile(v string) { + o.CsvFile = v +} + +// GetNodes returns the Nodes field value +func (o *NodeBulk) GetNodes() []Node { + if o == nil { + var ret []Node + return ret + } + + return o.Nodes +} + +// GetNodesOk returns a tuple with the Nodes field value +// and a boolean to check if the value has been set. +func (o *NodeBulk) GetNodesOk() ([]Node, bool) { + if o == nil { + return nil, false + } + return o.Nodes, true +} + +// SetNodes sets field value +func (o *NodeBulk) SetNodes(v []Node) { + o.Nodes = v +} + +func (o NodeBulk) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NodeBulk) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["csv_file"] = o.CsvFile + toSerialize["nodes"] = o.Nodes + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NodeBulk) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "csv_file", + "nodes", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNodeBulk := _NodeBulk{} + + err = json.Unmarshal(data, &varNodeBulk) + + if err != nil { + return err + } + + *o = NodeBulk(varNodeBulk) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "csv_file") + delete(additionalProperties, "nodes") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNodeBulk struct { + value *NodeBulk + isSet bool +} + +func (v NullableNodeBulk) Get() *NodeBulk { + return v.value +} + +func (v *NullableNodeBulk) Set(val *NodeBulk) { + v.value = val + v.isSet = true +} + +func (v NullableNodeBulk) IsSet() bool { + return v.isSet +} + +func (v *NullableNodeBulk) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNodeBulk(val *NodeBulk) *NullableNodeBulk { + return &NullableNodeBulk{value: val, isSet: true} +} + +func (v NullableNodeBulk) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNodeBulk) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_node_bulk_update.go b/v1/providers/launchpad/gen/launchpad/model_node_bulk_update.go new file mode 100644 index 0000000..dcefec0 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_node_bulk_update.go @@ -0,0 +1,1572 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the NodeBulkUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NodeBulkUpdate{} + +// NodeBulkUpdate struct for NodeBulkUpdate +type NodeBulkUpdate struct { + // IP address of the BMC + BmcIp NullableString `json:"bmc_ip,omitempty"` + // MAC address of the BMC + BmcMac NullableString `json:"bmc_mac,omitempty"` + // Password for the BMC + BmcPassword NullableString `json:"bmc_password,omitempty"` + // Username for the BMC + BmcUser NullableString `json:"bmc_user,omitempty"` + // UUID of the node's parent cluster + Cluster NullableString `json:"cluster,omitempty"` + // Number of CPU cores installed + Cpu *int32 `json:"cpu,omitempty"` + CpuManufacturer NullableCpuManufacturerEnum `json:"cpu_manufacturer,omitempty"` + // Model information for the node's CPU + CpuModel NullableString `json:"cpu_model,omitempty"` + // Timestamp of when the object was created + Created time.Time `json:"created"` + // ID for the garage where a node is parked when unprovisioned + GarageId NullableString `json:"garage_id,omitempty"` + Gpu ClusterGpusInner `json:"gpu"` + // Alias for GPU plan (i.e. installed GPU type and count) + GpuAlias string `json:"gpu_alias"` + // Number of GPUs installed + GpuCount *int32 `json:"gpu_count,omitempty"` + // Model of GPU(s) installed + GpuModel string `json:"gpu_model"` + // VBIOS version used by installed GPU(s) + GpuVbios NullableString `json:"gpu_vbios,omitempty"` + Id string `json:"id"` + Location NodeLocation `json:"location"` + // Amount of RAM installed (in GB) + Memory *int32 `json:"memory,omitempty"` + // Management IP address + MgmtIp *string `json:"mgmt_ip,omitempty"` + // Management MAC address + MgmtMac NullableString `json:"mgmt_mac,omitempty"` + // Hardware model of the node + Model NullableString `json:"model,omitempty"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + // Type of networking technology used * `ethernet` - Ethernet * `infiniband` - InfiniBand + NetworkType *NetworkTypeEnum `json:"network_type,omitempty"` + // Prefixes for the node's network interface(s) + NicPrefixes []string `json:"nic_prefixes,omitempty"` + // Administrative comments about the node + Notes NullableString `json:"notes,omitempty"` + // UUID of the node's OEM + Oem NullableString `json:"oem,omitempty"` + // Unique ID for this node assigned by its provider + ProviderNodeId NullableString `json:"provider_node_id,omitempty"` + // Physical rack identifier + Rack NullableString `json:"rack,omitempty"` + // The rack unit (RU) within the rack where the node is installed + RackUnit NullableInt32 `json:"rack_unit,omitempty"` + // Serial number of the node + SerialNumber NullableString `json:"serial_number"` + Storage []NodeStorage `json:"storage"` + // CPU architecture * `amd64` - amd64 * `arm64` - arm64 + SystemArch SystemArchEnum `json:"system_arch"` + // Does the node support Trusted Execution Environment (TEE)? + Tee *bool `json:"tee,omitempty"` + Count int32 `json:"count"` + Ids []string `json:"ids"` + Result string `json:"result"` + AdditionalProperties map[string]interface{} +} + +type _NodeBulkUpdate NodeBulkUpdate + +// NewNodeBulkUpdate instantiates a new NodeBulkUpdate 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 NewNodeBulkUpdate(created time.Time, gpu ClusterGpusInner, gpuAlias string, gpuModel string, id string, location NodeLocation, modified time.Time, serialNumber NullableString, storage []NodeStorage, systemArch SystemArchEnum, count int32, ids []string, result string) *NodeBulkUpdate { + this := NodeBulkUpdate{} + this.Created = created + this.Gpu = gpu + this.GpuAlias = gpuAlias + this.GpuModel = gpuModel + this.Id = id + this.Location = location + this.Modified = modified + this.SerialNumber = serialNumber + this.Storage = storage + this.SystemArch = systemArch + this.Count = count + this.Ids = ids + this.Result = result + return &this +} + +// NewNodeBulkUpdateWithDefaults instantiates a new NodeBulkUpdate 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 NewNodeBulkUpdateWithDefaults() *NodeBulkUpdate { + this := NodeBulkUpdate{} + return &this +} + +// GetBmcIp returns the BmcIp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetBmcIp() string { + if o == nil || IsNil(o.BmcIp.Get()) { + var ret string + return ret + } + return *o.BmcIp.Get() +} + +// GetBmcIpOk returns a tuple with the BmcIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetBmcIpOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BmcIp.Get(), o.BmcIp.IsSet() +} + +// HasBmcIp returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasBmcIp() bool { + if o != nil && o.BmcIp.IsSet() { + return true + } + + return false +} + +// SetBmcIp gets a reference to the given NullableString and assigns it to the BmcIp field. +func (o *NodeBulkUpdate) SetBmcIp(v string) { + o.BmcIp.Set(&v) +} + +// SetBmcIpNil sets the value for BmcIp to be an explicit nil +func (o *NodeBulkUpdate) SetBmcIpNil() { + o.BmcIp.Set(nil) +} + +// UnsetBmcIp ensures that no value is present for BmcIp, not even an explicit nil +func (o *NodeBulkUpdate) UnsetBmcIp() { + o.BmcIp.Unset() +} + +// GetBmcMac returns the BmcMac field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetBmcMac() string { + if o == nil || IsNil(o.BmcMac.Get()) { + var ret string + return ret + } + return *o.BmcMac.Get() +} + +// GetBmcMacOk returns a tuple with the BmcMac field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetBmcMacOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BmcMac.Get(), o.BmcMac.IsSet() +} + +// HasBmcMac returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasBmcMac() bool { + if o != nil && o.BmcMac.IsSet() { + return true + } + + return false +} + +// SetBmcMac gets a reference to the given NullableString and assigns it to the BmcMac field. +func (o *NodeBulkUpdate) SetBmcMac(v string) { + o.BmcMac.Set(&v) +} + +// SetBmcMacNil sets the value for BmcMac to be an explicit nil +func (o *NodeBulkUpdate) SetBmcMacNil() { + o.BmcMac.Set(nil) +} + +// UnsetBmcMac ensures that no value is present for BmcMac, not even an explicit nil +func (o *NodeBulkUpdate) UnsetBmcMac() { + o.BmcMac.Unset() +} + +// GetBmcPassword returns the BmcPassword field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetBmcPassword() string { + if o == nil || IsNil(o.BmcPassword.Get()) { + var ret string + return ret + } + return *o.BmcPassword.Get() +} + +// GetBmcPasswordOk returns a tuple with the BmcPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetBmcPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BmcPassword.Get(), o.BmcPassword.IsSet() +} + +// HasBmcPassword returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasBmcPassword() bool { + if o != nil && o.BmcPassword.IsSet() { + return true + } + + return false +} + +// SetBmcPassword gets a reference to the given NullableString and assigns it to the BmcPassword field. +func (o *NodeBulkUpdate) SetBmcPassword(v string) { + o.BmcPassword.Set(&v) +} + +// SetBmcPasswordNil sets the value for BmcPassword to be an explicit nil +func (o *NodeBulkUpdate) SetBmcPasswordNil() { + o.BmcPassword.Set(nil) +} + +// UnsetBmcPassword ensures that no value is present for BmcPassword, not even an explicit nil +func (o *NodeBulkUpdate) UnsetBmcPassword() { + o.BmcPassword.Unset() +} + +// GetBmcUser returns the BmcUser field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetBmcUser() string { + if o == nil || IsNil(o.BmcUser.Get()) { + var ret string + return ret + } + return *o.BmcUser.Get() +} + +// GetBmcUserOk returns a tuple with the BmcUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetBmcUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BmcUser.Get(), o.BmcUser.IsSet() +} + +// HasBmcUser returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasBmcUser() bool { + if o != nil && o.BmcUser.IsSet() { + return true + } + + return false +} + +// SetBmcUser gets a reference to the given NullableString and assigns it to the BmcUser field. +func (o *NodeBulkUpdate) SetBmcUser(v string) { + o.BmcUser.Set(&v) +} + +// SetBmcUserNil sets the value for BmcUser to be an explicit nil +func (o *NodeBulkUpdate) SetBmcUserNil() { + o.BmcUser.Set(nil) +} + +// UnsetBmcUser ensures that no value is present for BmcUser, not even an explicit nil +func (o *NodeBulkUpdate) UnsetBmcUser() { + o.BmcUser.Unset() +} + +// GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetCluster() string { + if o == nil || IsNil(o.Cluster.Get()) { + var ret string + return ret + } + return *o.Cluster.Get() +} + +// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetClusterOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Cluster.Get(), o.Cluster.IsSet() +} + +// HasCluster returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasCluster() bool { + if o != nil && o.Cluster.IsSet() { + return true + } + + return false +} + +// SetCluster gets a reference to the given NullableString and assigns it to the Cluster field. +func (o *NodeBulkUpdate) SetCluster(v string) { + o.Cluster.Set(&v) +} + +// SetClusterNil sets the value for Cluster to be an explicit nil +func (o *NodeBulkUpdate) SetClusterNil() { + o.Cluster.Set(nil) +} + +// UnsetCluster ensures that no value is present for Cluster, not even an explicit nil +func (o *NodeBulkUpdate) UnsetCluster() { + o.Cluster.Unset() +} + +// GetCpu returns the Cpu field value if set, zero value otherwise. +func (o *NodeBulkUpdate) GetCpu() int32 { + if o == nil || IsNil(o.Cpu) { + var ret int32 + return ret + } + return *o.Cpu +} + +// GetCpuOk returns a tuple with the Cpu field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetCpuOk() (*int32, bool) { + if o == nil || IsNil(o.Cpu) { + return nil, false + } + return o.Cpu, true +} + +// HasCpu returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasCpu() bool { + if o != nil && !IsNil(o.Cpu) { + return true + } + + return false +} + +// SetCpu gets a reference to the given int32 and assigns it to the Cpu field. +func (o *NodeBulkUpdate) SetCpu(v int32) { + o.Cpu = &v +} + +// GetCpuManufacturer returns the CpuManufacturer field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetCpuManufacturer() CpuManufacturerEnum { + if o == nil || IsNil(o.CpuManufacturer.Get()) { + var ret CpuManufacturerEnum + return ret + } + return *o.CpuManufacturer.Get() +} + +// GetCpuManufacturerOk returns a tuple with the CpuManufacturer field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetCpuManufacturerOk() (*CpuManufacturerEnum, bool) { + if o == nil { + return nil, false + } + return o.CpuManufacturer.Get(), o.CpuManufacturer.IsSet() +} + +// HasCpuManufacturer returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasCpuManufacturer() bool { + if o != nil && o.CpuManufacturer.IsSet() { + return true + } + + return false +} + +// SetCpuManufacturer gets a reference to the given NullableCpuManufacturerEnum and assigns it to the CpuManufacturer field. +func (o *NodeBulkUpdate) SetCpuManufacturer(v CpuManufacturerEnum) { + o.CpuManufacturer.Set(&v) +} + +// SetCpuManufacturerNil sets the value for CpuManufacturer to be an explicit nil +func (o *NodeBulkUpdate) SetCpuManufacturerNil() { + o.CpuManufacturer.Set(nil) +} + +// UnsetCpuManufacturer ensures that no value is present for CpuManufacturer, not even an explicit nil +func (o *NodeBulkUpdate) UnsetCpuManufacturer() { + o.CpuManufacturer.Unset() +} + +// GetCpuModel returns the CpuModel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetCpuModel() string { + if o == nil || IsNil(o.CpuModel.Get()) { + var ret string + return ret + } + return *o.CpuModel.Get() +} + +// GetCpuModelOk returns a tuple with the CpuModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetCpuModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CpuModel.Get(), o.CpuModel.IsSet() +} + +// HasCpuModel returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasCpuModel() bool { + if o != nil && o.CpuModel.IsSet() { + return true + } + + return false +} + +// SetCpuModel gets a reference to the given NullableString and assigns it to the CpuModel field. +func (o *NodeBulkUpdate) SetCpuModel(v string) { + o.CpuModel.Set(&v) +} + +// SetCpuModelNil sets the value for CpuModel to be an explicit nil +func (o *NodeBulkUpdate) SetCpuModelNil() { + o.CpuModel.Set(nil) +} + +// UnsetCpuModel ensures that no value is present for CpuModel, not even an explicit nil +func (o *NodeBulkUpdate) UnsetCpuModel() { + o.CpuModel.Unset() +} + +// GetCreated returns the Created field value +func (o *NodeBulkUpdate) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *NodeBulkUpdate) SetCreated(v time.Time) { + o.Created = v +} + +// GetGarageId returns the GarageId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetGarageId() string { + if o == nil || IsNil(o.GarageId.Get()) { + var ret string + return ret + } + return *o.GarageId.Get() +} + +// GetGarageIdOk returns a tuple with the GarageId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetGarageIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GarageId.Get(), o.GarageId.IsSet() +} + +// HasGarageId returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasGarageId() bool { + if o != nil && o.GarageId.IsSet() { + return true + } + + return false +} + +// SetGarageId gets a reference to the given NullableString and assigns it to the GarageId field. +func (o *NodeBulkUpdate) SetGarageId(v string) { + o.GarageId.Set(&v) +} + +// SetGarageIdNil sets the value for GarageId to be an explicit nil +func (o *NodeBulkUpdate) SetGarageIdNil() { + o.GarageId.Set(nil) +} + +// UnsetGarageId ensures that no value is present for GarageId, not even an explicit nil +func (o *NodeBulkUpdate) UnsetGarageId() { + o.GarageId.Unset() +} + +// GetGpu returns the Gpu field value +func (o *NodeBulkUpdate) GetGpu() ClusterGpusInner { + if o == nil { + var ret ClusterGpusInner + return ret + } + + return o.Gpu +} + +// GetGpuOk returns a tuple with the Gpu field value +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetGpuOk() (*ClusterGpusInner, bool) { + if o == nil { + return nil, false + } + return &o.Gpu, true +} + +// SetGpu sets field value +func (o *NodeBulkUpdate) SetGpu(v ClusterGpusInner) { + o.Gpu = v +} + +// GetGpuAlias returns the GpuAlias field value +func (o *NodeBulkUpdate) GetGpuAlias() string { + if o == nil { + var ret string + return ret + } + + return o.GpuAlias +} + +// GetGpuAliasOk returns a tuple with the GpuAlias field value +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetGpuAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GpuAlias, true +} + +// SetGpuAlias sets field value +func (o *NodeBulkUpdate) SetGpuAlias(v string) { + o.GpuAlias = v +} + +// GetGpuCount returns the GpuCount field value if set, zero value otherwise. +func (o *NodeBulkUpdate) GetGpuCount() int32 { + if o == nil || IsNil(o.GpuCount) { + var ret int32 + return ret + } + return *o.GpuCount +} + +// GetGpuCountOk returns a tuple with the GpuCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetGpuCountOk() (*int32, bool) { + if o == nil || IsNil(o.GpuCount) { + return nil, false + } + return o.GpuCount, true +} + +// HasGpuCount returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasGpuCount() bool { + if o != nil && !IsNil(o.GpuCount) { + return true + } + + return false +} + +// SetGpuCount gets a reference to the given int32 and assigns it to the GpuCount field. +func (o *NodeBulkUpdate) SetGpuCount(v int32) { + o.GpuCount = &v +} + +// GetGpuModel returns the GpuModel field value +func (o *NodeBulkUpdate) GetGpuModel() string { + if o == nil { + var ret string + return ret + } + + return o.GpuModel +} + +// GetGpuModelOk returns a tuple with the GpuModel field value +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetGpuModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GpuModel, true +} + +// SetGpuModel sets field value +func (o *NodeBulkUpdate) SetGpuModel(v string) { + o.GpuModel = v +} + +// GetGpuVbios returns the GpuVbios field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetGpuVbios() string { + if o == nil || IsNil(o.GpuVbios.Get()) { + var ret string + return ret + } + return *o.GpuVbios.Get() +} + +// GetGpuVbiosOk returns a tuple with the GpuVbios field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetGpuVbiosOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GpuVbios.Get(), o.GpuVbios.IsSet() +} + +// HasGpuVbios returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasGpuVbios() bool { + if o != nil && o.GpuVbios.IsSet() { + return true + } + + return false +} + +// SetGpuVbios gets a reference to the given NullableString and assigns it to the GpuVbios field. +func (o *NodeBulkUpdate) SetGpuVbios(v string) { + o.GpuVbios.Set(&v) +} + +// SetGpuVbiosNil sets the value for GpuVbios to be an explicit nil +func (o *NodeBulkUpdate) SetGpuVbiosNil() { + o.GpuVbios.Set(nil) +} + +// UnsetGpuVbios ensures that no value is present for GpuVbios, not even an explicit nil +func (o *NodeBulkUpdate) UnsetGpuVbios() { + o.GpuVbios.Unset() +} + +// GetId returns the Id field value +func (o *NodeBulkUpdate) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NodeBulkUpdate) SetId(v string) { + o.Id = v +} + +// GetLocation returns the Location field value +func (o *NodeBulkUpdate) GetLocation() NodeLocation { + if o == nil { + var ret NodeLocation + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetLocationOk() (*NodeLocation, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *NodeBulkUpdate) SetLocation(v NodeLocation) { + o.Location = v +} + +// GetMemory returns the Memory field value if set, zero value otherwise. +func (o *NodeBulkUpdate) 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 *NodeBulkUpdate) 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 *NodeBulkUpdate) 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 *NodeBulkUpdate) SetMemory(v int32) { + o.Memory = &v +} + +// GetMgmtIp returns the MgmtIp field value if set, zero value otherwise. +func (o *NodeBulkUpdate) GetMgmtIp() string { + if o == nil || IsNil(o.MgmtIp) { + var ret string + return ret + } + return *o.MgmtIp +} + +// GetMgmtIpOk returns a tuple with the MgmtIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetMgmtIpOk() (*string, bool) { + if o == nil || IsNil(o.MgmtIp) { + return nil, false + } + return o.MgmtIp, true +} + +// HasMgmtIp returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasMgmtIp() bool { + if o != nil && !IsNil(o.MgmtIp) { + return true + } + + return false +} + +// SetMgmtIp gets a reference to the given string and assigns it to the MgmtIp field. +func (o *NodeBulkUpdate) SetMgmtIp(v string) { + o.MgmtIp = &v +} + +// GetMgmtMac returns the MgmtMac field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetMgmtMac() string { + if o == nil || IsNil(o.MgmtMac.Get()) { + var ret string + return ret + } + return *o.MgmtMac.Get() +} + +// GetMgmtMacOk returns a tuple with the MgmtMac field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetMgmtMacOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MgmtMac.Get(), o.MgmtMac.IsSet() +} + +// HasMgmtMac returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasMgmtMac() bool { + if o != nil && o.MgmtMac.IsSet() { + return true + } + + return false +} + +// SetMgmtMac gets a reference to the given NullableString and assigns it to the MgmtMac field. +func (o *NodeBulkUpdate) SetMgmtMac(v string) { + o.MgmtMac.Set(&v) +} + +// SetMgmtMacNil sets the value for MgmtMac to be an explicit nil +func (o *NodeBulkUpdate) SetMgmtMacNil() { + o.MgmtMac.Set(nil) +} + +// UnsetMgmtMac ensures that no value is present for MgmtMac, not even an explicit nil +func (o *NodeBulkUpdate) UnsetMgmtMac() { + o.MgmtMac.Unset() +} + +// GetModel returns the Model field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetModel() string { + if o == nil || IsNil(o.Model.Get()) { + var ret string + return ret + } + return *o.Model.Get() +} + +// GetModelOk returns a tuple with the Model field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Model.Get(), o.Model.IsSet() +} + +// HasModel returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasModel() bool { + if o != nil && o.Model.IsSet() { + return true + } + + return false +} + +// SetModel gets a reference to the given NullableString and assigns it to the Model field. +func (o *NodeBulkUpdate) SetModel(v string) { + o.Model.Set(&v) +} + +// SetModelNil sets the value for Model to be an explicit nil +func (o *NodeBulkUpdate) SetModelNil() { + o.Model.Set(nil) +} + +// UnsetModel ensures that no value is present for Model, not even an explicit nil +func (o *NodeBulkUpdate) UnsetModel() { + o.Model.Unset() +} + +// GetModified returns the Modified field value +func (o *NodeBulkUpdate) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *NodeBulkUpdate) SetModified(v time.Time) { + o.Modified = v +} + +// GetNetworkType returns the NetworkType field value if set, zero value otherwise. +func (o *NodeBulkUpdate) GetNetworkType() NetworkTypeEnum { + if o == nil || IsNil(o.NetworkType) { + var ret NetworkTypeEnum + return ret + } + return *o.NetworkType +} + +// GetNetworkTypeOk returns a tuple with the NetworkType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetNetworkTypeOk() (*NetworkTypeEnum, bool) { + if o == nil || IsNil(o.NetworkType) { + return nil, false + } + return o.NetworkType, true +} + +// HasNetworkType returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasNetworkType() bool { + if o != nil && !IsNil(o.NetworkType) { + return true + } + + return false +} + +// SetNetworkType gets a reference to the given NetworkTypeEnum and assigns it to the NetworkType field. +func (o *NodeBulkUpdate) SetNetworkType(v NetworkTypeEnum) { + o.NetworkType = &v +} + +// GetNicPrefixes returns the NicPrefixes field value if set, zero value otherwise. +func (o *NodeBulkUpdate) GetNicPrefixes() []string { + if o == nil || IsNil(o.NicPrefixes) { + var ret []string + return ret + } + return o.NicPrefixes +} + +// GetNicPrefixesOk returns a tuple with the NicPrefixes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetNicPrefixesOk() ([]string, bool) { + if o == nil || IsNil(o.NicPrefixes) { + return nil, false + } + return o.NicPrefixes, true +} + +// HasNicPrefixes returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasNicPrefixes() bool { + if o != nil && !IsNil(o.NicPrefixes) { + return true + } + + return false +} + +// SetNicPrefixes gets a reference to the given []string and assigns it to the NicPrefixes field. +func (o *NodeBulkUpdate) SetNicPrefixes(v []string) { + o.NicPrefixes = v +} + +// GetNotes returns the Notes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetNotes() string { + if o == nil || IsNil(o.Notes.Get()) { + var ret string + return ret + } + return *o.Notes.Get() +} + +// GetNotesOk returns a tuple with the Notes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetNotesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Notes.Get(), o.Notes.IsSet() +} + +// HasNotes returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasNotes() bool { + if o != nil && o.Notes.IsSet() { + return true + } + + return false +} + +// SetNotes gets a reference to the given NullableString and assigns it to the Notes field. +func (o *NodeBulkUpdate) SetNotes(v string) { + o.Notes.Set(&v) +} + +// SetNotesNil sets the value for Notes to be an explicit nil +func (o *NodeBulkUpdate) SetNotesNil() { + o.Notes.Set(nil) +} + +// UnsetNotes ensures that no value is present for Notes, not even an explicit nil +func (o *NodeBulkUpdate) UnsetNotes() { + o.Notes.Unset() +} + +// GetOem returns the Oem field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetOem() string { + if o == nil || IsNil(o.Oem.Get()) { + var ret string + return ret + } + return *o.Oem.Get() +} + +// GetOemOk returns a tuple with the Oem field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetOemOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Oem.Get(), o.Oem.IsSet() +} + +// HasOem returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasOem() bool { + if o != nil && o.Oem.IsSet() { + return true + } + + return false +} + +// SetOem gets a reference to the given NullableString and assigns it to the Oem field. +func (o *NodeBulkUpdate) SetOem(v string) { + o.Oem.Set(&v) +} + +// SetOemNil sets the value for Oem to be an explicit nil +func (o *NodeBulkUpdate) SetOemNil() { + o.Oem.Set(nil) +} + +// UnsetOem ensures that no value is present for Oem, not even an explicit nil +func (o *NodeBulkUpdate) UnsetOem() { + o.Oem.Unset() +} + +// GetProviderNodeId returns the ProviderNodeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetProviderNodeId() string { + if o == nil || IsNil(o.ProviderNodeId.Get()) { + var ret string + return ret + } + return *o.ProviderNodeId.Get() +} + +// GetProviderNodeIdOk returns a tuple with the ProviderNodeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetProviderNodeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ProviderNodeId.Get(), o.ProviderNodeId.IsSet() +} + +// HasProviderNodeId returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasProviderNodeId() bool { + if o != nil && o.ProviderNodeId.IsSet() { + return true + } + + return false +} + +// SetProviderNodeId gets a reference to the given NullableString and assigns it to the ProviderNodeId field. +func (o *NodeBulkUpdate) SetProviderNodeId(v string) { + o.ProviderNodeId.Set(&v) +} + +// SetProviderNodeIdNil sets the value for ProviderNodeId to be an explicit nil +func (o *NodeBulkUpdate) SetProviderNodeIdNil() { + o.ProviderNodeId.Set(nil) +} + +// UnsetProviderNodeId ensures that no value is present for ProviderNodeId, not even an explicit nil +func (o *NodeBulkUpdate) UnsetProviderNodeId() { + o.ProviderNodeId.Unset() +} + +// GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetRack() string { + if o == nil || IsNil(o.Rack.Get()) { + var ret string + return ret + } + return *o.Rack.Get() +} + +// GetRackOk returns a tuple with the Rack field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetRackOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Rack.Get(), o.Rack.IsSet() +} + +// HasRack returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasRack() bool { + if o != nil && o.Rack.IsSet() { + return true + } + + return false +} + +// SetRack gets a reference to the given NullableString and assigns it to the Rack field. +func (o *NodeBulkUpdate) SetRack(v string) { + o.Rack.Set(&v) +} + +// SetRackNil sets the value for Rack to be an explicit nil +func (o *NodeBulkUpdate) SetRackNil() { + o.Rack.Set(nil) +} + +// UnsetRack ensures that no value is present for Rack, not even an explicit nil +func (o *NodeBulkUpdate) UnsetRack() { + o.Rack.Unset() +} + +// GetRackUnit returns the RackUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NodeBulkUpdate) GetRackUnit() int32 { + if o == nil || IsNil(o.RackUnit.Get()) { + var ret int32 + return ret + } + return *o.RackUnit.Get() +} + +// GetRackUnitOk returns a tuple with the RackUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetRackUnitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.RackUnit.Get(), o.RackUnit.IsSet() +} + +// HasRackUnit returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasRackUnit() bool { + if o != nil && o.RackUnit.IsSet() { + return true + } + + return false +} + +// SetRackUnit gets a reference to the given NullableInt32 and assigns it to the RackUnit field. +func (o *NodeBulkUpdate) SetRackUnit(v int32) { + o.RackUnit.Set(&v) +} + +// SetRackUnitNil sets the value for RackUnit to be an explicit nil +func (o *NodeBulkUpdate) SetRackUnitNil() { + o.RackUnit.Set(nil) +} + +// UnsetRackUnit ensures that no value is present for RackUnit, not even an explicit nil +func (o *NodeBulkUpdate) UnsetRackUnit() { + o.RackUnit.Unset() +} + +// GetSerialNumber returns the SerialNumber field value +// If the value is explicit nil, the zero value for string will be returned +func (o *NodeBulkUpdate) GetSerialNumber() string { + if o == nil || o.SerialNumber.Get() == nil { + var ret string + return ret + } + + return *o.SerialNumber.Get() +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NodeBulkUpdate) GetSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SerialNumber.Get(), o.SerialNumber.IsSet() +} + +// SetSerialNumber sets field value +func (o *NodeBulkUpdate) SetSerialNumber(v string) { + o.SerialNumber.Set(&v) +} + +// GetStorage returns the Storage field value +func (o *NodeBulkUpdate) GetStorage() []NodeStorage { + if o == nil { + var ret []NodeStorage + return ret + } + + return o.Storage +} + +// GetStorageOk returns a tuple with the Storage field value +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetStorageOk() ([]NodeStorage, bool) { + if o == nil { + return nil, false + } + return o.Storage, true +} + +// SetStorage sets field value +func (o *NodeBulkUpdate) SetStorage(v []NodeStorage) { + o.Storage = v +} + +// GetSystemArch returns the SystemArch field value +func (o *NodeBulkUpdate) GetSystemArch() SystemArchEnum { + if o == nil { + var ret SystemArchEnum + return ret + } + + return o.SystemArch +} + +// GetSystemArchOk returns a tuple with the SystemArch field value +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetSystemArchOk() (*SystemArchEnum, bool) { + if o == nil { + return nil, false + } + return &o.SystemArch, true +} + +// SetSystemArch sets field value +func (o *NodeBulkUpdate) SetSystemArch(v SystemArchEnum) { + o.SystemArch = v +} + +// GetTee returns the Tee field value if set, zero value otherwise. +func (o *NodeBulkUpdate) GetTee() bool { + if o == nil || IsNil(o.Tee) { + var ret bool + return ret + } + return *o.Tee +} + +// GetTeeOk returns a tuple with the Tee field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetTeeOk() (*bool, bool) { + if o == nil || IsNil(o.Tee) { + return nil, false + } + return o.Tee, true +} + +// HasTee returns a boolean if a field has been set. +func (o *NodeBulkUpdate) HasTee() bool { + if o != nil && !IsNil(o.Tee) { + return true + } + + return false +} + +// SetTee gets a reference to the given bool and assigns it to the Tee field. +func (o *NodeBulkUpdate) SetTee(v bool) { + o.Tee = &v +} + +// GetCount returns the Count field value +func (o *NodeBulkUpdate) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *NodeBulkUpdate) SetCount(v int32) { + o.Count = v +} + +// GetIds returns the Ids field value +func (o *NodeBulkUpdate) GetIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ids +} + +// GetIdsOk returns a tuple with the Ids field value +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ids, true +} + +// SetIds sets field value +func (o *NodeBulkUpdate) SetIds(v []string) { + o.Ids = v +} + +// GetResult returns the Result field value +func (o *NodeBulkUpdate) GetResult() string { + if o == nil { + var ret string + return ret + } + + return o.Result +} + +// GetResultOk returns a tuple with the Result field value +// and a boolean to check if the value has been set. +func (o *NodeBulkUpdate) GetResultOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Result, true +} + +// SetResult sets field value +func (o *NodeBulkUpdate) SetResult(v string) { + o.Result = v +} + +func (o NodeBulkUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NodeBulkUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.BmcIp.IsSet() { + toSerialize["bmc_ip"] = o.BmcIp.Get() + } + if o.BmcMac.IsSet() { + toSerialize["bmc_mac"] = o.BmcMac.Get() + } + if o.BmcPassword.IsSet() { + toSerialize["bmc_password"] = o.BmcPassword.Get() + } + if o.BmcUser.IsSet() { + toSerialize["bmc_user"] = o.BmcUser.Get() + } + if o.Cluster.IsSet() { + toSerialize["cluster"] = o.Cluster.Get() + } + if !IsNil(o.Cpu) { + toSerialize["cpu"] = o.Cpu + } + if o.CpuManufacturer.IsSet() { + toSerialize["cpu_manufacturer"] = o.CpuManufacturer.Get() + } + if o.CpuModel.IsSet() { + toSerialize["cpu_model"] = o.CpuModel.Get() + } + toSerialize["created"] = o.Created + if o.GarageId.IsSet() { + toSerialize["garage_id"] = o.GarageId.Get() + } + toSerialize["gpu"] = o.Gpu + toSerialize["gpu_alias"] = o.GpuAlias + if !IsNil(o.GpuCount) { + toSerialize["gpu_count"] = o.GpuCount + } + toSerialize["gpu_model"] = o.GpuModel + if o.GpuVbios.IsSet() { + toSerialize["gpu_vbios"] = o.GpuVbios.Get() + } + toSerialize["id"] = o.Id + toSerialize["location"] = o.Location + if !IsNil(o.Memory) { + toSerialize["memory"] = o.Memory + } + if !IsNil(o.MgmtIp) { + toSerialize["mgmt_ip"] = o.MgmtIp + } + if o.MgmtMac.IsSet() { + toSerialize["mgmt_mac"] = o.MgmtMac.Get() + } + if o.Model.IsSet() { + toSerialize["model"] = o.Model.Get() + } + toSerialize["modified"] = o.Modified + if !IsNil(o.NetworkType) { + toSerialize["network_type"] = o.NetworkType + } + if !IsNil(o.NicPrefixes) { + toSerialize["nic_prefixes"] = o.NicPrefixes + } + if o.Notes.IsSet() { + toSerialize["notes"] = o.Notes.Get() + } + if o.Oem.IsSet() { + toSerialize["oem"] = o.Oem.Get() + } + if o.ProviderNodeId.IsSet() { + toSerialize["provider_node_id"] = o.ProviderNodeId.Get() + } + if o.Rack.IsSet() { + toSerialize["rack"] = o.Rack.Get() + } + if o.RackUnit.IsSet() { + toSerialize["rack_unit"] = o.RackUnit.Get() + } + toSerialize["serial_number"] = o.SerialNumber.Get() + toSerialize["storage"] = o.Storage + toSerialize["system_arch"] = o.SystemArch + if !IsNil(o.Tee) { + toSerialize["tee"] = o.Tee + } + toSerialize["count"] = o.Count + toSerialize["ids"] = o.Ids + toSerialize["result"] = o.Result + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NodeBulkUpdate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "gpu", + "gpu_alias", + "gpu_model", + "id", + "location", + "modified", + "serial_number", + "storage", + "system_arch", + "count", + "ids", + "result", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNodeBulkUpdate := _NodeBulkUpdate{} + + err = json.Unmarshal(data, &varNodeBulkUpdate) + + if err != nil { + return err + } + + *o = NodeBulkUpdate(varNodeBulkUpdate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "bmc_ip") + delete(additionalProperties, "bmc_mac") + delete(additionalProperties, "bmc_password") + delete(additionalProperties, "bmc_user") + delete(additionalProperties, "cluster") + delete(additionalProperties, "cpu") + delete(additionalProperties, "cpu_manufacturer") + delete(additionalProperties, "cpu_model") + delete(additionalProperties, "created") + delete(additionalProperties, "garage_id") + delete(additionalProperties, "gpu") + delete(additionalProperties, "gpu_alias") + delete(additionalProperties, "gpu_count") + delete(additionalProperties, "gpu_model") + delete(additionalProperties, "gpu_vbios") + delete(additionalProperties, "id") + delete(additionalProperties, "location") + delete(additionalProperties, "memory") + delete(additionalProperties, "mgmt_ip") + delete(additionalProperties, "mgmt_mac") + delete(additionalProperties, "model") + delete(additionalProperties, "modified") + delete(additionalProperties, "network_type") + delete(additionalProperties, "nic_prefixes") + delete(additionalProperties, "notes") + delete(additionalProperties, "oem") + delete(additionalProperties, "provider_node_id") + delete(additionalProperties, "rack") + delete(additionalProperties, "rack_unit") + delete(additionalProperties, "serial_number") + delete(additionalProperties, "storage") + delete(additionalProperties, "system_arch") + delete(additionalProperties, "tee") + delete(additionalProperties, "count") + delete(additionalProperties, "ids") + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNodeBulkUpdate struct { + value *NodeBulkUpdate + isSet bool +} + +func (v NullableNodeBulkUpdate) Get() *NodeBulkUpdate { + return v.value +} + +func (v *NullableNodeBulkUpdate) Set(val *NodeBulkUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableNodeBulkUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableNodeBulkUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNodeBulkUpdate(val *NodeBulkUpdate) *NullableNodeBulkUpdate { + return &NullableNodeBulkUpdate{value: val, isSet: true} +} + +func (v NullableNodeBulkUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNodeBulkUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_node_location.go b/v1/providers/launchpad/gen/launchpad/model_node_location.go new file mode 100644 index 0000000..e3e1e5c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_node_location.go @@ -0,0 +1,154 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// NodeLocation - struct for NodeLocation +type NodeLocation struct { + Location *Location + String *string +} + +// LocationAsNodeLocation is a convenience function that returns Location wrapped in NodeLocation +func LocationAsNodeLocation(v *Location) NodeLocation { + return NodeLocation{ + Location: v, + } +} + +// stringAsNodeLocation is a convenience function that returns string wrapped in NodeLocation +func StringAsNodeLocation(v *string) NodeLocation { + return NodeLocation{ + String: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *NodeLocation) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Location + err = newStrictDecoder(data).Decode(&dst.Location) + if err == nil { + jsonLocation, _ := json.Marshal(dst.Location) + if string(jsonLocation) == "{}" { // empty struct + dst.Location = nil + } else { + if err = validator.Validate(dst.Location); err != nil { + dst.Location = nil + } else { + match++ + } + } + } else { + dst.Location = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + if err = validator.Validate(dst.String); err != nil { + dst.String = nil + } else { + match++ + } + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Location = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(NodeLocation)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(NodeLocation)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src NodeLocation) MarshalJSON() ([]byte, error) { + if src.Location != nil { + return json.Marshal(&src.Location) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *NodeLocation) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.Location != nil { + return obj.Location + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableNodeLocation struct { + value *NodeLocation + isSet bool +} + +func (v NullableNodeLocation) Get() *NodeLocation { + return v.value +} + +func (v *NullableNodeLocation) Set(val *NodeLocation) { + v.value = val + v.isSet = true +} + +func (v NullableNodeLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableNodeLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNodeLocation(val *NodeLocation) *NullableNodeLocation { + return &NullableNodeLocation{value: val, isSet: true} +} + +func (v NullableNodeLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNodeLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_node_storage.go b/v1/providers/launchpad/gen/launchpad/model_node_storage.go new file mode 100644 index 0000000..1a311c7 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_node_storage.go @@ -0,0 +1,209 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the NodeStorage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NodeStorage{} + +// NodeStorage struct for NodeStorage +type NodeStorage struct { + // Disk size (in GB) + Size *int32 `json:"size,omitempty"` + // Disk type * `nvme` - NVMe * `ssd` - ssd + Type TypeEnum `json:"type"` + AdditionalProperties map[string]interface{} +} + +type _NodeStorage NodeStorage + +// NewNodeStorage instantiates a new NodeStorage 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 NewNodeStorage(type_ TypeEnum) *NodeStorage { + this := NodeStorage{} + var size int32 = 0 + this.Size = &size + this.Type = type_ + return &this +} + +// NewNodeStorageWithDefaults instantiates a new NodeStorage 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 NewNodeStorageWithDefaults() *NodeStorage { + this := NodeStorage{} + var size int32 = 0 + this.Size = &size + return &this +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *NodeStorage) GetSize() int32 { + if o == nil || IsNil(o.Size) { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NodeStorage) GetSizeOk() (*int32, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *NodeStorage) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *NodeStorage) SetSize(v int32) { + o.Size = &v +} + +// GetType returns the Type field value +func (o *NodeStorage) GetType() TypeEnum { + if o == nil { + var ret TypeEnum + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *NodeStorage) GetTypeOk() (*TypeEnum, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *NodeStorage) SetType(v TypeEnum) { + o.Type = v +} + +func (o NodeStorage) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NodeStorage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NodeStorage) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNodeStorage := _NodeStorage{} + + err = json.Unmarshal(data, &varNodeStorage) + + if err != nil { + return err + } + + *o = NodeStorage(varNodeStorage) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "size") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNodeStorage struct { + value *NodeStorage + isSet bool +} + +func (v NullableNodeStorage) Get() *NodeStorage { + return v.value +} + +func (v *NullableNodeStorage) Set(val *NodeStorage) { + v.value = val + v.isSet = true +} + +func (v NullableNodeStorage) IsSet() bool { + return v.isSet +} + +func (v *NullableNodeStorage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNodeStorage(val *NodeStorage) *NullableNodeStorage { + return &NullableNodeStorage{value: val, isSet: true} +} + +func (v NullableNodeStorage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNodeStorage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_oem.go b/v1/providers/launchpad/gen/launchpad/model_oem.go new file mode 100644 index 0000000..07d75f8 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_oem.go @@ -0,0 +1,256 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the OEM type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OEM{} + +// OEM struct for OEM +type OEM struct { + // Timestamp of when the object was created + Created time.Time `json:"created"` + Id string `json:"id"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _OEM OEM + +// NewOEM instantiates a new OEM 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 NewOEM(created time.Time, id string, modified time.Time, name string) *OEM { + this := OEM{} + this.Created = created + this.Id = id + this.Modified = modified + this.Name = name + return &this +} + +// NewOEMWithDefaults instantiates a new OEM 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 NewOEMWithDefaults() *OEM { + this := OEM{} + return &this +} + +// GetCreated returns the Created field value +func (o *OEM) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *OEM) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *OEM) SetCreated(v time.Time) { + o.Created = v +} + +// GetId returns the Id field value +func (o *OEM) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *OEM) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *OEM) SetId(v string) { + o.Id = v +} + +// GetModified returns the Modified field value +func (o *OEM) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *OEM) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *OEM) SetModified(v time.Time) { + o.Modified = v +} + +// GetName returns the Name field value +func (o *OEM) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *OEM) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *OEM) SetName(v string) { + o.Name = v +} + +func (o OEM) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OEM) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created"] = o.Created + toSerialize["id"] = o.Id + toSerialize["modified"] = o.Modified + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OEM) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "id", + "modified", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varOEM := _OEM{} + + err = json.Unmarshal(data, &varOEM) + + if err != nil { + return err + } + + *o = OEM(varOEM) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created") + delete(additionalProperties, "id") + delete(additionalProperties, "modified") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOEM struct { + value *OEM + isSet bool +} + +func (v NullableOEM) Get() *OEM { + return v.value +} + +func (v *NullableOEM) Set(val *OEM) { + v.value = val + v.isSet = true +} + +func (v NullableOEM) IsSet() bool { + return v.isSet +} + +func (v *NullableOEM) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOEM(val *OEM) *NullableOEM { + return &NullableOEM{value: val, isSet: true} +} + +func (v NullableOEM) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOEM) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_cluster_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_cluster_list.go new file mode 100644 index 0000000..c1ee65a --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_cluster_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedClusterList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedClusterList{} + +// PaginatedClusterList struct for PaginatedClusterList +type PaginatedClusterList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []Cluster `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedClusterList PaginatedClusterList + +// NewPaginatedClusterList instantiates a new PaginatedClusterList 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 NewPaginatedClusterList(count int32, results []Cluster) *PaginatedClusterList { + this := PaginatedClusterList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedClusterListWithDefaults instantiates a new PaginatedClusterList 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 NewPaginatedClusterListWithDefaults() *PaginatedClusterList { + this := PaginatedClusterList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedClusterList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedClusterList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedClusterList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedClusterList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedClusterList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedClusterList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedClusterList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedClusterList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedClusterList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedClusterList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedClusterList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedClusterList) GetResults() []Cluster { + if o == nil { + var ret []Cluster + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedClusterList) GetResultsOk() ([]Cluster, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedClusterList) SetResults(v []Cluster) { + o.Results = v +} + +func (o PaginatedClusterList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedClusterList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedClusterList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedClusterList := _PaginatedClusterList{} + + err = json.Unmarshal(data, &varPaginatedClusterList) + + if err != nil { + return err + } + + *o = PaginatedClusterList(varPaginatedClusterList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedClusterList struct { + value *PaginatedClusterList + isSet bool +} + +func (v NullablePaginatedClusterList) Get() *PaginatedClusterList { + return v.value +} + +func (v *NullablePaginatedClusterList) Set(val *PaginatedClusterList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedClusterList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedClusterList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedClusterList(val *PaginatedClusterList) *NullablePaginatedClusterList { + return &NullablePaginatedClusterList{value: val, isSet: true} +} + +func (v NullablePaginatedClusterList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedClusterList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_instance_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_instance_list.go new file mode 100644 index 0000000..c19222e --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_instance_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedDeploymentInstanceList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedDeploymentInstanceList{} + +// PaginatedDeploymentInstanceList struct for PaginatedDeploymentInstanceList +type PaginatedDeploymentInstanceList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []DeploymentInstance `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedDeploymentInstanceList PaginatedDeploymentInstanceList + +// NewPaginatedDeploymentInstanceList instantiates a new PaginatedDeploymentInstanceList 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 NewPaginatedDeploymentInstanceList(count int32, results []DeploymentInstance) *PaginatedDeploymentInstanceList { + this := PaginatedDeploymentInstanceList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedDeploymentInstanceListWithDefaults instantiates a new PaginatedDeploymentInstanceList 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 NewPaginatedDeploymentInstanceListWithDefaults() *PaginatedDeploymentInstanceList { + this := PaginatedDeploymentInstanceList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedDeploymentInstanceList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentInstanceList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedDeploymentInstanceList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedDeploymentInstanceList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentInstanceList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedDeploymentInstanceList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedDeploymentInstanceList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedDeploymentInstanceList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentInstanceList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedDeploymentInstanceList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedDeploymentInstanceList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedDeploymentInstanceList) GetResults() []DeploymentInstance { + if o == nil { + var ret []DeploymentInstance + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentInstanceList) GetResultsOk() ([]DeploymentInstance, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedDeploymentInstanceList) SetResults(v []DeploymentInstance) { + o.Results = v +} + +func (o PaginatedDeploymentInstanceList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedDeploymentInstanceList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedDeploymentInstanceList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedDeploymentInstanceList := _PaginatedDeploymentInstanceList{} + + err = json.Unmarshal(data, &varPaginatedDeploymentInstanceList) + + if err != nil { + return err + } + + *o = PaginatedDeploymentInstanceList(varPaginatedDeploymentInstanceList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedDeploymentInstanceList struct { + value *PaginatedDeploymentInstanceList + isSet bool +} + +func (v NullablePaginatedDeploymentInstanceList) Get() *PaginatedDeploymentInstanceList { + return v.value +} + +func (v *NullablePaginatedDeploymentInstanceList) Set(val *PaginatedDeploymentInstanceList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedDeploymentInstanceList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedDeploymentInstanceList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedDeploymentInstanceList(val *PaginatedDeploymentInstanceList) *NullablePaginatedDeploymentInstanceList { + return &NullablePaginatedDeploymentInstanceList{value: val, isSet: true} +} + +func (v NullablePaginatedDeploymentInstanceList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedDeploymentInstanceList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_key_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_key_list.go new file mode 100644 index 0000000..37d225a --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_key_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedDeploymentKeyList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedDeploymentKeyList{} + +// PaginatedDeploymentKeyList struct for PaginatedDeploymentKeyList +type PaginatedDeploymentKeyList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []DeploymentKey `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedDeploymentKeyList PaginatedDeploymentKeyList + +// NewPaginatedDeploymentKeyList instantiates a new PaginatedDeploymentKeyList 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 NewPaginatedDeploymentKeyList(count int32, results []DeploymentKey) *PaginatedDeploymentKeyList { + this := PaginatedDeploymentKeyList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedDeploymentKeyListWithDefaults instantiates a new PaginatedDeploymentKeyList 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 NewPaginatedDeploymentKeyListWithDefaults() *PaginatedDeploymentKeyList { + this := PaginatedDeploymentKeyList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedDeploymentKeyList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentKeyList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedDeploymentKeyList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedDeploymentKeyList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentKeyList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedDeploymentKeyList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedDeploymentKeyList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedDeploymentKeyList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentKeyList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedDeploymentKeyList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedDeploymentKeyList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedDeploymentKeyList) GetResults() []DeploymentKey { + if o == nil { + var ret []DeploymentKey + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentKeyList) GetResultsOk() ([]DeploymentKey, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedDeploymentKeyList) SetResults(v []DeploymentKey) { + o.Results = v +} + +func (o PaginatedDeploymentKeyList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedDeploymentKeyList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedDeploymentKeyList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedDeploymentKeyList := _PaginatedDeploymentKeyList{} + + err = json.Unmarshal(data, &varPaginatedDeploymentKeyList) + + if err != nil { + return err + } + + *o = PaginatedDeploymentKeyList(varPaginatedDeploymentKeyList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedDeploymentKeyList struct { + value *PaginatedDeploymentKeyList + isSet bool +} + +func (v NullablePaginatedDeploymentKeyList) Get() *PaginatedDeploymentKeyList { + return v.value +} + +func (v *NullablePaginatedDeploymentKeyList) Set(val *PaginatedDeploymentKeyList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedDeploymentKeyList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedDeploymentKeyList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedDeploymentKeyList(val *PaginatedDeploymentKeyList) *NullablePaginatedDeploymentKeyList { + return &NullablePaginatedDeploymentKeyList{value: val, isSet: true} +} + +func (v NullablePaginatedDeploymentKeyList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedDeploymentKeyList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_list.go new file mode 100644 index 0000000..1d8bd07 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedDeploymentList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedDeploymentList{} + +// PaginatedDeploymentList struct for PaginatedDeploymentList +type PaginatedDeploymentList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []Deployment `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedDeploymentList PaginatedDeploymentList + +// NewPaginatedDeploymentList instantiates a new PaginatedDeploymentList 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 NewPaginatedDeploymentList(count int32, results []Deployment) *PaginatedDeploymentList { + this := PaginatedDeploymentList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedDeploymentListWithDefaults instantiates a new PaginatedDeploymentList 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 NewPaginatedDeploymentListWithDefaults() *PaginatedDeploymentList { + this := PaginatedDeploymentList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedDeploymentList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedDeploymentList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedDeploymentList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedDeploymentList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedDeploymentList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedDeploymentList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedDeploymentList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedDeploymentList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedDeploymentList) GetResults() []Deployment { + if o == nil { + var ret []Deployment + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentList) GetResultsOk() ([]Deployment, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedDeploymentList) SetResults(v []Deployment) { + o.Results = v +} + +func (o PaginatedDeploymentList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedDeploymentList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedDeploymentList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedDeploymentList := _PaginatedDeploymentList{} + + err = json.Unmarshal(data, &varPaginatedDeploymentList) + + if err != nil { + return err + } + + *o = PaginatedDeploymentList(varPaginatedDeploymentList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedDeploymentList struct { + value *PaginatedDeploymentList + isSet bool +} + +func (v NullablePaginatedDeploymentList) Get() *PaginatedDeploymentList { + return v.value +} + +func (v *NullablePaginatedDeploymentList) Set(val *PaginatedDeploymentList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedDeploymentList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedDeploymentList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedDeploymentList(val *PaginatedDeploymentList) *NullablePaginatedDeploymentList { + return &NullablePaginatedDeploymentList{value: val, isSet: true} +} + +func (v NullablePaginatedDeploymentList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedDeploymentList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_note_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_note_list.go new file mode 100644 index 0000000..148a460 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_note_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedDeploymentNoteList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedDeploymentNoteList{} + +// PaginatedDeploymentNoteList struct for PaginatedDeploymentNoteList +type PaginatedDeploymentNoteList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []DeploymentNote `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedDeploymentNoteList PaginatedDeploymentNoteList + +// NewPaginatedDeploymentNoteList instantiates a new PaginatedDeploymentNoteList 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 NewPaginatedDeploymentNoteList(count int32, results []DeploymentNote) *PaginatedDeploymentNoteList { + this := PaginatedDeploymentNoteList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedDeploymentNoteListWithDefaults instantiates a new PaginatedDeploymentNoteList 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 NewPaginatedDeploymentNoteListWithDefaults() *PaginatedDeploymentNoteList { + this := PaginatedDeploymentNoteList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedDeploymentNoteList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentNoteList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedDeploymentNoteList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedDeploymentNoteList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentNoteList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedDeploymentNoteList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedDeploymentNoteList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedDeploymentNoteList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentNoteList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedDeploymentNoteList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedDeploymentNoteList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedDeploymentNoteList) GetResults() []DeploymentNote { + if o == nil { + var ret []DeploymentNote + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentNoteList) GetResultsOk() ([]DeploymentNote, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedDeploymentNoteList) SetResults(v []DeploymentNote) { + o.Results = v +} + +func (o PaginatedDeploymentNoteList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedDeploymentNoteList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedDeploymentNoteList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedDeploymentNoteList := _PaginatedDeploymentNoteList{} + + err = json.Unmarshal(data, &varPaginatedDeploymentNoteList) + + if err != nil { + return err + } + + *o = PaginatedDeploymentNoteList(varPaginatedDeploymentNoteList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedDeploymentNoteList struct { + value *PaginatedDeploymentNoteList + isSet bool +} + +func (v NullablePaginatedDeploymentNoteList) Get() *PaginatedDeploymentNoteList { + return v.value +} + +func (v *NullablePaginatedDeploymentNoteList) Set(val *PaginatedDeploymentNoteList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedDeploymentNoteList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedDeploymentNoteList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedDeploymentNoteList(val *PaginatedDeploymentNoteList) *NullablePaginatedDeploymentNoteList { + return &NullablePaginatedDeploymentNoteList{value: val, isSet: true} +} + +func (v NullablePaginatedDeploymentNoteList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedDeploymentNoteList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_pipeline_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_pipeline_list.go new file mode 100644 index 0000000..693d306 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_pipeline_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedDeploymentPipelineList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedDeploymentPipelineList{} + +// PaginatedDeploymentPipelineList struct for PaginatedDeploymentPipelineList +type PaginatedDeploymentPipelineList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []DeploymentPipeline `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedDeploymentPipelineList PaginatedDeploymentPipelineList + +// NewPaginatedDeploymentPipelineList instantiates a new PaginatedDeploymentPipelineList 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 NewPaginatedDeploymentPipelineList(count int32, results []DeploymentPipeline) *PaginatedDeploymentPipelineList { + this := PaginatedDeploymentPipelineList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedDeploymentPipelineListWithDefaults instantiates a new PaginatedDeploymentPipelineList 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 NewPaginatedDeploymentPipelineListWithDefaults() *PaginatedDeploymentPipelineList { + this := PaginatedDeploymentPipelineList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedDeploymentPipelineList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentPipelineList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedDeploymentPipelineList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedDeploymentPipelineList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentPipelineList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedDeploymentPipelineList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedDeploymentPipelineList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedDeploymentPipelineList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentPipelineList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedDeploymentPipelineList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedDeploymentPipelineList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedDeploymentPipelineList) GetResults() []DeploymentPipeline { + if o == nil { + var ret []DeploymentPipeline + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentPipelineList) GetResultsOk() ([]DeploymentPipeline, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedDeploymentPipelineList) SetResults(v []DeploymentPipeline) { + o.Results = v +} + +func (o PaginatedDeploymentPipelineList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedDeploymentPipelineList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedDeploymentPipelineList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedDeploymentPipelineList := _PaginatedDeploymentPipelineList{} + + err = json.Unmarshal(data, &varPaginatedDeploymentPipelineList) + + if err != nil { + return err + } + + *o = PaginatedDeploymentPipelineList(varPaginatedDeploymentPipelineList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedDeploymentPipelineList struct { + value *PaginatedDeploymentPipelineList + isSet bool +} + +func (v NullablePaginatedDeploymentPipelineList) Get() *PaginatedDeploymentPipelineList { + return v.value +} + +func (v *NullablePaginatedDeploymentPipelineList) Set(val *PaginatedDeploymentPipelineList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedDeploymentPipelineList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedDeploymentPipelineList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedDeploymentPipelineList(val *PaginatedDeploymentPipelineList) *NullablePaginatedDeploymentPipelineList { + return &NullablePaginatedDeploymentPipelineList{value: val, isSet: true} +} + +func (v NullablePaginatedDeploymentPipelineList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedDeploymentPipelineList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_service_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_service_list.go new file mode 100644 index 0000000..0667ff2 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_service_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedDeploymentServiceList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedDeploymentServiceList{} + +// PaginatedDeploymentServiceList struct for PaginatedDeploymentServiceList +type PaginatedDeploymentServiceList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []DeploymentService `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedDeploymentServiceList PaginatedDeploymentServiceList + +// NewPaginatedDeploymentServiceList instantiates a new PaginatedDeploymentServiceList 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 NewPaginatedDeploymentServiceList(count int32, results []DeploymentService) *PaginatedDeploymentServiceList { + this := PaginatedDeploymentServiceList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedDeploymentServiceListWithDefaults instantiates a new PaginatedDeploymentServiceList 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 NewPaginatedDeploymentServiceListWithDefaults() *PaginatedDeploymentServiceList { + this := PaginatedDeploymentServiceList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedDeploymentServiceList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentServiceList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedDeploymentServiceList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedDeploymentServiceList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentServiceList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedDeploymentServiceList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedDeploymentServiceList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedDeploymentServiceList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentServiceList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedDeploymentServiceList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedDeploymentServiceList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedDeploymentServiceList) GetResults() []DeploymentService { + if o == nil { + var ret []DeploymentService + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentServiceList) GetResultsOk() ([]DeploymentService, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedDeploymentServiceList) SetResults(v []DeploymentService) { + o.Results = v +} + +func (o PaginatedDeploymentServiceList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedDeploymentServiceList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedDeploymentServiceList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedDeploymentServiceList := _PaginatedDeploymentServiceList{} + + err = json.Unmarshal(data, &varPaginatedDeploymentServiceList) + + if err != nil { + return err + } + + *o = PaginatedDeploymentServiceList(varPaginatedDeploymentServiceList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedDeploymentServiceList struct { + value *PaginatedDeploymentServiceList + isSet bool +} + +func (v NullablePaginatedDeploymentServiceList) Get() *PaginatedDeploymentServiceList { + return v.value +} + +func (v *NullablePaginatedDeploymentServiceList) Set(val *PaginatedDeploymentServiceList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedDeploymentServiceList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedDeploymentServiceList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedDeploymentServiceList(val *PaginatedDeploymentServiceList) *NullablePaginatedDeploymentServiceList { + return &NullablePaginatedDeploymentServiceList{value: val, isSet: true} +} + +func (v NullablePaginatedDeploymentServiceList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedDeploymentServiceList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_task_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_task_list.go new file mode 100644 index 0000000..7e7874c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_deployment_task_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedDeploymentTaskList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedDeploymentTaskList{} + +// PaginatedDeploymentTaskList struct for PaginatedDeploymentTaskList +type PaginatedDeploymentTaskList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []DeploymentTask `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedDeploymentTaskList PaginatedDeploymentTaskList + +// NewPaginatedDeploymentTaskList instantiates a new PaginatedDeploymentTaskList 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 NewPaginatedDeploymentTaskList(count int32, results []DeploymentTask) *PaginatedDeploymentTaskList { + this := PaginatedDeploymentTaskList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedDeploymentTaskListWithDefaults instantiates a new PaginatedDeploymentTaskList 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 NewPaginatedDeploymentTaskListWithDefaults() *PaginatedDeploymentTaskList { + this := PaginatedDeploymentTaskList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedDeploymentTaskList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentTaskList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedDeploymentTaskList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedDeploymentTaskList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentTaskList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedDeploymentTaskList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedDeploymentTaskList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedDeploymentTaskList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentTaskList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedDeploymentTaskList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedDeploymentTaskList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedDeploymentTaskList) GetResults() []DeploymentTask { + if o == nil { + var ret []DeploymentTask + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedDeploymentTaskList) GetResultsOk() ([]DeploymentTask, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedDeploymentTaskList) SetResults(v []DeploymentTask) { + o.Results = v +} + +func (o PaginatedDeploymentTaskList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedDeploymentTaskList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedDeploymentTaskList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedDeploymentTaskList := _PaginatedDeploymentTaskList{} + + err = json.Unmarshal(data, &varPaginatedDeploymentTaskList) + + if err != nil { + return err + } + + *o = PaginatedDeploymentTaskList(varPaginatedDeploymentTaskList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedDeploymentTaskList struct { + value *PaginatedDeploymentTaskList + isSet bool +} + +func (v NullablePaginatedDeploymentTaskList) Get() *PaginatedDeploymentTaskList { + return v.value +} + +func (v *NullablePaginatedDeploymentTaskList) Set(val *PaginatedDeploymentTaskList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedDeploymentTaskList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedDeploymentTaskList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedDeploymentTaskList(val *PaginatedDeploymentTaskList) *NullablePaginatedDeploymentTaskList { + return &NullablePaginatedDeploymentTaskList{value: val, isSet: true} +} + +func (v NullablePaginatedDeploymentTaskList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedDeploymentTaskList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_experience_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_experience_list.go new file mode 100644 index 0000000..2def048 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_experience_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedExperienceList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedExperienceList{} + +// PaginatedExperienceList struct for PaginatedExperienceList +type PaginatedExperienceList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []Experience `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedExperienceList PaginatedExperienceList + +// NewPaginatedExperienceList instantiates a new PaginatedExperienceList 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 NewPaginatedExperienceList(count int32, results []Experience) *PaginatedExperienceList { + this := PaginatedExperienceList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedExperienceListWithDefaults instantiates a new PaginatedExperienceList 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 NewPaginatedExperienceListWithDefaults() *PaginatedExperienceList { + this := PaginatedExperienceList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedExperienceList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedExperienceList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedExperienceList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedExperienceList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedExperienceList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedExperienceList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedExperienceList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedExperienceList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedExperienceList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedExperienceList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedExperienceList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedExperienceList) GetResults() []Experience { + if o == nil { + var ret []Experience + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedExperienceList) GetResultsOk() ([]Experience, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedExperienceList) SetResults(v []Experience) { + o.Results = v +} + +func (o PaginatedExperienceList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedExperienceList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedExperienceList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedExperienceList := _PaginatedExperienceList{} + + err = json.Unmarshal(data, &varPaginatedExperienceList) + + if err != nil { + return err + } + + *o = PaginatedExperienceList(varPaginatedExperienceList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedExperienceList struct { + value *PaginatedExperienceList + isSet bool +} + +func (v NullablePaginatedExperienceList) Get() *PaginatedExperienceList { + return v.value +} + +func (v *NullablePaginatedExperienceList) Set(val *PaginatedExperienceList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedExperienceList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedExperienceList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedExperienceList(val *PaginatedExperienceList) *NullablePaginatedExperienceList { + return &NullablePaginatedExperienceList{value: val, isSet: true} +} + +func (v NullablePaginatedExperienceList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedExperienceList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_experience_note_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_experience_note_list.go new file mode 100644 index 0000000..0d7454a --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_experience_note_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedExperienceNoteList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedExperienceNoteList{} + +// PaginatedExperienceNoteList struct for PaginatedExperienceNoteList +type PaginatedExperienceNoteList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []ExperienceNote `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedExperienceNoteList PaginatedExperienceNoteList + +// NewPaginatedExperienceNoteList instantiates a new PaginatedExperienceNoteList 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 NewPaginatedExperienceNoteList(count int32, results []ExperienceNote) *PaginatedExperienceNoteList { + this := PaginatedExperienceNoteList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedExperienceNoteListWithDefaults instantiates a new PaginatedExperienceNoteList 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 NewPaginatedExperienceNoteListWithDefaults() *PaginatedExperienceNoteList { + this := PaginatedExperienceNoteList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedExperienceNoteList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedExperienceNoteList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedExperienceNoteList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedExperienceNoteList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedExperienceNoteList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedExperienceNoteList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedExperienceNoteList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedExperienceNoteList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedExperienceNoteList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedExperienceNoteList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedExperienceNoteList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedExperienceNoteList) GetResults() []ExperienceNote { + if o == nil { + var ret []ExperienceNote + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedExperienceNoteList) GetResultsOk() ([]ExperienceNote, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedExperienceNoteList) SetResults(v []ExperienceNote) { + o.Results = v +} + +func (o PaginatedExperienceNoteList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedExperienceNoteList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedExperienceNoteList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedExperienceNoteList := _PaginatedExperienceNoteList{} + + err = json.Unmarshal(data, &varPaginatedExperienceNoteList) + + if err != nil { + return err + } + + *o = PaginatedExperienceNoteList(varPaginatedExperienceNoteList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedExperienceNoteList struct { + value *PaginatedExperienceNoteList + isSet bool +} + +func (v NullablePaginatedExperienceNoteList) Get() *PaginatedExperienceNoteList { + return v.value +} + +func (v *NullablePaginatedExperienceNoteList) Set(val *PaginatedExperienceNoteList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedExperienceNoteList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedExperienceNoteList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedExperienceNoteList(val *PaginatedExperienceNoteList) *NullablePaginatedExperienceNoteList { + return &NullablePaginatedExperienceNoteList{value: val, isSet: true} +} + +func (v NullablePaginatedExperienceNoteList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedExperienceNoteList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_gpu_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_gpu_list.go new file mode 100644 index 0000000..3dd5bf4 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_gpu_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedGpuList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedGpuList{} + +// PaginatedGpuList struct for PaginatedGpuList +type PaginatedGpuList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []Gpu `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedGpuList PaginatedGpuList + +// NewPaginatedGpuList instantiates a new PaginatedGpuList 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 NewPaginatedGpuList(count int32, results []Gpu) *PaginatedGpuList { + this := PaginatedGpuList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedGpuListWithDefaults instantiates a new PaginatedGpuList 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 NewPaginatedGpuListWithDefaults() *PaginatedGpuList { + this := PaginatedGpuList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedGpuList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedGpuList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedGpuList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedGpuList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedGpuList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedGpuList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedGpuList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedGpuList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedGpuList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedGpuList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedGpuList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedGpuList) GetResults() []Gpu { + if o == nil { + var ret []Gpu + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedGpuList) GetResultsOk() ([]Gpu, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedGpuList) SetResults(v []Gpu) { + o.Results = v +} + +func (o PaginatedGpuList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedGpuList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedGpuList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedGpuList := _PaginatedGpuList{} + + err = json.Unmarshal(data, &varPaginatedGpuList) + + if err != nil { + return err + } + + *o = PaginatedGpuList(varPaginatedGpuList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedGpuList struct { + value *PaginatedGpuList + isSet bool +} + +func (v NullablePaginatedGpuList) Get() *PaginatedGpuList { + return v.value +} + +func (v *NullablePaginatedGpuList) Set(val *PaginatedGpuList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedGpuList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedGpuList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedGpuList(val *PaginatedGpuList) *NullablePaginatedGpuList { + return &NullablePaginatedGpuList{value: val, isSet: true} +} + +func (v NullablePaginatedGpuList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedGpuList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_gpu_os_choice_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_gpu_os_choice_list.go new file mode 100644 index 0000000..a0e5111 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_gpu_os_choice_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedGpuOsChoiceList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedGpuOsChoiceList{} + +// PaginatedGpuOsChoiceList struct for PaginatedGpuOsChoiceList +type PaginatedGpuOsChoiceList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []GpuOsChoice `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedGpuOsChoiceList PaginatedGpuOsChoiceList + +// NewPaginatedGpuOsChoiceList instantiates a new PaginatedGpuOsChoiceList 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 NewPaginatedGpuOsChoiceList(count int32, results []GpuOsChoice) *PaginatedGpuOsChoiceList { + this := PaginatedGpuOsChoiceList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedGpuOsChoiceListWithDefaults instantiates a new PaginatedGpuOsChoiceList 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 NewPaginatedGpuOsChoiceListWithDefaults() *PaginatedGpuOsChoiceList { + this := PaginatedGpuOsChoiceList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedGpuOsChoiceList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedGpuOsChoiceList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedGpuOsChoiceList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedGpuOsChoiceList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedGpuOsChoiceList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedGpuOsChoiceList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedGpuOsChoiceList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedGpuOsChoiceList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedGpuOsChoiceList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedGpuOsChoiceList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedGpuOsChoiceList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedGpuOsChoiceList) GetResults() []GpuOsChoice { + if o == nil { + var ret []GpuOsChoice + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedGpuOsChoiceList) GetResultsOk() ([]GpuOsChoice, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedGpuOsChoiceList) SetResults(v []GpuOsChoice) { + o.Results = v +} + +func (o PaginatedGpuOsChoiceList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedGpuOsChoiceList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedGpuOsChoiceList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedGpuOsChoiceList := _PaginatedGpuOsChoiceList{} + + err = json.Unmarshal(data, &varPaginatedGpuOsChoiceList) + + if err != nil { + return err + } + + *o = PaginatedGpuOsChoiceList(varPaginatedGpuOsChoiceList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedGpuOsChoiceList struct { + value *PaginatedGpuOsChoiceList + isSet bool +} + +func (v NullablePaginatedGpuOsChoiceList) Get() *PaginatedGpuOsChoiceList { + return v.value +} + +func (v *NullablePaginatedGpuOsChoiceList) Set(val *PaginatedGpuOsChoiceList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedGpuOsChoiceList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedGpuOsChoiceList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedGpuOsChoiceList(val *PaginatedGpuOsChoiceList) *NullablePaginatedGpuOsChoiceList { + return &NullablePaginatedGpuOsChoiceList{value: val, isSet: true} +} + +func (v NullablePaginatedGpuOsChoiceList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedGpuOsChoiceList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_instance_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_instance_list.go new file mode 100644 index 0000000..b119c8a --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_instance_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedInstanceList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedInstanceList{} + +// PaginatedInstanceList struct for PaginatedInstanceList +type PaginatedInstanceList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []Instance `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedInstanceList PaginatedInstanceList + +// NewPaginatedInstanceList instantiates a new PaginatedInstanceList 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 NewPaginatedInstanceList(count int32, results []Instance) *PaginatedInstanceList { + this := PaginatedInstanceList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedInstanceListWithDefaults instantiates a new PaginatedInstanceList 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 NewPaginatedInstanceListWithDefaults() *PaginatedInstanceList { + this := PaginatedInstanceList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedInstanceList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedInstanceList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedInstanceList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedInstanceList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedInstanceList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedInstanceList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedInstanceList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedInstanceList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedInstanceList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedInstanceList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedInstanceList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedInstanceList) GetResults() []Instance { + if o == nil { + var ret []Instance + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedInstanceList) GetResultsOk() ([]Instance, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedInstanceList) SetResults(v []Instance) { + o.Results = v +} + +func (o PaginatedInstanceList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedInstanceList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedInstanceList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedInstanceList := _PaginatedInstanceList{} + + err = json.Unmarshal(data, &varPaginatedInstanceList) + + if err != nil { + return err + } + + *o = PaginatedInstanceList(varPaginatedInstanceList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedInstanceList struct { + value *PaginatedInstanceList + isSet bool +} + +func (v NullablePaginatedInstanceList) Get() *PaginatedInstanceList { + return v.value +} + +func (v *NullablePaginatedInstanceList) Set(val *PaginatedInstanceList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedInstanceList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedInstanceList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedInstanceList(val *PaginatedInstanceList) *NullablePaginatedInstanceList { + return &NullablePaginatedInstanceList{value: val, isSet: true} +} + +func (v NullablePaginatedInstanceList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedInstanceList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_instance_type_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_instance_type_list.go new file mode 100644 index 0000000..aee1a0e --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_instance_type_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedInstanceTypeList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedInstanceTypeList{} + +// PaginatedInstanceTypeList struct for PaginatedInstanceTypeList +type PaginatedInstanceTypeList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []InstanceType `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedInstanceTypeList PaginatedInstanceTypeList + +// NewPaginatedInstanceTypeList instantiates a new PaginatedInstanceTypeList 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 NewPaginatedInstanceTypeList(count int32, results []InstanceType) *PaginatedInstanceTypeList { + this := PaginatedInstanceTypeList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedInstanceTypeListWithDefaults instantiates a new PaginatedInstanceTypeList 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 NewPaginatedInstanceTypeListWithDefaults() *PaginatedInstanceTypeList { + this := PaginatedInstanceTypeList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedInstanceTypeList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedInstanceTypeList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedInstanceTypeList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedInstanceTypeList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedInstanceTypeList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedInstanceTypeList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedInstanceTypeList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedInstanceTypeList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedInstanceTypeList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedInstanceTypeList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedInstanceTypeList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedInstanceTypeList) GetResults() []InstanceType { + if o == nil { + var ret []InstanceType + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedInstanceTypeList) GetResultsOk() ([]InstanceType, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedInstanceTypeList) SetResults(v []InstanceType) { + o.Results = v +} + +func (o PaginatedInstanceTypeList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedInstanceTypeList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedInstanceTypeList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedInstanceTypeList := _PaginatedInstanceTypeList{} + + err = json.Unmarshal(data, &varPaginatedInstanceTypeList) + + if err != nil { + return err + } + + *o = PaginatedInstanceTypeList(varPaginatedInstanceTypeList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedInstanceTypeList struct { + value *PaginatedInstanceTypeList + isSet bool +} + +func (v NullablePaginatedInstanceTypeList) Get() *PaginatedInstanceTypeList { + return v.value +} + +func (v *NullablePaginatedInstanceTypeList) Set(val *PaginatedInstanceTypeList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedInstanceTypeList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedInstanceTypeList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedInstanceTypeList(val *PaginatedInstanceTypeList) *NullablePaginatedInstanceTypeList { + return &NullablePaginatedInstanceTypeList{value: val, isSet: true} +} + +func (v NullablePaginatedInstanceTypeList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedInstanceTypeList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_location_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_location_list.go new file mode 100644 index 0000000..93c8b5c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_location_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedLocationList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedLocationList{} + +// PaginatedLocationList struct for PaginatedLocationList +type PaginatedLocationList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []Location `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedLocationList PaginatedLocationList + +// NewPaginatedLocationList instantiates a new PaginatedLocationList 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 NewPaginatedLocationList(count int32, results []Location) *PaginatedLocationList { + this := PaginatedLocationList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedLocationListWithDefaults instantiates a new PaginatedLocationList 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 NewPaginatedLocationListWithDefaults() *PaginatedLocationList { + this := PaginatedLocationList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedLocationList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedLocationList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedLocationList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedLocationList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedLocationList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedLocationList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedLocationList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedLocationList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedLocationList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedLocationList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedLocationList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedLocationList) GetResults() []Location { + if o == nil { + var ret []Location + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedLocationList) GetResultsOk() ([]Location, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedLocationList) SetResults(v []Location) { + o.Results = v +} + +func (o PaginatedLocationList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedLocationList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedLocationList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedLocationList := _PaginatedLocationList{} + + err = json.Unmarshal(data, &varPaginatedLocationList) + + if err != nil { + return err + } + + *o = PaginatedLocationList(varPaginatedLocationList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedLocationList struct { + value *PaginatedLocationList + isSet bool +} + +func (v NullablePaginatedLocationList) Get() *PaginatedLocationList { + return v.value +} + +func (v *NullablePaginatedLocationList) Set(val *PaginatedLocationList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedLocationList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedLocationList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedLocationList(val *PaginatedLocationList) *NullablePaginatedLocationList { + return &NullablePaginatedLocationList{value: val, isSet: true} +} + +func (v NullablePaginatedLocationList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedLocationList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_model_change_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_model_change_list.go new file mode 100644 index 0000000..7a38255 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_model_change_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedModelChangeList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedModelChangeList{} + +// PaginatedModelChangeList struct for PaginatedModelChangeList +type PaginatedModelChangeList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []ModelChange `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedModelChangeList PaginatedModelChangeList + +// NewPaginatedModelChangeList instantiates a new PaginatedModelChangeList 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 NewPaginatedModelChangeList(count int32, results []ModelChange) *PaginatedModelChangeList { + this := PaginatedModelChangeList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedModelChangeListWithDefaults instantiates a new PaginatedModelChangeList 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 NewPaginatedModelChangeListWithDefaults() *PaginatedModelChangeList { + this := PaginatedModelChangeList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedModelChangeList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedModelChangeList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedModelChangeList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedModelChangeList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedModelChangeList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedModelChangeList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedModelChangeList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedModelChangeList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedModelChangeList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedModelChangeList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedModelChangeList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedModelChangeList) GetResults() []ModelChange { + if o == nil { + var ret []ModelChange + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedModelChangeList) GetResultsOk() ([]ModelChange, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedModelChangeList) SetResults(v []ModelChange) { + o.Results = v +} + +func (o PaginatedModelChangeList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedModelChangeList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedModelChangeList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedModelChangeList := _PaginatedModelChangeList{} + + err = json.Unmarshal(data, &varPaginatedModelChangeList) + + if err != nil { + return err + } + + *o = PaginatedModelChangeList(varPaginatedModelChangeList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedModelChangeList struct { + value *PaginatedModelChangeList + isSet bool +} + +func (v NullablePaginatedModelChangeList) Get() *PaginatedModelChangeList { + return v.value +} + +func (v *NullablePaginatedModelChangeList) Set(val *PaginatedModelChangeList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedModelChangeList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedModelChangeList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedModelChangeList(val *PaginatedModelChangeList) *NullablePaginatedModelChangeList { + return &NullablePaginatedModelChangeList{value: val, isSet: true} +} + +func (v NullablePaginatedModelChangeList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedModelChangeList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_node_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_node_list.go new file mode 100644 index 0000000..82bafaa --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_node_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedNodeList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedNodeList{} + +// PaginatedNodeList struct for PaginatedNodeList +type PaginatedNodeList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []Node `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedNodeList PaginatedNodeList + +// NewPaginatedNodeList instantiates a new PaginatedNodeList 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 NewPaginatedNodeList(count int32, results []Node) *PaginatedNodeList { + this := PaginatedNodeList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedNodeListWithDefaults instantiates a new PaginatedNodeList 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 NewPaginatedNodeListWithDefaults() *PaginatedNodeList { + this := PaginatedNodeList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedNodeList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedNodeList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedNodeList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedNodeList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedNodeList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedNodeList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedNodeList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedNodeList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedNodeList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedNodeList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedNodeList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedNodeList) GetResults() []Node { + if o == nil { + var ret []Node + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedNodeList) GetResultsOk() ([]Node, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedNodeList) SetResults(v []Node) { + o.Results = v +} + +func (o PaginatedNodeList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedNodeList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedNodeList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedNodeList := _PaginatedNodeList{} + + err = json.Unmarshal(data, &varPaginatedNodeList) + + if err != nil { + return err + } + + *o = PaginatedNodeList(varPaginatedNodeList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedNodeList struct { + value *PaginatedNodeList + isSet bool +} + +func (v NullablePaginatedNodeList) Get() *PaginatedNodeList { + return v.value +} + +func (v *NullablePaginatedNodeList) Set(val *PaginatedNodeList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedNodeList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedNodeList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedNodeList(val *PaginatedNodeList) *NullablePaginatedNodeList { + return &NullablePaginatedNodeList{value: val, isSet: true} +} + +func (v NullablePaginatedNodeList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedNodeList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_oem_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_oem_list.go new file mode 100644 index 0000000..35863a0 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_oem_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedOEMList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedOEMList{} + +// PaginatedOEMList struct for PaginatedOEMList +type PaginatedOEMList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []OEM `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedOEMList PaginatedOEMList + +// NewPaginatedOEMList instantiates a new PaginatedOEMList 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 NewPaginatedOEMList(count int32, results []OEM) *PaginatedOEMList { + this := PaginatedOEMList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedOEMListWithDefaults instantiates a new PaginatedOEMList 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 NewPaginatedOEMListWithDefaults() *PaginatedOEMList { + this := PaginatedOEMList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedOEMList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedOEMList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedOEMList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedOEMList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedOEMList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedOEMList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedOEMList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedOEMList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedOEMList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedOEMList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedOEMList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedOEMList) GetResults() []OEM { + if o == nil { + var ret []OEM + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedOEMList) GetResultsOk() ([]OEM, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedOEMList) SetResults(v []OEM) { + o.Results = v +} + +func (o PaginatedOEMList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedOEMList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedOEMList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedOEMList := _PaginatedOEMList{} + + err = json.Unmarshal(data, &varPaginatedOEMList) + + if err != nil { + return err + } + + *o = PaginatedOEMList(varPaginatedOEMList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedOEMList struct { + value *PaginatedOEMList + isSet bool +} + +func (v NullablePaginatedOEMList) Get() *PaginatedOEMList { + return v.value +} + +func (v *NullablePaginatedOEMList) Set(val *PaginatedOEMList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedOEMList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedOEMList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedOEMList(val *PaginatedOEMList) *NullablePaginatedOEMList { + return &NullablePaginatedOEMList{value: val, isSet: true} +} + +func (v NullablePaginatedOEMList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedOEMList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_persona_choice_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_persona_choice_list.go new file mode 100644 index 0000000..8071561 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_persona_choice_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedPersonaChoiceList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedPersonaChoiceList{} + +// PaginatedPersonaChoiceList struct for PaginatedPersonaChoiceList +type PaginatedPersonaChoiceList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []PersonaChoice `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedPersonaChoiceList PaginatedPersonaChoiceList + +// NewPaginatedPersonaChoiceList instantiates a new PaginatedPersonaChoiceList 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 NewPaginatedPersonaChoiceList(count int32, results []PersonaChoice) *PaginatedPersonaChoiceList { + this := PaginatedPersonaChoiceList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedPersonaChoiceListWithDefaults instantiates a new PaginatedPersonaChoiceList 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 NewPaginatedPersonaChoiceListWithDefaults() *PaginatedPersonaChoiceList { + this := PaginatedPersonaChoiceList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedPersonaChoiceList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedPersonaChoiceList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedPersonaChoiceList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedPersonaChoiceList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedPersonaChoiceList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedPersonaChoiceList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedPersonaChoiceList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedPersonaChoiceList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedPersonaChoiceList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedPersonaChoiceList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedPersonaChoiceList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedPersonaChoiceList) GetResults() []PersonaChoice { + if o == nil { + var ret []PersonaChoice + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedPersonaChoiceList) GetResultsOk() ([]PersonaChoice, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedPersonaChoiceList) SetResults(v []PersonaChoice) { + o.Results = v +} + +func (o PaginatedPersonaChoiceList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedPersonaChoiceList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedPersonaChoiceList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedPersonaChoiceList := _PaginatedPersonaChoiceList{} + + err = json.Unmarshal(data, &varPaginatedPersonaChoiceList) + + if err != nil { + return err + } + + *o = PaginatedPersonaChoiceList(varPaginatedPersonaChoiceList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedPersonaChoiceList struct { + value *PaginatedPersonaChoiceList + isSet bool +} + +func (v NullablePaginatedPersonaChoiceList) Get() *PaginatedPersonaChoiceList { + return v.value +} + +func (v *NullablePaginatedPersonaChoiceList) Set(val *PaginatedPersonaChoiceList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedPersonaChoiceList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedPersonaChoiceList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedPersonaChoiceList(val *PaginatedPersonaChoiceList) *NullablePaginatedPersonaChoiceList { + return &NullablePaginatedPersonaChoiceList{value: val, isSet: true} +} + +func (v NullablePaginatedPersonaChoiceList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedPersonaChoiceList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_paginated_provider_list.go b/v1/providers/launchpad/gen/launchpad/model_paginated_provider_list.go new file mode 100644 index 0000000..2065275 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_paginated_provider_list.go @@ -0,0 +1,269 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedProviderList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedProviderList{} + +// PaginatedProviderList struct for PaginatedProviderList +type PaginatedProviderList struct { + Count int32 `json:"count"` + Next *string `json:"next,omitempty"` + Previous *string `json:"previous,omitempty"` + Results []Provider `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedProviderList PaginatedProviderList + +// NewPaginatedProviderList instantiates a new PaginatedProviderList 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 NewPaginatedProviderList(count int32, results []Provider) *PaginatedProviderList { + this := PaginatedProviderList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedProviderListWithDefaults instantiates a new PaginatedProviderList 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 NewPaginatedProviderListWithDefaults() *PaginatedProviderList { + this := PaginatedProviderList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedProviderList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedProviderList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedProviderList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedProviderList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedProviderList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedProviderList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedProviderList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedProviderList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedProviderList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedProviderList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedProviderList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedProviderList) GetResults() []Provider { + if o == nil { + var ret []Provider + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedProviderList) GetResultsOk() ([]Provider, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedProviderList) SetResults(v []Provider) { + o.Results = v +} + +func (o PaginatedProviderList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedProviderList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedProviderList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedProviderList := _PaginatedProviderList{} + + err = json.Unmarshal(data, &varPaginatedProviderList) + + if err != nil { + return err + } + + *o = PaginatedProviderList(varPaginatedProviderList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedProviderList struct { + value *PaginatedProviderList + isSet bool +} + +func (v NullablePaginatedProviderList) Get() *PaginatedProviderList { + return v.value +} + +func (v *NullablePaginatedProviderList) Set(val *PaginatedProviderList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedProviderList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedProviderList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedProviderList(val *PaginatedProviderList) *NullablePaginatedProviderList { + return &NullablePaginatedProviderList{value: val, isSet: true} +} + +func (v NullablePaginatedProviderList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedProviderList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_password_change.go b/v1/providers/launchpad/gen/launchpad/model_password_change.go new file mode 100644 index 0000000..53b5e0c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_password_change.go @@ -0,0 +1,253 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the PasswordChange type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PasswordChange{} + +// PasswordChange struct for PasswordChange +type PasswordChange struct { + Username string `json:"username"` + Password string `json:"password"` + NewPassword string `json:"new_password"` + Result string `json:"result"` + AdditionalProperties map[string]interface{} +} + +type _PasswordChange PasswordChange + +// NewPasswordChange instantiates a new PasswordChange 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 NewPasswordChange(username string, password string, newPassword string, result string) *PasswordChange { + this := PasswordChange{} + this.Username = username + this.Password = password + this.NewPassword = newPassword + this.Result = result + return &this +} + +// NewPasswordChangeWithDefaults instantiates a new PasswordChange 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 NewPasswordChangeWithDefaults() *PasswordChange { + this := PasswordChange{} + return &this +} + +// GetUsername returns the Username field value +func (o *PasswordChange) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *PasswordChange) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *PasswordChange) SetUsername(v string) { + o.Username = v +} + +// GetPassword returns the Password field value +func (o *PasswordChange) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *PasswordChange) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *PasswordChange) SetPassword(v string) { + o.Password = v +} + +// GetNewPassword returns the NewPassword field value +func (o *PasswordChange) GetNewPassword() string { + if o == nil { + var ret string + return ret + } + + return o.NewPassword +} + +// GetNewPasswordOk returns a tuple with the NewPassword field value +// and a boolean to check if the value has been set. +func (o *PasswordChange) GetNewPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NewPassword, true +} + +// SetNewPassword sets field value +func (o *PasswordChange) SetNewPassword(v string) { + o.NewPassword = v +} + +// GetResult returns the Result field value +func (o *PasswordChange) GetResult() string { + if o == nil { + var ret string + return ret + } + + return o.Result +} + +// GetResultOk returns a tuple with the Result field value +// and a boolean to check if the value has been set. +func (o *PasswordChange) GetResultOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Result, true +} + +// SetResult sets field value +func (o *PasswordChange) SetResult(v string) { + o.Result = v +} + +func (o PasswordChange) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PasswordChange) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + toSerialize["password"] = o.Password + toSerialize["new_password"] = o.NewPassword + toSerialize["result"] = o.Result + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PasswordChange) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + "password", + "new_password", + "result", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPasswordChange := _PasswordChange{} + + err = json.Unmarshal(data, &varPasswordChange) + + if err != nil { + return err + } + + *o = PasswordChange(varPasswordChange) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "password") + delete(additionalProperties, "new_password") + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePasswordChange struct { + value *PasswordChange + isSet bool +} + +func (v NullablePasswordChange) Get() *PasswordChange { + return v.value +} + +func (v *NullablePasswordChange) Set(val *PasswordChange) { + v.value = val + v.isSet = true +} + +func (v NullablePasswordChange) IsSet() bool { + return v.isSet +} + +func (v *NullablePasswordChange) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePasswordChange(val *PasswordChange) *NullablePasswordChange { + return &NullablePasswordChange{value: val, isSet: true} +} + +func (v NullablePasswordChange) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePasswordChange) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_persona_choice.go b/v1/providers/launchpad/gen/launchpad/model_persona_choice.go new file mode 100644 index 0000000..ae4aaf9 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_persona_choice.go @@ -0,0 +1,256 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the PersonaChoice type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PersonaChoice{} + +// PersonaChoice struct for PersonaChoice +type PersonaChoice struct { + // Timestamp of when the object was created + Created time.Time `json:"created"` + Id int32 `json:"id"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _PersonaChoice PersonaChoice + +// NewPersonaChoice instantiates a new PersonaChoice 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 NewPersonaChoice(created time.Time, id int32, modified time.Time, name string) *PersonaChoice { + this := PersonaChoice{} + this.Created = created + this.Id = id + this.Modified = modified + this.Name = name + return &this +} + +// NewPersonaChoiceWithDefaults instantiates a new PersonaChoice 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 NewPersonaChoiceWithDefaults() *PersonaChoice { + this := PersonaChoice{} + return &this +} + +// GetCreated returns the Created field value +func (o *PersonaChoice) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *PersonaChoice) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *PersonaChoice) SetCreated(v time.Time) { + o.Created = v +} + +// GetId returns the Id field value +func (o *PersonaChoice) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PersonaChoice) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PersonaChoice) SetId(v int32) { + o.Id = v +} + +// GetModified returns the Modified field value +func (o *PersonaChoice) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *PersonaChoice) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *PersonaChoice) SetModified(v time.Time) { + o.Modified = v +} + +// GetName returns the Name field value +func (o *PersonaChoice) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PersonaChoice) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PersonaChoice) SetName(v string) { + o.Name = v +} + +func (o PersonaChoice) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PersonaChoice) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created"] = o.Created + toSerialize["id"] = o.Id + toSerialize["modified"] = o.Modified + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PersonaChoice) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "id", + "modified", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPersonaChoice := _PersonaChoice{} + + err = json.Unmarshal(data, &varPersonaChoice) + + if err != nil { + return err + } + + *o = PersonaChoice(varPersonaChoice) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created") + delete(additionalProperties, "id") + delete(additionalProperties, "modified") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePersonaChoice struct { + value *PersonaChoice + isSet bool +} + +func (v NullablePersonaChoice) Get() *PersonaChoice { + return v.value +} + +func (v *NullablePersonaChoice) Set(val *PersonaChoice) { + v.value = val + v.isSet = true +} + +func (v NullablePersonaChoice) IsSet() bool { + return v.isSet +} + +func (v *NullablePersonaChoice) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePersonaChoice(val *PersonaChoice) *NullablePersonaChoice { + return &NullablePersonaChoice{value: val, isSet: true} +} + +func (v NullablePersonaChoice) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePersonaChoice) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_platform_enum.go b/v1/providers/launchpad/gen/launchpad/model_platform_enum.go new file mode 100644 index 0000000..972f870 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_platform_enum.go @@ -0,0 +1,126 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// PlatformEnum * `air` - NVIDIA Air * `flight_deck` - Flight Deck * `kvm_bastion` - KVM Bastion * `lp-vmware-platform` - lp-vmware-platform * `minimal` - minimal * `openshift` - OpenShift * `vsphere` - vSphere * `vsphere_horizon` - VMware Horizon * `vsphere7` - vSphere 7 * `vsphere8` - vSphere 8 +type PlatformEnum string + +// List of PlatformEnum +const ( + PlatformAir PlatformEnum = "air" + PlatformFlightDeck PlatformEnum = "flight_deck" + PlatformKvmBastion PlatformEnum = "kvm_bastion" + PlatformLpVmwarePlatformLegacy PlatformEnum = "lp-vmware-platform" + PlatformMinimal PlatformEnum = "minimal" + PlatformOpenshift PlatformEnum = "openshift" + PlatformVsphere PlatformEnum = "vsphere" + PlatformVsphereHorizon PlatformEnum = "vsphere_horizon" + PlatformVsphere7 PlatformEnum = "vsphere7" + PlatformVsphere8 PlatformEnum = "vsphere8" +) + +// All allowed values of PlatformEnum enum +var AllowedPlatformEnumEnumValues = []PlatformEnum{ + "air", + "flight_deck", + "kvm_bastion", + "lp-vmware-platform", + "minimal", + "openshift", + "vsphere", + "vsphere_horizon", + "vsphere7", + "vsphere8", +} + +func (v *PlatformEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PlatformEnum(value) + for _, existing := range AllowedPlatformEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PlatformEnum", value) +} + +// NewPlatformEnumFromValue returns a pointer to a valid PlatformEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPlatformEnumFromValue(v string) (*PlatformEnum, error) { + ev := PlatformEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PlatformEnum: valid values are %v", v, AllowedPlatformEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PlatformEnum) IsValid() bool { + for _, existing := range AllowedPlatformEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PlatformEnum value +func (v PlatformEnum) Ptr() *PlatformEnum { + return &v +} + +type NullablePlatformEnum struct { + value *PlatformEnum + isSet bool +} + +func (v NullablePlatformEnum) Get() *PlatformEnum { + return v.value +} + +func (v *NullablePlatformEnum) Set(val *PlatformEnum) { + v.value = val + v.isSet = true +} + +func (v NullablePlatformEnum) IsSet() bool { + return v.isSet +} + +func (v *NullablePlatformEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlatformEnum(val *PlatformEnum) *NullablePlatformEnum { + return &NullablePlatformEnum{value: val, isSet: true} +} + +func (v NullablePlatformEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlatformEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_preferred_theme_enum.go b/v1/providers/launchpad/gen/launchpad/model_preferred_theme_enum.go new file mode 100644 index 0000000..18752c8 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_preferred_theme_enum.go @@ -0,0 +1,110 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// PreferredThemeEnum * `light` - light * `dark` - dark +type PreferredThemeEnum string + +// List of PreferredThemeEnum +const ( + PreferredThemeLight PreferredThemeEnum = "light" + PreferredThemeDark PreferredThemeEnum = "dark" +) + +// All allowed values of PreferredThemeEnum enum +var AllowedPreferredThemeEnumEnumValues = []PreferredThemeEnum{ + "light", + "dark", +} + +func (v *PreferredThemeEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PreferredThemeEnum(value) + for _, existing := range AllowedPreferredThemeEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PreferredThemeEnum", value) +} + +// NewPreferredThemeEnumFromValue returns a pointer to a valid PreferredThemeEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPreferredThemeEnumFromValue(v string) (*PreferredThemeEnum, error) { + ev := PreferredThemeEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PreferredThemeEnum: valid values are %v", v, AllowedPreferredThemeEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PreferredThemeEnum) IsValid() bool { + for _, existing := range AllowedPreferredThemeEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PreferredThemeEnum value +func (v PreferredThemeEnum) Ptr() *PreferredThemeEnum { + return &v +} + +type NullablePreferredThemeEnum struct { + value *PreferredThemeEnum + isSet bool +} + +func (v NullablePreferredThemeEnum) Get() *PreferredThemeEnum { + return v.value +} + +func (v *NullablePreferredThemeEnum) Set(val *PreferredThemeEnum) { + v.value = val + v.isSet = true +} + +func (v NullablePreferredThemeEnum) IsSet() bool { + return v.isSet +} + +func (v *NullablePreferredThemeEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePreferredThemeEnum(val *PreferredThemeEnum) *NullablePreferredThemeEnum { + return &NullablePreferredThemeEnum{value: val, isSet: true} +} + +func (v NullablePreferredThemeEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePreferredThemeEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_priority_enum.go b/v1/providers/launchpad/gen/launchpad/model_priority_enum.go new file mode 100644 index 0000000..8bc1c84 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_priority_enum.go @@ -0,0 +1,114 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// PriorityEnum * `p0` - p0 * `p1` - p1 * `p2` - p2 * `p3` - p3 +type PriorityEnum string + +// List of PriorityEnum +const ( + PriorityP0 PriorityEnum = "p0" + PriorityP1 PriorityEnum = "p1" + PriorityP2 PriorityEnum = "p2" + PriorityP3 PriorityEnum = "p3" +) + +// All allowed values of PriorityEnum enum +var AllowedPriorityEnumEnumValues = []PriorityEnum{ + "p0", + "p1", + "p2", + "p3", +} + +func (v *PriorityEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PriorityEnum(value) + for _, existing := range AllowedPriorityEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PriorityEnum", value) +} + +// NewPriorityEnumFromValue returns a pointer to a valid PriorityEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPriorityEnumFromValue(v string) (*PriorityEnum, error) { + ev := PriorityEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PriorityEnum: valid values are %v", v, AllowedPriorityEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PriorityEnum) IsValid() bool { + for _, existing := range AllowedPriorityEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PriorityEnum value +func (v PriorityEnum) Ptr() *PriorityEnum { + return &v +} + +type NullablePriorityEnum struct { + value *PriorityEnum + isSet bool +} + +func (v NullablePriorityEnum) Get() *PriorityEnum { + return v.value +} + +func (v *NullablePriorityEnum) Set(val *PriorityEnum) { + v.value = val + v.isSet = true +} + +func (v NullablePriorityEnum) IsSet() bool { + return v.isSet +} + +func (v *NullablePriorityEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePriorityEnum(val *PriorityEnum) *NullablePriorityEnum { + return &NullablePriorityEnum{value: val, isSet: true} +} + +func (v NullablePriorityEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePriorityEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_profile.go b/v1/providers/launchpad/gen/launchpad/model_profile.go new file mode 100644 index 0000000..d8c5201 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_profile.go @@ -0,0 +1,371 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the Profile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Profile{} + +// Profile struct for Profile +type Profile struct { + // Timestamp of when the object was created + Created time.Time `json:"created"` + Groups []string `json:"groups"` + Id string `json:"id"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + PreferredTheme NullablePreferredThemeEnum `json:"preferred_theme,omitempty"` + PreferredViewSettings interface{} `json:"preferred_view_settings,omitempty"` + Username string `json:"username"` + AdditionalProperties map[string]interface{} +} + +type _Profile Profile + +// NewProfile instantiates a new Profile 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 NewProfile(created time.Time, groups []string, id string, modified time.Time, username string) *Profile { + this := Profile{} + this.Created = created + this.Groups = groups + this.Id = id + this.Modified = modified + this.Username = username + return &this +} + +// NewProfileWithDefaults instantiates a new Profile 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 NewProfileWithDefaults() *Profile { + this := Profile{} + return &this +} + +// GetCreated returns the Created field value +func (o *Profile) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *Profile) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *Profile) SetCreated(v time.Time) { + o.Created = v +} + +// GetGroups returns the Groups field value +func (o *Profile) GetGroups() []string { + if o == nil { + var ret []string + return ret + } + + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value +// and a boolean to check if the value has been set. +func (o *Profile) GetGroupsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Groups, true +} + +// SetGroups sets field value +func (o *Profile) SetGroups(v []string) { + o.Groups = v +} + +// GetId returns the Id field value +func (o *Profile) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Profile) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Profile) SetId(v string) { + o.Id = v +} + +// GetModified returns the Modified field value +func (o *Profile) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *Profile) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *Profile) SetModified(v time.Time) { + o.Modified = v +} + +// GetPreferredTheme returns the PreferredTheme field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Profile) GetPreferredTheme() PreferredThemeEnum { + if o == nil || IsNil(o.PreferredTheme.Get()) { + var ret PreferredThemeEnum + return ret + } + return *o.PreferredTheme.Get() +} + +// GetPreferredThemeOk returns a tuple with the PreferredTheme field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Profile) GetPreferredThemeOk() (*PreferredThemeEnum, bool) { + if o == nil { + return nil, false + } + return o.PreferredTheme.Get(), o.PreferredTheme.IsSet() +} + +// HasPreferredTheme returns a boolean if a field has been set. +func (o *Profile) HasPreferredTheme() bool { + if o != nil && o.PreferredTheme.IsSet() { + return true + } + + return false +} + +// SetPreferredTheme gets a reference to the given NullablePreferredThemeEnum and assigns it to the PreferredTheme field. +func (o *Profile) SetPreferredTheme(v PreferredThemeEnum) { + o.PreferredTheme.Set(&v) +} + +// SetPreferredThemeNil sets the value for PreferredTheme to be an explicit nil +func (o *Profile) SetPreferredThemeNil() { + o.PreferredTheme.Set(nil) +} + +// UnsetPreferredTheme ensures that no value is present for PreferredTheme, not even an explicit nil +func (o *Profile) UnsetPreferredTheme() { + o.PreferredTheme.Unset() +} + +// GetPreferredViewSettings returns the PreferredViewSettings field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Profile) GetPreferredViewSettings() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PreferredViewSettings +} + +// GetPreferredViewSettingsOk returns a tuple with the PreferredViewSettings field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Profile) GetPreferredViewSettingsOk() (*interface{}, bool) { + if o == nil || IsNil(o.PreferredViewSettings) { + return nil, false + } + return &o.PreferredViewSettings, true +} + +// HasPreferredViewSettings returns a boolean if a field has been set. +func (o *Profile) HasPreferredViewSettings() bool { + if o != nil && !IsNil(o.PreferredViewSettings) { + return true + } + + return false +} + +// SetPreferredViewSettings gets a reference to the given interface{} and assigns it to the PreferredViewSettings field. +func (o *Profile) SetPreferredViewSettings(v interface{}) { + o.PreferredViewSettings = v +} + +// GetUsername returns the Username field value +func (o *Profile) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *Profile) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *Profile) SetUsername(v string) { + o.Username = v +} + +func (o Profile) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Profile) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created"] = o.Created + toSerialize["groups"] = o.Groups + toSerialize["id"] = o.Id + toSerialize["modified"] = o.Modified + if o.PreferredTheme.IsSet() { + toSerialize["preferred_theme"] = o.PreferredTheme.Get() + } + if o.PreferredViewSettings != nil { + toSerialize["preferred_view_settings"] = o.PreferredViewSettings + } + toSerialize["username"] = o.Username + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Profile) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "groups", + "id", + "modified", + "username", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varProfile := _Profile{} + + err = json.Unmarshal(data, &varProfile) + + if err != nil { + return err + } + + *o = Profile(varProfile) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created") + delete(additionalProperties, "groups") + delete(additionalProperties, "id") + delete(additionalProperties, "modified") + delete(additionalProperties, "preferred_theme") + delete(additionalProperties, "preferred_view_settings") + delete(additionalProperties, "username") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableProfile struct { + value *Profile + isSet bool +} + +func (v NullableProfile) Get() *Profile { + return v.value +} + +func (v *NullableProfile) Set(val *Profile) { + v.value = val + v.isSet = true +} + +func (v NullableProfile) IsSet() bool { + return v.isSet +} + +func (v *NullableProfile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProfile(val *Profile) *NullableProfile { + return &NullableProfile{value: val, isSet: true} +} + +func (v NullableProfile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProfile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_provider.go b/v1/providers/launchpad/gen/launchpad/model_provider.go new file mode 100644 index 0000000..5942ee4 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_provider.go @@ -0,0 +1,381 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the Provider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Provider{} + +// Provider struct for Provider +type Provider struct { + // Timestamp of when the object was created + Created time.Time `json:"created"` + // Human-friendly version of name. Used for display purposes. + DisplayName NullableString `json:"display_name,omitempty"` + Id string `json:"id"` + // The maximum number of provisionined instances allowed globally for the provider (0 = unlimited) + InstanceLimit *int32 `json:"instance_limit,omitempty"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + Name string `json:"name"` + // Weighted preference to use in selecting a provider for a deployment. Higher priority values will be preferred over lower ones. + Priority *int32 `json:"priority,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Provider Provider + +// NewProvider instantiates a new Provider 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 NewProvider(created time.Time, id string, modified time.Time, name string) *Provider { + this := Provider{} + this.Created = created + this.Id = id + this.Modified = modified + this.Name = name + return &this +} + +// NewProviderWithDefaults instantiates a new Provider 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 NewProviderWithDefaults() *Provider { + this := Provider{} + return &this +} + +// GetCreated returns the Created field value +func (o *Provider) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *Provider) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *Provider) SetCreated(v time.Time) { + o.Created = v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Provider) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Provider) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *Provider) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *Provider) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *Provider) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *Provider) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetId returns the Id field value +func (o *Provider) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Provider) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Provider) SetId(v string) { + o.Id = v +} + +// GetInstanceLimit returns the InstanceLimit field value if set, zero value otherwise. +func (o *Provider) GetInstanceLimit() int32 { + if o == nil || IsNil(o.InstanceLimit) { + var ret int32 + return ret + } + return *o.InstanceLimit +} + +// GetInstanceLimitOk returns a tuple with the InstanceLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetInstanceLimitOk() (*int32, bool) { + if o == nil || IsNil(o.InstanceLimit) { + return nil, false + } + return o.InstanceLimit, true +} + +// HasInstanceLimit returns a boolean if a field has been set. +func (o *Provider) HasInstanceLimit() bool { + if o != nil && !IsNil(o.InstanceLimit) { + return true + } + + return false +} + +// SetInstanceLimit gets a reference to the given int32 and assigns it to the InstanceLimit field. +func (o *Provider) SetInstanceLimit(v int32) { + o.InstanceLimit = &v +} + +// GetModified returns the Modified field value +func (o *Provider) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *Provider) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *Provider) SetModified(v time.Time) { + o.Modified = v +} + +// GetName returns the Name field value +func (o *Provider) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Provider) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Provider) SetName(v string) { + o.Name = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *Provider) GetPriority() int32 { + if o == nil || IsNil(o.Priority) { + var ret int32 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetPriorityOk() (*int32, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *Provider) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int32 and assigns it to the Priority field. +func (o *Provider) SetPriority(v int32) { + o.Priority = &v +} + +func (o Provider) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Provider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created"] = o.Created + if o.DisplayName.IsSet() { + toSerialize["display_name"] = o.DisplayName.Get() + } + toSerialize["id"] = o.Id + if !IsNil(o.InstanceLimit) { + toSerialize["instance_limit"] = o.InstanceLimit + } + toSerialize["modified"] = o.Modified + toSerialize["name"] = o.Name + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Provider) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "id", + "modified", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varProvider := _Provider{} + + err = json.Unmarshal(data, &varProvider) + + if err != nil { + return err + } + + *o = Provider(varProvider) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created") + delete(additionalProperties, "display_name") + delete(additionalProperties, "id") + delete(additionalProperties, "instance_limit") + delete(additionalProperties, "modified") + delete(additionalProperties, "name") + delete(additionalProperties, "priority") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableProvider struct { + value *Provider + isSet bool +} + +func (v NullableProvider) Get() *Provider { + return v.value +} + +func (v *NullableProvider) Set(val *Provider) { + v.value = val + v.isSet = true +} + +func (v NullableProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProvider(val *Provider) *NullableProvider { + return &NullableProvider{value: val, isSet: true} +} + +func (v NullableProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_provider_bulk_update.go b/v1/providers/launchpad/gen/launchpad/model_provider_bulk_update.go new file mode 100644 index 0000000..c944956 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_provider_bulk_update.go @@ -0,0 +1,468 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the ProviderBulkUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProviderBulkUpdate{} + +// ProviderBulkUpdate struct for ProviderBulkUpdate +type ProviderBulkUpdate struct { + // Timestamp of when the object was created + Created time.Time `json:"created"` + // Human-friendly version of name. Used for display purposes. + DisplayName NullableString `json:"display_name,omitempty"` + Id string `json:"id"` + // The maximum number of provisionined instances allowed globally for the provider (0 = unlimited) + InstanceLimit *int32 `json:"instance_limit,omitempty"` + // Timestamp of when the object was last modified + Modified time.Time `json:"modified"` + Name string `json:"name"` + // Weighted preference to use in selecting a provider for a deployment. Higher priority values will be preferred over lower ones. + Priority *int32 `json:"priority,omitempty"` + Count int32 `json:"count"` + Ids []string `json:"ids"` + Result string `json:"result"` + AdditionalProperties map[string]interface{} +} + +type _ProviderBulkUpdate ProviderBulkUpdate + +// NewProviderBulkUpdate instantiates a new ProviderBulkUpdate 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 NewProviderBulkUpdate(created time.Time, id string, modified time.Time, name string, count int32, ids []string, result string) *ProviderBulkUpdate { + this := ProviderBulkUpdate{} + this.Created = created + this.Id = id + this.Modified = modified + this.Name = name + this.Count = count + this.Ids = ids + this.Result = result + return &this +} + +// NewProviderBulkUpdateWithDefaults instantiates a new ProviderBulkUpdate 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 NewProviderBulkUpdateWithDefaults() *ProviderBulkUpdate { + this := ProviderBulkUpdate{} + return &this +} + +// GetCreated returns the Created field value +func (o *ProviderBulkUpdate) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *ProviderBulkUpdate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *ProviderBulkUpdate) SetCreated(v time.Time) { + o.Created = v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ProviderBulkUpdate) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProviderBulkUpdate) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ProviderBulkUpdate) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *ProviderBulkUpdate) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *ProviderBulkUpdate) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *ProviderBulkUpdate) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetId returns the Id field value +func (o *ProviderBulkUpdate) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ProviderBulkUpdate) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ProviderBulkUpdate) SetId(v string) { + o.Id = v +} + +// GetInstanceLimit returns the InstanceLimit field value if set, zero value otherwise. +func (o *ProviderBulkUpdate) GetInstanceLimit() int32 { + if o == nil || IsNil(o.InstanceLimit) { + var ret int32 + return ret + } + return *o.InstanceLimit +} + +// GetInstanceLimitOk returns a tuple with the InstanceLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderBulkUpdate) GetInstanceLimitOk() (*int32, bool) { + if o == nil || IsNil(o.InstanceLimit) { + return nil, false + } + return o.InstanceLimit, true +} + +// HasInstanceLimit returns a boolean if a field has been set. +func (o *ProviderBulkUpdate) HasInstanceLimit() bool { + if o != nil && !IsNil(o.InstanceLimit) { + return true + } + + return false +} + +// SetInstanceLimit gets a reference to the given int32 and assigns it to the InstanceLimit field. +func (o *ProviderBulkUpdate) SetInstanceLimit(v int32) { + o.InstanceLimit = &v +} + +// GetModified returns the Modified field value +func (o *ProviderBulkUpdate) GetModified() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value +// and a boolean to check if the value has been set. +func (o *ProviderBulkUpdate) GetModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Modified, true +} + +// SetModified sets field value +func (o *ProviderBulkUpdate) SetModified(v time.Time) { + o.Modified = v +} + +// GetName returns the Name field value +func (o *ProviderBulkUpdate) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ProviderBulkUpdate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ProviderBulkUpdate) SetName(v string) { + o.Name = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *ProviderBulkUpdate) GetPriority() int32 { + if o == nil || IsNil(o.Priority) { + var ret int32 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderBulkUpdate) GetPriorityOk() (*int32, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *ProviderBulkUpdate) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int32 and assigns it to the Priority field. +func (o *ProviderBulkUpdate) SetPriority(v int32) { + o.Priority = &v +} + +// GetCount returns the Count field value +func (o *ProviderBulkUpdate) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *ProviderBulkUpdate) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *ProviderBulkUpdate) SetCount(v int32) { + o.Count = v +} + +// GetIds returns the Ids field value +func (o *ProviderBulkUpdate) GetIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ids +} + +// GetIdsOk returns a tuple with the Ids field value +// and a boolean to check if the value has been set. +func (o *ProviderBulkUpdate) GetIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ids, true +} + +// SetIds sets field value +func (o *ProviderBulkUpdate) SetIds(v []string) { + o.Ids = v +} + +// GetResult returns the Result field value +func (o *ProviderBulkUpdate) GetResult() string { + if o == nil { + var ret string + return ret + } + + return o.Result +} + +// GetResultOk returns a tuple with the Result field value +// and a boolean to check if the value has been set. +func (o *ProviderBulkUpdate) GetResultOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Result, true +} + +// SetResult sets field value +func (o *ProviderBulkUpdate) SetResult(v string) { + o.Result = v +} + +func (o ProviderBulkUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProviderBulkUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created"] = o.Created + if o.DisplayName.IsSet() { + toSerialize["display_name"] = o.DisplayName.Get() + } + toSerialize["id"] = o.Id + if !IsNil(o.InstanceLimit) { + toSerialize["instance_limit"] = o.InstanceLimit + } + toSerialize["modified"] = o.Modified + toSerialize["name"] = o.Name + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + toSerialize["count"] = o.Count + toSerialize["ids"] = o.Ids + toSerialize["result"] = o.Result + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ProviderBulkUpdate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created", + "id", + "modified", + "name", + "count", + "ids", + "result", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varProviderBulkUpdate := _ProviderBulkUpdate{} + + err = json.Unmarshal(data, &varProviderBulkUpdate) + + if err != nil { + return err + } + + *o = ProviderBulkUpdate(varProviderBulkUpdate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created") + delete(additionalProperties, "display_name") + delete(additionalProperties, "id") + delete(additionalProperties, "instance_limit") + delete(additionalProperties, "modified") + delete(additionalProperties, "name") + delete(additionalProperties, "priority") + delete(additionalProperties, "count") + delete(additionalProperties, "ids") + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableProviderBulkUpdate struct { + value *ProviderBulkUpdate + isSet bool +} + +func (v NullableProviderBulkUpdate) Get() *ProviderBulkUpdate { + return v.value +} + +func (v *NullableProviderBulkUpdate) Set(val *ProviderBulkUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableProviderBulkUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableProviderBulkUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProviderBulkUpdate(val *ProviderBulkUpdate) *NullableProviderBulkUpdate { + return &NullableProviderBulkUpdate{value: val, isSet: true} +} + +func (v NullableProviderBulkUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProviderBulkUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_provisioning_state_enum.go b/v1/providers/launchpad/gen/launchpad/model_provisioning_state_enum.go new file mode 100644 index 0000000..4e0766e --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_provisioning_state_enum.go @@ -0,0 +1,120 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// ProvisioningStateEnum * `deployed` - Cluster is in use by a deployment * `deploying` - Provisioning is in progress * `destroying` - Cluster is being destroyed * `pending` - Provisioning will begin soon * `ready` - Provisioning has completed and is ready for a deployment * `reserved` - Cluster is unprovisioned but reserved for later use * `unprovisioned` - Cluster has not yet been provisioned +type ProvisioningStateEnum string + +// List of ProvisioningStateEnum +const ( + ProvisioningStateDeployed ProvisioningStateEnum = "deployed" + ProvisioningStateDeploying ProvisioningStateEnum = "deploying" + ProvisioningStateDestroying ProvisioningStateEnum = "destroying" + ProvisioningStatePending ProvisioningStateEnum = "pending" + ProvisioningStateReady ProvisioningStateEnum = "ready" + ProvisioningStateReserved ProvisioningStateEnum = "reserved" + ProvisioningStateUnprovisioned ProvisioningStateEnum = "unprovisioned" +) + +// All allowed values of ProvisioningStateEnum enum +var AllowedProvisioningStateEnumEnumValues = []ProvisioningStateEnum{ + "deployed", + "deploying", + "destroying", + "pending", + "ready", + "reserved", + "unprovisioned", +} + +func (v *ProvisioningStateEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ProvisioningStateEnum(value) + for _, existing := range AllowedProvisioningStateEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ProvisioningStateEnum", value) +} + +// NewProvisioningStateEnumFromValue returns a pointer to a valid ProvisioningStateEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewProvisioningStateEnumFromValue(v string) (*ProvisioningStateEnum, error) { + ev := ProvisioningStateEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ProvisioningStateEnum: valid values are %v", v, AllowedProvisioningStateEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ProvisioningStateEnum) IsValid() bool { + for _, existing := range AllowedProvisioningStateEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ProvisioningStateEnum value +func (v ProvisioningStateEnum) Ptr() *ProvisioningStateEnum { + return &v +} + +type NullableProvisioningStateEnum struct { + value *ProvisioningStateEnum + isSet bool +} + +func (v NullableProvisioningStateEnum) Get() *ProvisioningStateEnum { + return v.value +} + +func (v *NullableProvisioningStateEnum) Set(val *ProvisioningStateEnum) { + v.value = val + v.isSet = true +} + +func (v NullableProvisioningStateEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableProvisioningStateEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProvisioningStateEnum(val *ProvisioningStateEnum) *NullableProvisioningStateEnum { + return &NullableProvisioningStateEnum{value: val, isSet: true} +} + +func (v NullableProvisioningStateEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProvisioningStateEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_published_enum.go b/v1/providers/launchpad/gen/launchpad/model_published_enum.go new file mode 100644 index 0000000..a6e0fc8 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_published_enum.go @@ -0,0 +1,112 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// PublishedEnum * `draft` - draft * `no` - no * `yes` - yes +type PublishedEnum string + +// List of PublishedEnum +const ( + PublishedDraft PublishedEnum = "draft" + PublishedNo PublishedEnum = "no" + PublishedYes PublishedEnum = "yes" +) + +// All allowed values of PublishedEnum enum +var AllowedPublishedEnumEnumValues = []PublishedEnum{ + "draft", + "no", + "yes", +} + +func (v *PublishedEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PublishedEnum(value) + for _, existing := range AllowedPublishedEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PublishedEnum", value) +} + +// NewPublishedEnumFromValue returns a pointer to a valid PublishedEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPublishedEnumFromValue(v string) (*PublishedEnum, error) { + ev := PublishedEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PublishedEnum: valid values are %v", v, AllowedPublishedEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PublishedEnum) IsValid() bool { + for _, existing := range AllowedPublishedEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PublishedEnum value +func (v PublishedEnum) Ptr() *PublishedEnum { + return &v +} + +type NullablePublishedEnum struct { + value *PublishedEnum + isSet bool +} + +func (v NullablePublishedEnum) Get() *PublishedEnum { + return v.value +} + +func (v *NullablePublishedEnum) Set(val *PublishedEnum) { + v.value = val + v.isSet = true +} + +func (v NullablePublishedEnum) IsSet() bool { + return v.isSet +} + +func (v *NullablePublishedEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePublishedEnum(val *PublishedEnum) *NullablePublishedEnum { + return &NullablePublishedEnum{value: val, isSet: true} +} + +func (v NullablePublishedEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePublishedEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_status_enum.go b/v1/providers/launchpad/gen/launchpad/model_status_enum.go new file mode 100644 index 0000000..41629a3 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_status_enum.go @@ -0,0 +1,116 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// StatusEnum * `completed` - completed * `failed` - failed * `pending` - pending * `processing` - processing * `retrying` - retrying +type StatusEnum string + +// List of StatusEnum +const ( + StatusCompleted StatusEnum = "completed" + StatusFailed StatusEnum = "failed" + StatusPending StatusEnum = "pending" + StatusProcessing StatusEnum = "processing" + StatusRetrying StatusEnum = "retrying" +) + +// All allowed values of StatusEnum enum +var AllowedStatusEnumEnumValues = []StatusEnum{ + "completed", + "failed", + "pending", + "processing", + "retrying", +} + +func (v *StatusEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := StatusEnum(value) + for _, existing := range AllowedStatusEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid StatusEnum", value) +} + +// NewStatusEnumFromValue returns a pointer to a valid StatusEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewStatusEnumFromValue(v string) (*StatusEnum, error) { + ev := StatusEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for StatusEnum: valid values are %v", v, AllowedStatusEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v StatusEnum) IsValid() bool { + for _, existing := range AllowedStatusEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to StatusEnum value +func (v StatusEnum) Ptr() *StatusEnum { + return &v +} + +type NullableStatusEnum struct { + value *StatusEnum + isSet bool +} + +func (v NullableStatusEnum) Get() *StatusEnum { + return v.value +} + +func (v *NullableStatusEnum) Set(val *StatusEnum) { + v.value = val + v.isSet = true +} + +func (v NullableStatusEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableStatusEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStatusEnum(val *StatusEnum) *NullableStatusEnum { + return &NullableStatusEnum{value: val, isSet: true} +} + +func (v NullableStatusEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStatusEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_system_arch_enum.go b/v1/providers/launchpad/gen/launchpad/model_system_arch_enum.go new file mode 100644 index 0000000..c272c06 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_system_arch_enum.go @@ -0,0 +1,110 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// SystemArchEnum * `amd64` - amd64 * `arm64` - arm64 +type SystemArchEnum string + +// List of SystemArchEnum +const ( + SystemArchAMD64 SystemArchEnum = "amd64" + SystemArchARM64 SystemArchEnum = "arm64" +) + +// All allowed values of SystemArchEnum enum +var AllowedSystemArchEnumEnumValues = []SystemArchEnum{ + "amd64", + "arm64", +} + +func (v *SystemArchEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := SystemArchEnum(value) + for _, existing := range AllowedSystemArchEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid SystemArchEnum", value) +} + +// NewSystemArchEnumFromValue returns a pointer to a valid SystemArchEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewSystemArchEnumFromValue(v string) (*SystemArchEnum, error) { + ev := SystemArchEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for SystemArchEnum: valid values are %v", v, AllowedSystemArchEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v SystemArchEnum) IsValid() bool { + for _, existing := range AllowedSystemArchEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to SystemArchEnum value +func (v SystemArchEnum) Ptr() *SystemArchEnum { + return &v +} + +type NullableSystemArchEnum struct { + value *SystemArchEnum + isSet bool +} + +func (v NullableSystemArchEnum) Get() *SystemArchEnum { + return v.value +} + +func (v *NullableSystemArchEnum) Set(val *SystemArchEnum) { + v.value = val + v.isSet = true +} + +func (v NullableSystemArchEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableSystemArchEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSystemArchEnum(val *SystemArchEnum) *NullableSystemArchEnum { + return &NullableSystemArchEnum{value: val, isSet: true} +} + +func (v NullableSystemArchEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSystemArchEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_tenant.go b/v1/providers/launchpad/gen/launchpad/model_tenant.go new file mode 100644 index 0000000..3615bf1 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_tenant.go @@ -0,0 +1,166 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the Tenant type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Tenant{} + +// Tenant struct for Tenant +type Tenant struct { + Id string `json:"id"` + AdditionalProperties map[string]interface{} +} + +type _Tenant Tenant + +// NewTenant instantiates a new Tenant 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 NewTenant(id string) *Tenant { + this := Tenant{} + this.Id = id + return &this +} + +// NewTenantWithDefaults instantiates a new Tenant 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 NewTenantWithDefaults() *Tenant { + this := Tenant{} + return &this +} + +// GetId returns the Id field value +func (o *Tenant) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Tenant) SetId(v string) { + o.Id = v +} + +func (o Tenant) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Tenant) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Tenant) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varTenant := _Tenant{} + + err = json.Unmarshal(data, &varTenant) + + if err != nil { + return err + } + + *o = Tenant(varTenant) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTenant struct { + value *Tenant + isSet bool +} + +func (v NullableTenant) Get() *Tenant { + return v.value +} + +func (v *NullableTenant) Set(val *Tenant) { + v.value = val + v.isSet = true +} + +func (v NullableTenant) IsSet() bool { + return v.isSet +} + +func (v *NullableTenant) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTenant(val *Tenant) *NullableTenant { + return &NullableTenant{value: val, isSet: true} +} + +func (v NullableTenant) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTenant) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_type_enum.go b/v1/providers/launchpad/gen/launchpad/model_type_enum.go new file mode 100644 index 0000000..710dc1d --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_type_enum.go @@ -0,0 +1,110 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// TypeEnum * `nvme` - NVMe * `ssd` - ssd +type TypeEnum string + +// List of TypeEnum +const ( + TypeNVMe TypeEnum = "nvme" + TypeSSD TypeEnum = "ssd" +) + +// All allowed values of TypeEnum enum +var AllowedTypeEnumEnumValues = []TypeEnum{ + "nvme", + "ssd", +} + +func (v *TypeEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TypeEnum(value) + for _, existing := range AllowedTypeEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TypeEnum", value) +} + +// NewTypeEnumFromValue returns a pointer to a valid TypeEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTypeEnumFromValue(v string) (*TypeEnum, error) { + ev := TypeEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TypeEnum: valid values are %v", v, AllowedTypeEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TypeEnum) IsValid() bool { + for _, existing := range AllowedTypeEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to TypeEnum value +func (v TypeEnum) Ptr() *TypeEnum { + return &v +} + +type NullableTypeEnum struct { + value *TypeEnum + isSet bool +} + +func (v NullableTypeEnum) Get() *TypeEnum { + return v.value +} + +func (v *NullableTypeEnum) Set(val *TypeEnum) { + v.value = val + v.isSet = true +} + +func (v NullableTypeEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableTypeEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTypeEnum(val *TypeEnum) *NullableTypeEnum { + return &NullableTypeEnum{value: val, isSet: true} +} + +func (v NullableTypeEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTypeEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/model_vgpu_profile_enum.go b/v1/providers/launchpad/gen/launchpad/model_vgpu_profile_enum.go new file mode 100644 index 0000000..640450e --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/model_vgpu_profile_enum.go @@ -0,0 +1,132 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// VgpuProfileEnum * `air` - NVIDIA Air * `bright_cluster` - Bright Cluster * `bright-cluster` - Bright Cluster (legacy option) * `flight_deck` - Flight Deck * `flight-deck` - Flight Deck (legacy option) * `nvidia_a40-48q` - nvidia_a40-48q * `nvidia-ai-enterprise` - NVIDIA AI Enterprise * `nvidia_l40s-48q` - nvidia_l40s-48q * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q * `openshift` - OpenShift * `platform_only` - platform_only * `vmware_itadmin` - VMware IT admin +type VgpuProfileEnum string + +// List of VgpuProfileEnum +const ( + VgpuProfileAir VgpuProfileEnum = "air" + VgpuProfileBrightCluster VgpuProfileEnum = "bright_cluster" + VgpuProfileBrightClusterLegacy VgpuProfileEnum = "bright-cluster" + VgpuProfileFlightDeck VgpuProfileEnum = "flight_deck" + VgpuProfileFlightDeckLegacy VgpuProfileEnum = "flight-deck" + VgpuProfileNvidiaA4048QLegacy VgpuProfileEnum = "nvidia_a40-48q" + VgpuProfileNvidiaAiEnterpriseLegacy VgpuProfileEnum = "nvidia-ai-enterprise" + VgpuProfileNvidiaL40s48QLegacy VgpuProfileEnum = "nvidia_l40s-48q" + VgpuProfileNvidiaRtxPro6000BlackwellDc496QLegacy VgpuProfileEnum = "nvidia_rtx_pro_6000_blackwell_dc-4-96q" + VgpuProfileNvidiaRtxPro6000BlackwellDc96QLegacy VgpuProfileEnum = "nvidia_rtx_pro_6000_blackwell_dc-96q" + VgpuProfileOpenshift VgpuProfileEnum = "openshift" + VgpuProfilePlatformOnly VgpuProfileEnum = "platform_only" + VgpuProfileVmwareItadmin VgpuProfileEnum = "vmware_itadmin" +) + +// All allowed values of VgpuProfileEnum enum +var AllowedVgpuProfileEnumEnumValues = []VgpuProfileEnum{ + "air", + "bright_cluster", + "bright-cluster", + "flight_deck", + "flight-deck", + "nvidia_a40-48q", + "nvidia-ai-enterprise", + "nvidia_l40s-48q", + "nvidia_rtx_pro_6000_blackwell_dc-4-96q", + "nvidia_rtx_pro_6000_blackwell_dc-96q", + "openshift", + "platform_only", + "vmware_itadmin", +} + +func (v *VgpuProfileEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VgpuProfileEnum(value) + for _, existing := range AllowedVgpuProfileEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VgpuProfileEnum", value) +} + +// NewVgpuProfileEnumFromValue returns a pointer to a valid VgpuProfileEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVgpuProfileEnumFromValue(v string) (*VgpuProfileEnum, error) { + ev := VgpuProfileEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VgpuProfileEnum: valid values are %v", v, AllowedVgpuProfileEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VgpuProfileEnum) IsValid() bool { + for _, existing := range AllowedVgpuProfileEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to VgpuProfileEnum value +func (v VgpuProfileEnum) Ptr() *VgpuProfileEnum { + return &v +} + +type NullableVgpuProfileEnum struct { + value *VgpuProfileEnum + isSet bool +} + +func (v NullableVgpuProfileEnum) Get() *VgpuProfileEnum { + return v.value +} + +func (v *NullableVgpuProfileEnum) Set(val *VgpuProfileEnum) { + v.value = val + v.isSet = true +} + +func (v NullableVgpuProfileEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableVgpuProfileEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVgpuProfileEnum(val *VgpuProfileEnum) *NullableVgpuProfileEnum { + return &NullableVgpuProfileEnum{value: val, isSet: true} +} + +func (v NullableVgpuProfileEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVgpuProfileEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/providers/launchpad/gen/launchpad/response.go b/v1/providers/launchpad/gen/launchpad/response.go new file mode 100644 index 0000000..5321578 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/response.go @@ -0,0 +1,47 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// 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 +} diff --git a/v1/providers/launchpad/gen/launchpad/test/api_auth_test.go b/v1/providers/launchpad/gen/launchpad/test/api_auth_test.go new file mode 100644 index 0000000..cd1bc2a --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/test/api_auth_test.go @@ -0,0 +1,64 @@ +/* +NVIDIA LaunchPad API + +Testing AuthAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "testing" + + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_openapi_AuthAPIService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AuthAPIService AuthLoginCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AuthAPI.AuthLoginCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test AuthAPIService AuthLogoutCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AuthAPI.AuthLogoutCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test AuthAPIService AuthPasswordChangeCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AuthAPI.AuthPasswordChangeCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test AuthAPIService AuthRedirectRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AuthAPI.AuthRedirectRetrieve(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/v1/providers/launchpad/gen/launchpad/test/api_catalog_deployments_test.go b/v1/providers/launchpad/gen/launchpad/test/api_catalog_deployments_test.go new file mode 100644 index 0000000..3a77883 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/test/api_catalog_deployments_test.go @@ -0,0 +1,406 @@ +/* +NVIDIA LaunchPad API + +Testing CatalogDeploymentsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "testing" + + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsBulkPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsDestroy", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsHistoryList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsHistoryList(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsInstancesList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsInstancesList(context.Background(), deploymentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsNotesCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsNotesCreate(context.Background(), deploymentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsNotesDestroy", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + var id string + + httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsNotesDestroy(context.Background(), deploymentId, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsNotesList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsNotesList(context.Background(), deploymentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsNotesPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + var id string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsNotesPartialUpdate(context.Background(), deploymentId, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsNotesRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + var id string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsNotesRetrieve(context.Background(), deploymentId, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsNotesUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + var id string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsNotesUpdate(context.Background(), deploymentId, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsPipelinesCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsPipelinesCreate(context.Background(), deploymentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsPipelinesList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsPipelinesList(context.Background(), deploymentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsServicesCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsServicesCreate(context.Background(), deploymentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsServicesList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsServicesList(context.Background(), deploymentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsSshKeysCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsSshKeysCreate(context.Background(), deploymentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsSshKeysDestroy", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + var id string + + httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsSshKeysDestroy(context.Background(), deploymentId, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsSshKeysList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsSshKeysList(context.Background(), deploymentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsStatsRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsStatsRetrieve(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsTasksCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsTasksCreate(context.Background(), deploymentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsTasksList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsTasksList(context.Background(), deploymentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsTasksRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deploymentId string + var id string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsTasksRetrieve(context.Background(), deploymentId, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogDeploymentsUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogDeploymentsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogExperiencesNotesCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var experienceId string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogExperiencesNotesCreate(context.Background(), experienceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogExperiencesNotesDestroy", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var experienceId string + var id string + + httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogExperiencesNotesDestroy(context.Background(), experienceId, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogExperiencesNotesList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var experienceId string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogExperiencesNotesList(context.Background(), experienceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogExperiencesNotesPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var experienceId string + var id string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogExperiencesNotesPartialUpdate(context.Background(), experienceId, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogExperiencesNotesRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var experienceId string + var id string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogExperiencesNotesRetrieve(context.Background(), experienceId, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogDeploymentsAPIService CatalogExperiencesNotesUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var experienceId string + var id string + + resp, httpRes, err := apiClient.CatalogDeploymentsAPI.CatalogExperiencesNotesUpdate(context.Background(), experienceId, id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/v1/providers/launchpad/gen/launchpad/test/api_catalog_experiences_test.go b/v1/providers/launchpad/gen/launchpad/test/api_catalog_experiences_test.go new file mode 100644 index 0000000..f99a94c --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/test/api_catalog_experiences_test.go @@ -0,0 +1,132 @@ +/* +NVIDIA LaunchPad API + +Testing CatalogExperiencesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "testing" + + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CatalogExperiencesAPIService CatalogExperiencesBulkCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesBulkCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogExperiencesAPIService CatalogExperiencesBulkPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogExperiencesAPIService CatalogExperiencesCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogExperiencesAPIService CatalogExperiencesDestroy", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogExperiencesAPIService CatalogExperiencesHistoryList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesHistoryList(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogExperiencesAPIService CatalogExperiencesList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogExperiencesAPIService CatalogExperiencesPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogExperiencesAPIService CatalogExperiencesRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogExperiencesAPIService CatalogExperiencesStatsRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesStatsRetrieve(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogExperiencesAPIService CatalogExperiencesUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.CatalogExperiencesAPI.CatalogExperiencesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/v1/providers/launchpad/gen/launchpad/test/api_catalog_gpu_os_choices_test.go b/v1/providers/launchpad/gen/launchpad/test/api_catalog_gpu_os_choices_test.go new file mode 100644 index 0000000..3f37b2d --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/test/api_catalog_gpu_os_choices_test.go @@ -0,0 +1,44 @@ +/* +NVIDIA LaunchPad API + +Testing CatalogGpuOsChoicesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "testing" + + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_openapi_CatalogGpuOsChoicesAPIService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CatalogGpuOsChoicesAPIService CatalogGpuOsChoicesCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CatalogGpuOsChoicesAPI.CatalogGpuOsChoicesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogGpuOsChoicesAPIService CatalogGpuOsChoicesList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CatalogGpuOsChoicesAPI.CatalogGpuOsChoicesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/v1/providers/launchpad/gen/launchpad/test/api_catalog_instance_types_test.go b/v1/providers/launchpad/gen/launchpad/test/api_catalog_instance_types_test.go new file mode 100644 index 0000000..31434ae --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/test/api_catalog_instance_types_test.go @@ -0,0 +1,34 @@ +/* +NVIDIA LaunchPad API + +Testing CatalogInstanceTypesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "testing" + + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_openapi_CatalogInstanceTypesAPIService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CatalogInstanceTypesAPIService CatalogInstanceTypesList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CatalogInstanceTypesAPI.CatalogInstanceTypesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/v1/providers/launchpad/gen/launchpad/test/api_catalog_persona_choices_test.go b/v1/providers/launchpad/gen/launchpad/test/api_catalog_persona_choices_test.go new file mode 100644 index 0000000..2eb684b --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/test/api_catalog_persona_choices_test.go @@ -0,0 +1,44 @@ +/* +NVIDIA LaunchPad API + +Testing CatalogPersonaChoicesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "testing" + + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_openapi_CatalogPersonaChoicesAPIService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CatalogPersonaChoicesAPIService CatalogPersonaChoicesCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CatalogPersonaChoicesAPI.CatalogPersonaChoicesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CatalogPersonaChoicesAPIService CatalogPersonaChoicesList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CatalogPersonaChoicesAPI.CatalogPersonaChoicesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/v1/providers/launchpad/gen/launchpad/test/api_identity_profile_test.go b/v1/providers/launchpad/gen/launchpad/test/api_identity_profile_test.go new file mode 100644 index 0000000..c60c911 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/test/api_identity_profile_test.go @@ -0,0 +1,44 @@ +/* +NVIDIA LaunchPad API + +Testing IdentityProfileAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "testing" + + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_openapi_IdentityProfileAPIService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test IdentityProfileAPIService IdentityProfilePartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IdentityProfileAPI.IdentityProfilePartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test IdentityProfileAPIService IdentityProfileRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IdentityProfileAPI.IdentityProfileRetrieve(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/v1/providers/launchpad/gen/launchpad/test/api_inventory_clusters_test.go b/v1/providers/launchpad/gen/launchpad/test/api_inventory_clusters_test.go new file mode 100644 index 0000000..31bcd75 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/test/api_inventory_clusters_test.go @@ -0,0 +1,146 @@ +/* +NVIDIA LaunchPad API + +Testing InventoryClustersAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "testing" + + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_openapi_InventoryClustersAPIService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test InventoryClustersAPIService InventoryClustersBulkPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryClustersAPI.InventoryClustersBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryClustersAPIService InventoryClustersCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryClustersAPI.InventoryClustersCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryClustersAPIService InventoryClustersDestroy", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.InventoryClustersAPI.InventoryClustersDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryClustersAPIService InventoryClustersHistoryList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryClustersAPI.InventoryClustersHistoryList(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryClustersAPIService InventoryClustersList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryClustersAPI.InventoryClustersList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryClustersAPIService InventoryClustersPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryClustersAPI.InventoryClustersPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryClustersAPIService InventoryClustersRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryClustersAPI.InventoryClustersRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryClustersAPIService InventoryClustersStatsRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.InventoryClustersAPI.InventoryClustersStatsRetrieve(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryClustersAPIService InventoryClustersTenantsCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var clusterId string + + resp, httpRes, err := apiClient.InventoryClustersAPI.InventoryClustersTenantsCreate(context.Background(), clusterId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryClustersAPIService InventoryClustersTenantsDestroy", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var clusterId string + var id string + + httpRes, err := apiClient.InventoryClustersAPI.InventoryClustersTenantsDestroy(context.Background(), clusterId, id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryClustersAPIService InventoryClustersUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryClustersAPI.InventoryClustersUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/v1/providers/launchpad/gen/launchpad/test/api_inventory_gpus_test.go b/v1/providers/launchpad/gen/launchpad/test/api_inventory_gpus_test.go new file mode 100644 index 0000000..6e74d60 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/test/api_inventory_gpus_test.go @@ -0,0 +1,122 @@ +/* +NVIDIA LaunchPad API + +Testing InventoryGpusAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "testing" + + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_openapi_InventoryGpusAPIService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test InventoryGpusAPIService InventoryGpusBulkPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryGpusAPI.InventoryGpusBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryGpusAPIService InventoryGpusCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryGpusAPI.InventoryGpusCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryGpusAPIService InventoryGpusDestroy", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.InventoryGpusAPI.InventoryGpusDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryGpusAPIService InventoryGpusHistoryList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryGpusAPI.InventoryGpusHistoryList(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryGpusAPIService InventoryGpusList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryGpusAPI.InventoryGpusList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryGpusAPIService InventoryGpusPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryGpusAPI.InventoryGpusPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryGpusAPIService InventoryGpusRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryGpusAPI.InventoryGpusRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryGpusAPIService InventoryGpusStatsRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.InventoryGpusAPI.InventoryGpusStatsRetrieve(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryGpusAPIService InventoryGpusUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryGpusAPI.InventoryGpusUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/v1/providers/launchpad/gen/launchpad/test/api_inventory_instances_test.go b/v1/providers/launchpad/gen/launchpad/test/api_inventory_instances_test.go new file mode 100644 index 0000000..dbc46a9 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/test/api_inventory_instances_test.go @@ -0,0 +1,113 @@ +/* +NVIDIA LaunchPad API + +Testing InventoryInstancesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "testing" + + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_openapi_InventoryInstancesAPIService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test InventoryInstancesAPIService InventoryInstancesBulkPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryInstancesAPI.InventoryInstancesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryInstancesAPIService InventoryInstancesCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryInstancesAPI.InventoryInstancesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryInstancesAPIService InventoryInstancesDestroy", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.InventoryInstancesAPI.InventoryInstancesDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryInstancesAPIService InventoryInstancesHistoryList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryInstancesAPI.InventoryInstancesHistoryList(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryInstancesAPIService InventoryInstancesList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryInstancesAPI.InventoryInstancesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryInstancesAPIService InventoryInstancesPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryInstancesAPI.InventoryInstancesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryInstancesAPIService InventoryInstancesRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryInstancesAPI.InventoryInstancesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryInstancesAPIService InventoryInstancesUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryInstancesAPI.InventoryInstancesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/v1/providers/launchpad/gen/launchpad/test/api_inventory_locations_test.go b/v1/providers/launchpad/gen/launchpad/test/api_inventory_locations_test.go new file mode 100644 index 0000000..ba43f9f --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/test/api_inventory_locations_test.go @@ -0,0 +1,103 @@ +/* +NVIDIA LaunchPad API + +Testing InventoryLocationsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "testing" + + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_openapi_InventoryLocationsAPIService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test InventoryLocationsAPIService InventoryLocationsCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryLocationsAPI.InventoryLocationsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryLocationsAPIService InventoryLocationsDestroy", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.InventoryLocationsAPI.InventoryLocationsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryLocationsAPIService InventoryLocationsHistoryList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryLocationsAPI.InventoryLocationsHistoryList(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryLocationsAPIService InventoryLocationsList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryLocationsAPI.InventoryLocationsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryLocationsAPIService InventoryLocationsPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryLocationsAPI.InventoryLocationsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryLocationsAPIService InventoryLocationsRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryLocationsAPI.InventoryLocationsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryLocationsAPIService InventoryLocationsUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryLocationsAPI.InventoryLocationsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/v1/providers/launchpad/gen/launchpad/test/api_inventory_nodes_test.go b/v1/providers/launchpad/gen/launchpad/test/api_inventory_nodes_test.go new file mode 100644 index 0000000..ee904f2 --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/test/api_inventory_nodes_test.go @@ -0,0 +1,123 @@ +/* +NVIDIA LaunchPad API + +Testing InventoryNodesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "testing" + + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_openapi_InventoryNodesAPIService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test InventoryNodesAPIService InventoryNodesBulkCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryNodesAPI.InventoryNodesBulkCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryNodesAPIService InventoryNodesBulkPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryNodesAPI.InventoryNodesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryNodesAPIService InventoryNodesCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryNodesAPI.InventoryNodesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryNodesAPIService InventoryNodesDestroy", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.InventoryNodesAPI.InventoryNodesDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryNodesAPIService InventoryNodesHistoryList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryNodesAPI.InventoryNodesHistoryList(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryNodesAPIService InventoryNodesList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryNodesAPI.InventoryNodesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryNodesAPIService InventoryNodesPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryNodesAPI.InventoryNodesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryNodesAPIService InventoryNodesRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryNodesAPI.InventoryNodesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryNodesAPIService InventoryNodesUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryNodesAPI.InventoryNodesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/v1/providers/launchpad/gen/launchpad/test/api_inventory_oems_test.go b/v1/providers/launchpad/gen/launchpad/test/api_inventory_oems_test.go new file mode 100644 index 0000000..04aba8a --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/test/api_inventory_oems_test.go @@ -0,0 +1,103 @@ +/* +NVIDIA LaunchPad API + +Testing InventoryOemsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "testing" + + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_openapi_InventoryOemsAPIService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test InventoryOemsAPIService InventoryOemsCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryOemsAPI.InventoryOemsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryOemsAPIService InventoryOemsDestroy", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.InventoryOemsAPI.InventoryOemsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryOemsAPIService InventoryOemsHistoryList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryOemsAPI.InventoryOemsHistoryList(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryOemsAPIService InventoryOemsList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryOemsAPI.InventoryOemsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryOemsAPIService InventoryOemsPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryOemsAPI.InventoryOemsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryOemsAPIService InventoryOemsRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryOemsAPI.InventoryOemsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryOemsAPIService InventoryOemsUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryOemsAPI.InventoryOemsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/v1/providers/launchpad/gen/launchpad/test/api_inventory_providers_test.go b/v1/providers/launchpad/gen/launchpad/test/api_inventory_providers_test.go new file mode 100644 index 0000000..456112b --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/test/api_inventory_providers_test.go @@ -0,0 +1,122 @@ +/* +NVIDIA LaunchPad API + +Testing InventoryProvidersAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "testing" + + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_openapi_InventoryProvidersAPIService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test InventoryProvidersAPIService InventoryProvidersBulkPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryProvidersAPI.InventoryProvidersBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryProvidersAPIService InventoryProvidersCreate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryProvidersAPI.InventoryProvidersCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryProvidersAPIService InventoryProvidersDestroy", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.InventoryProvidersAPI.InventoryProvidersDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryProvidersAPIService InventoryProvidersHistoryList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryProvidersAPI.InventoryProvidersHistoryList(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryProvidersAPIService InventoryProvidersList", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InventoryProvidersAPI.InventoryProvidersList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryProvidersAPIService InventoryProvidersPartialUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryProvidersAPI.InventoryProvidersPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryProvidersAPIService InventoryProvidersRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryProvidersAPI.InventoryProvidersRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryProvidersAPIService InventoryProvidersStatsRetrieve", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.InventoryProvidersAPI.InventoryProvidersStatsRetrieve(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test InventoryProvidersAPIService InventoryProvidersUpdate", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.InventoryProvidersAPI.InventoryProvidersUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/v1/providers/launchpad/gen/launchpad/utils.go b/v1/providers/launchpad/gen/launchpad/utils.go new file mode 100644 index 0000000..cdad09e --- /dev/null +++ b/v1/providers/launchpad/gen/launchpad/utils.go @@ -0,0 +1,361 @@ +/* +NVIDIA LaunchPad API + +RESTful API for interacting with the NVIDIA LaunchPad platform + +API version: 2.36.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "encoding/json" + "fmt" + "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 json.Marshal(v.value) +} + +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) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} diff --git a/v1/providers/launchpad/instance_create.go b/v1/providers/launchpad/instance_create.go new file mode 100644 index 0000000..7b01781 --- /dev/null +++ b/v1/providers/launchpad/instance_create.go @@ -0,0 +1,160 @@ +package v1 + +import ( + "context" + "net" + + "github.com/brevdev/cloud/internal/collections" + "github.com/brevdev/cloud/internal/errors" + + v1 "github.com/brevdev/cloud/v1" + openapi "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + validation "github.com/go-ozzo/ozzo-validation/v4" +) + +const ( + brevExperienceID = "43123766-35ec-4eb4-a5ba-3f2945228445" + minimalExperienceID = "a5d93f56-bbdb-44db-a1ae-6b1ad7d3c6df" +) + +func (c *LaunchpadClient) CreateInstance(ctx context.Context, attrs v1.CreateInstanceAttrs) (*v1.Instance, error) { + createAttrs := launchpadCreateAttrs(attrs) + err := createAttrs.validate() + if err != nil { + return nil, errors.WrapAndTrace(err) + } + ipAllowlist := c.getLaunchpadIPAllowlist(ctx, attrs.FirewallRules) + instanceTypeInfo, err := getInstanceTypeInfo(createAttrs.InstanceType) + if err != nil { + return nil, errors.WrapAndTrace(err) + } + + var region openapi.NullableString + if createAttrs.Location != "" { + region = *openapi.NewNullableString(collections.Ptr(createAttrs.Location)) + } else { + region = *openapi.NewNullableString(nil) + } + + publicKey := openapi.NewNullableString(collections.Ptr(attrs.PublicKey)) + createAttrs.Tags = createAttrs.generateTags(c.GetReferenceID()) + + deployment := openapi.Deployment{ + ExperienceId: collections.Ptr(instanceTypeToLaunchpadExperience(instanceTypeInfo)), // TODO: necessary for now, but ideally we would use a Brev reservation/pool + ExpiresAt: *openapi.NewNullableTime(nil), + GpuModel: *openapi.NewNullableString(collections.Ptr(instanceTypeInfo.gpuName)), + GpuCount: *openapi.NewNullableInt32(collections.Ptr(instanceTypeInfo.gpuCount)), + IpAllowlist: ipAllowlist, + OrgName: "brev", // TODO: use org name + ProviderName: *openapi.NewNullableString(collections.Ptr(instanceTypeInfo.cloud)), + PublicKey: *publicKey, + RequestId: collections.Ptr(attrs.RefID), + RequesterEmail: "brev@nvidia.com", // TODO: use user email address + RequesterName: "brev.dev", // TODO: use user name + Tags: createAttrs.Tags, + Region: region, + } + + // The workshop ID should only be set if it was determined to be not empty + if instanceTypeInfo.workshopID != "" { + deployment.Workshop = *openapi.NewNullableBool(collections.Ptr(true)) + deployment.WorkshopId = *openapi.NewNullableString(collections.Ptr(instanceTypeInfo.workshopID)) + } else { + deployment.Workshop = *openapi.NewNullableBool(nil) + deployment.WorkshopId = *openapi.NewNullableString(nil) + } + + createDeployment, resp, err := c.client.CatalogDeploymentsAPI.CatalogDeploymentsCreate(c.makeAuthContext(ctx)). + Deployment(deployment). + Execute() + if resp != nil { + defer func() { + if err := resp.Body.Close(); err != nil { + c.logger.Error(ctx, errors.Wrap(err, "cloud/launchpad error closing response body")) + } + }() + } + + if err != nil { + if resp == nil { + return nil, errors.WrapAndTrace(err) + } + + lpErr := c.handleLaunchpadAPIErr(ctx, resp, err) + if !wasCreateDeploymentRequestAlreadyMade(lpErr) { // handleLaunchpadAPIErr casts error to include error message + return nil, errors.WrapAndTrace(lpErr) + } + + // Error was "create request already made", so we can continue + } + + inst, err := c.GetInstance(ctx, v1.CloudProviderInstanceID(createDeployment.Id)) + if err != nil { + return nil, errors.WrapAndTrace(err) + } + return inst, nil +} + +func instanceTypeToLaunchpadExperience(instanceTypeInfo instanceTypeInfo) string { + if instanceTypeInfo.cloud == "nebius" { + return minimalExperienceID + } + return brevExperienceID +} + +type launchpadCreateAttrs v1.CreateInstanceAttrs + +func (l launchpadCreateAttrs) validate() error { + err := validation.ValidateStruct( + &l, + validation.Field(&l.RefID, validation.Required), + validation.Field(&l.Name, validation.Required), + validation.Field(&l.PublicKey, validation.Required), + validation.Field(&l.InstanceType, validation.Required), + ) + if err != nil { + return errors.WrapAndTrace(err) + } + return nil +} + +func (l launchpadCreateAttrs) generateTags(cloudCredRefID string) v1.Tags { + tags := map[string]string{} + + for key, value := range l.Tags { + tags[key] = value + } + tags["RefID"] = l.RefID + tags["Name"] = l.Name + tags["CloudCredRefID"] = cloudCredRefID + return tags +} + +func (c *LaunchpadClient) getLaunchpadIPAllowlist(ctx context.Context, firewallRules v1.FirewallRules) []string { + if len(firewallRules.EgressRules) > 0 { + c.logger.Info(ctx, "cloud/launchpad egress rules not supported", v1.LogField("egressRules", firewallRules.EgressRules)) + } + ips := []string{} + for _, rule := range firewallRules.IngressRules { + for _, cidr := range rule.IPRanges { + _, ipNet, err := net.ParseCIDR(cidr) + if err != nil { + c.logger.Error(ctx, errors.Wrap(err, "cloud/launchpad error parsing cidr"), v1.LogField("cidr", cidr)) + continue + } + ones, bits := ipNet.Mask.Size() + // check if mask is 32 bits + if ones == bits { + ips = append(ips, ipNet.IP.String()) + } else { + c.logger.Error(ctx, errors.New("cloud/launchpad only accept singular IPs"), v1.LogField("cidr", cidr)) + } + } + } + + return ips +} + +func wasCreateDeploymentRequestAlreadyMade(err error) bool { + return errors.ErrorContains(err, "request_id already exist") +} diff --git a/v1/providers/launchpad/instance_create_test.go b/v1/providers/launchpad/instance_create_test.go new file mode 100644 index 0000000..e301048 --- /dev/null +++ b/v1/providers/launchpad/instance_create_test.go @@ -0,0 +1,37 @@ +package v1 + +import ( + "context" + "testing" + + "github.com/stretchr/testify/require" + + "github.com/brevdev/cloud/internal/validation" + v1 "github.com/brevdev/cloud/v1" +) + +func TestLaunchpadClient_CreateInstance(t *testing.T) { + t.Parallel() + checkSkip(t) + apiKey := getAPIKey() + + config := validation.ProviderConfig{ + Credential: NewLaunchpadCredential("brev-cloud-sdk-test", apiKey, "https://stage.launchpad.api.nvidia.com"), + } + + client, err := config.Credential.MakeClient(context.Background(), config.Location) + if err != nil { + t.Fatalf("failed to make client: %v", err) + } + + instance, err := client.CreateInstance(context.Background(), v1.CreateInstanceAttrs{ + Name: "cloud-sdk-test", + RefID: "cloud-sdk-test", + PublicKey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCW3Xmg9/Xu/hY7CMDR1twMD9G0l/amVbOm6mSTTYjxxv7nGlIIiaL8G/XOuHg6KUBf+7NQxZYRLiGqKAlXeC3YlzvQFsroyYd8SvBLHp60aHsvHh/KEFRTFtWlSaE3Aa9Qhr14YXL51tN3+sfTBVU6oqn1t6vX9SUS3FQPCMuKDCVyBQsvz27bI4AZisYyn7mVs3Xr22h/4Pmfa/+KsNdG6nEhaZGqkM+nCQd6lfjIxe234SDBsA/4xCw/F0BBkK3mc2TsKz8sQHsrVnBDotsRFMdHmkj0msFsslh3/teSVPvVpod90A8MZEfOhMbMtPSNySdwsoLAkjOTnhUROvx/kKu4eIW5cz6oHODQ+GRNxAwzS9RXb7ES5Mex09tbgtP7yC1sgQ9GxFRHKD5ZDfrfKRj5gc098x0eEX16wAnGu8j4vsidzn4jPOJwf6UtNYqvecEVuDpWq5QwzZRpcanAjVSD6UZEJjEZDwtol8SbtwkgaaWj59EeMg5G6M6J/5hry04Me7wO4QwP/V1l25uhAg0Vt/0l+oz9Z5qKodllVRCEc55ile2qWAJHLv1B3YHFQFts4DesZcxoCyBZX+KkRYzJoZ4muOSCNYXTAplaqDfYxRsz/YlK30U5lEwDOifXGNKqLdzrZwhNTRWUJR36DHBI+ok8zs3yPHicuZQ5Ww== dmalin@nvidia.com", + InstanceType: "dmz.h100x1.pcie", + Location: "pdx", + }) + require.NoError(t, err) + + t.Logf("instance: %v", instance) +} diff --git a/v1/providers/launchpad/instance_get.go b/v1/providers/launchpad/instance_get.go new file mode 100644 index 0000000..451ca8e --- /dev/null +++ b/v1/providers/launchpad/instance_get.go @@ -0,0 +1,148 @@ +package v1 + +import ( + "context" + + "github.com/alecthomas/units" + + "github.com/brevdev/cloud/internal/errors" + v1 "github.com/brevdev/cloud/v1" + openapi "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" +) + +const ( + clusterExpandParameter = "cluster.nodes.location.provider,cluster.nodes.gpu" +) + +func (c *LaunchpadClient) GetInstance(ctx context.Context, id v1.CloudProviderInstanceID) (*v1.Instance, error) { + getDeployment, resp, err := c.client.CatalogDeploymentsAPI.CatalogDeploymentsRetrieve(c.makeAuthContext(ctx), string(id)). + Expand(clusterExpandParameter). + Execute() + if resp != nil { + defer resp.Body.Close() //nolint:errcheck // handled in err check + } + if err != nil && resp == nil { + return nil, errors.WrapAndTrace(err) + } + if err != nil { + return nil, errors.WrapAndTrace(c.handleLaunchpadAPIErr(ctx, resp, err)) + } + inst, err := launchpadDeploymentToInstance(getDeployment) + if err != nil { + return nil, errors.WrapAndTrace(err) + } + return &inst, nil +} + +func launchpadDeploymentToInstance(deployment *openapi.Deployment) (v1.Instance, error) { + if deployment == nil { + return v1.Instance{}, errors.WrapAndTrace(errors.New("deployment is nil")) + } + + tags, err := launchpadTagsToInstanceTags(deployment.Tags) + if err != nil { + return v1.Instance{}, errors.WrapAndTrace(err) + } + + var diskSize units.Base2Bytes + nodes := deployment.GetCluster().Cluster.GetNodes() + if len(nodes) == 0 { + diskSize = 0 + } else { + node := nodes[0] + + // Calculate disk size + storage := node.Node.GetStorage() + size := 0 + for _, s := range storage { + size += int(s.GetSize()) + } + diskSize = units.Base2Bytes(size) * units.GiB + } + + inst := v1.Instance{ + Name: getValueFromTags("Name", tags), + RefID: getValueFromTags("RefID", tags), + CloudCredRefID: getValueFromTags("CloudCredRefID", tags), + CloudID: v1.CloudProviderInstanceID(deployment.Id), + CreatedAt: deployment.Created, + SSHUser: deployment.SshUser, + SSHPort: int(deployment.SshPort), + Status: v1.Status{ + LifecycleStatus: launchpadStateToLifecycleStatus(deployment.State), + }, + Tags: tags, + InternalPortMappings: []v1.PortMapping{ + { + FromPort: int(deployment.SshPort), + ToPort: 2022, + }, + }, + DiskSize: diskSize, + Location: deployment.GetRegion(), + PublicDNS: deployment.GetCluster().Cluster.GetPublicAddress(), + PublicIP: deployment.GetCluster().Cluster.GetPublicAddress(), + } + + cluster := deployment.GetCluster().Cluster + if cluster != nil { + instanceType := launchpadClusterToInstanceType(*deployment.GetCluster().Cluster) + if instanceType != nil { + inst.InstanceType = instanceType.Type + inst.InstanceTypeID = instanceType.ID + } + } + + return inst, nil +} + +func launchpadTagsToInstanceTags(tags interface{}) (map[string]string, error) { + tagsMap, ok := tags.(map[string]interface{}) + if !ok { + return nil, errors.WrapAndTrace(errors.New("tags interface casting error")) + } + result := make(map[string]string) + for key, value := range tagsMap { + valueString, ok := value.(string) + if !ok { + return nil, errors.WrapAndTrace(errors.New("tags interface casting error")) + } + result[key] = valueString + } + return result, nil +} + +func launchpadStateToLifecycleStatus(launchpadState openapi.DeploymentState) v1.LifecycleStatus { + switch launchpadState { + case openapi.DeploymentStateWaiting: // waiting for deployment to be ready + return v1.LifecycleStatusPending + case openapi.DeploymentStateReady: // deployment is ready and all instances are running + return v1.LifecycleStatusRunning + case openapi.DeploymentStateFailed: // deployment has failed but may be retried + return v1.LifecycleStatusPending + case openapi.DeploymentStateDestroying: // deployment is being destroyed + return v1.LifecycleStatusTerminating + case openapi.DeploymentStateDestroyed: // deployment has been fully destroyed + return v1.LifecycleStatusTerminated + case openapi.DeploymentStateError: // deployment has encountered a fatal error and will not be retried + return v1.LifecycleStatusFailed + case openapi.DeploymentStateStopping: // deployment instances are stopping + return v1.LifecycleStatusStopping + case openapi.DeploymentStateStarting: // deployment instances are starting + return v1.LifecycleStatusPending + case openapi.DeploymentStateStopped: // deployment instances are stopped + return v1.LifecycleStatusStopped + case openapi.DeploymentStateRetrying: // deployment is retrying + return v1.LifecycleStatusPending + default: + return v1.LifecycleStatusPending + } +} + +func getValueFromTags(tagKey string, tags map[string]string) string { + value, ok := tags[tagKey] + if !ok { + return "" + } + return value +} diff --git a/v1/providers/launchpad/instance_get_test.go b/v1/providers/launchpad/instance_get_test.go new file mode 100644 index 0000000..bb40432 --- /dev/null +++ b/v1/providers/launchpad/instance_get_test.go @@ -0,0 +1,30 @@ +package v1 + +import ( + "context" + "testing" + + "github.com/stretchr/testify/require" + + "github.com/brevdev/cloud/internal/validation" + v1 "github.com/brevdev/cloud/v1" +) + +func TestLaunchpadClient_GetInstances(t *testing.T) { + t.Parallel() + checkSkip(t) + apiKey := getAPIKey() + + config := validation.ProviderConfig{ + Credential: NewLaunchpadCredential("brev-cloud-sdk-test", apiKey, "https://stage.launchpad.api.nvidia.com"), + } + + client, err := config.Credential.MakeClient(context.Background(), config.Location) + if err != nil { + t.Fatalf("failed to make client: %v", err) + } + + instances, err := client.GetInstance(context.Background(), v1.CloudProviderInstanceID("1f507fb0-a90e-4d9e-89da-1ccd6abe4ce1")) + require.NoError(t, err) + require.Len(t, instances, 0) +} diff --git a/v1/providers/launchpad/instance_list.go b/v1/providers/launchpad/instance_list.go new file mode 100644 index 0000000..84cbf75 --- /dev/null +++ b/v1/providers/launchpad/instance_list.go @@ -0,0 +1,62 @@ +package v1 + +import ( + "context" + + "github.com/brevdev/cloud/internal/collections" + "github.com/brevdev/cloud/internal/errors" + + v1 "github.com/brevdev/cloud/v1" + openapi "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" +) + +func (c *LaunchpadClient) ListInstances(ctx context.Context, args v1.ListInstancesArgs) ([]v1.Instance, error) { + deployments, err := c.paginateListDeployments(ctx, 100) + if err != nil { + return nil, errors.WrapAndTrace(err) + } + insts, err := collections.MapE(deployments, func(deployment openapi.Deployment) (v1.Instance, error) { + inst, err := launchpadDeploymentToInstance(&deployment) + if err != nil { + return v1.Instance{}, errors.WrapAndTrace(err) + } + return inst, nil + }) + if err != nil { + return nil, errors.WrapAndTrace(err) + } + + if len(args.InstanceIDs) > 0 { + insts = collections.Filter(insts, func(inst v1.Instance) bool { + return collections.ListContains(args.InstanceIDs, inst.CloudID) + }) + } + return insts, nil +} + +func (c *LaunchpadClient) paginateListDeployments(ctx context.Context, pageSize int32) ([]openapi.Deployment, error) { + deployments := make([]openapi.Deployment, 0, pageSize) + var page int32 = 1 + for { + listRes, resp, err := c.client.CatalogDeploymentsAPI.CatalogDeploymentsList(c.makeAuthContext(ctx)). + Expand(clusterExpandParameter). + PageSize(pageSize). + Page(page). + Execute() + if resp != nil { + defer resp.Body.Close() //nolint:errcheck // handled in err check + } + if err != nil && resp == nil { + return nil, errors.WrapAndTrace(err) + } + if err != nil { + return nil, errors.WrapAndTrace(c.handleLaunchpadAPIErr(ctx, resp, err)) + } + deployments = append(deployments, listRes.Results...) + if len(listRes.Results) < int(pageSize) { + break + } + page++ + } + return deployments, nil +} diff --git a/v1/providers/launchpad/instance_list_test.go b/v1/providers/launchpad/instance_list_test.go new file mode 100644 index 0000000..0434624 --- /dev/null +++ b/v1/providers/launchpad/instance_list_test.go @@ -0,0 +1,30 @@ +package v1 + +import ( + "context" + "testing" + + "github.com/stretchr/testify/require" + + "github.com/brevdev/cloud/internal/validation" + v1 "github.com/brevdev/cloud/v1" +) + +func TestLaunchpadClient_ListInstances(t *testing.T) { + t.Parallel() + checkSkip(t) + apiKey := getAPIKey() + + config := validation.ProviderConfig{ + Credential: NewLaunchpadCredential("brev-cloud-sdk-test", apiKey, "https://stage.launchpad.api.nvidia.com"), + } + + client, err := config.Credential.MakeClient(context.Background(), config.Location) + if err != nil { + t.Fatalf("failed to make client: %v", err) + } + + instances, err := client.ListInstances(context.Background(), v1.ListInstancesArgs{}) + require.NoError(t, err) + require.Len(t, instances, 0) +} diff --git a/v1/providers/launchpad/instance_terminate.go b/v1/providers/launchpad/instance_terminate.go new file mode 100644 index 0000000..328a558 --- /dev/null +++ b/v1/providers/launchpad/instance_terminate.go @@ -0,0 +1,38 @@ +package v1 + +import ( + "context" + "net/http" + + "github.com/brevdev/cloud/internal/errors" + v1 "github.com/brevdev/cloud/v1" +) + +func (c *LaunchpadClient) TerminateInstance(ctx context.Context, instanceID v1.CloudProviderInstanceID) error { + _, err := c.GetInstance(ctx, instanceID) // ensures instance exists and is from credential provider + if err != nil { + return errors.WrapAndTrace(err) + } + _, resp, err := c.client.CatalogDeploymentsAPI.CatalogDeploymentsDestroy(c.makeAuthContext(ctx), string(instanceID)). + Execute() + if resp != nil { + defer resp.Body.Close() //nolint:errcheck // handled in err check + } + + // No error returned, so we can consider this a successful terminate request + if err == nil { + return nil + } + + // If there was no response, but there was an error, return the error + if resp == nil { + return errors.WrapAndTrace(err) + } + // If the response is not 200, return the error + if resp.StatusCode != http.StatusOK { + return errors.WrapAndTrace(c.handleLaunchpadAPIErr(ctx, resp, err)) + } + + // We have an error, but the response is 200, so we can consider this a successful terminate request + return nil +} diff --git a/v1/providers/launchpad/instance_terminate_test.go b/v1/providers/launchpad/instance_terminate_test.go new file mode 100644 index 0000000..a8abcb4 --- /dev/null +++ b/v1/providers/launchpad/instance_terminate_test.go @@ -0,0 +1,29 @@ +package v1 + +import ( + "context" + "testing" + + "github.com/stretchr/testify/require" + + "github.com/brevdev/cloud/internal/validation" + v1 "github.com/brevdev/cloud/v1" +) + +func TestLaunchpadClient_TerminateInstance(t *testing.T) { + t.Parallel() + checkSkip(t) + apiKey := getAPIKey() + + config := validation.ProviderConfig{ + Credential: NewLaunchpadCredential("brev-cloud-sdk-test", apiKey, "https://stage.launchpad.api.nvidia.com"), + } + + client, err := config.Credential.MakeClient(context.Background(), config.Location) + if err != nil { + t.Fatalf("failed to make client: %v", err) + } + + err = client.TerminateInstance(context.Background(), v1.CloudProviderInstanceID("1f507fb0-a90e-4d9e-89da-1ccd6abe4ce1")) + require.NoError(t, err) +} diff --git a/v1/providers/launchpad/instance_update.go b/v1/providers/launchpad/instance_update.go new file mode 100644 index 0000000..f3c8c26 --- /dev/null +++ b/v1/providers/launchpad/instance_update.go @@ -0,0 +1,13 @@ +package v1 + +import ( + v1 "github.com/brevdev/cloud/v1" +) + +func (c *LaunchpadClient) MergeInstanceForUpdate(_ v1.Instance, newInstance v1.Instance) v1.Instance { + return newInstance +} + +func (c *LaunchpadClient) MergeInstanceTypeForUpdate(_ v1.InstanceType, newInstanceType v1.InstanceType) v1.InstanceType { + return newInstanceType +} diff --git a/v1/providers/launchpad/instancetype.go b/v1/providers/launchpad/instancetype.go new file mode 100644 index 0000000..d9e36af --- /dev/null +++ b/v1/providers/launchpad/instancetype.go @@ -0,0 +1,464 @@ +package v1 + +import ( + "context" + "fmt" + "strconv" + "strings" + + "github.com/alecthomas/units" + "github.com/bojanz/currency" + + "github.com/brevdev/cloud/internal/errors" + v1 "github.com/brevdev/cloud/v1" + openapi "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" +) + +const ( + brevDGXCWorkshopID = "brev-dgxc" +) + +func (c *LaunchpadClient) GetInstanceTypes(ctx context.Context, args v1.GetInstanceTypeArgs) ([]v1.InstanceType, error) { + launchpadInstanceTypes, err := c.paginateInstanceTypes(ctx, 100) + if err != nil { + return nil, errors.WrapAndTrace(err) + } + + instanceTypes := []v1.InstanceType{} + for _, launchpadInstanceType := range launchpadInstanceTypes { + for region, capacity := range launchpadInstanceType.Capacity { + // If capacity is 0, the instance type is not available in the region + if capacity == 0 { + continue + } + + // Convert the Launchpad instance type to a v1 instance type + instanceType, err := launchpadInstanceTypeToInstanceType(launchpadInstanceType, region) + if err != nil { + return nil, errors.WrapAndTrace(err) + } + + // Collect the instance type if it is selected by the args + if isSelectedByArgs(*instanceType, args) { + instanceTypes = append(instanceTypes, *instanceType) + } else { + continue + } + } + } + + return instanceTypes, nil +} + +func isSelectedByArgs(instanceType v1.InstanceType, args v1.GetInstanceTypeArgs) bool { + if args.Locations != nil { + for _, location := range instanceType.Location { + if !args.Locations.IsAllowed(string(location)) { + return false + } + } + } + + if args.GPUManufactererFilter != nil { + for _, supportedGPU := range instanceType.SupportedGPUs { + if !args.GPUManufactererFilter.IsAllowed(supportedGPU.Manufacturer) { + return false + } + } + } + + if args.CloudFilter != nil { + if !args.CloudFilter.IsAllowed(instanceType.Cloud) { + return false + } + } + + if args.ArchitectureFilter != nil { + for _, architecture := range instanceType.SupportedArchitectures { + if !args.ArchitectureFilter.IsAllowed(architecture) { + return false + } + } + } + + return true +} + +func (c *LaunchpadClient) paginateInstanceTypes(ctx context.Context, pageSize int32) ([]openapi.InstanceType, error) { + instanceTypes := make([]openapi.InstanceType, 0, pageSize) + var page int32 = 1 + for { + // Fetch page + instanceTypesRes, resp, err := c.client.CatalogInstanceTypesAPI.CatalogInstanceTypesList(c.makeAuthContext(ctx)). + PageSize(pageSize). + Page(page). + Execute() + defer func() { + err = resp.Body.Close() + if err != nil { + c.logger.Error(ctx, errors.Wrap(err, "failed to close response body")) + } + }() + if err != nil { + return nil, errors.WrapAndTrace(err) + } + + // Append results to list + instanceTypes = append(instanceTypes, instanceTypesRes.Results...) + + // Check if there are more pages + if len(instanceTypesRes.Results) < int(pageSize) { + break + } + + // Increment page + page++ + } + return instanceTypes, nil +} + +type instanceTypeInfo struct { + cloud string + gpuName string + gpuCount int32 + gpuNetworkDetails string + workshopID string +} + +func makeInstanceTypeName(info instanceTypeInfo) string { + var workshopSuffix string + if info.workshopID == "" { + workshopSuffix = "" + } else { + workshopSuffix = "." + info.workshopID + } + return fmt.Sprintf("%s.%sx%d.%s%s", info.cloud, strings.ToLower(info.gpuName), info.gpuCount, strings.ToLower(info.gpuNetworkDetails), workshopSuffix) +} + +func getInstanceTypeInfo(name string) (instanceTypeInfo, error) { + parts := strings.Split(name, ".") + if len(parts) != 3 && len(parts) != 4 { + return instanceTypeInfo{}, errors.Errorf("invalid instance type name: %s", name) + } + cloud := parts[0] + + // Parse gpuName and gpuCount from "gpuNamexCOUNT" format + gpuPart := parts[1] + xIndex := strings.LastIndex(gpuPart, "x") + if xIndex == -1 { + return instanceTypeInfo{}, errors.New("invalid GPU part format") + } + gpuName := gpuPart[:xIndex] + gpuCountStr := gpuPart[xIndex+1:] + gpuCount, err := strconv.ParseInt(gpuCountStr, 10, 32) + if err != nil { + return instanceTypeInfo{}, errors.WrapAndTrace(err) + } + + gpuNetworkDetails := parts[2] + + var workshopID string + if len(parts) == 4 { + workshopID = parts[3] + } else { + workshopID = "" + } + + return instanceTypeInfo{ + cloud: cloud, + gpuName: gpuName, + gpuCount: int32(gpuCount), + gpuNetworkDetails: gpuNetworkDetails, + workshopID: workshopID, + }, nil +} + +func launchpadInstanceTypeToInstanceType(launchpadInstanceType openapi.InstanceType, region string) (*v1.InstanceType, error) { + // Launchpad may return multiple storage options + storage := launchpadStorageToStorages(launchpadInstanceType.Storage) + + // Launchpad returns only a single GPU + gpus := launchpadGpusToGpus([]openapi.InstanceTypeGpu{launchpadInstanceType.Gpu}) + if len(gpus) != 1 { + return nil, errors.Errorf("expected 1 GPU, got %d", len(gpus)) + } + gpu := gpus[0] + + // The fact that we are here means there is capacity in the region, and therefore the instance type is available + isAvailable := true + + // Get the hourly price + hourlyPrice := getInstanceTypePrice(&gpu) + + info := instanceTypeInfo{ + cloud: launchpadInstanceType.Cloud, + gpuName: gpu.Name, + gpuCount: gpu.Count, + gpuNetworkDetails: gpu.NetworkDetails, + workshopID: launchpadInstanceType.WorkshopId, + } + typeName := makeInstanceTypeName(info) + + it := &v1.InstanceType{ + Type: typeName, + VCPU: launchpadInstanceType.Cpu, + Memory: gbToBytes(launchpadInstanceType.MemoryGb), + SupportedGPUs: []v1.GPU{gpu}, + SupportedStorage: storage, + SupportedArchitectures: []v1.Architecture{launchpadArchitectureToArchitecture(launchpadInstanceType.SystemArch)}, + IsAvailable: isAvailable, + Location: region, + BasePrice: hourlyPrice, + Provider: CloudProviderID, + Cloud: launchpadInstanceType.Cloud, + ReservedInstancePoolID: launchpadWorkshopIDToReservedInstancePoolID(info.workshopID), + } + + // Make the instance type ID + it.ID = v1.MakeGenericInstanceTypeID(*it) + return it, nil +} + +func launchpadWorkshopIDToReservedInstancePoolID(workshopID string) string { + // If the workshop is empty, consider this to be a public instance type + if workshopID == "" { + return "" + } + + // If the workshop is the Brev DGXC workshop, consider this to be a public instance type + if workshopID == brevDGXCWorkshopID { + return "" + } + + // Otherwise, use the workshop ID as the reserved instance pool ID + return workshopID +} + +func launchpadStorageToStorages(launchpadStorage []openapi.InstanceTypeStorage) []v1.Storage { + if len(launchpadStorage) == 0 { + return nil + } + storage := make([]v1.Storage, len(launchpadStorage)) + for i, s := range launchpadStorage { + storage[i] = v1.Storage{ + Count: 1, + Size: gbToBytes(s.SizeGb), + Type: string(s.Type), + } + } + return storage +} + +func launchpadGpusToGpus(lpGpus []openapi.InstanceTypeGpu) []v1.GPU { + if len(lpGpus) == 0 { + return nil + } + gpus := make([]v1.GPU, len(lpGpus)) + for i, gp := range lpGpus { + gpus[i] = v1.GPU{ + Name: strings.ToUpper(gp.Family), + Manufacturer: v1.GetManufacturer(gp.Manufacturer), + Count: gp.Count, + Memory: gbToBytes(gp.MemoryGb), + NetworkDetails: string(gp.InterconnectionType), + Type: strings.ToUpper(gp.Model), + } + } + return gpus +} + +func launchpadArchitectureToArchitecture(launchpadArchitecture openapi.SystemArchEnum) v1.Architecture { + switch launchpadArchitecture { + case openapi.SystemArchAMD64: + return v1.ArchitectureX86_64 + case openapi.SystemArchARM64: + return v1.ArchitectureARM64 + } + return v1.ArchitectureUnknown +} + +// TODO: this will convert 1GB to 1GiB which is incorrect +func gbToBytes(gb int32) units.Base2Bytes { + gbInt64 := int64(gb) + mult := 1024 * 1024 * 1024 + return units.Base2Bytes((gbInt64 * int64(mult))) +} + +func launchpadClusterToInstanceType(cluster openapi.Cluster) *v1.InstanceType { + // Technically launchpad clusters can have multiple nodes, but we only support one for now, and should expect only one will be returned. + if len(cluster.Nodes) == 0 || cluster.Nodes[0].Node == nil || cluster.Nodes[0].Node.GpuCount == nil { + return nil + } + node := *cluster.Nodes[0].Node + + storage := launchpadNodeToSupportedStorage(node) + if storage == nil { + return nil + } + + gpu := launchpadGputoGpu(node) + if gpu == nil { + return nil + } + + var vcpu int32 + if node.Cpu != nil { + vcpu = *node.Cpu + } + var memory units.Base2Bytes + if node.Memory != nil { + memory = gbToBytes(*node.Memory) + } + + isAvailable := (cluster.ProvisioningState != nil && *cluster.ProvisioningState == openapi.ProvisioningStateReady) + location := node.GetLocation().Location.GetName() + cloud := node.GetLocation().Location.GetProvider().Provider.GetName() + + typeName := makeInstanceTypeName(instanceTypeInfo{ + cloud: cloud, + gpuName: gpu.Name, + gpuCount: *node.GpuCount, + gpuNetworkDetails: gpu.NetworkDetails, + workshopID: cluster.GetWorkshopId(), + }) + + it := &v1.InstanceType{ + Type: typeName, + SupportedGPUs: []v1.GPU{*gpu}, + SupportedStorage: storage, + Memory: memory, + VCPU: vcpu, + IsAvailable: isAvailable, + Location: location, + BasePrice: getInstanceTypePrice(gpu), + Cloud: cloud, + Provider: CloudProviderID, + } + it.ID = v1.MakeGenericInstanceTypeID(*it) + return it +} + +func launchpadGputoGpu(node openapi.Node) *v1.GPU { + lpGpu := node.GetGpu().Gpu + if lpGpu == nil { + return nil + } + + lpGpuModel := strings.ToUpper(lpGpu.Model) + lpGpuCount := node.GetGpuCount() + + var lpGpuFormFactor string + if lpGpu.FormFactor != nil { + switch *lpGpu.FormFactor { + case openapi.InterconnectionTypePCIe: + lpGpuFormFactor = "PCIE" + case openapi.InterconnectionTypeSXM: + lpGpuFormFactor = "SXM" + } + } + + var lpGpuMemory units.Base2Bytes + if lpGpu.Memory != nil { + lpGpuMemory = gbToBytes(*lpGpu.Memory) + } + + gpu := &v1.GPU{ + Name: lpGpuModel, + Count: lpGpuCount, + NetworkDetails: lpGpuFormFactor, + Memory: lpGpuMemory, + Manufacturer: "NVIDIA", // The only supported manufacturer for Launchpad + } + return gpu +} + +func launchpadNodeToSupportedStorage(node openapi.Node) []v1.Storage { + if len(node.Storage) == 0 { + return nil + } + storage := make([]v1.Storage, 0, len(node.Storage)) + for _, s := range node.Storage { + storage = append(storage, v1.Storage{ + Count: 1, + Size: gbToBytes(*s.Size), + Type: launchpadStorageTypeToStorageType(s.Type), + }) + } + return storage +} + +func launchpadStorageTypeToStorageType(storageType openapi.TypeEnum) string { + switch storageType { + case openapi.TypeNVMe: + return "nvme" + case openapi.TypeSSD: + return "ssd" + default: + return "" + } +} + +var ( + defaultCurrencyCode = "USD" + defaultPricePerGPU = newCurrencyAmount("2.50", defaultCurrencyCode) + gpuNameToPrice = map[string]*currency.Amount{ + "h100": newCurrencyAmount("2.37", defaultCurrencyCode), + "h200": newCurrencyAmount("2.80", defaultCurrencyCode), + "a40": newCurrencyAmount("0.98", defaultCurrencyCode), + "ggl40s": newCurrencyAmount("1.98", defaultCurrencyCode), + "gh200": newCurrencyAmount("2.80", defaultCurrencyCode), + "l40s": newCurrencyAmount("1.58", defaultCurrencyCode), + "a30": newCurrencyAmount("0.12", defaultCurrencyCode), + "a100": newCurrencyAmount("2.01", defaultCurrencyCode), + } +) + +func newCurrencyAmount(amount string, currencyCode string) *currency.Amount { + currencyAmount, err := currency.NewAmount(amount, currencyCode) + if err != nil { + panic(err) + } + return ¤cyAmount +} + +// uses gpuNameToPrice map to get the price per GPU +func getInstanceTypePrice(gpu *v1.GPU) *currency.Amount { + if gpu == nil { + return nil + } + + gpuNameLower := strings.ToLower(gpu.Name) + + // get price per GPU from gpuNameToPrice map, defaulting if not found + pricePerGPU := defaultPricePerGPU + for gpu, price := range gpuNameToPrice { + if gpuNameLower == gpu { + pricePerGPU = price + break + } + } + + // multiply price per GPU by gpuCount + price, err := pricePerGPU.Mul(strconv.Itoa(int(gpu.Count))) + if err != nil { + panic(err) + } + + // calculate upcharge + upcharge := "1.0" + if gpu.NetworkDetails == "SXM" { + // Apply 25% upcharge for SXM variants + upcharge = "1.25" + } + + // apply upcharge + price, err = price.Mul(upcharge) + if err != nil { + panic(err) + } + + // round to 2 decimal places + price = price.RoundTo(2, currency.RoundHalfUp) + + return &price +} diff --git a/v1/providers/launchpad/instancetype_test.go b/v1/providers/launchpad/instancetype_test.go new file mode 100644 index 0000000..43822f3 --- /dev/null +++ b/v1/providers/launchpad/instancetype_test.go @@ -0,0 +1,132 @@ +package v1 + +import ( + "context" + "testing" + + "github.com/stretchr/testify/require" + + "github.com/brevdev/cloud/internal/validation" + v1 "github.com/brevdev/cloud/v1" +) + +func TestGetInstanceTypes(t *testing.T) { + t.Parallel() + checkSkip(t) + apiKey := getAPIKey() + + config := validation.ProviderConfig{ + Credential: NewLaunchpadCredential("brev-cloud-sdk-test", apiKey, "https://stage.launchpad.api.nvidia.com"), + } + + client, err := config.Credential.MakeClient(context.Background(), config.Location) + if err != nil { + t.Fatalf("failed to make client: %v", err) + } + + instanceTypes, err := client.GetInstanceTypes(context.Background(), v1.GetInstanceTypeArgs{ + Locations: []string{"all"}, + }) + if err != nil { + t.Fatalf("failed to get instance types: %v", err) + } + + t.Logf("instance types: %v", instanceTypes) +} + +func TestInstanceTypeInfo(t *testing.T) { + t.Parallel() + + cases := []struct { + name string + instanceType string + instanceTypeInfo instanceTypeInfo + }{ + { + name: "valid instance type", + instanceType: "nebius.l4x1.pcie.public", + instanceTypeInfo: instanceTypeInfo{ + cloud: "nebius", + gpuName: "l4", + gpuCount: 1, + gpuNetworkDetails: "pcie", + workshopID: "public", + }, + }, + { + name: "valid instance type", + instanceType: "oci.b200x8.sxm6.dgxc", + instanceTypeInfo: instanceTypeInfo{ + cloud: "oci", + gpuName: "b200", + gpuCount: 8, + gpuNetworkDetails: "sxm6", + workshopID: "dgxc", + }, + }, + } + + for _, tt := range cases { + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + + instanceTypeInfo, err := getInstanceTypeInfo(tt.instanceType) + if err != nil { + t.Fatalf("failed to get instance type info: %v", err) + } + + // validate instance type info + require.Equal(t, tt.instanceTypeInfo, instanceTypeInfo) + + // validate round trip + instanceTypeValue := makeInstanceTypeName(tt.instanceTypeInfo) + require.Equal(t, tt.instanceType, instanceTypeValue) + }) + } +} + +func TestMakeGenericInstanceTypeID(t *testing.T) { + t.Parallel() + + cases := []struct { + name string + instanceType v1.InstanceType + instanceTypeID v1.InstanceTypeID + }{ + { + name: "existing ID", + instanceType: v1.InstanceType{ + ID: "abc123", + Location: "foo", + AvailableAzs: []string{"bar"}, + Type: "baz", + }, + instanceTypeID: "abc123", + }, + { + name: "no available azs", + instanceType: v1.InstanceType{ + Location: "us-east-1", + Type: "a100", + }, + instanceTypeID: "us-east-1-noSub-a100", + }, + { + name: "available azs", + instanceType: v1.InstanceType{ + Location: "us-east-1", + Type: "a100", + AvailableAzs: []string{"us-east-1a"}, + }, + instanceTypeID: "us-east-1-us-east-1a-a100", + }, + } + + for _, tt := range cases { + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + instanceTypeID := v1.MakeGenericInstanceTypeID(tt.instanceType) + require.Equal(t, tt.instanceTypeID, instanceTypeID) + }) + } +} diff --git a/v1/providers/launchpad/location.go b/v1/providers/launchpad/location.go new file mode 100644 index 0000000..4723442 --- /dev/null +++ b/v1/providers/launchpad/location.go @@ -0,0 +1,47 @@ +package v1 + +import ( + "context" + + "github.com/brevdev/cloud/internal/errors" + openapi "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" + + v1 "github.com/brevdev/cloud/v1" +) + +func (c *LaunchpadClient) GetLocations(ctx context.Context, args v1.GetLocationsArgs) ([]v1.Location, error) { + launchpadInstanceTypes, err := c.paginateInstanceTypes(ctx, 100) + if err != nil { + return nil, errors.WrapAndTrace(err) + } + + locations := launchpadInstanceTypesToLocations(launchpadInstanceTypes, args) + + return locations, nil +} + +func launchpadInstanceTypesToLocations(launchpadInstanceTypes []openapi.InstanceType, args v1.GetLocationsArgs) []v1.Location { + locationsSet := make(map[string]v1.Location) + for _, launchpadInstanceType := range launchpadInstanceTypes { + for locationName, capacity := range launchpadInstanceType.Capacity { + if capacity <= 0 && !args.IncludeUnavailable { + continue + } + if _, ok := locationsSet[locationName]; ok { + continue + } + locationsSet[locationName] = v1.Location{ + Name: locationName, + Description: locationName, + Available: capacity > 0, + } + } + } + + locations := []v1.Location{} + for _, location := range locationsSet { + locations = append(locations, location) + } + + return locations +} diff --git a/v1/providers/launchpad/location_test.go b/v1/providers/launchpad/location_test.go new file mode 100644 index 0000000..496d83c --- /dev/null +++ b/v1/providers/launchpad/location_test.go @@ -0,0 +1,133 @@ +package v1 + +import ( + "context" + "testing" + + "github.com/stretchr/testify/require" + + "github.com/brevdev/cloud/internal/validation" + v1 "github.com/brevdev/cloud/v1" + openapi "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" +) + +func TestGetLocations(t *testing.T) { + t.Parallel() + checkSkip(t) + apiKey := getAPIKey() + + config := validation.ProviderConfig{ + Credential: NewLaunchpadCredential("brev-cloud-sdk-test", apiKey, "https://stage.launchpad.api.nvidia.com"), + } + + client, err := config.Credential.MakeClient(context.Background(), config.Location) + if err != nil { + t.Fatalf("failed to make client: %v", err) + } + + locations, err := client.GetLocations(context.Background(), v1.GetLocationsArgs{}) + if err != nil { + t.Fatalf("failed to get locations: %v", err) + } + + t.Logf("locations: %v", locations) +} + +func TestInstanceTypesToLocations(t *testing.T) { + t.Parallel() + + cases := []struct { + name string + launchpadInstanceTypes []openapi.InstanceType + locations []v1.Location + args v1.GetLocationsArgs + }{ + { + name: "include unavailable", + launchpadInstanceTypes: []openapi.InstanceType{ + { + Capacity: map[string]int32{ + "us-east-1": 1, + "us-west-1": 0, + }, + }, + }, + args: v1.GetLocationsArgs{ + IncludeUnavailable: true, + }, + locations: []v1.Location{ + { + Name: "us-east-1", + Description: "us-east-1", + Available: true, + }, + { + Name: "us-west-1", + Description: "us-west-1", + Available: false, + }, + }, + }, + { + name: "exclude unavailable", + launchpadInstanceTypes: []openapi.InstanceType{ + { + Capacity: map[string]int32{ + "us-east-1": 1, + "us-west-1": 0, + }, + }, + }, + args: v1.GetLocationsArgs{ + IncludeUnavailable: false, + }, + locations: []v1.Location{ + { + Name: "us-east-1", + Description: "us-east-1", + Available: true, + }, + }, + }, + { + name: "mixed availability across instance types", + launchpadInstanceTypes: []openapi.InstanceType{ + { + Capacity: map[string]int32{ + "us-east-1": 1, + "us-west-1": 0, // unavailable + }, + }, + { + Capacity: map[string]int32{ + "us-west-1": 1, // available + }, + }, + }, + args: v1.GetLocationsArgs{ + IncludeUnavailable: false, + }, + locations: []v1.Location{ + { + Name: "us-east-1", + Description: "us-east-1", + Available: true, + }, + { + Name: "us-west-1", + Description: "us-west-1", + Available: true, + }, + }, + }, + } + + for _, tt := range cases { + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + + locations := launchpadInstanceTypesToLocations(tt.launchpadInstanceTypes, tt.args) + require.ElementsMatch(t, tt.locations, locations) + }) + } +} diff --git a/v1/providers/launchpad/swagger-v2.34.2.yaml b/v1/providers/launchpad/swagger-v2.34.2.yaml new file mode 100644 index 0000000..4f796a3 --- /dev/null +++ b/v1/providers/launchpad/swagger-v2.34.2.yaml @@ -0,0 +1,10912 @@ +openapi: 3.1.0 +info: + title: NVIDIA LaunchPad API + version: 2.34.2 + description: RESTful API for interacting with the NVIDIA LaunchPad platform +paths: + /v1/auth/login/: + post: + operationId: auth_login_create + description: Login with either an authorization code or username and password (deprecated) to generate an API token that can be used with all other API endpoints. + tags: + - auth + requestBody: + content: + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/AuthLogin" + multipart/form-data: + schema: + $ref: "#/components/schemas/AuthLogin" + application/json: + schema: + $ref: "#/components/schemas/AuthLogin" + examples: + AuthCode: + value: + auth_code: string + summary: Auth Code + Username&Password(deprecated): + value: + username: string + password: string + summary: Username & Password (deprecated) + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/AuthToken" + description: "" + /v1/auth/logout/: + post: + operationId: auth_logout_create + description: Logout from the current session. Your API token will no longer be usable and must be regenerated via the login API. + tags: + - auth + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Logout" + description: "" + /v1/auth/password-change/: + post: + operationId: auth_password_change_create + description: Change your current password + tags: + - auth + requestBody: + content: + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/PasswordChange" + multipart/form-data: + schema: + $ref: "#/components/schemas/PasswordChange" + application/json: + schema: + $ref: "#/components/schemas/PasswordChange" + required: true + security: + - TokenAuthentication: [] + deprecated: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PasswordChange" + description: "" + /v1/auth/redirect/: + get: + operationId: auth_redirect_retrieve + description: Get an HTTP redirect to begin an OAuth login flow. + parameters: + - in: query + name: as_json + schema: + type: boolean + description: If "false" or unset, receive an HTTP 302 with the OAuth URL returned in the Location header. If "true", receive an HTTP 200 with the OAuth URL returned in the JSON payload. + tags: + - auth + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/AuthRedirect" + description: "" + "302": + description: No response body + /v1/catalog/deployments/: + get: + operationId: catalog_deployments_list + parameters: + - in: query + name: bastion_operating_system + schema: + type: string + - in: query + name: cluster + schema: + type: string + format: uuid + - in: query + name: collection_branch + schema: + type: string + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: experience + schema: + type: string + format: uuid + - in: query + name: experience_branch + schema: + type: string + - in: query + name: expired + schema: + type: boolean + - in: query + name: expires_at + schema: + type: string + format: date + - in: query + name: expiring + schema: + type: string + description: Include deployments whose expires_at value is within the given range (inclusive), specified as "today", "tomorrow", or "{start}[,end]". Start and end times must be in ISO format. + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: flightcontrol_release + schema: + type: string + - in: query + name: garage_id + schema: + type: string + - in: query + name: gc_branch + schema: + type: string + - in: query + name: gpu_alias + schema: + type: string + - in: query + name: gpu_count + schema: + type: integer + - in: query + name: gpu_model + schema: + type: string + - in: query + name: gpu_os_name + schema: + type: string + - in: query + name: gpu_os_release + schema: + type: string + - in: query + name: gpu_os_version + schema: + type: string + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: node_count + schema: + type: integer + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: org_name + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: persist_on_failure + schema: + type: boolean + - in: query + name: persona + schema: + type: string + - in: query + name: pipeline + schema: + type: integer + - in: query + name: pipeline_branch + schema: + type: string + - in: query + name: platform + schema: + type: + - string + - "null" + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere7 + - vsphere8 + - vsphere_horizon + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + - in: query + name: priority + schema: + type: string + enum: + - p0 + - p1 + - p2 + - p3 + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + - in: query + name: provider_name + schema: + type: string + - in: query + name: region + schema: + type: string + - in: query + name: request_id + schema: + type: string + - in: query + name: requester_email + schema: + type: string + - in: query + name: requester_name + schema: + type: string + - in: query + name: sales_id + schema: + type: string + - in: query + name: sales_owner_email + schema: + type: string + - in: query + name: sales_owner_name + schema: + type: string + - name: search + required: false + in: query + description: Search for deployments by bastion_operating_system, collection_branch, experience_branch, experience catalog_id, experience catalog_id_alias, experience title, expires_at, flightcontrol_release, garage_id, gc_branch, gpu_alias, gpu_model, gpu_os_name, gpu_os_release, gpu_os_version, id, org_name, persona, pipeline_branch, platform, provider_name, region, request_id, requester_email, requester_name, sales_id, sales_owner_email, sales_owner_name, services url, state, tags, workshop_id + schema: + type: string + - in: query + name: state + schema: + type: array + items: + type: string + enum: + - destroyed + - destroying + - error + - failed + - ready + - retrying + - starting + - stopped + - stopping + - waiting + description: |- + Multiple values may be separated by commas. + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + explode: false + style: form + - in: query + name: workshop + schema: + type: boolean + - in: query + name: workshop_id + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedDeploymentList" + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: "2024-04-01T06:14:32.602Z" + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-06-09 18:17:17.615573+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: "2024-05-03T17:03:45.380Z" + node_count: 1 + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: "2025-04-10T15:08:47.381700Z" + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Response + description: "" + post: + operationId: catalog_deployments_create + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Deployment" + examples: + DeploymentRequest(CatalogIDAlias): + value: + bastion_operating_system: ubuntu_22_04 + catalog_id_alias: LP-15 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + expires_at: 2025-06-09 18:17:17.615573+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: "2025-04-10T15:08:47.381700Z" + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Request (Catalog ID Alias) + DeploymentRequest(ExperienceID): + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + experience_id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + expires_at: 2025-06-09 18:17:17.615573+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: "2025-04-10T15:08:47.381700Z" + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Request (Experience ID) + DeploymentRequest(CatalogID): + value: + bastion_operating_system: ubuntu_22_04 + catalog_id: aBY3Z000000xBL4NCO + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + expires_at: 2025-06-09 18:17:17.615573+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: "2025-04-10T15:08:47.381700Z" + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Request (Catalog ID) + DeploymentRequest(MinimumRequiredFields): + value: + experience_id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + org_name: NVIDIA + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + summary: Deployment Request (Minimum Required Fields) + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Deployment" + multipart/form-data: + schema: + $ref: "#/components/schemas/Deployment" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/Deployment" + examples: + SuccessfulResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: "2024-04-01T06:14:32.602Z" + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-06-09 18:17:17.615573+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: "2024-05-03T17:03:45.380Z" + node_count: 1 + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: "2025-04-10T15:08:47.381700Z" + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Response + description: "" + /v1/catalog/deployments/{deployment_id}/instances/: + get: + operationId: catalog_deployments_instances_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: instance_id + schema: + type: string + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-instances by id, instance_id, name, state, tags + schema: + type: string + - in: query + name: state + schema: + type: string + enum: + - running + - starting + - stopped + - stopping + - unknown + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedDeploymentInstanceList" + examples: + DeploymentInstanceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: "2024-04-01T06:14:32.602Z" + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: "2024-05-03T17:03:45.380Z" + name: My GPU Cluster + state: running + state_modified: "2024-05-03T17:03:45.380Z" + tags: + - gpu + summary: DeploymentInstance Response + description: "" + /v1/catalog/deployments/{deployment_id}/pipelines/: + get: + operationId: catalog_deployments_pipelines_list + parameters: + - in: query + name: action + schema: + type: string + enum: + - apply + - destroy + description: |- + Action for the pipeline to run + + * `apply` - apply + * `destroy` - destroy + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: pipeline_id + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-pipelines by action, id, pipeline_id, url + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedDeploymentPipelineList" + examples: + DeploymentPipelineResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - action: apply + created: "2024-04-01T06:14:32.602Z" + deployment: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + id: 4b9fab90-b441-4896-bb1f-c765fd846307 + modified: "2024-05-03T17:03:45.380Z" + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + summary: DeploymentPipeline Response + description: "" + post: + operationId: catalog_deployments_pipelines_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentPipeline" + examples: + DeploymentPipelineRequest: + value: + action: apply + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + summary: DeploymentPipeline Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/DeploymentPipeline" + multipart/form-data: + schema: + $ref: "#/components/schemas/DeploymentPipeline" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentPipeline" + examples: + DeploymentPipelineResponse: + value: + action: apply + created: "2024-04-01T06:14:32.602Z" + deployment: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + id: 4b9fab90-b441-4896-bb1f-c765fd846307 + modified: "2024-05-03T17:03:45.380Z" + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + summary: DeploymentPipeline Response + description: "" + /v1/catalog/deployments/{deployment_id}/services/: + get: + operationId: catalog_deployments_services_list + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-services by id, name, url + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedDeploymentServiceList" + examples: + DeploymentServiceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: "2024-04-01T06:14:32.602Z" + id: deb28859-d04e-4976-88d2-9488d9616bcf + modified: "2024-05-03T17:03:45.380Z" + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + summary: DeploymentService Response + description: "" + post: + operationId: catalog_deployments_services_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentService" + examples: + DeploymentServiceRequest: + value: + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + summary: DeploymentService Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/DeploymentService" + multipart/form-data: + schema: + $ref: "#/components/schemas/DeploymentService" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentService" + examples: + DeploymentServiceResponse: + value: + created: "2024-04-01T06:14:32.602Z" + id: deb28859-d04e-4976-88d2-9488d9616bcf + modified: "2024-05-03T17:03:45.380Z" + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + summary: DeploymentService Response + description: "" + /v1/catalog/deployments/{deployment_id}/ssh-keys/: + get: + operationId: catalog_deployments_ssh_keys_list + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-keys by name + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedDeploymentKeyList" + examples: + DeploymentKeyResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: "2024-04-01T06:14:32.602Z" + id: 597f6c78-6195-4bc7-9db2-f344f71e8b47 + modified: "2024-05-03T17:03:45.380Z" + name: My Key + summary: DeploymentKey Response + description: "" + post: + operationId: catalog_deployments_ssh_keys_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentKey" + examples: + DeploymentKeyRequest: + value: + name: My Key + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + summary: DeploymentKey Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/DeploymentKey" + multipart/form-data: + schema: + $ref: "#/components/schemas/DeploymentKey" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentKey" + examples: + DeploymentKeyResponse: + value: + created: "2024-04-01T06:14:32.602Z" + id: 597f6c78-6195-4bc7-9db2-f344f71e8b47 + modified: "2024-05-03T17:03:45.380Z" + name: My Key + summary: DeploymentKey Response + description: "" + /v1/catalog/deployments/{deployment_id}/ssh-keys/{id}/: + delete: + operationId: catalog_deployments_ssh_keys_destroy + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + "204": + description: No response body + /v1/catalog/deployments/{deployment_id}/tasks/: + get: + operationId: catalog_deployments_tasks_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: query + name: action + schema: + type: string + enum: + - start_instances + - stop_instances + description: |- + The action the task will perform + + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-tasks by action, id, status, status_text + schema: + type: string + - in: query + name: status + schema: + type: string + enum: + - completed + - failed + - pending + - processing + - retrying + description: |- + Current status of the task + + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedDeploymentTaskList" + examples: + DeploymentTaskResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - action: start_instances + created: "2024-04-01T06:14:32.602Z" + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: "2024-05-03T17:03:45.380Z" + retries: 0 + status: pending + status_text: "" + summary: DeploymentTask Response + description: "" + post: + operationId: catalog_deployments_tasks_create + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentTask" + examples: + DeploymentTaskRequest: + value: + action: start_instances + summary: DeploymentTask Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/DeploymentTask" + multipart/form-data: + schema: + $ref: "#/components/schemas/DeploymentTask" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentTask" + examples: + DeploymentTaskResponse: + value: + action: start_instances + created: "2024-04-01T06:14:32.602Z" + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: "2024-05-03T17:03:45.380Z" + retries: 0 + status: pending + status_text: "" + summary: DeploymentTask Response + description: "" + /v1/catalog/deployments/{deployment_id}/tasks/{id}/: + get: + operationId: catalog_deployments_tasks_retrieve + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentTask" + examples: + DeploymentTaskResponse: + value: + action: start_instances + created: "2024-04-01T06:14:32.602Z" + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: "2024-05-03T17:03:45.380Z" + retries: 0 + status: pending + status_text: "" + summary: DeploymentTask Response + description: "" + /v1/catalog/deployments/{id}/: + get: + operationId: catalog_deployments_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: expiring + schema: + type: string + description: Include deployments whose expires_at value is within the given range (inclusive), specified as "today", "tomorrow", or "{start}[,end]". Start and end times must be in ISO format. + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Deployment" + examples: + SuccessfulResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: "2024-04-01T06:14:32.602Z" + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-06-09 18:17:17.615573+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: "2024-05-03T17:03:45.380Z" + node_count: 1 + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: "2025-04-10T15:08:47.381700Z" + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Response + description: "" + put: + operationId: catalog_deployments_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentUpdate" + examples: + DeploymentRequest: + value: + expires_at: 2025-07-06 18:17:17.615758+00:00 + ip_allowlist: + - 192.0.2.1 + state: retrying + summary: Deployment Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/DeploymentUpdate" + multipart/form-data: + schema: + $ref: "#/components/schemas/DeploymentUpdate" + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentUpdate" + examples: + DeploymentResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: "2024-04-01T06:14:32.602Z" + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-06-09 18:17:17.615573+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: "2024-05-03T17:03:45.380Z" + node_count: 1 + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: "2025-04-10T15:08:47.381700Z" + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Response + description: "" + patch: + operationId: catalog_deployments_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentUpdate" + examples: + DeploymentRequest: + value: + expires_at: 2025-07-06 18:17:17.615758+00:00 + ip_allowlist: + - 192.0.2.1 + state: retrying + summary: Deployment Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/DeploymentUpdate" + multipart/form-data: + schema: + $ref: "#/components/schemas/DeploymentUpdate" + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentUpdate" + examples: + DeploymentResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: "2024-04-01T06:14:32.602Z" + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-06-09 18:17:17.615573+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: "2024-05-03T17:03:45.380Z" + node_count: 1 + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: "2025-04-10T15:08:47.381700Z" + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Response + description: "" + delete: + operationId: catalog_deployments_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/DocDeploymentDelete" + examples: + SuccessfulDestroyingResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: "2024-04-01T06:14:32.602Z" + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-06-09 18:17:17.615573+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: "22.04" + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: "2024-05-03T17:03:45.380Z" + node_count: 1 + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: "2025-04-10T15:08:47.381700Z" + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + state: destroying + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Destroying Response + description: "" + "204": + description: No response body + /v1/catalog/deployments/{id}/history/: + get: + operationId: catalog_deployments_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedModelChangeList" + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: "2025-01-29T13:20:39.821Z" + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: "" + /v1/catalog/deployments/bulk/: + patch: + operationId: catalog_deployments_bulk_partial_update + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentBulkUpdate" + examples: + DeploymentBulkUpdateRequest: + value: + expires_at: 2025-07-06 18:17:17.615758+00:00 + ids: + - 5330c898-f3e7-4972-bfd0-1d438e3774d7 + - b29d13e5-5894-4614-af2a-ea3f9be93fc5 + ip_allowlist: + - 192.0.2.1 + state: retrying + summary: Deployment Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/DeploymentBulkUpdate" + multipart/form-data: + schema: + $ref: "#/components/schemas/DeploymentBulkUpdate" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentBulkUpdate" + examples: + DeploymentBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Deployment Bulk Update Response + description: "" + /v1/catalog/deployments/stats/: + get: + operationId: catalog_deployments_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + "200": + description: No response body + /v1/catalog/experiences/: + get: + operationId: catalog_experiences_list + parameters: + - in: query + name: assignee + schema: + type: string + - in: query + name: autoapprove + schema: + type: boolean + - in: query + name: autoprovision + schema: + type: boolean + - in: query + name: bootstrap + schema: + type: boolean + - in: query + name: catalog_id + schema: + type: string + - in: query + name: catalog_id_alias + schema: + type: string + - in: query + name: category + schema: + type: array + items: + type: string + enum: + - 3D Design Collaboration and Simulation + - AI + - Clara + - Data Science + - Developer + - Infrastructure Optimization + description: |- + Multiple values may be separated by commas. + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + explode: false + style: form + - in: query + name: collection_branch + schema: + type: string + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "required_gpus").' + - in: query + name: experience + schema: + type: string + - in: query + name: experience_branch + schema: + type: string + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: garage_id + schema: + type: string + - in: query + name: gc_branch + schema: + type: string + - in: query + name: gpu_count + schema: + type: integer + - in: query + name: gpu_os_name + schema: + type: string + - in: query + name: gpu_os_release + schema: + type: string + - in: query + name: gpu_os_version + schema: + type: string + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: node_count + schema: + type: integer + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: persona + schema: + type: string + - in: query + name: pipeline + schema: + type: integer + - in: query + name: platform + schema: + type: string + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere7 + - vsphere8 + - vsphere_horizon + description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: published + schema: + type: array + items: + type: string + enum: + - draft + - "no" + - "yes" + description: |- + Multiple values may be separated by commas. + + * `draft` - draft + * `no` - no + * `yes` - yes + explode: false + style: form + - in: query + name: requires_gpu + schema: + type: string + description: Only include experiences that require a given GPU ID or model + - in: query + name: sa_lab + schema: + type: boolean + - name: search + required: false + in: query + description: Search for experiences by assignee, catalog_id, catalog_id_alias, category, collection_branch, description, experience, experience_branch, gc_branch, gpu_os_name, gpu_os_release, gpu_os_version, id, persona, pipeline, platform, provider name, required_gpus model, system_arch, title, vgpu_profile + schema: + type: string + - in: query + name: system_arch + schema: + type: string + enum: + - amd64 + - arm64 + description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + - in: query + name: vgpu_profile + schema: + type: + - string + - "null" + enum: + - air + - bright-cluster + - bright_cluster + - flight-deck + - flight_deck + - nvidia-ai-enterprise + - nvidia_a40-48q + - nvidia_l40s-48q + - openshift + - platform_only + - vmware_itadmin + description: |- + vGPU profile name used by the experience + + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedExperienceList" + examples: + ExperienceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: "2024-04-01T06:14:32.602Z" + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: "2024-05-03T17:03:45.380Z" + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: "" + post: + operationId: catalog_experiences_create + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Experience" + examples: + ExperienceRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Experience" + multipart/form-data: + schema: + $ref: "#/components/schemas/Experience" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/Experience" + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: "2024-04-01T06:14:32.602Z" + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: "2024-05-03T17:03:45.380Z" + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: "" + /v1/catalog/experiences/{id}/: + get: + operationId: catalog_experiences_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "required_gpus").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Experience" + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: "2024-04-01T06:14:32.602Z" + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: "2024-05-03T17:03:45.380Z" + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: "" + put: + operationId: catalog_experiences_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Experience" + examples: + ExperienceRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Experience" + multipart/form-data: + schema: + $ref: "#/components/schemas/Experience" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Experience" + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: "2024-04-01T06:14:32.602Z" + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: "2024-05-03T17:03:45.380Z" + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: "" + patch: + operationId: catalog_experiences_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Experience" + examples: + ExperienceRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Experience" + multipart/form-data: + schema: + $ref: "#/components/schemas/Experience" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Experience" + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: "2024-04-01T06:14:32.602Z" + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: "2024-05-03T17:03:45.380Z" + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: "" + delete: + operationId: catalog_experiences_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + "204": + description: No response body + /v1/catalog/experiences/{id}/history/: + get: + operationId: catalog_experiences_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedModelChangeList" + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: "2025-01-29T13:20:39.821Z" + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: "" + /v1/catalog/experiences/bulk/: + post: + operationId: catalog_experiences_bulk_create + description: Create experiences in bulk via CSV file upload + tags: + - catalog/experiences + requestBody: + content: + multipart/form-data: + schema: + type: object + properties: + csv_file: + type: string + format: binary + writeOnly: true + required: + - csv_file + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/ExperienceBulk" + description: "" + patch: + operationId: catalog_experiences_bulk_partial_update + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ExperienceBulkUpdate" + examples: + ExperienceBulkUpdateRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: "22.04" + ids: + - c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + - 3587f151-b02a-46c7-80a4-ac61db6633ed + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: "yes" + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Bulk Update Request + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ExperienceBulkUpdate" + examples: + ExperienceBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Experience Bulk Update Response + description: "" + /v1/catalog/experiences/stats/: + get: + operationId: catalog_experiences_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + "200": + description: No response body + /v1/catalog/gpu-os-choices/: + get: + operationId: catalog_gpu_os_choices_list + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for gpuoschoices by id, name, release, version + schema: + type: string + tags: + - catalog/gpu-os-choices + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedGpuOsChoiceList" + examples: + GPUOSChoiceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: "2024-04-01T06:14:32.602Z" + id: 22 + modified: "2024-05-03T17:03:45.380Z" + name: ubuntu + release: jammy + version: "22.04" + summary: GPU OS Choice Response + description: "" + post: + operationId: catalog_gpu_os_choices_create + tags: + - catalog/gpu-os-choices + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/GpuOsChoice" + examples: + GPUOSChoiceRequest: + value: + name: ubuntu + release: jammy + version: "22.04" + summary: GPU OS Choice Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/GpuOsChoice" + multipart/form-data: + schema: + $ref: "#/components/schemas/GpuOsChoice" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/GpuOsChoice" + examples: + GPUOSChoiceResponse: + value: + created: "2024-04-01T06:14:32.602Z" + id: 22 + modified: "2024-05-03T17:03:45.380Z" + name: ubuntu + release: jammy + version: "22.04" + summary: GPU OS Choice Response + description: "" + /v1/catalog/persona-choices/: + get: + operationId: catalog_persona_choices_list + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for personachoices by id, name + schema: + type: string + tags: + - catalog/persona-choices + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedPersonaChoiceList" + examples: + PersonaChoiceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: "2024-04-01T06:14:32.602Z" + id: 15 + modified: "2024-05-03T17:03:45.380Z" + name: developer + summary: Persona Choice Response + description: "" + post: + operationId: catalog_persona_choices_create + tags: + - catalog/persona-choices + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PersonaChoice" + examples: + PersonaChoiceRequest: + value: + name: developer + summary: Persona Choice Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/PersonaChoice" + multipart/form-data: + schema: + $ref: "#/components/schemas/PersonaChoice" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/PersonaChoice" + examples: + PersonaChoiceResponse: + value: + created: "2024-04-01T06:14:32.602Z" + id: 15 + modified: "2024-05-03T17:03:45.380Z" + name: developer + summary: Persona Choice Response + description: "" + /v1/identity/profile/: + get: + operationId: identity_profile_retrieve + tags: + - identity/profile + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Profile" + examples: + ProfileResponse: + value: + created: "2024-10-01T07:24:42.702Z" + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + modified: "2024-11-03T18:04:55.480Z" + preferred_theme: dark + username: jdoe@nvidia.com + summary: Profile Response + description: "" + patch: + operationId: identity_profile_partial_update + tags: + - identity/profile + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Profile" + examples: + ProfileRequest: + value: + preferred_theme: dark + summary: Profile Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Profile" + multipart/form-data: + schema: + $ref: "#/components/schemas/Profile" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Profile" + examples: + ProfileResponse: + value: + created: "2024-10-01T07:24:42.702Z" + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + modified: "2024-11-03T18:04:55.480Z" + preferred_theme: dark + username: jdoe@nvidia.com + summary: Profile Response + description: "" + /v1/inventory/clusters/: + get: + operationId: inventory_clusters_list + parameters: + - in: query + name: available + schema: + type: boolean + description: Is the cluster currently available for provisioning? + - in: query + name: bastion_name + schema: + type: string + - in: query + name: deployment + schema: + type: string + format: uuid + - in: query + name: enabled + schema: + type: boolean + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "nodes.location"). Separate multiple fields with a comma (ex: "gpus,nodes")' + - in: query + name: experience + schema: + type: string + format: uuid + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: garage_id + schema: + type: string + description: Only include clusters whose nodes have the given garage ID + - in: query + name: gpu + schema: + type: array + items: + type: string + format: uuid + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: gpu_alias + schema: + type: string + description: Alias for GPU plan (i.e. installed GPU type and count) + - in: query + name: gpu_count + schema: + type: number + description: Only include clusters with a physical GPU count equal to this value + - in: query + name: gpu_model + schema: + type: string + description: Only include clusters with the given GPU model name + - in: query + name: has_deployment + schema: + type: boolean + - in: query + name: has_request_id + schema: + type: boolean + - in: query + name: has_workshop_id + schema: + type: boolean + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: location + schema: + type: string + format: uuid + - in: query + name: location_name + schema: + type: string + description: Only include clusters whose nodes are in the location with the given name + - in: query + name: location_region + schema: + type: string + description: Only include clusters whose nodes are in the location in the given region + - in: query + name: maintenance + schema: + type: boolean + - in: query + name: mgmt_ip + schema: + type: string + - in: query + name: mgmt_mac + schema: + type: string + - in: query + name: min_gpu_count + schema: + type: number + description: Only include clusters that have a gpu_count greater than or equal to this value + - in: query + name: min_node_count + schema: + type: number + description: Only include clusters that have a node_count greater than or equal to this value + - in: query + name: min_tenant_count + schema: + type: number + description: Only include clusters whose number of tenant_ids is greater than or equal to this value + - in: query + name: netmask + schema: + type: integer + - in: query + name: node_count + schema: + type: number + description: Only include clusters with a node count equal to this value + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: persist + schema: + type: boolean + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: provider_capacity + schema: + type: boolean + - in: query + name: provider_name + schema: + type: string + description: Only include clusters whose nodes are from the provider with the given name + - in: query + name: provider_node_id + schema: + type: string + format: uuid + - in: query + name: provision_user + schema: + type: string + - in: query + name: provisioning_attempts + schema: + type: integer + - in: query + name: provisioning_state + schema: + type: array + items: + type: string + enum: + - deployed + - deploying + - destroying + - pending + - ready + - reserved + - unprovisioned + description: |- + Multiple values may be separated by commas. + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + explode: false + style: form + - in: query + name: public_address + schema: + type: string + - in: query + name: rack + schema: + type: string + description: Only include clusters whose nodes are in the given rack + - in: query + name: request_id + schema: + type: string + - in: query + name: reservation + schema: + type: boolean + - name: search + required: false + in: query + description: Search for clusters by bastion_name, experience id, gpu_alias, gpus model, id, mgmt_ip, mgmt_mac, netmask, nodes garage_id, nodes location name, nodes location provider name, nodes provider_node_id, nodes rack, notes, provision_user, provisioning_state, public_address, request_id, tenant_ids, workshop_id + schema: + type: string + - in: query + name: system_arch + schema: + type: string + description: Only include clusters whose nodes have the given CPU architecture + - in: query + name: vlan_id + schema: + type: integer + - in: query + name: workshop + schema: + type: boolean + - in: query + name: workshop_id + schema: + type: string + - in: query + name: workshop_id_not + schema: + type: string + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedClusterList" + examples: + ClusterResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - available: true + bastion_name: jovial_bastion + created: "2024-04-01T06:14:32.602Z" + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: "2024-06-13T02:22:06.611Z" + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: "2024-05-03T15:04:44.410Z" + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: "2024-05-03T17:03:45.380Z" + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: "" + post: + operationId: inventory_clusters_create + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Cluster" + examples: + ClusterRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Cluster" + multipart/form-data: + schema: + $ref: "#/components/schemas/Cluster" + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/Cluster" + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: "2024-04-01T06:14:32.602Z" + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: "2024-06-13T02:22:06.611Z" + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: "2024-05-03T15:04:44.410Z" + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: "2024-05-03T17:03:45.380Z" + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: "" + /v1/inventory/clusters/{cluster_id}/tenants/: + post: + operationId: inventory_clusters_tenants_create + parameters: + - in: path + name: cluster_id + schema: + type: string + format: uuid + required: true + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Tenant" + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Tenant" + multipart/form-data: + schema: + $ref: "#/components/schemas/Tenant" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/Cluster" + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: "2024-04-01T06:14:32.602Z" + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: "2024-06-13T02:22:06.611Z" + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: "2024-05-03T15:04:44.410Z" + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: "2024-05-03T17:03:45.380Z" + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: "" + /v1/inventory/clusters/{cluster_id}/tenants/{id}/: + delete: + operationId: inventory_clusters_tenants_destroy + parameters: + - in: path + name: cluster_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + "204": + description: No response body + /v1/inventory/clusters/{id}/: + get: + operationId: inventory_clusters_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "nodes.location"). Separate multiple fields with a comma (ex: "gpus,nodes")' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Cluster" + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: "2024-04-01T06:14:32.602Z" + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: "2024-06-13T02:22:06.611Z" + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: "2024-05-03T15:04:44.410Z" + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: "2024-05-03T17:03:45.380Z" + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: "" + put: + operationId: inventory_clusters_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Cluster" + examples: + ClusterRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Cluster" + multipart/form-data: + schema: + $ref: "#/components/schemas/Cluster" + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Cluster" + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: "2024-04-01T06:14:32.602Z" + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: "2024-06-13T02:22:06.611Z" + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: "2024-05-03T15:04:44.410Z" + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: "2024-05-03T17:03:45.380Z" + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: "" + patch: + operationId: inventory_clusters_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Cluster" + examples: + ClusterRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Cluster" + multipart/form-data: + schema: + $ref: "#/components/schemas/Cluster" + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Cluster" + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: "2024-04-01T06:14:32.602Z" + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: "2024-06-13T02:22:06.611Z" + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: "2024-05-03T15:04:44.410Z" + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: "2024-05-03T17:03:45.380Z" + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: "" + delete: + operationId: inventory_clusters_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + "204": + description: No response body + /v1/inventory/clusters/{id}/history/: + get: + operationId: inventory_clusters_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedModelChangeList" + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: "2025-01-29T13:20:39.821Z" + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: "" + /v1/inventory/clusters/bulk/: + patch: + operationId: inventory_clusters_bulk_partial_update + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ClusterBulkUpdate" + examples: + ClusterBulkUpdateRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + ids: + - 089324a5-708c-4386-9fdc-92dd9aa63d2b + - 3587f151-b02a-46c7-80a4-ac61db6633ed + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/ClusterBulkUpdate" + multipart/form-data: + schema: + $ref: "#/components/schemas/ClusterBulkUpdate" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ClusterBulkUpdate" + examples: + ClusterBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Cluster Bulk Update Response + description: "" + /v1/inventory/clusters/stats/: + get: + operationId: inventory_clusters_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + "200": + description: No response body + /v1/inventory/gpus/: + get: + operationId: inventory_gpus_list + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: form_factor + schema: + type: string + enum: + - pcie + - sxm + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - sxm + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: model + schema: + type: array + items: + type: string + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: priority + schema: + type: integer + - name: search + required: false + in: query + description: Search for gpus by form_factor, id, memory, model + schema: + type: string + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedGpuList" + examples: + GPUResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: "2024-04-01T06:14:32.602Z" + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: "2024-05-03T17:03:45.380Z" + node_count: 22 + priority: 60 + summary: GPU Response + description: "" + post: + operationId: inventory_gpus_create + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Gpu" + examples: + GPURequest: + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + summary: GPU Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Gpu" + multipart/form-data: + schema: + $ref: "#/components/schemas/Gpu" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/Gpu" + examples: + GPUResponse: + value: + created: "2024-04-01T06:14:32.602Z" + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: "2024-05-03T17:03:45.380Z" + node_count: 22 + priority: 60 + summary: GPU Response + description: "" + /v1/inventory/gpus/{id}/: + get: + operationId: inventory_gpus_retrieve + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Gpu" + examples: + GPUResponse: + value: + created: "2024-04-01T06:14:32.602Z" + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: "2024-05-03T17:03:45.380Z" + node_count: 22 + priority: 60 + summary: GPU Response + description: "" + put: + operationId: inventory_gpus_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Gpu" + examples: + GPURequest: + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + summary: GPU Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Gpu" + multipart/form-data: + schema: + $ref: "#/components/schemas/Gpu" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Gpu" + examples: + GPUResponse: + value: + created: "2024-04-01T06:14:32.602Z" + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: "2024-05-03T17:03:45.380Z" + node_count: 22 + priority: 60 + summary: GPU Response + description: "" + patch: + operationId: inventory_gpus_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Gpu" + examples: + GPURequest: + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + summary: GPU Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Gpu" + multipart/form-data: + schema: + $ref: "#/components/schemas/Gpu" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Gpu" + examples: + GPUResponse: + value: + created: "2024-04-01T06:14:32.602Z" + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: "2024-05-03T17:03:45.380Z" + node_count: 22 + priority: 60 + summary: GPU Response + description: "" + delete: + operationId: inventory_gpus_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + "204": + description: No response body + /v1/inventory/gpus/{id}/history/: + get: + operationId: inventory_gpus_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedModelChangeList" + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: "2025-01-29T13:20:39.821Z" + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: "" + /v1/inventory/gpus/bulk/: + patch: + operationId: inventory_gpus_bulk_partial_update + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/GpuBulkUpdate" + examples: + GPUBulkUpdateRequest: + value: + form_factor: pcie + ids: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + - d63c8b0d-acb9-4c87-b4f7-656ecea5b02a + memory: 48 + priority: 60 + summary: GPU Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/GpuBulkUpdate" + multipart/form-data: + schema: + $ref: "#/components/schemas/GpuBulkUpdate" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GpuBulkUpdate" + examples: + GPUBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: GPU Bulk Update Response + description: "" + /v1/inventory/gpus/stats/: + get: + operationId: inventory_gpus_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + "200": + description: No response body + /v1/inventory/instances/: + get: + operationId: inventory_instances_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: query + name: cluster + schema: + type: string + format: uuid + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: instance_id + schema: + type: string + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for instances by cluster, id, instance_id, name, state, tags + schema: + type: string + - in: query + name: state + schema: + type: string + enum: + - running + - starting + - stopped + - stopping + - unknown + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedInstanceList" + examples: + InstanceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: "2024-04-01T06:14:32.602Z" + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: "2024-05-03T17:03:45.380Z" + name: My GPU Cluster + state: running + state_modified: "2024-05-03T17:03:45.380Z" + tags: + - gpu + summary: Instance Response + description: "" + post: + operationId: inventory_instances_create + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Instance" + examples: + InstanceRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Instance" + multipart/form-data: + schema: + $ref: "#/components/schemas/Instance" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/Instance" + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: "2024-04-01T06:14:32.602Z" + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: "2024-05-03T17:03:45.380Z" + name: My GPU Cluster + state: running + state_modified: "2024-05-03T17:03:45.380Z" + tags: + - gpu + summary: Instance Response + description: "" + /v1/inventory/instances/{id}/: + get: + operationId: inventory_instances_retrieve + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Instance" + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: "2024-04-01T06:14:32.602Z" + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: "2024-05-03T17:03:45.380Z" + name: My GPU Cluster + state: running + state_modified: "2024-05-03T17:03:45.380Z" + tags: + - gpu + summary: Instance Response + description: "" + put: + operationId: inventory_instances_update + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Instance" + examples: + InstanceRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Instance" + multipart/form-data: + schema: + $ref: "#/components/schemas/Instance" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Instance" + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: "2024-04-01T06:14:32.602Z" + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: "2024-05-03T17:03:45.380Z" + name: My GPU Cluster + state: running + state_modified: "2024-05-03T17:03:45.380Z" + tags: + - gpu + summary: Instance Response + description: "" + patch: + operationId: inventory_instances_partial_update + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Instance" + examples: + InstanceRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Instance" + multipart/form-data: + schema: + $ref: "#/components/schemas/Instance" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Instance" + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: "2024-04-01T06:14:32.602Z" + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: "2024-05-03T17:03:45.380Z" + name: My GPU Cluster + state: running + state_modified: "2024-05-03T17:03:45.380Z" + tags: + - gpu + summary: Instance Response + description: "" + delete: + operationId: inventory_instances_destroy + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + "204": + description: No response body + /v1/inventory/instances/{id}/history/: + get: + operationId: inventory_instances_history_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedModelChangeList" + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: "2025-01-29T13:20:39.821Z" + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: "" + /v1/inventory/instances/bulk/: + patch: + operationId: inventory_instances_bulk_partial_update + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/InstanceBulkUpdate" + examples: + InstanceBulkUpdateRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + ids: + - 899d8680-454a-41f3-af99-9e0497ac955d + - 3280c16f-0e3e-4897-b8ba-7f66d40281bf + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/InstanceBulkUpdate" + multipart/form-data: + schema: + $ref: "#/components/schemas/InstanceBulkUpdate" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/InstanceBulkUpdate" + examples: + InstanceBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Instance Bulk Update Response + description: "" + /v1/inventory/locations/: + get: + operationId: inventory_locations_list + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "provider").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: region + schema: + type: string + - name: search + required: false + in: query + description: Search for locations by id, name, provider name, region + schema: + type: string + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedLocationList" + examples: + LocationResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: "2024-04-01T06:14:32.602Z" + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: "2024-05-03T17:03:45.380Z" + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: "" + post: + operationId: inventory_locations_create + tags: + - inventory/locations + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Location" + examples: + LocationRequest: + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Location" + multipart/form-data: + schema: + $ref: "#/components/schemas/Location" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/Location" + examples: + LocationResponse: + value: + created: "2024-04-01T06:14:32.602Z" + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: "2024-05-03T17:03:45.380Z" + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: "" + /v1/inventory/locations/{id}/: + get: + operationId: inventory_locations_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "provider").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Location" + examples: + LocationResponse: + value: + created: "2024-04-01T06:14:32.602Z" + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: "2024-05-03T17:03:45.380Z" + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: "" + put: + operationId: inventory_locations_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + tags: + - inventory/locations + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Location" + examples: + LocationRequest: + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Location" + multipart/form-data: + schema: + $ref: "#/components/schemas/Location" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Location" + examples: + LocationResponse: + value: + created: "2024-04-01T06:14:32.602Z" + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: "2024-05-03T17:03:45.380Z" + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: "" + patch: + operationId: inventory_locations_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + tags: + - inventory/locations + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Location" + examples: + LocationRequest: + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Location" + multipart/form-data: + schema: + $ref: "#/components/schemas/Location" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Location" + examples: + LocationResponse: + value: + created: "2024-04-01T06:14:32.602Z" + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: "2024-05-03T17:03:45.380Z" + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: "" + delete: + operationId: inventory_locations_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + "204": + description: No response body + /v1/inventory/locations/{id}/history/: + get: + operationId: inventory_locations_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedModelChangeList" + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: "2025-01-29T13:20:39.821Z" + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: "" + /v1/inventory/nodes/: + get: + operationId: inventory_nodes_list + parameters: + - in: query + name: bmc_ip + schema: + type: string + - in: query + name: bmc_mac + schema: + type: string + - in: query + name: bmc_password + schema: + type: string + - in: query + name: bmc_user + schema: + type: string + - in: query + name: cluster + schema: + type: string + format: uuid + - in: query + name: cpu + schema: + type: integer + - in: query + name: cpu_manufacturer + schema: + type: + - string + - "null" + enum: + - amd + - arm + - intel + description: |- + Manufacturer of the node's CPU + + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + - in: query + name: cpu_model + schema: + type: string + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "location.provider"). Separate multiple fields with a comma (ex: "location,oem")' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: garage_id + schema: + type: string + - in: query + name: gpu + schema: + type: array + items: + type: string + format: uuid + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: gpu_alias + schema: + type: string + description: Alias for GPU plan (i.e. installed GPU type and count) + - in: query + name: gpu_count + schema: + type: integer + - in: query + name: gpu_model + schema: + type: string + description: Model of GPU(s) installed + - in: query + name: gpu_vbios + schema: + type: string + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: location + schema: + type: string + format: uuid + - in: query + name: memory + schema: + type: integer + - in: query + name: mgmt_ip + schema: + type: string + - in: query + name: mgmt_mac + schema: + type: string + - in: query + name: min_gpu_count + schema: + type: integer + description: Only include nodes that have a gpu_count greater than or equal to this value + - in: query + name: network_type + schema: + type: string + enum: + - ethernet + - infiniband + description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + - in: query + name: oem + schema: + type: string + format: uuid + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: provider_node_id + schema: + type: string + - in: query + name: rack + schema: + type: string + - in: query + name: rack_unit + schema: + type: integer + - name: search + required: false + in: query + description: Search for nodes by bmc_ip, bmc_mac, bmc_password, bmc_user, cpu_manufacturer, cpu_model, garage_id, gpu_alias, gpu model, gpu_vbios, id, location name, location provider name, memory, mgmt_ip, mgmt_mac, network_type, nic_prefixes, notes, oem name, provider_node_id, rack, rack_unit, storage, system_arch + schema: + type: string + - in: query + name: system_arch + schema: + type: string + enum: + - amd64 + - arm64 + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + - in: query + name: tee + schema: + type: boolean + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedNodeList" + examples: + NodeResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: "2024-04-01T06:14:32.602Z" + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: "2024-05-03T17:03:45.380Z" + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: "" + post: + operationId: inventory_nodes_create + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Node" + examples: + NodeRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Node" + multipart/form-data: + schema: + $ref: "#/components/schemas/Node" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/Node" + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: "2024-04-01T06:14:32.602Z" + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: "2024-05-03T17:03:45.380Z" + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: "" + /v1/inventory/nodes/{id}/: + get: + operationId: inventory_nodes_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "location.provider"). Separate multiple fields with a comma (ex: "location,oem")' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Node" + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: "2024-04-01T06:14:32.602Z" + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: "2024-05-03T17:03:45.380Z" + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: "" + put: + operationId: inventory_nodes_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Node" + examples: + NodeRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Node" + multipart/form-data: + schema: + $ref: "#/components/schemas/Node" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Node" + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: "2024-04-01T06:14:32.602Z" + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: "2024-05-03T17:03:45.380Z" + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: "" + patch: + operationId: inventory_nodes_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Node" + examples: + NodeRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Node" + multipart/form-data: + schema: + $ref: "#/components/schemas/Node" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Node" + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: "2024-04-01T06:14:32.602Z" + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: "2024-05-03T17:03:45.380Z" + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: "" + delete: + operationId: inventory_nodes_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + "204": + description: No response body + /v1/inventory/nodes/{id}/history/: + get: + operationId: inventory_nodes_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedModelChangeList" + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: "2025-01-29T13:20:39.821Z" + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: "" + /v1/inventory/nodes/bulk/: + post: + operationId: inventory_nodes_bulk_create + description: Create nodes in bulk via CSV file upload + tags: + - inventory/nodes + requestBody: + content: + multipart/form-data: + schema: + type: object + properties: + csv_file: + type: string + format: binary + writeOnly: true + required: + - csv_file + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/NodeBulk" + description: "" + patch: + operationId: inventory_nodes_bulk_partial_update + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/NodeBulkUpdate" + examples: + NodeBulkUpdateRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + ids: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + - 6fcf07f8-d821-48cf-b20e-b6eb65db9387 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Bulk Update Request + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/NodeBulkUpdate" + examples: + NodeBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Node Bulk Update Response + description: "" + /v1/inventory/oems/: + get: + operationId: inventory_oems_list + parameters: + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for oems by id, name + schema: + type: string + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedOEMList" + examples: + OEMResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: "2024-04-01T06:14:32.602Z" + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: "2024-05-03T17:03:45.380Z" + name: My OEM + summary: OEM Response + description: "" + post: + operationId: inventory_oems_create + tags: + - inventory/oems + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/OEM" + examples: + OEMRequest: + value: + name: My OEM + summary: OEM Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/OEM" + multipart/form-data: + schema: + $ref: "#/components/schemas/OEM" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/OEM" + examples: + OEMResponse: + value: + created: "2024-04-01T06:14:32.602Z" + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: "2024-05-03T17:03:45.380Z" + name: My OEM + summary: OEM Response + description: "" + /v1/inventory/oems/{id}/: + get: + operationId: inventory_oems_retrieve + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OEM" + examples: + OEMResponse: + value: + created: "2024-04-01T06:14:32.602Z" + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: "2024-05-03T17:03:45.380Z" + name: My OEM + summary: OEM Response + description: "" + put: + operationId: inventory_oems_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/OEM" + examples: + OEMRequest: + value: + name: My OEM + summary: OEM Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/OEM" + multipart/form-data: + schema: + $ref: "#/components/schemas/OEM" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OEM" + examples: + OEMResponse: + value: + created: "2024-04-01T06:14:32.602Z" + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: "2024-05-03T17:03:45.380Z" + name: My OEM + summary: OEM Response + description: "" + patch: + operationId: inventory_oems_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/OEM" + examples: + OEMRequest: + value: + name: My OEM + summary: OEM Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/OEM" + multipart/form-data: + schema: + $ref: "#/components/schemas/OEM" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OEM" + examples: + OEMResponse: + value: + created: "2024-04-01T06:14:32.602Z" + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: "2024-05-03T17:03:45.380Z" + name: My OEM + summary: OEM Response + description: "" + delete: + operationId: inventory_oems_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + "204": + description: No response body + /v1/inventory/oems/{id}/history/: + get: + operationId: inventory_oems_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedModelChangeList" + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: "2025-01-29T13:20:39.821Z" + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: "" + /v1/inventory/providers/: + get: + operationId: inventory_providers_list + parameters: + - in: query + name: display_name + schema: + type: string + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: instance_limit + schema: + type: integer + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: priority + schema: + type: integer + - name: search + required: false + in: query + description: Search for providers by display_name, id, name + schema: + type: string + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedProviderList" + examples: + ProviderResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: "2024-04-01T06:14:32.602Z" + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: "2024-05-03T17:03:45.380Z" + name: my_provider + priority: 50 + summary: Provider Response + description: "" + post: + operationId: inventory_providers_create + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Provider" + examples: + ProviderRequest: + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + summary: Provider Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Provider" + multipart/form-data: + schema: + $ref: "#/components/schemas/Provider" + required: true + security: + - TokenAuthentication: [] + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/Provider" + examples: + ProviderResponse: + value: + created: "2024-04-01T06:14:32.602Z" + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: "2024-05-03T17:03:45.380Z" + name: my_provider + priority: 50 + summary: Provider Response + description: "" + /v1/inventory/providers/{id}/: + get: + operationId: inventory_providers_retrieve + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Provider" + examples: + ProviderResponse: + value: + created: "2024-04-01T06:14:32.602Z" + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: "2024-05-03T17:03:45.380Z" + name: my_provider + priority: 50 + summary: Provider Response + description: "" + put: + operationId: inventory_providers_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Provider" + examples: + ProviderRequest: + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + summary: Provider Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Provider" + multipart/form-data: + schema: + $ref: "#/components/schemas/Provider" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Provider" + examples: + ProviderResponse: + value: + created: "2024-04-01T06:14:32.602Z" + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: "2024-05-03T17:03:45.380Z" + name: my_provider + priority: 50 + summary: Provider Response + description: "" + patch: + operationId: inventory_providers_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Provider" + examples: + ProviderRequest: + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + summary: Provider Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Provider" + multipart/form-data: + schema: + $ref: "#/components/schemas/Provider" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Provider" + examples: + ProviderResponse: + value: + created: "2024-04-01T06:14:32.602Z" + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: "2024-05-03T17:03:45.380Z" + name: my_provider + priority: 50 + summary: Provider Response + description: "" + delete: + operationId: inventory_providers_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + "204": + description: No response body + /v1/inventory/providers/{id}/history/: + get: + operationId: inventory_providers_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedModelChangeList" + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: "2025-01-29T13:20:39.821Z" + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: "" + /v1/inventory/providers/bulk/: + patch: + operationId: inventory_providers_bulk_partial_update + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ProviderBulkUpdate" + examples: + ProviderBulkUpdateRequest: + value: + display_name: My Provider + ids: + - f8bd1b72-c213-43ec-82ad-a56a44757a11 + - 5b528083-ab61-42dd-a6a1-90aa9babb014 + instance_limit: 250 + priority: 50 + summary: Provider Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/ProviderBulkUpdate" + multipart/form-data: + schema: + $ref: "#/components/schemas/ProviderBulkUpdate" + required: true + security: + - TokenAuthentication: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ProviderBulkUpdate" + examples: + ProviderBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Provider Bulk Update Response + description: "" + /v1/inventory/providers/stats/: + get: + operationId: inventory_providers_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + "200": + description: No response body +components: + schemas: + AuthLogin: + type: object + properties: + auth_code: + type: string + password: + type: string + username: + type: string + AuthRedirect: + type: object + properties: + redirect: + type: string + format: uri + required: + - redirect + AuthToken: + type: object + properties: + token: + type: string + readOnly: true + username: + type: string + readOnly: true + required: + - token + - username + BlankEnum: + enum: + - "" + x-enum-varnames: + - Blank + CategoryEnum: + enum: + - AI + - Clara + - Data Science + - 3D Design Collaboration and Simulation + - Developer + - Infrastructure Optimization + type: string + description: |- + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + x-enum-varnames: + - CategoryAI + - CategoryClara + - CategoryDataScience + - Category3DDesignCollaborationAndSimulation + - CategoryDeveloper + - CategoryInfrastructureOptimization + Cluster: + type: object + properties: + available: + type: boolean + readOnly: true + description: Is the cluster currently available for provisioning? + bastion_name: + type: + - string + - "null" + description: Name of the bastion assigned to the cluster + maxLength: 32 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + enabled: + type: boolean + description: Is the cluster administratively enabled? + experience: + type: + - string + - "null" + format: uuid + description: Experience provisioned onto this cluster + free_by: + type: + - string + - "null" + format: date-time + description: Timestamp of when the cluster will next be available for use + gpus: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + x-go-json-tag: "gpus,omitempty" + gpu_alias: + type: string + readOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + readOnly: true + id: + type: string + format: uuid + readOnly: true + instances: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Instance" + x-go-json-tag: "instance,omitempty" + x-go-json-tag: "instances,omitempty" + last_used: + type: + - string + - "null" + format: date-time + readOnly: true + description: Timestamp of when the cluster was last in use + maintenance: + type: boolean + description: Is the cluster in maintenance mode? + mgmt_ip: + type: string + description: Management IP address + mgmt_mac: + type: + - string + - "null" + description: Management MAC address + maxLength: 17 + minLength: 17 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + netmask: + type: + - integer + - "null" + maximum: 32 + minimum: 0 + description: The subnet mask of the cluster's public IP address in CIDR notation + node_count: + type: integer + readOnly: true + nodes: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Node" + x-go-json-tag: "node,omitempty" + x-go-json-tag: "nodes,omitempty" + notes: + type: + - string + - "null" + description: Administrative comments about the cluster + persist: + type: boolean + description: Is the cluster exempt from provisioning_state timeouts? Can be used to ensure the cluster persists after a provisioning failure. + provider_capacity: + type: boolean + readOnly: true + description: Does the provider have capacity to provision this cluster? + provision_user: + type: + - string + - "null" + description: Username used for provisioning this cluster + maxLength: 64 + provisioning_attempts: + type: integer + maximum: 2147483647 + minimum: 0 + description: The number of attempts that have been made to provision this cluster. Automatically resets to 0 after successful provisioning. + provisioning_state: + allOf: + - $ref: "#/components/schemas/ProvisioningStateEnum" + description: |- + Is the cluster currently provisioned? + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + public_address: + type: + - string + - "null" + description: Public IP address or fully-qualified domain name of this cluster + maxLength: 255 + request_id: + type: + - string + - "null" + description: "The request ID for the lab that is currently provisioned on this cluster (ex: TRY-1234)" + maxLength: 32 + reservation: + type: boolean + description: Is the cluster a static reservation from its provider? + tenant_ids: + type: array + items: + type: string + format: uuid + readOnly: true + description: Tenant UUID(s) that have been generated for this cluster during provisioning + vlan_id: + type: integer + maximum: 4094 + minimum: 1 + description: VLAN number + workshop: + type: boolean + description: Is the cluster set aside for use in a workshop? + workshop_id: + type: + - string + - "null" + description: Identifier of the workshop this cluster is set aside for + maxLength: 64 + required: + - available + - created + - deployment + - gpus + - id + - instances + - last_used + - modified + - provider_capacity + - tenant_ids + ClusterBulkUpdate: + type: object + properties: + available: + type: boolean + readOnly: true + writeOnly: true + description: Is the cluster currently available for provisioning? + bastion_name: + type: + - string + - "null" + writeOnly: true + description: Name of the bastion assigned to the cluster + maxLength: 32 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + enabled: + type: boolean + writeOnly: true + description: Is the cluster administratively enabled? + experience: + type: + - string + - "null" + format: uuid + writeOnly: true + description: Experience provisioned onto this cluster + free_by: + type: + - string + - "null" + format: date-time + writeOnly: true + description: Timestamp of when the cluster will next be available for use + gpus: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + x-go-json-tag: "gpus,omitempty" + gpu_alias: + type: string + readOnly: true + writeOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + readOnly: true + writeOnly: true + id: + type: string + format: uuid + readOnly: true + writeOnly: true + instances: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Instance" + x-go-json-tag: "instance,omitempty" + x-go-json-tag: "instances,omitempty" + last_used: + type: + - string + - "null" + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the cluster was last in use + maintenance: + type: boolean + writeOnly: true + description: Is the cluster in maintenance mode? + mgmt_ip: + type: string + writeOnly: true + description: Management IP address + mgmt_mac: + type: + - string + - "null" + writeOnly: true + description: Management MAC address + maxLength: 17 + minLength: 17 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + netmask: + type: + - integer + - "null" + maximum: 32 + minimum: 0 + writeOnly: true + description: The subnet mask of the cluster's public IP address in CIDR notation + node_count: + type: integer + readOnly: true + writeOnly: true + nodes: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Node" + x-go-json-tag: "node,omitempty" + x-go-json-tag: "nodes,omitempty" + notes: + type: + - string + - "null" + writeOnly: true + description: Administrative comments about the cluster + persist: + type: boolean + writeOnly: true + description: Is the cluster exempt from provisioning_state timeouts? Can be used to ensure the cluster persists after a provisioning failure. + provider_capacity: + type: boolean + readOnly: true + writeOnly: true + description: Does the provider have capacity to provision this cluster? + provision_user: + type: + - string + - "null" + writeOnly: true + description: Username used for provisioning this cluster + maxLength: 64 + provisioning_attempts: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: The number of attempts that have been made to provision this cluster. Automatically resets to 0 after successful provisioning. + provisioning_state: + allOf: + - $ref: "#/components/schemas/ProvisioningStateEnum" + writeOnly: true + description: |- + Is the cluster currently provisioned? + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + public_address: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Public IP address or fully-qualified domain name of this cluster + maxLength: 255 + request_id: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: "The request ID for the lab that is currently provisioned on this cluster (ex: TRY-1234)" + maxLength: 32 + reservation: + type: boolean + writeOnly: true + description: Is the cluster a static reservation from its provider? + tenant_ids: + type: array + items: + type: string + format: uuid + readOnly: true + writeOnly: true + description: Tenant UUID(s) that have been generated for this cluster during provisioning + vlan_id: + type: integer + maximum: 4094 + minimum: 1 + writeOnly: true + description: VLAN number + workshop: + type: boolean + writeOnly: true + description: Is the cluster set aside for use in a workshop? + workshop_id: + type: + - string + - "null" + writeOnly: true + description: Identifier of the workshop this cluster is set aside for + maxLength: 64 + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - available + - count + - created + - deployment + - gpu_alias + - gpu_count + - gpus + - id + - ids + - instances + - last_used + - modified + - node_count + - provider_capacity + - public_address + - request_id + - result + - tenant_ids + CpuManufacturerEnum: + enum: + - amd + - arm + - intel + type: string + description: |- + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + x-enum-varnames: + - CpuManufacturerAMD + - CpuManufacturerARM + - CpuManufacturerIntel + Deployment: + type: object + properties: + bastion_operating_system: + type: + - string + - "null" + description: Override bastion operating system provisioned and/or configured by Liftoff + maxLength: 32 + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + collection_branch: + type: + - string + - "null" + description: Override the Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - "null" + description: Override the experience branch + maxLength: 255 + expires_at: + type: + - string + - "null" + format: date-time + description: Timestamp when the deployment will be destroyed + flightcontrol_release: + type: + - string + - "null" + description: Override the image tag used for Flight Control + maxLength: 64 + garage_id: + type: + - string + - "null" + description: Require a cluster with nodes in the given garage + maxLength: 128 + gc_branch: + type: + - string + - "null" + description: Override the default Ground Control branch + maxLength: 255 + gpu_alias: + type: + - string + - "null" + description: Require a cluster with the given GPU alias + maxLength: 64 + gpu_count: + type: + - integer + - "null" + maximum: 16 + minimum: 0 + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - "null" + description: Require a cluster with the given GPU model + maxLength: 32 + gpu_os_name: + type: string + gpu_os_release: + type: string + gpu_os_version: + type: string + id: + type: string + format: uuid + readOnly: true + ip_allowlist: + type: array + items: + type: string + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - "null" + maximum: 2147483647 + minimum: 0 + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - "null" + maximum: 16 + minimum: 0 + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - "null" + maximum: 2147483647 + minimum: 0 + description: Require a cluster with the given number of nodes + org_name: + type: string + description: Requester's organization name + overrides: + readOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - "null" + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: string + pipeline: + type: + - integer + - "null" + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - "null" + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + maxLength: 255 + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + platform: + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: "#/components/schemas/PlatformEnum" + - type: "null" + priority: + allOf: + - $ref: "#/components/schemas/PriorityEnum" + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - "null" + description: Require a cluster from the given provider name + maxLength: 64 + public_key: + type: + - string + - "null" + writeOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - "null" + description: Require a cluster located in the given region + maxLength: 64 + request_id: + type: string + description: "Trial request ID (ex: TRY-1234)" + requester_email: + type: string + format: email + description: Email address of the user requesting the experience + maxLength: 254 + requester_name: + type: string + description: Name of the user requesting the experience + maxLength: 255 + retry_count: + type: integer + readOnly: true + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - "null" + format: date-time + description: Timestamp when the requester's sales relationship was created + sales_id: + type: + - string + - "null" + description: Unique identifier for the requester's sales relationship + maxLength: 32 + sales_owner_email: + type: + - string + - "null" + format: email + description: Email address of the sales contact associated with the requester + maxLength: 254 + sales_owner_name: + type: + - string + - "null" + description: Name of the sales contact associated with the requester + maxLength: 255 + services: + type: array + items: + type: string + format: uuid + readOnly: true + state: + allOf: + - $ref: "#/components/schemas/DeploymentState" + readOnly: true + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - "null" + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - "null" + description: Require a cluster with the given workshop ID + maxLength: 64 + workshop_override_password: + type: + - string + - "null" + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + maxLength: 64 + catalog_id: + type: string + description: Unique ID for this experience in the sales catalog. Must be unique. + writeOnly: true + catalog_id_alias: + type: + - string + - "null" + description: "Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique." + writeOnly: true + experience_id: + type: string + format: uuid + writeOnly: true + required: + - created + - id + - modified + - org_name + - overrides + - pipelines + - requester_email + - requester_name + - retry_count + - services + - state + DeploymentBulkUpdate: + type: object + properties: + bastion_operating_system: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Override bastion operating system provisioned and/or configured by Liftoff + cluster: + type: + - string + - "null" + format: uuid + readOnly: true + writeOnly: true + description: The cluster where the experience has been deployed + collection_branch: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Override the Ansible collection branch initialized within the pipeline + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Override the experience branch + expires_at: + type: + - string + - "null" + format: date-time + writeOnly: true + description: Timestamp when the deployment will be destroyed + flightcontrol_release: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Override the image tag used for Flight Control + garage_id: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Require a cluster with nodes in the given garage + gc_branch: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Override the default Ground Control branch + gpu_alias: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Require a cluster with the given GPU alias + gpu_count: + type: + - integer + - "null" + readOnly: true + writeOnly: true + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Require a cluster with the given GPU model + gpu_os_name: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Override the GPU node operating system name + gpu_os_release: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Override the GPU node operating system release + gpu_os_version: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Override the GPU node operating system version + id: + type: string + format: uuid + readOnly: true + writeOnly: true + ip_allowlist: + type: array + items: + type: string + writeOnly: true + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - "null" + readOnly: true + writeOnly: true + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - "null" + readOnly: true + writeOnly: true + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - "null" + readOnly: true + writeOnly: true + description: Require a cluster with the given number of nodes + org_name: + type: string + readOnly: true + writeOnly: true + description: Requester's organization name + overrides: + readOnly: true + writeOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - "null" + readOnly: true + writeOnly: true + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Override the defined persona in the experience + pipeline: + type: + - integer + - "null" + readOnly: true + writeOnly: true + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + writeOnly: true + platform: + readOnly: true + writeOnly: true + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: "#/components/schemas/PlatformEnum" + - type: "null" + priority: + allOf: + - $ref: "#/components/schemas/PriorityEnum" + readOnly: true + writeOnly: true + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Require a cluster from the given provider name + public_key: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Require a cluster located in the given region + request_id: + type: string + readOnly: true + writeOnly: true + description: "Trial request ID (ex: TRY-1234)" + requester_email: + type: string + format: email + readOnly: true + writeOnly: true + description: Email address of the user requesting the experience + requester_name: + type: string + readOnly: true + writeOnly: true + description: Name of the user requesting the experience + retry_count: + type: integer + readOnly: true + writeOnly: true + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - "null" + format: date-time + readOnly: true + writeOnly: true + description: Timestamp when the requester's sales relationship was created + sales_id: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Unique identifier for the requester's sales relationship + sales_owner_email: + type: + - string + - "null" + format: email + readOnly: true + writeOnly: true + description: Email address of the sales contact associated with the requester + sales_owner_name: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Name of the sales contact associated with the requester + services: + type: array + items: + type: string + format: uuid + readOnly: true + writeOnly: true + state: + allOf: + - $ref: "#/components/schemas/DeploymentState" + writeOnly: true + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + readOnly: true + writeOnly: true + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - "null" + readOnly: true + writeOnly: true + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Require a cluster with the given workshop ID + workshop_override_password: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - bastion_operating_system + - cluster + - collection_branch + - count + - created + - experience + - experience_branch + - flightcontrol_release + - garage_id + - gc_branch + - gpu_alias + - gpu_count + - gpu_model + - gpu_os_name + - gpu_os_release + - gpu_os_version + - id + - ids + - lifetime + - min_gpu_count + - modified + - node_count + - org_name + - overrides + - persist_on_failure + - persona + - pipeline + - pipeline_branch + - pipelines + - platform + - priority + - provider_name + - public_key + - region + - request_id + - requester_email + - requester_name + - result + - retry_count + - sales_created_date + - sales_id + - sales_owner_email + - sales_owner_name + - services + - tags + - workshop + - workshop_id + - workshop_override_password + DeploymentInstance: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + instance_id: + type: string + readOnly: true + description: Unique ID for this instance assigned by its provider + name: + type: + - string + - "null" + readOnly: true + description: User-friendly name of this instance + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + state: + allOf: + - $ref: "#/components/schemas/InstanceState" + readOnly: true + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + state_modified: + type: string + format: date-time + readOnly: true + tags: + type: array + items: + type: string + maxLength: 64 + readOnly: true + description: Tags associated with this instance + required: + - created + - id + - instance_id + - modified + - name + - state + - state_modified + - tags + DeploymentKey: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + description: Descriptive name for the SSH public key + maxLength: 64 + public_key: + type: string + writeOnly: true + description: An SSH public key that should be authorized to access the deployment + required: + - created + - deployment + - id + - modified + - name + - public_key + DeploymentPipeline: + type: object + properties: + action: + allOf: + - $ref: "#/components/schemas/DeploymentPipelineActionEnum" + description: |- + Action for the pipeline to run + + * `apply` - apply + * `destroy` - destroy + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + pipeline_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: GitLab pipeline ID + url: + type: string + format: uri + description: URL for the pipeline details + maxLength: 200 + required: + - action + - created + - deployment + - id + - modified + - pipeline_id + - url + DeploymentPipelineActionEnum: + enum: + - apply + - destroy + type: string + description: |- + * `apply` - apply + * `destroy` - destroy + x-enum-varnames: + - DeploymentPipelineActionApply + - DeploymentPipelineActionDestroy + DeploymentService: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + description: Name of the service + maxLength: 32 + url: + type: string + format: uri + description: URL used to reach the service + maxLength: 200 + required: + - created + - deployment + - id + - modified + - name + - url + DeploymentState: + enum: + - destroyed + - destroying + - error + - failed + - ready + - retrying + - starting + - stopped + - stopping + - waiting + type: string + description: |- + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + x-enum-varnames: + - DeploymentStateDestroyed + - DeploymentStateDestroying + - DeploymentStateError + - DeploymentStateFailed + - DeploymentStateReady + - DeploymentStateRetrying + - DeploymentStateStarting + - DeploymentStateStopped + - DeploymentStateStopping + - DeploymentStateWaiting + DeploymentTask: + type: object + properties: + action: + allOf: + - $ref: "#/components/schemas/DeploymentTaskActionEnum" + description: |- + The action the task will perform + + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + retries: + type: integer + readOnly: true + description: Number of times the task has been retried + status: + allOf: + - $ref: "#/components/schemas/StatusEnum" + readOnly: true + description: |- + Current status of the task + + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + status_text: + type: string + readOnly: true + description: Messages related to the current task status + required: + - action + - created + - deployment + - id + - modified + - retries + - status + - status_text + DeploymentTaskActionEnum: + enum: + - start_instances + - stop_instances + type: string + description: |- + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + x-enum-varnames: + - DeploymentTaskActionStartInstances + - DeploymentTaskActionStopInstances + DeploymentUpdate: + type: object + properties: + bastion_operating_system: + type: + - string + - "null" + readOnly: true + description: Override bastion operating system provisioned and/or configured by Liftoff + cluster: + type: + - string + - "null" + format: uuid + readOnly: true + description: The cluster where the experience has been deployed + collection_branch: + type: + - string + - "null" + readOnly: true + description: Override the Ansible collection branch initialized within the pipeline + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - "null" + readOnly: true + description: Override the experience branch + expires_at: + type: + - string + - "null" + format: date-time + description: Timestamp when the deployment will be destroyed + flightcontrol_release: + type: + - string + - "null" + readOnly: true + description: Override the image tag used for Flight Control + garage_id: + type: + - string + - "null" + readOnly: true + description: Require a cluster with nodes in the given garage + gc_branch: + type: + - string + - "null" + readOnly: true + description: Override the default Ground Control branch + gpu_alias: + type: + - string + - "null" + readOnly: true + description: Require a cluster with the given GPU alias + gpu_count: + type: + - integer + - "null" + readOnly: true + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - "null" + readOnly: true + description: Require a cluster with the given GPU model + gpu_os_name: + type: + - string + - "null" + readOnly: true + description: Override the GPU node operating system name + gpu_os_release: + type: + - string + - "null" + readOnly: true + description: Override the GPU node operating system release + gpu_os_version: + type: + - string + - "null" + readOnly: true + description: Override the GPU node operating system version + id: + type: string + format: uuid + readOnly: true + ip_allowlist: + type: array + items: + type: string + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - "null" + readOnly: true + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - "null" + readOnly: true + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - "null" + readOnly: true + description: Require a cluster with the given number of nodes + org_name: + type: string + readOnly: true + description: Requester's organization name + overrides: + readOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - "null" + readOnly: true + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: + - string + - "null" + readOnly: true + description: Override the defined persona in the experience + pipeline: + type: + - integer + - "null" + readOnly: true + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - "null" + readOnly: true + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + platform: + readOnly: true + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: "#/components/schemas/PlatformEnum" + - type: "null" + priority: + allOf: + - $ref: "#/components/schemas/PriorityEnum" + readOnly: true + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - "null" + readOnly: true + description: Require a cluster from the given provider name + public_key: + type: + - string + - "null" + readOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - "null" + readOnly: true + description: Require a cluster located in the given region + request_id: + type: string + readOnly: true + description: "Trial request ID (ex: TRY-1234)" + requester_email: + type: string + format: email + readOnly: true + description: Email address of the user requesting the experience + requester_name: + type: string + readOnly: true + description: Name of the user requesting the experience + retry_count: + type: integer + readOnly: true + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - "null" + format: date-time + readOnly: true + description: Timestamp when the requester's sales relationship was created + sales_id: + type: + - string + - "null" + readOnly: true + description: Unique identifier for the requester's sales relationship + sales_owner_email: + type: + - string + - "null" + format: email + readOnly: true + description: Email address of the sales contact associated with the requester + sales_owner_name: + type: + - string + - "null" + readOnly: true + description: Name of the sales contact associated with the requester + services: + type: array + items: + type: string + format: uuid + readOnly: true + state: + allOf: + - $ref: "#/components/schemas/DeploymentState" + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + readOnly: true + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - "null" + readOnly: true + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - "null" + readOnly: true + description: Require a cluster with the given workshop ID + workshop_override_password: + type: + - string + - "null" + readOnly: true + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + required: + - bastion_operating_system + - cluster + - collection_branch + - created + - experience + - experience_branch + - flightcontrol_release + - garage_id + - gc_branch + - gpu_alias + - gpu_count + - gpu_model + - gpu_os_name + - gpu_os_release + - gpu_os_version + - id + - lifetime + - min_gpu_count + - modified + - node_count + - org_name + - overrides + - persist_on_failure + - persona + - pipeline + - pipeline_branch + - pipelines + - platform + - priority + - provider_name + - public_key + - region + - request_id + - requester_email + - requester_name + - retry_count + - sales_created_date + - sales_id + - sales_owner_email + - sales_owner_name + - services + - tags + - workshop + - workshop_id + - workshop_override_password + DocDeploymentDelete: + type: object + properties: + bastion_operating_system: + type: + - string + - "null" + description: Override bastion operating system provisioned and/or configured by Liftoff + maxLength: 32 + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + collection_branch: + type: + - string + - "null" + description: Override the Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - "null" + description: Override the experience branch + maxLength: 255 + expires_at: + type: + - string + - "null" + format: date-time + description: Timestamp when the deployment will be destroyed + flightcontrol_release: + type: + - string + - "null" + description: Override the image tag used for Flight Control + maxLength: 64 + garage_id: + type: + - string + - "null" + description: Require a cluster with nodes in the given garage + maxLength: 128 + gc_branch: + type: + - string + - "null" + description: Override the default Ground Control branch + maxLength: 255 + gpu_alias: + type: + - string + - "null" + description: Require a cluster with the given GPU alias + maxLength: 64 + gpu_count: + type: + - integer + - "null" + maximum: 16 + minimum: 0 + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - "null" + description: Require a cluster with the given GPU model + maxLength: 32 + gpu_os_name: + type: string + gpu_os_release: + type: string + gpu_os_version: + type: string + id: + type: string + format: uuid + readOnly: true + ip_allowlist: + type: array + items: + type: string + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - "null" + maximum: 2147483647 + minimum: 0 + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - "null" + maximum: 16 + minimum: 0 + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - "null" + maximum: 2147483647 + minimum: 0 + description: Require a cluster with the given number of nodes + org_name: + type: string + description: Requester's organization name + overrides: + readOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - "null" + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: string + pipeline: + type: + - integer + - "null" + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - "null" + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + maxLength: 255 + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + platform: + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: "#/components/schemas/PlatformEnum" + - type: "null" + priority: + allOf: + - $ref: "#/components/schemas/PriorityEnum" + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - "null" + description: Require a cluster from the given provider name + maxLength: 64 + public_key: + type: + - string + - "null" + writeOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - "null" + description: Require a cluster located in the given region + maxLength: 64 + request_id: + type: string + description: "Trial request ID (ex: TRY-1234)" + requester_email: + type: string + format: email + description: Email address of the user requesting the experience + maxLength: 254 + requester_name: + type: string + description: Name of the user requesting the experience + maxLength: 255 + retry_count: + type: integer + readOnly: true + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - "null" + format: date-time + description: Timestamp when the requester's sales relationship was created + sales_id: + type: + - string + - "null" + description: Unique identifier for the requester's sales relationship + maxLength: 32 + sales_owner_email: + type: + - string + - "null" + format: email + description: Email address of the sales contact associated with the requester + maxLength: 254 + sales_owner_name: + type: + - string + - "null" + description: Name of the sales contact associated with the requester + maxLength: 255 + services: + type: array + items: + type: string + format: uuid + readOnly: true + state: + allOf: + - $ref: "#/components/schemas/DeploymentState" + readOnly: true + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - "null" + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - "null" + description: Require a cluster with the given workshop ID + maxLength: 64 + workshop_override_password: + type: + - string + - "null" + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + maxLength: 64 + catalog_id: + type: string + description: Unique ID for this experience in the sales catalog. Must be unique. + writeOnly: true + catalog_id_alias: + type: + - string + - "null" + description: "Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique." + writeOnly: true + experience_id: + type: string + format: uuid + writeOnly: true + required: + - created + - experience + - id + - modified + - org_name + - overrides + - pipelines + - requester_email + - requester_name + - retry_count + - services + - state + Experience: + type: object + properties: + assignee: + type: + - string + - "null" + description: User ID who is responsible for manual provisioning + maxLength: 32 + autoapprove: + type: boolean + description: Can the experience be provisioned without human approval? + autoprovision: + type: boolean + description: Can the experience be provisioned without human intervention? + bootstrap: + type: boolean + description: Can this experience be used to bootstrap another compatible experience? + catalog_id: + type: string + description: Unique ID for this experience in the sales catalog. Must be unique. + maxLength: 32 + catalog_id_alias: + type: + - string + - "null" + description: "Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique." + maxLength: 8 + category: + allOf: + - $ref: "#/components/schemas/CategoryEnum" + description: |- + Functional group that this experience is targetting + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + collection_branch: + type: string + description: Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + description: + type: + - string + - "null" + experience: + type: string + description: Experience name slug + maxLength: 64 + experience_branch: + type: string + description: "Experience branch name used during deployment (default: origin/main)" + maxLength: 255 + fc_platform: + writeOnly: true + description: |- + Fleet Command platform type + + * `docker` - docker + * `k8s` - k8s + oneOf: + - $ref: "#/components/schemas/FcPlatformEnum" + - type: "null" + fc_support: + type: boolean + writeOnly: true + description: Does the experience support Flight Control? + garage_id: + type: + - string + - "null" + description: ID of the garage where nodes for this experience should be selected from + maxLength: 64 + gc_branch: + type: string + description: "Ground Control branch name (default: main)" + maxLength: 255 + gpu_count: + type: integer + maximum: 16 + minimum: 0 + description: Number of GPUs used + gpu_os: + $ref: "#/components/schemas/GpuOs" + id: + type: string + format: uuid + readOnly: true + inactivity_max: + type: integer + maximum: 2147483647 + minimum: 0 + description: "Number of days without user interaction before the experience is torn down (default: 3)" + lifetime: + type: + - integer + - "null" + maximum: 2147483647 + minimum: 0 + description: "Default number of days a provisioned experience should remain active (default: 3). A null lifetime will cause a deployment to remain active indefinitely." + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + maximum: 2147483647 + minimum: 0 + description: Number of Nodes used + persona: + type: string + pipeline: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Pipeline ID used for provisioning + platform: + allOf: + - $ref: "#/components/schemas/PlatformEnum" + description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + provider: + type: + - string + - "null" + format: uuid + description: If set, the experience must be provisioned to the given provider + published: + allOf: + - $ref: "#/components/schemas/PublishedEnum" + description: |- + Is the experience published for use? + + * `draft` - draft + * `no` - no + * `yes` - yes + repo: + type: + - string + - "null" + format: uri + writeOnly: true + description: URL of the repository for provisioning automation + maxLength: 200 + required_gpus: + type: array + items: + type: string + format: uuid + description: 'If set, the experience must be provisioned using one of the given GPU types. GPU requirements are evaluated in the order they are set (ex: ["{l40s_gpu_uuid}", "{a100_gpu_uuid}"] will prefer an l40s).' + sa_lab: + type: boolean + description: Is this a persistent experience for SAs? + system_arch: + allOf: + - $ref: "#/components/schemas/SystemArchEnum" + description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + title: + type: string + vgpu_profile: + description: |- + vGPU profile name used by the experience + + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + oneOf: + - $ref: "#/components/schemas/VgpuProfileEnum" + - type: "null" + required: + - catalog_id + - category + - created + - experience + - gpu_os + - id + - modified + - persona + - pipeline + - platform + - system_arch + - title + ExperienceBulk: + type: object + properties: + csv_file: + type: string + format: uri + writeOnly: true + experiences: + type: array + items: + $ref: "#/components/schemas/Experience" + readOnly: true + required: + - csv_file + - experiences + ExperienceBulkUpdate: + type: object + properties: + assignee: + type: + - string + - "null" + writeOnly: true + description: User ID who is responsible for manual provisioning + maxLength: 32 + autoapprove: + type: boolean + writeOnly: true + description: Can the experience be provisioned without human approval? + autoprovision: + type: boolean + writeOnly: true + description: Can the experience be provisioned without human intervention? + bootstrap: + type: boolean + writeOnly: true + description: Can this experience be used to bootstrap another compatible experience? + catalog_id: + type: string + readOnly: true + writeOnly: true + description: Unique ID for this experience in the sales catalog. Must be unique. + maxLength: 32 + catalog_id_alias: + type: + - string + - "null" + readOnly: true + writeOnly: true + description: "Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique." + maxLength: 8 + category: + allOf: + - $ref: "#/components/schemas/CategoryEnum" + writeOnly: true + description: |- + Functional group that this experience is targetting + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + collection_branch: + type: string + writeOnly: true + description: Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + description: + type: + - string + - "null" + writeOnly: true + experience: + type: string + writeOnly: true + description: Experience name slug + maxLength: 64 + experience_branch: + type: string + writeOnly: true + description: "Experience branch name used during deployment (default: origin/main)" + maxLength: 255 + fc_platform: + writeOnly: true + description: |- + Fleet Command platform type + + * `docker` - docker + * `k8s` - k8s + oneOf: + - $ref: "#/components/schemas/FcPlatformEnum" + - type: "null" + fc_support: + type: boolean + writeOnly: true + description: Does the experience support Flight Control? + garage_id: + type: + - string + - "null" + writeOnly: true + description: ID of the garage where nodes for this experience should be selected from + maxLength: 64 + gc_branch: + type: string + writeOnly: true + description: "Ground Control branch name (default: main)" + maxLength: 255 + gpu_count: + type: integer + maximum: 16 + minimum: 0 + writeOnly: true + description: Number of GPUs used + gpu_os: + allOf: + - $ref: "#/components/schemas/GpuOs" + writeOnly: true + id: + type: string + format: uuid + readOnly: true + writeOnly: true + inactivity_max: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: "Number of days without user interaction before the experience is torn down (default: 3)" + lifetime: + type: + - integer + - "null" + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: "Default number of days a provisioned experience should remain active (default: 3). A null lifetime will cause a deployment to remain active indefinitely." + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: Number of Nodes used + persona: + type: string + writeOnly: true + pipeline: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + writeOnly: true + description: Pipeline ID used for provisioning + platform: + allOf: + - $ref: "#/components/schemas/PlatformEnum" + writeOnly: true + description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + provider: + type: + - string + - "null" + format: uuid + writeOnly: true + description: If set, the experience must be provisioned to the given provider + published: + allOf: + - $ref: "#/components/schemas/PublishedEnum" + writeOnly: true + description: |- + Is the experience published for use? + + * `draft` - draft + * `no` - no + * `yes` - yes + repo: + type: + - string + - "null" + format: uri + writeOnly: true + description: URL of the repository for provisioning automation + maxLength: 200 + required_gpus: + type: array + items: + type: string + format: uuid + writeOnly: true + description: 'If set, the experience must be provisioned using one of the given GPU types. GPU requirements are evaluated in the order they are set (ex: ["{l40s_gpu_uuid}", "{a100_gpu_uuid}"] will prefer an l40s).' + sa_lab: + type: boolean + writeOnly: true + description: Is this a persistent experience for SAs? + system_arch: + allOf: + - $ref: "#/components/schemas/SystemArchEnum" + writeOnly: true + description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + title: + type: string + writeOnly: true + vgpu_profile: + writeOnly: true + description: |- + vGPU profile name used by the experience + + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + oneOf: + - $ref: "#/components/schemas/VgpuProfileEnum" + - type: "null" + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - catalog_id + - catalog_id_alias + - category + - count + - created + - experience + - gpu_os + - id + - ids + - modified + - persona + - pipeline + - platform + - result + - system_arch + - title + FcPlatformEnum: + enum: + - docker + - k8s + type: string + description: |- + * `docker` - docker + * `k8s` - k8s + x-enum-varnames: + - FcPlatformDocker + - FcPlatformK8s + FormFactorEnum: + enum: + - pcie + - sxm + type: string + description: |- + * `pcie` - PCIe + * `sxm` - sxm + x-enum-varnames: + - FormFactorPCIe + - FormFactorSXM + Gpu: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + form_factor: + allOf: + - $ref: "#/components/schemas/FormFactorEnum" + default: pcie + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - sxm + id: + type: string + format: uuid + readOnly: true + memory: + type: integer + maximum: 32768 + minimum: 0 + default: 0 + description: Total GPU memory (in GB) + model: + type: string + description: GPU model name + maxLength: 32 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + readOnly: true + priority: + type: integer + maximum: 100 + minimum: 0 + description: Weighted preference to use in selecting a GPU for a deployment. A higher priority means the GPU is in higher demand. Lower priority values will be preferred over higher ones during cluster selection. + required: + - created + - id + - model + - modified + GpuBulkUpdate: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + form_factor: + allOf: + - $ref: "#/components/schemas/FormFactorEnum" + writeOnly: true + default: pcie + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - sxm + id: + type: string + format: uuid + readOnly: true + writeOnly: true + memory: + type: integer + maximum: 32768 + minimum: 0 + writeOnly: true + default: 0 + description: Total GPU memory (in GB) + model: + type: string + writeOnly: true + description: GPU model name + maxLength: 32 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + readOnly: true + writeOnly: true + priority: + type: integer + maximum: 100 + minimum: 0 + writeOnly: true + description: Weighted preference to use in selecting a GPU for a deployment. A higher priority means the GPU is in higher demand. Lower priority values will be preferred over higher ones during cluster selection. + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - count + - created + - id + - ids + - model + - modified + - node_count + - result + GpuOs: + type: object + properties: + name: + type: string + release: + type: string + version: + type: string + required: + - name + - release + - version + GpuOsChoice: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: integer + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + description: "Name of the OS to be provisioned onto GPU Node(s) (ex: ubuntu)" + maxLength: 16 + release: + type: string + description: "Release name of the OS to be provisioned onto GPU Node(s) (ex: jammy)" + maxLength: 16 + version: + type: string + description: "Version number of the OS to be provisioned onto GPU Node(s) (ex: 22.04)" + maxLength: 8 + required: + - created + - id + - modified + - name + - release + - version + Instance: + type: object + properties: + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + instance_id: + type: string + description: Unique ID for this instance assigned by its provider + maxLength: 64 + name: + type: + - string + - "null" + description: User-friendly name of this instance + maxLength: 64 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + state: + allOf: + - $ref: "#/components/schemas/InstanceState" + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + state_modified: + type: string + format: date-time + readOnly: true + tags: + type: array + items: + type: string + maxLength: 64 + description: Tags associated with this instance + required: + - cluster + - created + - id + - instance_id + - modified + - state_modified + InstanceBulkUpdate: + type: object + properties: + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + writeOnly: true + instance_id: + type: string + readOnly: true + writeOnly: true + description: Unique ID for this instance assigned by its provider + maxLength: 64 + name: + type: + - string + - "null" + writeOnly: true + description: User-friendly name of this instance + maxLength: 64 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + state: + allOf: + - $ref: "#/components/schemas/InstanceState" + writeOnly: true + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + state_modified: + type: string + format: date-time + readOnly: true + writeOnly: true + tags: + type: array + items: + type: string + maxLength: 64 + writeOnly: true + description: Tags associated with this instance + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - cluster + - count + - created + - id + - ids + - instance_id + - modified + - result + - state_modified + InstanceState: + enum: + - running + - starting + - stopped + - stopping + - unknown + type: string + description: |- + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + x-enum-varnames: + - InstanceStateRunning + - InstanceStateStarting + - InstanceStateStopped + - InstanceStateStopping + - InstanceStateUnknown + Location: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 64 + provider: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Provider" + x-go-json-tag: "provider,omitempty" + region: + type: + - string + - "null" + description: Name of the region the location is in + maxLength: 64 + required: + - created + - id + - modified + - name + - provider + Logout: + type: object + properties: + result: + type: string + readOnly: true + default: Successfully logged out. + required: + - result + ModelChange: + type: object + properties: + change_type: + type: string + readOnly: true + changes: + type: array + items: + type: object + properties: + field: + type: string + new_value: + oneOf: + - type: string + - type: boolean + - type: integer + nullable: true + old_value: + oneOf: + - type: string + - type: boolean + - type: integer + nullable: true + required: + - field + - new_value + - old_value + readOnly: true + created: + type: string + format: date-time + id: + type: integer + username: + type: string + required: + - change_type + - changes + - created + - id + - username + NetworkTypeEnum: + enum: + - ethernet + - infiniband + type: string + description: |- + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + x-enum-varnames: + - NetworkTypeEthernet + - NetworkTypeInfiniband + Node: + type: object + properties: + bmc_ip: + type: + - string + - "null" + description: IP address of the BMC + bmc_mac: + type: + - string + - "null" + description: MAC address of the BMC + maxLength: 17 + minLength: 17 + bmc_password: + type: + - string + - "null" + description: Password for the BMC + maxLength: 32 + bmc_user: + type: + - string + - "null" + description: Username for the BMC + maxLength: 64 + cluster: + type: + - string + - "null" + format: uuid + description: UUID of the node's parent cluster + cpu: + type: integer + maximum: 1024 + minimum: 0 + description: Number of CPU cores installed + cpu_manufacturer: + description: |- + Manufacturer of the node's CPU + + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + oneOf: + - $ref: "#/components/schemas/CpuManufacturerEnum" + - type: "null" + cpu_model: + type: + - string + - "null" + description: Model information for the node's CPU + maxLength: 64 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + garage_id: + type: + - string + - "null" + description: ID for the garage where a node is parked when unprovisioned + maxLength: 128 + gpu: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + gpu_alias: + type: string + readOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + maximum: 16 + minimum: 0 + description: Number of GPUs installed + gpu_model: + type: string + readOnly: true + description: Model of GPU(s) installed + gpu_vbios: + type: + - string + - "null" + description: VBIOS version used by installed GPU(s) + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + location: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Location" + x-go-json-tag: "location,omitempty" + memory: + type: integer + maximum: 32768 + minimum: 0 + description: Amount of RAM installed (in GB) + mgmt_ip: + type: string + description: Management IP address + mgmt_mac: + type: + - string + - "null" + description: Management MAC address + maxLength: 17 + minLength: 17 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + network_type: + allOf: + - $ref: "#/components/schemas/NetworkTypeEnum" + description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + nic_prefixes: + type: array + items: + type: string + maxLength: 15 + description: Prefixes for the node's network interface(s) + notes: + type: + - string + - "null" + description: Administrative comments about the node + oem: + type: + - string + - "null" + format: uuid + description: UUID of the node's OEM + provider_node_id: + type: + - string + - "null" + description: Unique ID for this node assigned by its provider + maxLength: 128 + rack: + type: + - string + - "null" + description: Physical rack identifier + maxLength: 32 + rack_unit: + type: + - integer + - "null" + maximum: 52 + minimum: 0 + description: The rack unit (RU) within the rack where the node is installed + storage: + type: array + items: + $ref: "#/components/schemas/NodeStorage" + minItems: 1 + system_arch: + allOf: + - $ref: "#/components/schemas/SystemArchEnum" + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + tee: + type: boolean + description: Does the node support Trusted Execution Environment (TEE)? + required: + - created + - gpu + - gpu_alias + - gpu_model + - id + - location + - modified + - storage + - system_arch + NodeBulk: + type: object + properties: + csv_file: + type: string + format: uri + writeOnly: true + nodes: + type: array + items: + $ref: "#/components/schemas/Node" + readOnly: true + required: + - csv_file + - nodes + NodeBulkUpdate: + type: object + properties: + bmc_ip: + type: + - string + - "null" + writeOnly: true + description: IP address of the BMC + bmc_mac: + type: + - string + - "null" + writeOnly: true + description: MAC address of the BMC + maxLength: 17 + minLength: 17 + bmc_password: + type: + - string + - "null" + writeOnly: true + description: Password for the BMC + maxLength: 32 + bmc_user: + type: + - string + - "null" + writeOnly: true + description: Username for the BMC + maxLength: 64 + cluster: + type: + - string + - "null" + format: uuid + writeOnly: true + description: UUID of the node's parent cluster + cpu: + type: integer + maximum: 1024 + minimum: 0 + writeOnly: true + description: Number of CPU cores installed + cpu_manufacturer: + writeOnly: true + description: |- + Manufacturer of the node's CPU + + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + oneOf: + - $ref: "#/components/schemas/CpuManufacturerEnum" + - type: "null" + cpu_model: + type: + - string + - "null" + writeOnly: true + description: Model information for the node's CPU + maxLength: 64 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + garage_id: + type: + - string + - "null" + writeOnly: true + description: ID for the garage where a node is parked when unprovisioned + maxLength: 128 + gpu: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + gpu_alias: + type: string + readOnly: true + writeOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + maximum: 16 + minimum: 0 + writeOnly: true + description: Number of GPUs installed + gpu_model: + type: string + readOnly: true + writeOnly: true + description: Model of GPU(s) installed + gpu_vbios: + type: + - string + - "null" + writeOnly: true + description: VBIOS version used by installed GPU(s) + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + writeOnly: true + location: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Location" + x-go-json-tag: "location,omitempty" + memory: + type: integer + maximum: 32768 + minimum: 0 + writeOnly: true + description: Amount of RAM installed (in GB) + mgmt_ip: + type: string + writeOnly: true + description: Management IP address + mgmt_mac: + type: + - string + - "null" + writeOnly: true + description: Management MAC address + maxLength: 17 + minLength: 17 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + network_type: + allOf: + - $ref: "#/components/schemas/NetworkTypeEnum" + writeOnly: true + description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + nic_prefixes: + type: array + items: + type: string + maxLength: 15 + writeOnly: true + description: Prefixes for the node's network interface(s) + notes: + type: + - string + - "null" + writeOnly: true + description: Administrative comments about the node + oem: + type: + - string + - "null" + format: uuid + writeOnly: true + description: UUID of the node's OEM + provider_node_id: + type: + - string + - "null" + writeOnly: true + description: Unique ID for this node assigned by its provider + maxLength: 128 + rack: + type: + - string + - "null" + writeOnly: true + description: Physical rack identifier + maxLength: 32 + rack_unit: + type: + - integer + - "null" + maximum: 52 + minimum: 0 + writeOnly: true + description: The rack unit (RU) within the rack where the node is installed + storage: + type: array + items: + $ref: "#/components/schemas/NodeStorage" + writeOnly: true + minItems: 1 + system_arch: + allOf: + - $ref: "#/components/schemas/SystemArchEnum" + writeOnly: true + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + tee: + type: boolean + writeOnly: true + description: Does the node support Trusted Execution Environment (TEE)? + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - count + - created + - gpu + - gpu_alias + - gpu_model + - id + - ids + - location + - modified + - result + - storage + - system_arch + NodeStorage: + type: object + properties: + size: + type: integer + default: 0 + description: Disk size (in GB) + maximum: 1000000 + minimum: 0 + type: + allOf: + - $ref: "#/components/schemas/TypeEnum" + description: |- + Disk type + + * `nvme` - NVMe + * `ssd` - ssd + required: + - type + NullEnum: + type: "null" + OEM: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 64 + required: + - created + - id + - modified + - name + PaginatedClusterList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/Cluster" + PaginatedDeploymentInstanceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/DeploymentInstance" + PaginatedDeploymentKeyList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/DeploymentKey" + PaginatedDeploymentList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/Deployment" + PaginatedDeploymentPipelineList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/DeploymentPipeline" + PaginatedDeploymentServiceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/DeploymentService" + PaginatedDeploymentTaskList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/DeploymentTask" + PaginatedExperienceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/Experience" + PaginatedGpuList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/Gpu" + PaginatedGpuOsChoiceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/GpuOsChoice" + PaginatedInstanceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/Instance" + PaginatedLocationList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/Location" + PaginatedModelChangeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/ModelChange" + PaginatedNodeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/Node" + PaginatedOEMList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/OEM" + PaginatedPersonaChoiceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/PersonaChoice" + PaginatedProviderList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: "#/components/schemas/Provider" + PasswordChange: + type: object + properties: + username: + type: string + writeOnly: true + password: + type: string + writeOnly: true + new_password: + type: string + writeOnly: true + result: + type: string + readOnly: true + default: Password changed successfully. + required: + - new_password + - password + - result + - username + PersonaChoice: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: integer + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 32 + required: + - created + - id + - modified + - name + PlatformEnum: + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere_horizon + - vsphere7 + - vsphere8 + type: string + description: |- + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + x-enum-varnames: + - PlatformAir + - PlatformFlightDeck + - PlatformKvmBastion + - PlatformLpVmwarePlatformLegacy + - PlatformMinimal + - PlatformOpenshift + - PlatformVsphere + - PlatformVsphereHorizon + - PlatformVsphere7 + - PlatformVsphere8 + PreferredThemeEnum: + enum: + - light + - dark + type: string + description: |- + * `light` - light + * `dark` - dark + x-enum-varnames: + - PreferredThemeLight + - PreferredThemeDark + PriorityEnum: + enum: + - p0 + - p1 + - p2 + - p3 + type: string + description: |- + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + x-enum-varnames: + - PriorityP0 + - PriorityP1 + - PriorityP2 + - PriorityP3 + Profile: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + preferred_theme: + description: |- + Preferred user interface theme + + * `light` - light + * `dark` - dark + oneOf: + - $ref: "#/components/schemas/PreferredThemeEnum" + - type: "null" + username: + type: string + required: + - created + - id + - modified + - username + Provider: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + display_name: + type: + - string + - "null" + description: Human-friendly version of name. Used for display purposes. + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + instance_limit: + type: integer + maximum: 2147483647 + minimum: 0 + description: The maximum number of provisionined instances allowed globally for the provider (0 = unlimited) + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 64 + priority: + type: integer + maximum: 100 + minimum: 0 + description: Weighted preference to use in selecting a provider for a deployment. Higher priority values will be preferred over lower ones. + required: + - created + - id + - modified + - name + ProviderBulkUpdate: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + display_name: + type: + - string + - "null" + writeOnly: true + description: Human-friendly version of name. Used for display purposes. + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + writeOnly: true + instance_limit: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: The maximum number of provisionined instances allowed globally for the provider (0 = unlimited) + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + name: + type: string + readOnly: true + writeOnly: true + maxLength: 64 + priority: + type: integer + maximum: 100 + minimum: 0 + writeOnly: true + description: Weighted preference to use in selecting a provider for a deployment. Higher priority values will be preferred over lower ones. + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - count + - created + - id + - ids + - modified + - name + - result + ProvisioningStateEnum: + enum: + - deployed + - deploying + - destroying + - pending + - ready + - reserved + - unprovisioned + type: string + description: |- + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + x-enum-varnames: + - ProvisioningStateDeployed + - ProvisioningStateDeploying + - ProvisioningStateDestroying + - ProvisioningStatePending + - ProvisioningStateReady + - ProvisioningStateReserved + - ProvisioningStateUnprovisioned + PublishedEnum: + enum: + - draft + - "no" + - "yes" + type: string + description: |- + * `draft` - draft + * `no` - no + * `yes` - yes + x-enum-varnames: + - PublishedDraft + - PublishedNo + - PublishedYes + StatusEnum: + enum: + - completed + - failed + - pending + - processing + - retrying + type: string + description: |- + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + x-enum-varnames: + - StatusCompleted + - StatusFailed + - StatusPending + - StatusProcessing + - StatusRetrying + SystemArchEnum: + enum: + - amd64 + - arm64 + type: string + description: |- + * `amd64` - amd64 + * `arm64` - arm64 + x-enum-varnames: + - SystemArchAMD64 + - SystemArchARM64 + Tenant: + type: object + properties: + id: + type: string + format: uuid + writeOnly: true + required: + - id + TypeEnum: + enum: + - nvme + - ssd + type: string + description: |- + * `nvme` - NVMe + * `ssd` - ssd + x-enum-varnames: + - TypeNVMe + - TypeSSD + VgpuProfileEnum: + enum: + - air + - bright_cluster + - bright-cluster + - flight_deck + - flight-deck + - nvidia_a40-48q + - nvidia_l40s-48q + - nvidia-ai-enterprise + - openshift + - platform_only + - vmware_itadmin + type: string + description: |- + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + x-enum-varnames: + - VgpuProfileAir + - VgpuProfileBrightCluster + - VgpuProfileBrightClusterLegacy + - VgpuProfileFlightDeck + - VgpuProfileFlightDeckLegacy + - VgpuProfileNvidiaA4048QLegacy + - VgpuProfileNvidiaL40s48QLegacy + - VgpuProfileNvidiaAiEnterpriseLegacy + - VgpuProfileOpenshift + - VgpuProfilePlatformOnly + - VgpuProfileVmwareItadmin + securitySchemes: + TokenAuthentication: + type: apiKey + in: header + name: Authorization + description: 'Authenticate with your user''s API token. Be sure to include a prefix of "Token" (ex: "Token xxxxx").' diff --git a/v1/providers/launchpad/swagger-v2.35.4.yaml b/v1/providers/launchpad/swagger-v2.35.4.yaml new file mode 100644 index 0000000..95d9f79 --- /dev/null +++ b/v1/providers/launchpad/swagger-v2.35.4.yaml @@ -0,0 +1,12026 @@ +openapi: 3.1.0 +info: + title: NVIDIA LaunchPad API + version: 2.35.4 + description: RESTful API for interacting with the NVIDIA LaunchPad platform +paths: + /v1/auth/login/: + post: + operationId: auth_login_create + description: Login with either an authorization code or username and password (deprecated) to generate an API token that can be used with all other API endpoints. + tags: + - auth + requestBody: + content: + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/AuthLogin' + multipart/form-data: + schema: + $ref: '#/components/schemas/AuthLogin' + application/json: + schema: + $ref: '#/components/schemas/AuthLogin' + examples: + AuthCode: + value: + auth_code: string + summary: Auth Code + Username&Password(deprecated): + value: + username: string + password: string + summary: Username & Password (deprecated) + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AuthToken' + description: '' + /v1/auth/logout/: + post: + operationId: auth_logout_create + description: Logout from the current session. Your API token will no longer be usable and must be regenerated via the login API. + tags: + - auth + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Logout' + description: '' + /v1/auth/password-change/: + post: + operationId: auth_password_change_create + description: Change your current password + tags: + - auth + requestBody: + content: + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/PasswordChange' + multipart/form-data: + schema: + $ref: '#/components/schemas/PasswordChange' + application/json: + schema: + $ref: '#/components/schemas/PasswordChange' + required: true + security: + - TokenAuthentication: [] + deprecated: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PasswordChange' + description: '' + /v1/auth/redirect/: + get: + operationId: auth_redirect_retrieve + description: Get an HTTP redirect to begin an OAuth login flow. + parameters: + - in: query + name: as_json + schema: + type: boolean + description: If "false" or unset, receive an HTTP 302 with the OAuth URL returned in the Location header. If "true", receive an HTTP 200 with the OAuth URL returned in the JSON payload. + tags: + - auth + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AuthRedirect' + description: '' + '302': + description: No response body + /v1/catalog/deployments/: + get: + operationId: catalog_deployments_list + parameters: + - in: query + name: bastion_operating_system + schema: + type: string + - in: query + name: cluster + schema: + type: string + format: uuid + - in: query + name: cluster_gpus_model + schema: + type: array + items: + type: string + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: collection_branch + schema: + type: string + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: experience + schema: + type: string + format: uuid + - in: query + name: experience_branch + schema: + type: string + - in: query + name: expired + schema: + type: boolean + - in: query + name: expires_at + schema: + type: string + format: date + - in: query + name: expiring + schema: + type: string + description: Include deployments whose expires_at value is within the given range (inclusive), specified as "today", "tomorrow", or "{start}[,end]". Start and end times must be in ISO format. + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: flightcontrol_release + schema: + type: string + - in: query + name: garage_id + schema: + type: string + - in: query + name: gc_branch + schema: + type: string + - in: query + name: gpu_alias + schema: + type: string + - in: query + name: gpu_count + schema: + type: integer + - in: query + name: gpu_model + schema: + type: string + - in: query + name: gpu_os_name + schema: + type: string + - in: query + name: gpu_os_release + schema: + type: string + - in: query + name: gpu_os_version + schema: + type: string + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: node_count + schema: + type: integer + - in: query + name: oem_name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: org_name + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: persist_on_failure + schema: + type: boolean + - in: query + name: persona + schema: + type: string + - in: query + name: pipeline + schema: + type: integer + - in: query + name: pipeline_branch + schema: + type: string + - in: query + name: platform + schema: + type: + - string + - 'null' + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere7 + - vsphere8 + - vsphere_horizon + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + - in: query + name: priority + schema: + type: string + enum: + - p0 + - p1 + - p2 + - p3 + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + - in: query + name: provider_name + schema: + type: string + - in: query + name: region + schema: + type: string + - in: query + name: request_id + schema: + type: string + - in: query + name: requester_email + schema: + type: string + - in: query + name: requester_name + schema: + type: string + - in: query + name: sales_id + schema: + type: string + - in: query + name: sales_owner_email + schema: + type: string + - in: query + name: sales_owner_name + schema: + type: string + - name: search + required: false + in: query + description: Search for deployments by bastion_operating_system, collection_branch, experience_branch, experience catalog_id, experience catalog_id_alias, experience id, experience title, expires_at, flightcontrol_release, garage_id, gc_branch, gpu_alias, gpu_model, gpu_os_name, gpu_os_release, gpu_os_version, id, oem_name, org_name, persona, pipeline_branch, platform, provider_name, region, request_id, requester_email, requester_name, sales_id, sales_owner_email, sales_owner_name, services url, state, tags, workshop_id + schema: + type: string + - in: query + name: state + schema: + type: array + items: + type: string + enum: + - destroyed + - destroying + - error + - failed + - paused + - ready + - retrying + - starting + - stopped + - stopping + - waiting + description: |- + Multiple values may be separated by commas. + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + explode: false + style: form + - in: query + name: workshop + schema: + type: boolean + - in: query + name: workshop_id + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-20 20:20:10.739632+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Response + description: '' + post: + operationId: catalog_deployments_create + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Deployment' + examples: + DeploymentRequest(CatalogIDAlias): + value: + bastion_operating_system: ubuntu_22_04 + catalog_id_alias: LP-15 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + expires_at: 2025-09-20 20:20:10.739632+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Request (Catalog ID Alias) + DeploymentRequest(ExperienceID): + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + experience_id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + expires_at: 2025-09-20 20:20:10.739632+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Request (Experience ID) + DeploymentRequest(CatalogID): + value: + bastion_operating_system: ubuntu_22_04 + catalog_id: aBY3Z000000xBL4NCO + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + expires_at: 2025-09-20 20:20:10.739632+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Request (Catalog ID) + DeploymentRequest(MinimumRequiredFields): + value: + experience_id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + org_name: NVIDIA + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + summary: Deployment Request (Minimum Required Fields) + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Deployment' + multipart/form-data: + schema: + $ref: '#/components/schemas/Deployment' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Deployment' + examples: + SuccessfulResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-20 20:20:10.739632+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Response + description: '' + /v1/catalog/deployments/{deployment_id}/instances/: + get: + operationId: catalog_deployments_instances_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: instance_id + schema: + type: string + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-instances by id, instance_id, name, state, tags + schema: + type: string + - in: query + name: state + schema: + type: string + enum: + - running + - starting + - stopped + - stopping + - unknown + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentInstanceList' + examples: + DeploymentInstanceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: DeploymentInstance Response + description: '' + /v1/catalog/deployments/{deployment_id}/notes/: + get: + operationId: catalog_deployments_notes_list + parameters: + - in: query + name: created_by + schema: + type: integer + - in: query + name: deployment + schema: + type: string + format: uuid + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: modified_by + schema: + type: integer + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-notes by content + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentNoteList' + examples: + DeploymentNoteResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + post: + operationId: catalog_deployments_notes_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteRequest: + value: + content: Hello world + summary: DeploymentNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentNote' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + /v1/catalog/deployments/{deployment_id}/notes/{id}/: + get: + operationId: catalog_deployments_notes_retrieve + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + put: + operationId: catalog_deployments_notes_update + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteRequest: + value: + content: Hello world + summary: DeploymentNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentNote' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + patch: + operationId: catalog_deployments_notes_partial_update + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteRequest: + value: + content: Hello world + summary: DeploymentNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentNote' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + delete: + operationId: catalog_deployments_notes_destroy + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/catalog/deployments/{deployment_id}/pipelines/: + get: + operationId: catalog_deployments_pipelines_list + parameters: + - in: query + name: action + schema: + type: string + enum: + - apply + - destroy + description: |- + Action for the pipeline to run + + * `apply` - apply + * `destroy` - destroy + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: pipeline_id + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-pipelines by action, id, pipeline_id, url + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentPipelineList' + examples: + DeploymentPipelineResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - action: apply + created: '2024-04-01T06:14:32.602Z' + deployment: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + id: 4b9fab90-b441-4896-bb1f-c765fd846307 + modified: '2024-05-03T17:03:45.380Z' + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + summary: DeploymentPipeline Response + description: '' + post: + operationId: catalog_deployments_pipelines_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentPipeline' + examples: + DeploymentPipelineRequest: + value: + action: apply + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + summary: DeploymentPipeline Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentPipeline' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentPipeline' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentPipeline' + examples: + DeploymentPipelineResponse: + value: + action: apply + created: '2024-04-01T06:14:32.602Z' + deployment: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + id: 4b9fab90-b441-4896-bb1f-c765fd846307 + modified: '2024-05-03T17:03:45.380Z' + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + summary: DeploymentPipeline Response + description: '' + /v1/catalog/deployments/{deployment_id}/services/: + get: + operationId: catalog_deployments_services_list + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-services by id, name, url + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentServiceList' + examples: + DeploymentServiceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: deb28859-d04e-4976-88d2-9488d9616bcf + modified: '2024-05-03T17:03:45.380Z' + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + summary: DeploymentService Response + description: '' + post: + operationId: catalog_deployments_services_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentService' + examples: + DeploymentServiceRequest: + value: + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + summary: DeploymentService Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentService' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentService' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentService' + examples: + DeploymentServiceResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: deb28859-d04e-4976-88d2-9488d9616bcf + modified: '2024-05-03T17:03:45.380Z' + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + summary: DeploymentService Response + description: '' + /v1/catalog/deployments/{deployment_id}/ssh-keys/: + get: + operationId: catalog_deployments_ssh_keys_list + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-keys by name + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentKeyList' + examples: + DeploymentKeyResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 597f6c78-6195-4bc7-9db2-f344f71e8b47 + modified: '2024-05-03T17:03:45.380Z' + name: My Key + summary: DeploymentKey Response + description: '' + post: + operationId: catalog_deployments_ssh_keys_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentKey' + examples: + DeploymentKeyRequest: + value: + name: My Key + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + summary: DeploymentKey Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentKey' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentKey' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentKey' + examples: + DeploymentKeyResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 597f6c78-6195-4bc7-9db2-f344f71e8b47 + modified: '2024-05-03T17:03:45.380Z' + name: My Key + summary: DeploymentKey Response + description: '' + /v1/catalog/deployments/{deployment_id}/ssh-keys/{id}/: + delete: + operationId: catalog_deployments_ssh_keys_destroy + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/catalog/deployments/{deployment_id}/tasks/: + get: + operationId: catalog_deployments_tasks_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: query + name: action + schema: + type: string + enum: + - start_instances + - stop_instances + description: |- + The action the task will perform + + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-tasks by action, id, status, status_text + schema: + type: string + - in: query + name: status + schema: + type: string + enum: + - completed + - failed + - pending + - processing + - retrying + description: |- + Current status of the task + + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentTaskList' + examples: + DeploymentTaskResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - action: start_instances + created: '2024-04-01T06:14:32.602Z' + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: '2024-05-03T17:03:45.380Z' + retries: 0 + status: pending + status_text: '' + summary: DeploymentTask Response + description: '' + post: + operationId: catalog_deployments_tasks_create + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentTask' + examples: + DeploymentTaskRequest: + value: + action: start_instances + summary: DeploymentTask Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentTask' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentTask' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentTask' + examples: + DeploymentTaskResponse: + value: + action: start_instances + created: '2024-04-01T06:14:32.602Z' + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: '2024-05-03T17:03:45.380Z' + retries: 0 + status: pending + status_text: '' + summary: DeploymentTask Response + description: '' + /v1/catalog/deployments/{deployment_id}/tasks/{id}/: + get: + operationId: catalog_deployments_tasks_retrieve + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentTask' + examples: + DeploymentTaskResponse: + value: + action: start_instances + created: '2024-04-01T06:14:32.602Z' + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: '2024-05-03T17:03:45.380Z' + retries: 0 + status: pending + status_text: '' + summary: DeploymentTask Response + description: '' + /v1/catalog/deployments/{id}/: + get: + operationId: catalog_deployments_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: expiring + schema: + type: string + description: Include deployments whose expires_at value is within the given range (inclusive), specified as "today", "tomorrow", or "{start}[,end]". Start and end times must be in ISO format. + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Deployment' + examples: + SuccessfulResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-20 20:20:10.739632+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Response + description: '' + put: + operationId: catalog_deployments_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + examples: + DeploymentRequest: + value: + collection_branch: my-branch + experience_branch: main + expires_at: 2025-10-17 20:20:10.739825+00:00 + flightcontrol_release: latest + gc_branch: main + ip_allowlist: + - 192.0.2.1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + state: retrying + tags: + sample: test + summary: Deployment Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + examples: + DeploymentResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-20 20:20:10.739632+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Response + description: '' + patch: + operationId: catalog_deployments_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + examples: + DeploymentRequest: + value: + collection_branch: my-branch + experience_branch: main + expires_at: 2025-10-17 20:20:10.739825+00:00 + flightcontrol_release: latest + gc_branch: main + ip_allowlist: + - 192.0.2.1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + state: retrying + tags: + sample: test + summary: Deployment Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + examples: + DeploymentResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-20 20:20:10.739632+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Response + description: '' + delete: + operationId: catalog_deployments_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DocDeploymentDelete' + examples: + SuccessfulDestroyingResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-20 20:20:10.739632+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + state: destroying + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Destroying Response + description: '' + '204': + description: No response body + /v1/catalog/deployments/{id}/history/: + get: + operationId: catalog_deployments_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/catalog/deployments/bulk/: + patch: + operationId: catalog_deployments_bulk_partial_update + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + examples: + DeploymentBulkUpdateRequest: + value: + collection_branch: my-branch + experience_branch: main + expires_at: 2025-10-17 20:20:10.739825+00:00 + flightcontrol_release: latest + gc_branch: main + ids: + - 5330c898-f3e7-4972-bfd0-1d438e3774d7 + - b29d13e5-5894-4614-af2a-ea3f9be93fc5 + ip_allowlist: + - 192.0.2.1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + state: retrying + tags: + sample: test + summary: Deployment Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + examples: + DeploymentBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Deployment Bulk Update Response + description: '' + /v1/catalog/deployments/stats/: + get: + operationId: catalog_deployments_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body + /v1/catalog/experiences/: + get: + operationId: catalog_experiences_list + parameters: + - in: query + name: assignee + schema: + type: string + - in: query + name: autoapprove + schema: + type: boolean + - in: query + name: autoprovision + schema: + type: boolean + - in: query + name: bootstrap + schema: + type: boolean + - in: query + name: catalog_id + schema: + type: string + - in: query + name: catalog_id_alias + schema: + type: string + - in: query + name: category + schema: + type: array + items: + type: string + enum: + - 3D Design Collaboration and Simulation + - AI + - Clara + - Data Science + - Developer + - Infrastructure Optimization + description: |- + Multiple values may be separated by commas. + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + explode: false + style: form + - in: query + name: collection_branch + schema: + type: string + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "required_gpus").' + - in: query + name: experience + schema: + type: string + - in: query + name: experience_branch + schema: + type: string + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: garage_id + schema: + type: string + - in: query + name: gc_branch + schema: + type: string + - in: query + name: gpu_count + schema: + type: integer + - in: query + name: gpu_os_name + schema: + type: string + - in: query + name: gpu_os_release + schema: + type: string + - in: query + name: gpu_os_version + schema: + type: string + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: node_count + schema: + type: integer + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: persona + schema: + type: string + - in: query + name: pipeline + schema: + type: integer + - in: query + name: platform + schema: + type: string + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere7 + - vsphere8 + - vsphere_horizon + description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: published + schema: + type: array + items: + type: string + enum: + - draft + - 'no' + - 'yes' + description: |- + Multiple values may be separated by commas. + + * `draft` - draft + * `no` - no + * `yes` - yes + explode: false + style: form + - in: query + name: requires_gpu + schema: + type: string + description: Only include experiences that require a given GPU ID or model + - in: query + name: sa_lab + schema: + type: boolean + - name: search + required: false + in: query + description: Search for experiences by assignee, catalog_id, catalog_id_alias, category, collection_branch, description, experience, experience_branch, gc_branch, gpu_os_name, gpu_os_release, gpu_os_version, id, persona, pipeline, platform, provider name, required_gpus model, system_arch, title, vgpu_profile + schema: + type: string + - in: query + name: system_arch + schema: + type: string + enum: + - amd64 + - arm64 + description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + - in: query + name: vgpu_profile + schema: + type: + - string + - 'null' + enum: + - air + - bright-cluster + - bright_cluster + - flight-deck + - flight_deck + - nvidia-ai-enterprise + - nvidia_a40-48q + - nvidia_l40s-48q + - nvidia_rtx_pro_6000_blackwell_dc-4-96q + - nvidia_rtx_pro_6000_blackwell_dc-96q + - openshift + - platform_only + - vmware_itadmin + description: |- + vGPU profile name used by the experience + + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q + * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedExperienceList' + examples: + ExperienceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + post: + operationId: catalog_experiences_create + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Experience' + multipart/form-data: + schema: + $ref: '#/components/schemas/Experience' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + /v1/catalog/experiences/{experience_id}/notes/: + get: + operationId: catalog_experiences_notes_list + parameters: + - in: query + name: created_by + schema: + type: integer + - in: query + name: experience + schema: + type: string + format: uuid + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: modified_by + schema: + type: integer + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for experience-notes by content + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedExperienceNoteList' + examples: + ExperiencetNoteResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + post: + operationId: catalog_experiences_notes_create + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteRequest: + value: + content: Hello world + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + summary: ExperiencetNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ExperienceNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExperienceNote' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + /v1/catalog/experiences/{experience_id}/notes/{id}/: + get: + operationId: catalog_experiences_notes_retrieve + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + put: + operationId: catalog_experiences_notes_update + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteRequest: + value: + content: Hello world + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + summary: ExperiencetNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ExperienceNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExperienceNote' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + patch: + operationId: catalog_experiences_notes_partial_update + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteRequest: + value: + content: Hello world + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + summary: ExperiencetNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ExperienceNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExperienceNote' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + delete: + operationId: catalog_experiences_notes_destroy + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/catalog/experiences/{id}/: + get: + operationId: catalog_experiences_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "required_gpus").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + put: + operationId: catalog_experiences_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Experience' + multipart/form-data: + schema: + $ref: '#/components/schemas/Experience' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + patch: + operationId: catalog_experiences_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Experience' + multipart/form-data: + schema: + $ref: '#/components/schemas/Experience' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + delete: + operationId: catalog_experiences_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/catalog/experiences/{id}/history/: + get: + operationId: catalog_experiences_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/catalog/experiences/bulk/: + post: + operationId: catalog_experiences_bulk_create + description: Create experiences in bulk via CSV file upload + tags: + - catalog/experiences + requestBody: + content: + multipart/form-data: + schema: + type: object + properties: + csv_file: + type: string + format: binary + writeOnly: true + required: + - csv_file + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceBulk' + description: '' + patch: + operationId: catalog_experiences_bulk_partial_update + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceBulkUpdate' + examples: + ExperienceBulkUpdateRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + ids: + - c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + - 3587f151-b02a-46c7-80a4-ac61db6633ed + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Bulk Update Request + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceBulkUpdate' + examples: + ExperienceBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Experience Bulk Update Response + description: '' + /v1/catalog/experiences/stats/: + get: + operationId: catalog_experiences_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body + /v1/catalog/gpu-os-choices/: + get: + operationId: catalog_gpu_os_choices_list + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for gpuoschoices by id, name, release, version + schema: + type: string + tags: + - catalog/gpu-os-choices + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedGpuOsChoiceList' + examples: + GPUOSChoiceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 22 + modified: '2024-05-03T17:03:45.380Z' + name: ubuntu + release: jammy + version: '22.04' + summary: GPU OS Choice Response + description: '' + post: + operationId: catalog_gpu_os_choices_create + tags: + - catalog/gpu-os-choices + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GpuOsChoice' + examples: + GPUOSChoiceRequest: + value: + name: ubuntu + release: jammy + version: '22.04' + summary: GPU OS Choice Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/GpuOsChoice' + multipart/form-data: + schema: + $ref: '#/components/schemas/GpuOsChoice' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/GpuOsChoice' + examples: + GPUOSChoiceResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 22 + modified: '2024-05-03T17:03:45.380Z' + name: ubuntu + release: jammy + version: '22.04' + summary: GPU OS Choice Response + description: '' + /v1/catalog/instance-types/: + get: + operationId: catalog_instance_types_list + parameters: + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - catalog/instance-types + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedInstanceTypeList' + examples: + InstanceTypeResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - capacity: + us-tx-1: 10 + cloud: oci + cpu: 16 + gpu: + count: 1 + family: A100 + interconnection_type: SXM + manufacturer: NVIDIA + memory_gb: 80 + model: A100-80GB + memory_gb: 120 + price: + currency: USD + on_demand_per_hour: 2.5 + regions: + - us-tx-1 + storage: + - size_gb: 1024 + type: ssd + - size_gb: 2048 + type: ssd + system_arch: amd64 + summary: Instance Type Response + description: '' + /v1/catalog/persona-choices/: + get: + operationId: catalog_persona_choices_list + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for personachoices by id, name + schema: + type: string + tags: + - catalog/persona-choices + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedPersonaChoiceList' + examples: + PersonaChoiceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 15 + modified: '2024-05-03T17:03:45.380Z' + name: developer + summary: Persona Choice Response + description: '' + post: + operationId: catalog_persona_choices_create + tags: + - catalog/persona-choices + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PersonaChoice' + examples: + PersonaChoiceRequest: + value: + name: developer + summary: Persona Choice Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/PersonaChoice' + multipart/form-data: + schema: + $ref: '#/components/schemas/PersonaChoice' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/PersonaChoice' + examples: + PersonaChoiceResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 15 + modified: '2024-05-03T17:03:45.380Z' + name: developer + summary: Persona Choice Response + description: '' + /v1/identity/profile/: + get: + operationId: identity_profile_retrieve + tags: + - identity/profile + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Profile' + examples: + ProfileResponse: + value: + created: '2024-10-01T07:24:42.702Z' + groups: + - Reporters + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + modified: '2024-11-03T18:04:55.480Z' + preferred_theme: dark + preferred_view_settings: + view_name: + ordering: -column_name + page_size: 50 + username: jdoe@nvidia.com + summary: Profile Response + description: '' + patch: + operationId: identity_profile_partial_update + tags: + - identity/profile + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Profile' + examples: + ProfileRequest: + value: + preferred_theme: dark + preferred_view_settings: + view_name: + ordering: -column_name + page_size: 50 + summary: Profile Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Profile' + multipart/form-data: + schema: + $ref: '#/components/schemas/Profile' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Profile' + examples: + ProfileResponse: + value: + created: '2024-10-01T07:24:42.702Z' + groups: + - Reporters + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + modified: '2024-11-03T18:04:55.480Z' + preferred_theme: dark + preferred_view_settings: + view_name: + ordering: -column_name + page_size: 50 + username: jdoe@nvidia.com + summary: Profile Response + description: '' + /v1/inventory/clusters/: + get: + operationId: inventory_clusters_list + parameters: + - in: query + name: available + schema: + type: boolean + description: Is the cluster currently available for provisioning? + - in: query + name: bastion_name + schema: + type: string + - in: query + name: deployment + schema: + type: string + format: uuid + - in: query + name: enabled + schema: + type: boolean + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "nodes.location"). Separate multiple fields with a comma (ex: "gpus,nodes")' + - in: query + name: experience + schema: + type: string + format: uuid + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: garage_id + schema: + type: string + description: Only include clusters whose nodes have the given garage ID + - in: query + name: gpu + schema: + type: array + items: + type: string + format: uuid + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: gpu_alias + schema: + type: string + description: Alias for GPU plan (i.e. installed GPU type and count) + - in: query + name: gpu_count + schema: + type: number + description: Only include clusters with a physical GPU count equal to this value + - in: query + name: gpu_model + schema: + type: string + description: Only include clusters with the given GPU model name + - in: query + name: has_deployment + schema: + type: boolean + - in: query + name: has_request_id + schema: + type: boolean + - in: query + name: has_workshop_id + schema: + type: boolean + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: location + schema: + type: string + format: uuid + - in: query + name: location_name + schema: + type: string + description: Only include clusters whose nodes are in the location with the given name + - in: query + name: location_region + schema: + type: string + description: Only include clusters whose nodes are in the location in the given region + - in: query + name: maintenance + schema: + type: boolean + - in: query + name: mgmt_ip + schema: + type: string + - in: query + name: mgmt_mac + schema: + type: string + - in: query + name: min_gpu_count + schema: + type: number + description: Only include clusters that have a gpu_count greater than or equal to this value + - in: query + name: min_node_count + schema: + type: number + description: Only include clusters that have a node_count greater than or equal to this value + - in: query + name: min_provisioning_attempts + schema: + type: integer + description: Only include clusters that have a provisioning_attempts value greater than or equal to this value + - in: query + name: min_tenant_count + schema: + type: number + description: Only include clusters whose number of tenant_ids is greater than or equal to this value + - in: query + name: netmask + schema: + type: integer + - in: query + name: node_count + schema: + type: number + description: Only include clusters with a node count equal to this value + - in: query + name: oem + schema: + type: string + format: uuid + description: Only include clusters with nodes that have the given OEM ID + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: persist + schema: + type: boolean + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: provider_capacity + schema: + type: boolean + - in: query + name: provider_name + schema: + type: string + description: Only include clusters whose nodes are from the provider with the given name + - in: query + name: provider_node_id + schema: + type: string + format: uuid + - in: query + name: provision_user + schema: + type: string + - in: query + name: provisioning_attempts + schema: + type: integer + - in: query + name: provisioning_state + schema: + type: array + items: + type: string + enum: + - deployed + - deploying + - destroying + - pending + - ready + - reserved + - unprovisioned + description: |- + Multiple values may be separated by commas. + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + explode: false + style: form + - in: query + name: public_address + schema: + type: string + - in: query + name: rack + schema: + type: string + description: Only include clusters whose nodes are in the given rack + - in: query + name: request_id + schema: + type: string + - in: query + name: reservation + schema: + type: boolean + - name: search + required: false + in: query + description: Search for clusters by bastion_name, experience id, gpu_alias, gpus model, id, mgmt_ip, mgmt_mac, netmask, nodes garage_id, nodes location name, nodes location provider name, nodes oem name, nodes provider_node_id, nodes rack, notes, provision_user, provisioning_state, public_address, request_id, tenant_ids, workshop_id + schema: + type: string + - in: query + name: system_arch + schema: + type: string + description: Only include clusters whose nodes have the given CPU architecture + - in: query + name: vlan_id + schema: + type: integer + - in: query + name: workshop + schema: + type: boolean + - in: query + name: workshop_id + schema: + type: string + - in: query + name: workshop_id_not + schema: + type: string + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedClusterList' + examples: + ClusterResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + post: + operationId: inventory_clusters_create + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Cluster' + multipart/form-data: + schema: + $ref: '#/components/schemas/Cluster' + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + /v1/inventory/clusters/{cluster_id}/tenants/: + post: + operationId: inventory_clusters_tenants_create + parameters: + - in: path + name: cluster_id + schema: + type: string + format: uuid + required: true + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Tenant' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Tenant' + multipart/form-data: + schema: + $ref: '#/components/schemas/Tenant' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + /v1/inventory/clusters/{cluster_id}/tenants/{id}/: + delete: + operationId: inventory_clusters_tenants_destroy + parameters: + - in: path + name: cluster_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/clusters/{id}/: + get: + operationId: inventory_clusters_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "nodes.location"). Separate multiple fields with a comma (ex: "gpus,nodes")' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + put: + operationId: inventory_clusters_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Cluster' + multipart/form-data: + schema: + $ref: '#/components/schemas/Cluster' + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + patch: + operationId: inventory_clusters_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Cluster' + multipart/form-data: + schema: + $ref: '#/components/schemas/Cluster' + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + delete: + operationId: inventory_clusters_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/clusters/{id}/history/: + get: + operationId: inventory_clusters_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/clusters/bulk/: + patch: + operationId: inventory_clusters_bulk_partial_update + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + examples: + ClusterBulkUpdateRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + ids: + - 089324a5-708c-4386-9fdc-92dd9aa63d2b + - 3587f151-b02a-46c7-80a4-ac61db6633ed + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + examples: + ClusterBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Cluster Bulk Update Response + description: '' + /v1/inventory/clusters/stats/: + get: + operationId: inventory_clusters_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body + /v1/inventory/gpus/: + get: + operationId: inventory_gpus_list + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: form_factor + schema: + type: string + enum: + - pcie + - sxm + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: model + schema: + type: array + items: + type: string + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: priority + schema: + type: integer + - name: search + required: false + in: query + description: Search for gpus by form_factor, id, memory, model + schema: + type: string + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedGpuList' + examples: + GPUResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + post: + operationId: inventory_gpus_create + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPURequest: + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + summary: GPU Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Gpu' + multipart/form-data: + schema: + $ref: '#/components/schemas/Gpu' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPUResponse: + value: + created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + /v1/inventory/gpus/{id}/: + get: + operationId: inventory_gpus_retrieve + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPUResponse: + value: + created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + put: + operationId: inventory_gpus_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPURequest: + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + summary: GPU Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Gpu' + multipart/form-data: + schema: + $ref: '#/components/schemas/Gpu' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPUResponse: + value: + created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + patch: + operationId: inventory_gpus_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPURequest: + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + summary: GPU Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Gpu' + multipart/form-data: + schema: + $ref: '#/components/schemas/Gpu' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPUResponse: + value: + created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + delete: + operationId: inventory_gpus_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/gpus/{id}/history/: + get: + operationId: inventory_gpus_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/gpus/bulk/: + patch: + operationId: inventory_gpus_bulk_partial_update + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + examples: + GPUBulkUpdateRequest: + value: + form_factor: pcie + ids: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + - d63c8b0d-acb9-4c87-b4f7-656ecea5b02a + memory: 48 + priority: 60 + summary: GPU Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + examples: + GPUBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: GPU Bulk Update Response + description: '' + /v1/inventory/gpus/stats/: + get: + operationId: inventory_gpus_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body + /v1/inventory/instances/: + get: + operationId: inventory_instances_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: query + name: cluster + schema: + type: string + format: uuid + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: instance_id + schema: + type: string + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for instances by cluster, id, instance_id, name, state, tags + schema: + type: string + - in: query + name: state + schema: + type: string + enum: + - running + - starting + - stopped + - stopping + - unknown + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedInstanceList' + examples: + InstanceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + post: + operationId: inventory_instances_create + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Instance' + multipart/form-data: + schema: + $ref: '#/components/schemas/Instance' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + /v1/inventory/instances/{id}/: + get: + operationId: inventory_instances_retrieve + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + put: + operationId: inventory_instances_update + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Instance' + multipart/form-data: + schema: + $ref: '#/components/schemas/Instance' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + patch: + operationId: inventory_instances_partial_update + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Instance' + multipart/form-data: + schema: + $ref: '#/components/schemas/Instance' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + delete: + operationId: inventory_instances_destroy + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/instances/{id}/history/: + get: + operationId: inventory_instances_history_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/instances/bulk/: + patch: + operationId: inventory_instances_bulk_partial_update + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + examples: + InstanceBulkUpdateRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + ids: + - 899d8680-454a-41f3-af99-9e0497ac955d + - 3280c16f-0e3e-4897-b8ba-7f66d40281bf + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + examples: + InstanceBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Instance Bulk Update Response + description: '' + /v1/inventory/locations/: + get: + operationId: inventory_locations_list + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "provider").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: region + schema: + type: string + - name: search + required: false + in: query + description: Search for locations by id, name, provider name, region + schema: + type: string + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedLocationList' + examples: + LocationResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + post: + operationId: inventory_locations_create + tags: + - inventory/locations + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationRequest: + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Location' + multipart/form-data: + schema: + $ref: '#/components/schemas/Location' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + /v1/inventory/locations/{id}/: + get: + operationId: inventory_locations_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "provider").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + put: + operationId: inventory_locations_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + tags: + - inventory/locations + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationRequest: + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Location' + multipart/form-data: + schema: + $ref: '#/components/schemas/Location' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + patch: + operationId: inventory_locations_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + tags: + - inventory/locations + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationRequest: + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Location' + multipart/form-data: + schema: + $ref: '#/components/schemas/Location' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + delete: + operationId: inventory_locations_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/locations/{id}/history/: + get: + operationId: inventory_locations_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/nodes/: + get: + operationId: inventory_nodes_list + parameters: + - in: query + name: bmc_ip + schema: + type: string + - in: query + name: bmc_mac + schema: + type: string + - in: query + name: bmc_password + schema: + type: string + - in: query + name: bmc_user + schema: + type: string + - in: query + name: cluster + schema: + type: string + format: uuid + - in: query + name: cpu + schema: + type: integer + - in: query + name: cpu_manufacturer + schema: + type: + - string + - 'null' + enum: + - amd + - arm + - intel + description: |- + Manufacturer of the node's CPU + + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + - in: query + name: cpu_model + schema: + type: string + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "location.provider"). Separate multiple fields with a comma (ex: "location,oem")' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: garage_id + schema: + type: string + - in: query + name: gpu + schema: + type: array + items: + type: string + format: uuid + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: gpu_alias + schema: + type: string + description: Alias for GPU plan (i.e. installed GPU type and count) + - in: query + name: gpu_count + schema: + type: integer + - in: query + name: gpu_model + schema: + type: string + description: Model of GPU(s) installed + - in: query + name: gpu_vbios + schema: + type: string + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: location + schema: + type: string + format: uuid + - in: query + name: memory + schema: + type: integer + - in: query + name: mgmt_ip + schema: + type: string + - in: query + name: mgmt_mac + schema: + type: string + - in: query + name: min_gpu_count + schema: + type: integer + description: Only include nodes that have a gpu_count greater than or equal to this value + - in: query + name: model + schema: + type: string + - in: query + name: network_type + schema: + type: string + enum: + - ethernet + - infiniband + description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + - in: query + name: oem + schema: + type: string + format: uuid + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: provider_node_id + schema: + type: string + - in: query + name: rack + schema: + type: string + - in: query + name: rack_unit + schema: + type: integer + - name: search + required: false + in: query + description: Search for nodes by bmc_ip, bmc_mac, bmc_password, bmc_user, cpu_manufacturer, cpu_model, garage_id, gpu_alias, gpu model, gpu_vbios, id, location name, location provider name, memory, mgmt_ip, mgmt_mac, model, network_type, nic_prefixes, notes, oem name, provider_node_id, rack, rack_unit, serial_number, storage, system_arch + schema: + type: string + - in: query + name: serial_number + schema: + type: string + - in: query + name: system_arch + schema: + type: string + enum: + - amd64 + - arm64 + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + - in: query + name: tee + schema: + type: boolean + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedNodeList' + examples: + NodeResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + post: + operationId: inventory_nodes_create + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Node' + multipart/form-data: + schema: + $ref: '#/components/schemas/Node' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + /v1/inventory/nodes/{id}/: + get: + operationId: inventory_nodes_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "location.provider"). Separate multiple fields with a comma (ex: "location,oem")' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + put: + operationId: inventory_nodes_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Node' + multipart/form-data: + schema: + $ref: '#/components/schemas/Node' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + patch: + operationId: inventory_nodes_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Node' + multipart/form-data: + schema: + $ref: '#/components/schemas/Node' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + delete: + operationId: inventory_nodes_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/nodes/{id}/history/: + get: + operationId: inventory_nodes_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/nodes/bulk/: + post: + operationId: inventory_nodes_bulk_create + description: Create nodes in bulk via CSV file upload + tags: + - inventory/nodes + requestBody: + content: + multipart/form-data: + schema: + type: object + properties: + csv_file: + type: string + format: binary + writeOnly: true + required: + - csv_file + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/NodeBulk' + description: '' + patch: + operationId: inventory_nodes_bulk_partial_update + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NodeBulkUpdate' + examples: + NodeBulkUpdateRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + ids: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + - 6fcf07f8-d821-48cf-b20e-b6eb65db9387 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Bulk Update Request + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/NodeBulkUpdate' + examples: + NodeBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Node Bulk Update Response + description: '' + /v1/inventory/oems/: + get: + operationId: inventory_oems_list + parameters: + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for oems by id, name + schema: + type: string + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedOEMList' + examples: + OEMResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + post: + operationId: inventory_oems_create + tags: + - inventory/oems + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMRequest: + value: + name: My OEM + summary: OEM Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/OEM' + multipart/form-data: + schema: + $ref: '#/components/schemas/OEM' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + /v1/inventory/oems/{id}/: + get: + operationId: inventory_oems_retrieve + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + put: + operationId: inventory_oems_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMRequest: + value: + name: My OEM + summary: OEM Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/OEM' + multipart/form-data: + schema: + $ref: '#/components/schemas/OEM' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + patch: + operationId: inventory_oems_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMRequest: + value: + name: My OEM + summary: OEM Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/OEM' + multipart/form-data: + schema: + $ref: '#/components/schemas/OEM' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + delete: + operationId: inventory_oems_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/oems/{id}/history/: + get: + operationId: inventory_oems_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/providers/: + get: + operationId: inventory_providers_list + parameters: + - in: query + name: display_name + schema: + type: string + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: instance_limit + schema: + type: integer + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: priority + schema: + type: integer + - name: search + required: false + in: query + description: Search for providers by display_name, id, name + schema: + type: string + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedProviderList' + examples: + ProviderResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + post: + operationId: inventory_providers_create + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderRequest: + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + summary: Provider Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Provider' + multipart/form-data: + schema: + $ref: '#/components/schemas/Provider' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderResponse: + value: + created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + /v1/inventory/providers/{id}/: + get: + operationId: inventory_providers_retrieve + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderResponse: + value: + created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + put: + operationId: inventory_providers_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderRequest: + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + summary: Provider Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Provider' + multipart/form-data: + schema: + $ref: '#/components/schemas/Provider' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderResponse: + value: + created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + patch: + operationId: inventory_providers_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderRequest: + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + summary: Provider Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Provider' + multipart/form-data: + schema: + $ref: '#/components/schemas/Provider' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderResponse: + value: + created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + delete: + operationId: inventory_providers_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/providers/{id}/history/: + get: + operationId: inventory_providers_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/providers/bulk/: + patch: + operationId: inventory_providers_bulk_partial_update + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + examples: + ProviderBulkUpdateRequest: + value: + display_name: My Provider + ids: + - f8bd1b72-c213-43ec-82ad-a56a44757a11 + - 5b528083-ab61-42dd-a6a1-90aa9babb014 + instance_limit: 250 + priority: 50 + summary: Provider Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + examples: + ProviderBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Provider Bulk Update Response + description: '' + /v1/inventory/providers/stats/: + get: + operationId: inventory_providers_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body +components: + schemas: + AuthLogin: + type: object + properties: + auth_code: + type: string + password: + type: string + username: + type: string + AuthRedirect: + type: object + properties: + redirect: + type: string + format: uri + required: + - redirect + AuthToken: + type: object + properties: + token: + type: string + readOnly: true + username: + type: string + readOnly: true + required: + - token + - username + BlankEnum: + enum: + - '' + x-enum-varnames: + - Blank + CategoryEnum: + enum: + - AI + - Clara + - Data Science + - 3D Design Collaboration and Simulation + - Developer + - Infrastructure Optimization + type: string + description: |- + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + x-enum-varnames: + - CategoryAI + - CategoryClara + - CategoryDataScience + - Category3DDesignCollaborationAndSimulation + - CategoryDeveloper + - CategoryInfrastructureOptimization + Cluster: + type: object + properties: + available: + type: boolean + readOnly: true + description: Is the cluster currently available for provisioning? + bastion_name: + type: + - string + - 'null' + description: Name of the bastion assigned to the cluster + maxLength: 32 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + enabled: + type: boolean + description: Is the cluster administratively enabled? + experience: + type: + - string + - 'null' + format: uuid + description: Experience provisioned onto this cluster + free_by: + type: + - string + - 'null' + format: date-time + gpus: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + x-go-json-tag: "gpus,omitempty" + gpu_alias: + type: string + readOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + readOnly: true + id: + type: string + format: uuid + readOnly: true + instances: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Instance" + x-go-json-tag: "instance,omitempty" + x-go-json-tag: "instances,omitempty" + last_used: + type: + - string + - 'null' + format: date-time + readOnly: true + description: Timestamp of when the cluster was last in use + maintenance: + type: boolean + description: Is the cluster in maintenance mode? + mgmt_ip: + type: string + description: Management IP address + mgmt_mac: + type: + - string + - 'null' + description: Management MAC address + maxLength: 17 + minLength: 17 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + netmask: + type: + - integer + - 'null' + maximum: 32 + minimum: 0 + description: The subnet mask of the cluster's public IP address in CIDR notation + node_count: + type: integer + readOnly: true + nodes: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Node" + x-go-json-tag: "node,omitempty" + x-go-json-tag: "nodes,omitempty" + notes: + type: + - string + - 'null' + description: Administrative comments about the cluster + persist: + type: boolean + description: Is the cluster exempt from provisioning_state timeouts? Can be used to ensure the cluster persists after a provisioning failure. + provider_capacity: + type: boolean + readOnly: true + description: Does the provider have capacity to provision this cluster? + provision_user: + type: + - string + - 'null' + description: Username used for provisioning this cluster + maxLength: 64 + provisioning_attempts: + type: integer + maximum: 2147483647 + minimum: 0 + description: The number of attempts that have been made to provision this cluster. Automatically resets to 0 after successful provisioning. + provisioning_state: + allOf: + - $ref: '#/components/schemas/ProvisioningStateEnum' + description: |- + Is the cluster currently provisioned? + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + public_address: + type: + - string + - 'null' + description: Public IP address or fully-qualified domain name of this cluster + maxLength: 255 + request_id: + type: + - string + - 'null' + description: 'The request ID for the lab that is currently provisioned on this cluster (ex: TRY-1234)' + maxLength: 32 + reservation: + type: boolean + description: Is the cluster a static reservation from its provider? + tenant_ids: + type: array + items: + type: string + format: uuid + readOnly: true + description: Tenant UUID(s) that have been generated for this cluster during provisioning + vlan_id: + type: integer + maximum: 4094 + minimum: 1 + description: VLAN number + workshop: + type: boolean + description: Is the cluster set aside for use in a workshop? + workshop_id: + type: + - string + - 'null' + description: Identifier of the workshop this cluster is set aside for + maxLength: 64 + required: + - available + - created + - deployment + - gpus + - id + - instances + - last_used + - modified + - provider_capacity + - tenant_ids + ClusterBulkUpdate: + type: object + properties: + available: + type: boolean + readOnly: true + writeOnly: true + description: Is the cluster currently available for provisioning? + bastion_name: + type: + - string + - 'null' + writeOnly: true + description: Name of the bastion assigned to the cluster + maxLength: 32 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + enabled: + type: boolean + writeOnly: true + description: Is the cluster administratively enabled? + experience: + type: + - string + - 'null' + format: uuid + writeOnly: true + description: Experience provisioned onto this cluster + free_by: + type: + - string + - 'null' + format: date-time + writeOnly: true + gpus: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + x-go-json-tag: "gpus,omitempty" + gpu_alias: + type: string + readOnly: true + writeOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + readOnly: true + writeOnly: true + id: + type: string + format: uuid + readOnly: true + writeOnly: true + instances: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Instance" + x-go-json-tag: "instance,omitempty" + x-go-json-tag: "instances,omitempty" + last_used: + type: + - string + - 'null' + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the cluster was last in use + maintenance: + type: boolean + writeOnly: true + description: Is the cluster in maintenance mode? + mgmt_ip: + type: string + writeOnly: true + description: Management IP address + mgmt_mac: + type: + - string + - 'null' + writeOnly: true + description: Management MAC address + maxLength: 17 + minLength: 17 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + netmask: + type: + - integer + - 'null' + maximum: 32 + minimum: 0 + writeOnly: true + description: The subnet mask of the cluster's public IP address in CIDR notation + node_count: + type: integer + readOnly: true + writeOnly: true + nodes: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Node" + x-go-json-tag: "node,omitempty" + x-go-json-tag: "nodes,omitempty" + notes: + type: + - string + - 'null' + writeOnly: true + description: Administrative comments about the cluster + persist: + type: boolean + writeOnly: true + description: Is the cluster exempt from provisioning_state timeouts? Can be used to ensure the cluster persists after a provisioning failure. + provider_capacity: + type: boolean + readOnly: true + writeOnly: true + description: Does the provider have capacity to provision this cluster? + provision_user: + type: + - string + - 'null' + writeOnly: true + description: Username used for provisioning this cluster + maxLength: 64 + provisioning_attempts: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: The number of attempts that have been made to provision this cluster. Automatically resets to 0 after successful provisioning. + provisioning_state: + allOf: + - $ref: '#/components/schemas/ProvisioningStateEnum' + writeOnly: true + description: |- + Is the cluster currently provisioned? + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + public_address: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Public IP address or fully-qualified domain name of this cluster + maxLength: 255 + request_id: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: 'The request ID for the lab that is currently provisioned on this cluster (ex: TRY-1234)' + maxLength: 32 + reservation: + type: boolean + writeOnly: true + description: Is the cluster a static reservation from its provider? + tenant_ids: + type: array + items: + type: string + format: uuid + readOnly: true + writeOnly: true + description: Tenant UUID(s) that have been generated for this cluster during provisioning + vlan_id: + type: integer + maximum: 4094 + minimum: 1 + writeOnly: true + description: VLAN number + workshop: + type: boolean + writeOnly: true + description: Is the cluster set aside for use in a workshop? + workshop_id: + type: + - string + - 'null' + writeOnly: true + description: Identifier of the workshop this cluster is set aside for + maxLength: 64 + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - available + - count + - created + - deployment + - gpu_alias + - gpu_count + - gpus + - id + - ids + - instances + - last_used + - modified + - node_count + - provider_capacity + - public_address + - request_id + - result + - tenant_ids + CpuManufacturerEnum: + enum: + - amd + - arm + - intel + type: string + description: |- + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + x-enum-varnames: + - CpuManufacturerAMD + - CpuManufacturerARM + - CpuManufacturerIntel + Deployment: + type: object + properties: + bastion_operating_system: + type: + - string + - 'null' + description: Override bastion operating system provisioned and/or configured by Liftoff + maxLength: 32 + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + collection_branch: + type: + - string + - 'null' + description: Override the Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - 'null' + description: Override the experience branch + maxLength: 255 + expires_at: + type: + - string + - 'null' + format: date-time + flightcontrol_release: + type: + - string + - 'null' + description: Override the image tag used for Flight Control + maxLength: 64 + garage_id: + type: + - string + - 'null' + description: Require a cluster with nodes in the given garage + maxLength: 128 + gc_branch: + type: + - string + - 'null' + description: Override the default Ground Control branch + maxLength: 255 + gpu_alias: + type: + - string + - 'null' + description: Require a cluster with the given GPU alias + maxLength: 64 + gpu_count: + type: + - integer + - 'null' + maximum: 16 + minimum: 0 + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - 'null' + description: Require a cluster with the given GPU model + maxLength: 32 + gpu_os_name: + type: string + gpu_os_release: + type: string + gpu_os_version: + type: string + id: + type: string + format: uuid + readOnly: true + ip_allowlist: + type: array + items: + type: string + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - 'null' + maximum: 16 + minimum: 0 + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: Require a cluster with the given number of nodes + oem_name: + type: + - string + - 'null' + description: Require a cluster manufactured by the given OEM name + maxLength: 64 + org_name: + type: string + description: Requester's organization name + overrides: + readOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - 'null' + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: string + pipeline: + type: + - integer + - 'null' + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - 'null' + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + maxLength: 255 + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + platform: + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: '#/components/schemas/PlatformEnum' + - type: 'null' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - 'null' + description: Require a cluster from the given provider name + maxLength: 64 + public_key: + type: + - string + - 'null' + writeOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - 'null' + description: Require a cluster located in the given region + maxLength: 64 + request_id: + type: string + description: 'Trial request ID (ex: TRY-1234)' + requester_email: + type: string + format: email + description: Email address of the user requesting the experience + maxLength: 254 + requester_name: + type: string + description: Name of the user requesting the experience + maxLength: 255 + retry_count: + type: integer + readOnly: true + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - 'null' + format: date-time + sales_id: + type: + - string + - 'null' + description: Unique identifier for the requester's sales relationship + maxLength: 32 + sales_owner_email: + type: + - string + - 'null' + format: email + description: Email address of the sales contact associated with the requester + maxLength: 254 + sales_owner_name: + type: + - string + - 'null' + description: Name of the sales contact associated with the requester + maxLength: 255 + services: + type: array + items: + type: string + format: uuid + readOnly: true + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + readOnly: true + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - 'null' + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - 'null' + description: Require a cluster with the given workshop ID + maxLength: 64 + workshop_override_password: + type: + - string + - 'null' + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + maxLength: 64 + catalog_id: + type: string + description: Unique ID for this experience in the sales catalog. Must be unique. + writeOnly: true + catalog_id_alias: + type: + - string + - 'null' + description: 'Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique.' + writeOnly: true + experience_id: + type: string + format: uuid + writeOnly: true + required: + - created + - id + - modified + - org_name + - overrides + - pipelines + - requester_email + - requester_name + - retry_count + - services + - state + DeploymentBulkUpdate: + type: object + properties: + bastion_operating_system: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override bastion operating system provisioned and/or configured by Liftoff + cluster: + type: + - string + - 'null' + format: uuid + readOnly: true + writeOnly: true + description: The cluster where the experience has been deployed + collection_branch: + type: + - string + - 'null' + writeOnly: true + description: Override the Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - 'null' + writeOnly: true + description: Override the experience branch + maxLength: 255 + expires_at: + type: + - string + - 'null' + format: date-time + writeOnly: true + flightcontrol_release: + type: + - string + - 'null' + writeOnly: true + description: Override the image tag used for Flight Control + maxLength: 64 + garage_id: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with nodes in the given garage + gc_branch: + type: + - string + - 'null' + writeOnly: true + description: Override the default Ground Control branch + maxLength: 255 + gpu_alias: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given GPU alias + gpu_count: + type: + - integer + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given GPU model + gpu_os_name: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override the GPU node operating system name + gpu_os_release: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override the GPU node operating system release + gpu_os_version: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override the GPU node operating system version + id: + type: string + format: uuid + readOnly: true + writeOnly: true + ip_allowlist: + type: array + items: + type: string + writeOnly: true + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - 'null' + readOnly: true + writeOnly: true + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given number of nodes + oem_name: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster manufactured by the given OEM name + org_name: + type: string + writeOnly: true + description: Requester's organization name + overrides: + readOnly: true + writeOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - 'null' + writeOnly: true + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: + - string + - 'null' + writeOnly: true + description: Override the defined persona in the experience + maxLength: 32 + pipeline: + type: + - integer + - 'null' + maximum: 9223372036854775807 + minimum: 0 + format: int64 + writeOnly: true + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - 'null' + writeOnly: true + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + maxLength: 255 + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + writeOnly: true + platform: + writeOnly: true + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: '#/components/schemas/PlatformEnum' + - type: 'null' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + readOnly: true + writeOnly: true + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster from the given provider name + public_key: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster located in the given region + request_id: + type: string + readOnly: true + writeOnly: true + description: 'Trial request ID (ex: TRY-1234)' + requester_email: + type: string + writeOnly: true + description: Email address of the user requesting the experience + requester_name: + type: string + writeOnly: true + description: Name of the user requesting the experience + retry_count: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - 'null' + format: date-time + readOnly: true + writeOnly: true + description: Timestamp when the requester's sales relationship was created + sales_id: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Unique identifier for the requester's sales relationship + sales_owner_email: + type: + - string + - 'null' + format: email + writeOnly: true + description: Email address of the sales contact associated with the requester + maxLength: 254 + sales_owner_name: + type: + - string + - 'null' + writeOnly: true + description: Name of the sales contact associated with the requester + maxLength: 255 + services: + type: array + items: + type: string + format: uuid + readOnly: true + writeOnly: true + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + writeOnly: true + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + writeOnly: true + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given workshop ID + workshop_override_password: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - bastion_operating_system + - cluster + - count + - created + - experience + - garage_id + - gpu_alias + - gpu_count + - gpu_model + - gpu_os_name + - gpu_os_release + - gpu_os_version + - id + - ids + - lifetime + - min_gpu_count + - modified + - node_count + - oem_name + - overrides + - pipelines + - priority + - provider_name + - public_key + - region + - request_id + - result + - sales_created_date + - sales_id + - services + - workshop + - workshop_id + - workshop_override_password + DeploymentInstance: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + instance_id: + type: string + readOnly: true + description: Unique ID for this instance assigned by its provider + name: + type: + - string + - 'null' + readOnly: true + description: User-friendly name of this instance + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + state: + allOf: + - $ref: '#/components/schemas/InstanceState' + readOnly: true + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + state_modified: + type: string + format: date-time + readOnly: true + tags: + type: array + items: + type: string + maxLength: 64 + readOnly: true + description: Tags associated with this instance + required: + - created + - id + - instance_id + - modified + - name + - state + - state_modified + - tags + DeploymentKey: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + description: Descriptive name for the SSH public key + maxLength: 64 + public_key: + type: string + writeOnly: true + description: An SSH public key that should be authorized to access the deployment + required: + - created + - deployment + - id + - modified + - name + - public_key + DeploymentNote: + type: object + properties: + content: + type: string + description: Text content of the note + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + created_by: + type: string + readOnly: true + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + modified_by: + type: string + readOnly: true + required: + - created + - created_by + - deployment + - id + - modified + - modified_by + DeploymentPipeline: + type: object + properties: + action: + allOf: + - $ref: '#/components/schemas/DeploymentPipelineActionEnum' + description: |- + Action for the pipeline to run + + * `apply` - apply + * `destroy` - destroy + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + pipeline_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: GitLab pipeline ID + url: + type: string + format: uri + description: URL for the pipeline details + maxLength: 200 + required: + - action + - created + - deployment + - id + - modified + - pipeline_id + - url + DeploymentPipelineActionEnum: + enum: + - apply + - destroy + type: string + description: |- + * `apply` - apply + * `destroy` - destroy + x-enum-varnames: + - DeploymentPipelineActionApply + - DeploymentPipelineActionDestroy + DeploymentService: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + description: Name of the service + maxLength: 32 + url: + type: string + format: uri + description: URL used to reach the service + maxLength: 200 + required: + - created + - deployment + - id + - modified + - name + - url + DeploymentState: + enum: + - destroyed + - destroying + - error + - failed + - paused + - ready + - retrying + - starting + - stopped + - stopping + - waiting + type: string + description: |- + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + x-enum-varnames: + - DeploymentStateDestroyed + - DeploymentStateDestroying + - DeploymentStateError + - DeploymentStateFailed + - DeploymentStatePaused + - DeploymentStateReady + - DeploymentStateRetrying + - DeploymentStateStarting + - DeploymentStateStopped + - DeploymentStateStopping + - DeploymentStateWaiting + DeploymentTask: + type: object + properties: + action: + allOf: + - $ref: '#/components/schemas/DeploymentTaskActionEnum' + description: |- + The action the task will perform + + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + retries: + type: integer + readOnly: true + description: Number of times the task has been retried + status: + allOf: + - $ref: '#/components/schemas/StatusEnum' + readOnly: true + description: |- + Current status of the task + + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + status_text: + type: string + readOnly: true + description: Messages related to the current task status + required: + - action + - created + - deployment + - id + - modified + - retries + - status + - status_text + DeploymentTaskActionEnum: + enum: + - start_instances + - stop_instances + type: string + description: |- + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + x-enum-varnames: + - DeploymentTaskActionStartInstances + - DeploymentTaskActionStopInstances + DeploymentUpdate: + type: object + properties: + bastion_operating_system: + type: + - string + - 'null' + readOnly: true + description: Override bastion operating system provisioned and/or configured by Liftoff + cluster: + type: + - string + - 'null' + format: uuid + readOnly: true + description: The cluster where the experience has been deployed + collection_branch: + type: + - string + - 'null' + description: Override the Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - 'null' + description: Override the experience branch + maxLength: 255 + expires_at: + type: + - string + - 'null' + format: date-time + flightcontrol_release: + type: + - string + - 'null' + description: Override the image tag used for Flight Control + maxLength: 64 + garage_id: + type: + - string + - 'null' + readOnly: true + description: Require a cluster with nodes in the given garage + gc_branch: + type: + - string + - 'null' + description: Override the default Ground Control branch + maxLength: 255 + gpu_alias: + type: + - string + - 'null' + readOnly: true + description: Require a cluster with the given GPU alias + gpu_count: + type: + - integer + - 'null' + readOnly: true + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - 'null' + readOnly: true + description: Require a cluster with the given GPU model + gpu_os_name: + type: + - string + - 'null' + readOnly: true + description: Override the GPU node operating system name + gpu_os_release: + type: + - string + - 'null' + readOnly: true + description: Override the GPU node operating system release + gpu_os_version: + type: + - string + - 'null' + readOnly: true + description: Override the GPU node operating system version + id: + type: string + format: uuid + readOnly: true + ip_allowlist: + type: array + items: + type: string + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - 'null' + readOnly: true + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - 'null' + readOnly: true + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - 'null' + readOnly: true + description: Require a cluster with the given number of nodes + oem_name: + type: + - string + - 'null' + readOnly: true + description: Require a cluster manufactured by the given OEM name + org_name: + type: string + description: Requester's organization name + overrides: + readOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - 'null' + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: + - string + - 'null' + description: Override the defined persona in the experience + maxLength: 32 + pipeline: + type: + - integer + - 'null' + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - 'null' + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + maxLength: 255 + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + platform: + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: '#/components/schemas/PlatformEnum' + - type: 'null' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + readOnly: true + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - 'null' + readOnly: true + description: Require a cluster from the given provider name + public_key: + type: + - string + - 'null' + readOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - 'null' + readOnly: true + description: Require a cluster located in the given region + request_id: + type: string + readOnly: true + description: 'Trial request ID (ex: TRY-1234)' + requester_email: + type: string + description: Email address of the user requesting the experience + requester_name: + type: string + description: Name of the user requesting the experience + retry_count: + type: integer + maximum: 2147483647 + minimum: 0 + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - 'null' + format: date-time + readOnly: true + description: Timestamp when the requester's sales relationship was created + sales_id: + type: + - string + - 'null' + readOnly: true + description: Unique identifier for the requester's sales relationship + sales_owner_email: + type: + - string + - 'null' + format: email + description: Email address of the sales contact associated with the requester + maxLength: 254 + sales_owner_name: + type: + - string + - 'null' + description: Name of the sales contact associated with the requester + maxLength: 255 + services: + type: array + items: + type: string + format: uuid + readOnly: true + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - 'null' + readOnly: true + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - 'null' + readOnly: true + description: Require a cluster with the given workshop ID + workshop_override_password: + type: + - string + - 'null' + readOnly: true + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + required: + - bastion_operating_system + - cluster + - created + - experience + - garage_id + - gpu_alias + - gpu_count + - gpu_model + - gpu_os_name + - gpu_os_release + - gpu_os_version + - id + - lifetime + - min_gpu_count + - modified + - node_count + - oem_name + - overrides + - pipelines + - priority + - provider_name + - public_key + - region + - request_id + - sales_created_date + - sales_id + - services + - workshop + - workshop_id + - workshop_override_password + DocDeploymentDelete: + type: object + properties: + bastion_operating_system: + type: + - string + - 'null' + description: Override bastion operating system provisioned and/or configured by Liftoff + maxLength: 32 + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + collection_branch: + type: + - string + - 'null' + description: Override the Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - 'null' + description: Override the experience branch + maxLength: 255 + expires_at: + type: + - string + - 'null' + format: date-time + flightcontrol_release: + type: + - string + - 'null' + description: Override the image tag used for Flight Control + maxLength: 64 + garage_id: + type: + - string + - 'null' + description: Require a cluster with nodes in the given garage + maxLength: 128 + gc_branch: + type: + - string + - 'null' + description: Override the default Ground Control branch + maxLength: 255 + gpu_alias: + type: + - string + - 'null' + description: Require a cluster with the given GPU alias + maxLength: 64 + gpu_count: + type: + - integer + - 'null' + maximum: 16 + minimum: 0 + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - 'null' + description: Require a cluster with the given GPU model + maxLength: 32 + gpu_os_name: + type: string + gpu_os_release: + type: string + gpu_os_version: + type: string + id: + type: string + format: uuid + readOnly: true + ip_allowlist: + type: array + items: + type: string + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - 'null' + maximum: 16 + minimum: 0 + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: Require a cluster with the given number of nodes + oem_name: + type: + - string + - 'null' + description: Require a cluster manufactured by the given OEM name + maxLength: 64 + org_name: + type: string + description: Requester's organization name + overrides: + readOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - 'null' + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: string + pipeline: + type: + - integer + - 'null' + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - 'null' + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + maxLength: 255 + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + platform: + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: '#/components/schemas/PlatformEnum' + - type: 'null' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - 'null' + description: Require a cluster from the given provider name + maxLength: 64 + public_key: + type: + - string + - 'null' + writeOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - 'null' + description: Require a cluster located in the given region + maxLength: 64 + request_id: + type: string + description: 'Trial request ID (ex: TRY-1234)' + requester_email: + type: string + format: email + description: Email address of the user requesting the experience + maxLength: 254 + requester_name: + type: string + description: Name of the user requesting the experience + maxLength: 255 + retry_count: + type: integer + readOnly: true + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - 'null' + format: date-time + sales_id: + type: + - string + - 'null' + description: Unique identifier for the requester's sales relationship + maxLength: 32 + sales_owner_email: + type: + - string + - 'null' + format: email + description: Email address of the sales contact associated with the requester + maxLength: 254 + sales_owner_name: + type: + - string + - 'null' + description: Name of the sales contact associated with the requester + maxLength: 255 + services: + type: array + items: + type: string + format: uuid + readOnly: true + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + readOnly: true + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - 'null' + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - 'null' + description: Require a cluster with the given workshop ID + maxLength: 64 + workshop_override_password: + type: + - string + - 'null' + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + maxLength: 64 + catalog_id: + type: string + description: Unique ID for this experience in the sales catalog. Must be unique. + writeOnly: true + catalog_id_alias: + type: + - string + - 'null' + description: 'Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique.' + writeOnly: true + experience_id: + type: string + format: uuid + writeOnly: true + required: + - created + - experience + - id + - modified + - org_name + - overrides + - pipelines + - requester_email + - requester_name + - retry_count + - services + - state + Experience: + type: object + properties: + assignee: + type: + - string + - 'null' + description: User ID who is responsible for manual provisioning + maxLength: 32 + autoapprove: + type: boolean + description: Can the experience be provisioned without human approval? + autoprovision: + type: boolean + description: Can the experience be provisioned without human intervention? + bootstrap: + type: boolean + description: Can this experience be used to bootstrap another compatible experience? + catalog_id: + type: string + description: Unique ID for this experience in the sales catalog. Must be unique. + maxLength: 32 + catalog_id_alias: + type: + - string + - 'null' + description: 'Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique.' + maxLength: 8 + category: + allOf: + - $ref: '#/components/schemas/CategoryEnum' + description: |- + Functional group that this experience is targetting + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + collection_branch: + type: string + description: Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + description: + type: + - string + - 'null' + experience: + type: string + description: Experience name slug + maxLength: 64 + experience_branch: + type: string + description: 'Experience branch name used during deployment (default: origin/main)' + maxLength: 255 + fc_platform: + writeOnly: true + description: |- + Fleet Command platform type + + * `docker` - docker + * `k8s` - k8s + oneOf: + - $ref: '#/components/schemas/FcPlatformEnum' + - type: 'null' + fc_support: + type: boolean + writeOnly: true + description: Does the experience support Flight Control? + garage_id: + type: + - string + - 'null' + description: ID of the garage where nodes for this experience should be selected from + maxLength: 64 + gc_branch: + type: string + description: 'Ground Control branch name (default: main)' + maxLength: 255 + gpu_count: + type: integer + maximum: 16 + minimum: 0 + description: Number of GPUs used + gpu_os: + $ref: '#/components/schemas/GpuOs' + id: + type: string + format: uuid + readOnly: true + inactivity_max: + type: integer + maximum: 2147483647 + minimum: 0 + description: 'Number of days without user interaction before the experience is torn down (default: 3)' + lifetime: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: 'Default number of days a provisioned experience should remain active (default: 3). A null lifetime will cause a deployment to remain active indefinitely.' + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + maximum: 2147483647 + minimum: 0 + description: Number of Nodes used + persona: + type: string + pipeline: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Pipeline ID used for provisioning + platform: + allOf: + - $ref: '#/components/schemas/PlatformEnum' + description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + provider: + type: + - string + - 'null' + format: uuid + description: If set, the experience must be provisioned to the given provider + published: + allOf: + - $ref: '#/components/schemas/PublishedEnum' + description: |- + Is the experience published for use? + + * `draft` - draft + * `no` - no + * `yes` - yes + repo: + type: + - string + - 'null' + format: uri + writeOnly: true + description: URL of the repository for provisioning automation + maxLength: 200 + required_gpus: + type: array + items: + type: string + format: uuid + description: 'If set, the experience must be provisioned using one of the given GPU types. GPU requirements are evaluated in the order they are set (ex: ["{l40s_gpu_uuid}", "{a100_gpu_uuid}"] will prefer an l40s).' + sa_lab: + type: boolean + description: Is this a persistent experience for SAs? + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + title: + type: string + vgpu_profile: + description: |- + vGPU profile name used by the experience + + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q + * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + oneOf: + - $ref: '#/components/schemas/VgpuProfileEnum' + - type: 'null' + required: + - catalog_id + - category + - created + - experience + - gpu_os + - id + - modified + - persona + - pipeline + - platform + - system_arch + - title + ExperienceBulk: + type: object + properties: + csv_file: + type: string + format: uri + writeOnly: true + experiences: + type: array + items: + $ref: '#/components/schemas/Experience' + readOnly: true + required: + - csv_file + - experiences + ExperienceBulkUpdate: + type: object + properties: + assignee: + type: + - string + - 'null' + writeOnly: true + description: User ID who is responsible for manual provisioning + maxLength: 32 + autoapprove: + type: boolean + writeOnly: true + description: Can the experience be provisioned without human approval? + autoprovision: + type: boolean + writeOnly: true + description: Can the experience be provisioned without human intervention? + bootstrap: + type: boolean + writeOnly: true + description: Can this experience be used to bootstrap another compatible experience? + catalog_id: + type: string + readOnly: true + writeOnly: true + description: Unique ID for this experience in the sales catalog. Must be unique. + maxLength: 32 + catalog_id_alias: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: 'Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique.' + maxLength: 8 + category: + allOf: + - $ref: '#/components/schemas/CategoryEnum' + writeOnly: true + description: |- + Functional group that this experience is targetting + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + collection_branch: + type: string + writeOnly: true + description: Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + description: + type: + - string + - 'null' + writeOnly: true + experience: + type: string + writeOnly: true + description: Experience name slug + maxLength: 64 + experience_branch: + type: string + writeOnly: true + description: 'Experience branch name used during deployment (default: origin/main)' + maxLength: 255 + fc_platform: + writeOnly: true + description: |- + Fleet Command platform type + + * `docker` - docker + * `k8s` - k8s + oneOf: + - $ref: '#/components/schemas/FcPlatformEnum' + - type: 'null' + fc_support: + type: boolean + writeOnly: true + description: Does the experience support Flight Control? + garage_id: + type: + - string + - 'null' + writeOnly: true + description: ID of the garage where nodes for this experience should be selected from + maxLength: 64 + gc_branch: + type: string + writeOnly: true + description: 'Ground Control branch name (default: main)' + maxLength: 255 + gpu_count: + type: integer + maximum: 16 + minimum: 0 + writeOnly: true + description: Number of GPUs used + gpu_os: + allOf: + - $ref: '#/components/schemas/GpuOs' + writeOnly: true + id: + type: string + format: uuid + readOnly: true + writeOnly: true + inactivity_max: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: 'Number of days without user interaction before the experience is torn down (default: 3)' + lifetime: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: 'Default number of days a provisioned experience should remain active (default: 3). A null lifetime will cause a deployment to remain active indefinitely.' + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: Number of Nodes used + persona: + type: string + writeOnly: true + pipeline: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + writeOnly: true + description: Pipeline ID used for provisioning + platform: + allOf: + - $ref: '#/components/schemas/PlatformEnum' + writeOnly: true + description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + provider: + type: + - string + - 'null' + format: uuid + writeOnly: true + description: If set, the experience must be provisioned to the given provider + published: + allOf: + - $ref: '#/components/schemas/PublishedEnum' + writeOnly: true + description: |- + Is the experience published for use? + + * `draft` - draft + * `no` - no + * `yes` - yes + repo: + type: + - string + - 'null' + format: uri + writeOnly: true + description: URL of the repository for provisioning automation + maxLength: 200 + required_gpus: + type: array + items: + type: string + format: uuid + writeOnly: true + description: 'If set, the experience must be provisioned using one of the given GPU types. GPU requirements are evaluated in the order they are set (ex: ["{l40s_gpu_uuid}", "{a100_gpu_uuid}"] will prefer an l40s).' + sa_lab: + type: boolean + writeOnly: true + description: Is this a persistent experience for SAs? + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + writeOnly: true + description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + title: + type: string + writeOnly: true + vgpu_profile: + writeOnly: true + description: |- + vGPU profile name used by the experience + + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q + * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + oneOf: + - $ref: '#/components/schemas/VgpuProfileEnum' + - type: 'null' + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - catalog_id + - catalog_id_alias + - category + - count + - created + - experience + - gpu_os + - id + - ids + - modified + - persona + - pipeline + - platform + - result + - system_arch + - title + ExperienceNote: + type: object + properties: + content: + type: string + description: Text content of the note + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + created_by: + type: string + readOnly: true + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + modified_by: + type: string + readOnly: true + required: + - created + - created_by + - experience + - id + - modified + - modified_by + FcPlatformEnum: + enum: + - docker + - k8s + type: string + description: |- + * `docker` - docker + * `k8s` - k8s + x-enum-varnames: + - FcPlatformDocker + - FcPlatformK8s + FormFactorEnum: + enum: + - pcie + - sxm + type: string + description: |- + * `pcie` - PCIe + * `sxm` - SXM + x-enum-varnames: + - FormFactorPCIe + - FormFactorSXM + Gpu: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + form_factor: + allOf: + - $ref: '#/components/schemas/FormFactorEnum' + default: pcie + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + id: + type: string + format: uuid + readOnly: true + memory: + type: integer + maximum: 32768 + minimum: 0 + default: 0 + description: Total GPU memory (in GB) + model: + type: string + description: GPU model name + maxLength: 32 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + readOnly: true + priority: + type: integer + maximum: 100 + minimum: 0 + description: Weighted preference to use in selecting a GPU for a deployment. A higher priority means the GPU is in higher demand. Lower priority values will be preferred over higher ones during cluster selection. + required: + - created + - id + - model + - modified + GpuBulkUpdate: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + form_factor: + allOf: + - $ref: '#/components/schemas/FormFactorEnum' + writeOnly: true + default: pcie + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + id: + type: string + format: uuid + readOnly: true + writeOnly: true + memory: + type: integer + maximum: 32768 + minimum: 0 + writeOnly: true + default: 0 + description: Total GPU memory (in GB) + model: + type: string + writeOnly: true + description: GPU model name + maxLength: 32 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + readOnly: true + writeOnly: true + priority: + type: integer + maximum: 100 + minimum: 0 + writeOnly: true + description: Weighted preference to use in selecting a GPU for a deployment. A higher priority means the GPU is in higher demand. Lower priority values will be preferred over higher ones during cluster selection. + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - count + - created + - id + - ids + - model + - modified + - node_count + - result + GpuOs: + type: object + properties: + name: + type: string + release: + type: string + version: + type: string + required: + - name + - release + - version + GpuOsChoice: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: integer + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + description: 'Name of the OS to be provisioned onto GPU Node(s) (ex: ubuntu)' + maxLength: 16 + release: + type: string + description: 'Release name of the OS to be provisioned onto GPU Node(s) (ex: jammy)' + maxLength: 16 + version: + type: string + description: 'Version number of the OS to be provisioned onto GPU Node(s) (ex: 22.04)' + maxLength: 8 + required: + - created + - id + - modified + - name + - release + - version + Instance: + type: object + properties: + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + instance_id: + type: string + description: Unique ID for this instance assigned by its provider + maxLength: 128 + name: + type: + - string + - 'null' + description: User-friendly name of this instance + maxLength: 64 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + state: + allOf: + - $ref: '#/components/schemas/InstanceState' + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + state_modified: + type: string + format: date-time + readOnly: true + tags: + type: array + items: + type: string + maxLength: 64 + description: Tags associated with this instance + required: + - cluster + - created + - id + - instance_id + - modified + - state_modified + InstanceBulkUpdate: + type: object + properties: + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + writeOnly: true + instance_id: + type: string + readOnly: true + writeOnly: true + description: Unique ID for this instance assigned by its provider + maxLength: 128 + name: + type: + - string + - 'null' + writeOnly: true + description: User-friendly name of this instance + maxLength: 64 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + state: + allOf: + - $ref: '#/components/schemas/InstanceState' + writeOnly: true + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + state_modified: + type: string + format: date-time + readOnly: true + writeOnly: true + tags: + type: array + items: + type: string + maxLength: 64 + writeOnly: true + description: Tags associated with this instance + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - cluster + - count + - created + - id + - ids + - instance_id + - modified + - result + - state_modified + InstanceState: + enum: + - running + - starting + - stopped + - stopping + - unknown + type: string + description: |- + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + x-enum-varnames: + - InstanceStateRunning + - InstanceStateStarting + - InstanceStateStopped + - InstanceStateStopping + - InstanceStateUnknown + InstanceType: + type: object + properties: + capacity: + type: object + additionalProperties: + type: integer + description: Key/value pairs of region name and total available capacity for the instance type + cloud: + type: string + description: Cloud provider name + cpu: + type: integer + description: Total number of CPUs/vCPUs available + gpu: + $ref: '#/components/schemas/InstanceTypeGpu' + memory_gb: + type: integer + description: Total system memory (in GB) + price: + $ref: '#/components/schemas/InstanceTypePrice' + regions: + type: array + items: + type: string + description: List of regions names that have available capacity for the instance type + storage: + type: array + items: + $ref: '#/components/schemas/InstanceTypeStorage' + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + required: + - capacity + - cloud + - cpu + - gpu + - memory_gb + - price + - regions + - storage + - system_arch + InstanceTypeGpu: + type: object + properties: + count: + type: integer + description: Total number of GPUs + family: + type: string + description: GPU family name + interconnection_type: + allOf: + - $ref: '#/components/schemas/InterconnectionTypeEnum' + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + manufacturer: + type: string + description: GPU manufacturer name + memory_gb: + type: integer + description: Total GPU memory (in GB) + model: + type: string + description: GPU model name + required: + - count + - family + - interconnection_type + - manufacturer + - memory_gb + - model + InstanceTypePrice: + type: object + properties: + currency: + type: string + description: Currency code + on_demand_per_hour: + type: number + format: double + description: Price per hour + required: + - currency + - on_demand_per_hour + InstanceTypeStorage: + type: object + properties: + size_gb: + type: integer + description: System storage size (in GB) + type: + allOf: + - $ref: '#/components/schemas/TypeEnum' + description: |- + Disk type + + * `nvme` - NVMe + * `ssd` - ssd + required: + - size_gb + - type + InterconnectionTypeEnum: + enum: + - pcie + - sxm + type: string + description: |- + * `pcie` - PCIe + * `sxm` - SXM + x-enum-varnames: + - InterconnectionTypePCIe + - InterconnectionTypeSXM + Location: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 64 + provider: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Provider" + x-go-json-tag: "provider,omitempty" + region: + type: + - string + - 'null' + description: Name of the region the location is in + maxLength: 64 + required: + - created + - id + - modified + - name + - provider + Logout: + type: object + properties: + result: + type: string + readOnly: true + default: Successfully logged out. + required: + - result + ModelChange: + type: object + properties: + change_type: + type: string + readOnly: true + changes: + type: array + items: + type: object + properties: + field: + type: string + new_value: + oneOf: + - type: string + - type: boolean + - type: integer + nullable: true + old_value: + oneOf: + - type: string + - type: boolean + - type: integer + nullable: true + required: + - field + - new_value + - old_value + readOnly: true + created: + type: string + format: date-time + id: + type: integer + username: + type: string + required: + - change_type + - changes + - created + - id + - username + NetworkTypeEnum: + enum: + - ethernet + - infiniband + type: string + description: |- + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + x-enum-varnames: + - NetworkTypeEthernet + - NetworkTypeInfiniband + Node: + type: object + properties: + bmc_ip: + type: + - string + - 'null' + description: IP address of the BMC + bmc_mac: + type: + - string + - 'null' + description: MAC address of the BMC + maxLength: 17 + minLength: 17 + bmc_password: + type: + - string + - 'null' + description: Password for the BMC + maxLength: 32 + bmc_user: + type: + - string + - 'null' + description: Username for the BMC + maxLength: 64 + cluster: + type: + - string + - 'null' + format: uuid + description: UUID of the node's parent cluster + cpu: + type: integer + maximum: 1024 + minimum: 0 + description: Number of CPU cores installed + cpu_manufacturer: + description: |- + Manufacturer of the node's CPU + + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + oneOf: + - $ref: '#/components/schemas/CpuManufacturerEnum' + - type: 'null' + cpu_model: + type: + - string + - 'null' + description: Model information for the node's CPU + maxLength: 64 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + garage_id: + type: + - string + - 'null' + description: ID for the garage where a node is parked when unprovisioned + maxLength: 128 + gpu: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + gpu_alias: + type: string + readOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + maximum: 16 + minimum: 0 + description: Number of GPUs installed + gpu_model: + type: string + readOnly: true + description: Model of GPU(s) installed + gpu_vbios: + type: + - string + - 'null' + description: VBIOS version used by installed GPU(s) + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + location: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Location" + x-go-json-tag: "location,omitempty" + memory: + type: integer + maximum: 32768 + minimum: 0 + description: Amount of RAM installed (in GB) + mgmt_ip: + type: string + description: Management IP address + mgmt_mac: + type: + - string + - 'null' + description: Management MAC address + maxLength: 17 + minLength: 17 + model: + type: + - string + - 'null' + description: Hardware model of the node + maxLength: 64 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + network_type: + allOf: + - $ref: '#/components/schemas/NetworkTypeEnum' + description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + nic_prefixes: + type: array + items: + type: string + maxLength: 15 + description: Prefixes for the node's network interface(s) + notes: + type: + - string + - 'null' + description: Administrative comments about the node + oem: + type: + - string + - 'null' + format: uuid + description: UUID of the node's OEM + provider_node_id: + type: + - string + - 'null' + description: Unique ID for this node assigned by its provider + maxLength: 128 + rack: + type: + - string + - 'null' + description: Physical rack identifier + maxLength: 32 + rack_unit: + type: + - integer + - 'null' + maximum: 52 + minimum: 0 + description: The rack unit (RU) within the rack where the node is installed + serial_number: + type: + - string + - 'null' + description: Serial number of the node + maxLength: 32 + storage: + type: array + items: + $ref: '#/components/schemas/NodeStorage' + minItems: 1 + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + tee: + type: boolean + description: Does the node support Trusted Execution Environment (TEE)? + required: + - created + - gpu + - gpu_alias + - gpu_model + - id + - location + - modified + - storage + - system_arch + NodeBulk: + type: object + properties: + csv_file: + type: string + format: uri + writeOnly: true + nodes: + type: array + items: + $ref: '#/components/schemas/Node' + readOnly: true + required: + - csv_file + - nodes + NodeBulkUpdate: + type: object + properties: + bmc_ip: + type: + - string + - 'null' + writeOnly: true + description: IP address of the BMC + bmc_mac: + type: + - string + - 'null' + writeOnly: true + description: MAC address of the BMC + maxLength: 17 + minLength: 17 + bmc_password: + type: + - string + - 'null' + writeOnly: true + description: Password for the BMC + maxLength: 32 + bmc_user: + type: + - string + - 'null' + writeOnly: true + description: Username for the BMC + maxLength: 64 + cluster: + type: + - string + - 'null' + format: uuid + writeOnly: true + description: UUID of the node's parent cluster + cpu: + type: integer + maximum: 1024 + minimum: 0 + writeOnly: true + description: Number of CPU cores installed + cpu_manufacturer: + writeOnly: true + description: |- + Manufacturer of the node's CPU + + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + oneOf: + - $ref: '#/components/schemas/CpuManufacturerEnum' + - type: 'null' + cpu_model: + type: + - string + - 'null' + writeOnly: true + description: Model information for the node's CPU + maxLength: 64 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + garage_id: + type: + - string + - 'null' + writeOnly: true + description: ID for the garage where a node is parked when unprovisioned + maxLength: 128 + gpu: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + gpu_alias: + type: string + readOnly: true + writeOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + maximum: 16 + minimum: 0 + writeOnly: true + description: Number of GPUs installed + gpu_model: + type: string + readOnly: true + writeOnly: true + description: Model of GPU(s) installed + gpu_vbios: + type: + - string + - 'null' + writeOnly: true + description: VBIOS version used by installed GPU(s) + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + writeOnly: true + location: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Location" + x-go-json-tag: "location,omitempty" + memory: + type: integer + maximum: 32768 + minimum: 0 + writeOnly: true + description: Amount of RAM installed (in GB) + mgmt_ip: + type: string + writeOnly: true + description: Management IP address + mgmt_mac: + type: + - string + - 'null' + writeOnly: true + description: Management MAC address + maxLength: 17 + minLength: 17 + model: + type: + - string + - 'null' + writeOnly: true + description: Hardware model of the node + maxLength: 64 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + network_type: + allOf: + - $ref: '#/components/schemas/NetworkTypeEnum' + writeOnly: true + description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + nic_prefixes: + type: array + items: + type: string + maxLength: 15 + writeOnly: true + description: Prefixes for the node's network interface(s) + notes: + type: + - string + - 'null' + writeOnly: true + description: Administrative comments about the node + oem: + type: + - string + - 'null' + format: uuid + writeOnly: true + description: UUID of the node's OEM + provider_node_id: + type: + - string + - 'null' + writeOnly: true + description: Unique ID for this node assigned by its provider + maxLength: 128 + rack: + type: + - string + - 'null' + writeOnly: true + description: Physical rack identifier + maxLength: 32 + rack_unit: + type: + - integer + - 'null' + maximum: 52 + minimum: 0 + writeOnly: true + description: The rack unit (RU) within the rack where the node is installed + serial_number: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Serial number of the node + maxLength: 32 + storage: + type: array + items: + $ref: '#/components/schemas/NodeStorage' + writeOnly: true + minItems: 1 + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + writeOnly: true + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + tee: + type: boolean + writeOnly: true + description: Does the node support Trusted Execution Environment (TEE)? + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - count + - created + - gpu + - gpu_alias + - gpu_model + - id + - ids + - location + - modified + - result + - serial_number + - storage + - system_arch + NodeStorage: + type: object + properties: + size: + type: integer + default: 0 + description: Disk size (in GB) + maximum: 1000000 + minimum: 0 + type: + allOf: + - $ref: '#/components/schemas/TypeEnum' + description: |- + Disk type + + * `nvme` - NVMe + * `ssd` - ssd + required: + - type + NullEnum: + type: 'null' + OEM: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 64 + required: + - created + - id + - modified + - name + PaginatedClusterList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Cluster' + PaginatedDeploymentInstanceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentInstance' + PaginatedDeploymentKeyList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentKey' + PaginatedDeploymentList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Deployment' + PaginatedDeploymentNoteList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentNote' + PaginatedDeploymentPipelineList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentPipeline' + PaginatedDeploymentServiceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentService' + PaginatedDeploymentTaskList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentTask' + PaginatedExperienceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Experience' + PaginatedExperienceNoteList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/ExperienceNote' + PaginatedGpuList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Gpu' + PaginatedGpuOsChoiceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/GpuOsChoice' + PaginatedInstanceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Instance' + PaginatedInstanceTypeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/InstanceType' + PaginatedLocationList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Location' + PaginatedModelChangeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/ModelChange' + PaginatedNodeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Node' + PaginatedOEMList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/OEM' + PaginatedPersonaChoiceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/PersonaChoice' + PaginatedProviderList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Provider' + PasswordChange: + type: object + properties: + username: + type: string + writeOnly: true + password: + type: string + writeOnly: true + new_password: + type: string + writeOnly: true + result: + type: string + readOnly: true + default: Password changed successfully. + required: + - new_password + - password + - result + - username + PersonaChoice: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: integer + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 32 + required: + - created + - id + - modified + - name + PlatformEnum: + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere_horizon + - vsphere7 + - vsphere8 + type: string + description: |- + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + x-enum-varnames: + - PlatformAir + - PlatformFlightDeck + - PlatformKvmBastion + - PlatformLpVmwarePlatformLegacy + - PlatformMinimal + - PlatformOpenshift + - PlatformVsphere + - PlatformVsphereHorizon + - PlatformVsphere7 + - PlatformVsphere8 + PreferredThemeEnum: + enum: + - light + - dark + type: string + description: |- + * `light` - light + * `dark` - dark + x-enum-varnames: + - PreferredThemeLight + - PreferredThemeDark + PriorityEnum: + enum: + - p0 + - p1 + - p2 + - p3 + type: string + description: |- + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + x-enum-varnames: + - PriorityP0 + - PriorityP1 + - PriorityP2 + - PriorityP3 + Profile: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + groups: + type: array + items: + type: string + readOnly: true + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + preferred_theme: + description: |- + Preferred user interface theme + + * `light` - light + * `dark` - dark + oneOf: + - $ref: '#/components/schemas/PreferredThemeEnum' + - type: 'null' + preferred_view_settings: + description: Preferred user view settings + username: + type: string + required: + - created + - groups + - id + - modified + - username + Provider: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + display_name: + type: + - string + - 'null' + description: Human-friendly version of name. Used for display purposes. + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + instance_limit: + type: integer + maximum: 2147483647 + minimum: 0 + description: The maximum number of provisionined instances allowed globally for the provider (0 = unlimited) + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 64 + priority: + type: integer + maximum: 100 + minimum: 0 + description: Weighted preference to use in selecting a provider for a deployment. Higher priority values will be preferred over lower ones. + required: + - created + - id + - modified + - name + ProviderBulkUpdate: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + display_name: + type: + - string + - 'null' + writeOnly: true + description: Human-friendly version of name. Used for display purposes. + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + writeOnly: true + instance_limit: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: The maximum number of provisionined instances allowed globally for the provider (0 = unlimited) + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + name: + type: string + readOnly: true + writeOnly: true + maxLength: 64 + priority: + type: integer + maximum: 100 + minimum: 0 + writeOnly: true + description: Weighted preference to use in selecting a provider for a deployment. Higher priority values will be preferred over lower ones. + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - count + - created + - id + - ids + - modified + - name + - result + ProvisioningStateEnum: + enum: + - deployed + - deploying + - destroying + - pending + - ready + - reserved + - unprovisioned + type: string + description: |- + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + x-enum-varnames: + - ProvisioningStateDeployed + - ProvisioningStateDeploying + - ProvisioningStateDestroying + - ProvisioningStatePending + - ProvisioningStateReady + - ProvisioningStateReserved + - ProvisioningStateUnprovisioned + PublishedEnum: + enum: + - draft + - 'no' + - 'yes' + type: string + description: |- + * `draft` - draft + * `no` - no + * `yes` - yes + x-enum-varnames: + - PublishedDraft + - PublishedNo + - PublishedYes + StatusEnum: + enum: + - completed + - failed + - pending + - processing + - retrying + type: string + description: |- + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + x-enum-varnames: + - StatusCompleted + - StatusFailed + - StatusPending + - StatusProcessing + - StatusRetrying + SystemArchEnum: + enum: + - amd64 + - arm64 + type: string + description: |- + * `amd64` - amd64 + * `arm64` - arm64 + x-enum-varnames: + - SystemArchAMD64 + - SystemArchARM64 + Tenant: + type: object + properties: + id: + type: string + format: uuid + writeOnly: true + required: + - id + TypeEnum: + enum: + - nvme + - ssd + type: string + description: |- + * `nvme` - NVMe + * `ssd` - ssd + x-enum-varnames: + - TypeNVMe + - TypeSSD + VgpuProfileEnum: + enum: + - air + - bright_cluster + - bright-cluster + - flight_deck + - flight-deck + - nvidia_a40-48q + - nvidia-ai-enterprise + - nvidia_l40s-48q + - nvidia_rtx_pro_6000_blackwell_dc-4-96q + - nvidia_rtx_pro_6000_blackwell_dc-96q + - openshift + - platform_only + - vmware_itadmin + type: string + description: |- + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q + * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + x-enum-varnames: + - VgpuProfileAir + - VgpuProfileBrightCluster + - VgpuProfileBrightClusterLegacy + - VgpuProfileFlightDeck + - VgpuProfileFlightDeckLegacy + - VgpuProfileNvidiaA4048QLegacy + - VgpuProfileNvidiaAiEnterpriseLegacy + - VgpuProfileNvidiaL40s48QLegacy + - VgpuProfileNvidiaRtxPro6000BlackwellDc496QLegacy + - VgpuProfileNvidiaRtxPro6000BlackwellDc96QLegacy + - VgpuProfileOpenshift + - VgpuProfilePlatformOnly + - VgpuProfileVmwareItadmin + securitySchemes: + TokenAuthentication: + type: apiKey + in: header + name: Authorization + description: 'Authenticate with your user''s API token. Be sure to include a prefix of "Token" (ex: "Token xxxxx").' diff --git a/v1/providers/launchpad/swagger-v2.36.0.yaml b/v1/providers/launchpad/swagger-v2.36.0.yaml new file mode 100644 index 0000000..5b57a1e --- /dev/null +++ b/v1/providers/launchpad/swagger-v2.36.0.yaml @@ -0,0 +1,12043 @@ +openapi: 3.1.0 +info: + title: NVIDIA LaunchPad API + version: 2.36.0 + description: RESTful API for interacting with the NVIDIA LaunchPad platform +paths: + /v1/auth/login/: + post: + operationId: auth_login_create + description: Login with either an authorization code or username and password (deprecated) to generate an API token that can be used with all other API endpoints. + tags: + - auth + requestBody: + content: + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/AuthLogin' + multipart/form-data: + schema: + $ref: '#/components/schemas/AuthLogin' + application/json: + schema: + $ref: '#/components/schemas/AuthLogin' + examples: + AuthCode: + value: + auth_code: string + summary: Auth Code + Username&Password(deprecated): + value: + username: string + password: string + summary: Username & Password (deprecated) + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AuthToken' + description: '' + /v1/auth/logout/: + post: + operationId: auth_logout_create + description: Logout from the current session. Your API token will no longer be usable and must be regenerated via the login API. + tags: + - auth + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Logout' + description: '' + /v1/auth/password-change/: + post: + operationId: auth_password_change_create + description: Change your current password + tags: + - auth + requestBody: + content: + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/PasswordChange' + multipart/form-data: + schema: + $ref: '#/components/schemas/PasswordChange' + application/json: + schema: + $ref: '#/components/schemas/PasswordChange' + required: true + security: + - TokenAuthentication: [] + deprecated: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PasswordChange' + description: '' + /v1/auth/redirect/: + get: + operationId: auth_redirect_retrieve + description: Get an HTTP redirect to begin an OAuth login flow. + parameters: + - in: query + name: as_json + schema: + type: boolean + description: If "false" or unset, receive an HTTP 302 with the OAuth URL returned in the Location header. If "true", receive an HTTP 200 with the OAuth URL returned in the JSON payload. + tags: + - auth + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AuthRedirect' + description: '' + '302': + description: No response body + /v1/catalog/deployments/: + get: + operationId: catalog_deployments_list + parameters: + - in: query + name: bastion_operating_system + schema: + type: string + - in: query + name: cluster + schema: + type: string + format: uuid + - in: query + name: cluster_gpus_model + schema: + type: array + items: + type: string + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: collection_branch + schema: + type: string + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: experience + schema: + type: string + format: uuid + - in: query + name: experience_branch + schema: + type: string + - in: query + name: expired + schema: + type: boolean + - in: query + name: expires_at + schema: + type: string + format: date + - in: query + name: expiring + schema: + type: string + description: Include deployments whose expires_at value is within the given range (inclusive), specified as "today", "tomorrow", or "{start}[,end]". Start and end times must be in ISO format. + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: flightcontrol_release + schema: + type: string + - in: query + name: garage_id + schema: + type: string + - in: query + name: gc_branch + schema: + type: string + - in: query + name: gpu_alias + schema: + type: string + - in: query + name: gpu_count + schema: + type: integer + - in: query + name: gpu_model + schema: + type: string + - in: query + name: gpu_os_name + schema: + type: string + - in: query + name: gpu_os_release + schema: + type: string + - in: query + name: gpu_os_version + schema: + type: string + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: node_count + schema: + type: integer + - in: query + name: oem_name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: org_name + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: persist_on_failure + schema: + type: boolean + - in: query + name: persona + schema: + type: string + - in: query + name: pipeline + schema: + type: integer + - in: query + name: pipeline_branch + schema: + type: string + - in: query + name: platform + schema: + type: + - string + - 'null' + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere7 + - vsphere8 + - vsphere_horizon + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + - in: query + name: priority + schema: + type: string + enum: + - p0 + - p1 + - p2 + - p3 + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + - in: query + name: provider_name + schema: + type: string + - in: query + name: region + schema: + type: string + - in: query + name: request_id + schema: + type: string + - in: query + name: requester_email + schema: + type: string + - in: query + name: requester_name + schema: + type: string + - in: query + name: sales_id + schema: + type: string + - in: query + name: sales_owner_email + schema: + type: string + - in: query + name: sales_owner_name + schema: + type: string + - name: search + required: false + in: query + description: Search for deployments by bastion_operating_system, collection_branch, experience_branch, experience catalog_id, experience catalog_id_alias, experience id, experience title, expires_at, flightcontrol_release, garage_id, gc_branch, gpu_alias, gpu_model, gpu_os_name, gpu_os_release, gpu_os_version, id, oem_name, org_name, persona, pipeline_branch, platform, provider_name, region, request_id, requester_email, requester_name, sales_id, sales_owner_email, sales_owner_name, services url, state, tags, workshop_id + schema: + type: string + - in: query + name: state + schema: + type: array + items: + type: string + enum: + - destroyed + - destroying + - error + - failed + - paused + - ready + - retrying + - starting + - stopped + - stopping + - waiting + description: |- + Multiple values may be separated by commas. + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + explode: false + style: form + - in: query + name: workshop + schema: + type: boolean + - in: query + name: workshop_id + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-20 23:33:33.328914+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Response + description: '' + post: + operationId: catalog_deployments_create + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Deployment' + examples: + DeploymentRequest(CatalogIDAlias): + value: + bastion_operating_system: ubuntu_22_04 + catalog_id_alias: LP-15 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + expires_at: 2025-09-20 23:33:33.328914+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Request (Catalog ID Alias) + DeploymentRequest(ExperienceID): + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + experience_id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + expires_at: 2025-09-20 23:33:33.328914+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Request (Experience ID) + DeploymentRequest(CatalogID): + value: + bastion_operating_system: ubuntu_22_04 + catalog_id: aBY3Z000000xBL4NCO + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + expires_at: 2025-09-20 23:33:33.328914+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Request (Catalog ID) + DeploymentRequest(MinimumRequiredFields): + value: + experience_id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + org_name: NVIDIA + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + summary: Deployment Request (Minimum Required Fields) + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Deployment' + multipart/form-data: + schema: + $ref: '#/components/schemas/Deployment' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Deployment' + examples: + SuccessfulResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-20 23:33:33.328914+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Response + description: '' + /v1/catalog/deployments/{deployment_id}/instances/: + get: + operationId: catalog_deployments_instances_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: instance_id + schema: + type: string + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-instances by id, instance_id, name, state, tags + schema: + type: string + - in: query + name: state + schema: + type: string + enum: + - running + - starting + - stopped + - stopping + - unknown + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentInstanceList' + examples: + DeploymentInstanceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: DeploymentInstance Response + description: '' + /v1/catalog/deployments/{deployment_id}/notes/: + get: + operationId: catalog_deployments_notes_list + parameters: + - in: query + name: created_by + schema: + type: integer + - in: query + name: deployment + schema: + type: string + format: uuid + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: modified_by + schema: + type: integer + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-notes by content + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentNoteList' + examples: + DeploymentNoteResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + post: + operationId: catalog_deployments_notes_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteRequest: + value: + content: Hello world + summary: DeploymentNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentNote' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + /v1/catalog/deployments/{deployment_id}/notes/{id}/: + get: + operationId: catalog_deployments_notes_retrieve + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + put: + operationId: catalog_deployments_notes_update + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteRequest: + value: + content: Hello world + summary: DeploymentNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentNote' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + patch: + operationId: catalog_deployments_notes_partial_update + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteRequest: + value: + content: Hello world + summary: DeploymentNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentNote' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + delete: + operationId: catalog_deployments_notes_destroy + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/catalog/deployments/{deployment_id}/pipelines/: + get: + operationId: catalog_deployments_pipelines_list + parameters: + - in: query + name: action + schema: + type: string + enum: + - apply + - destroy + description: |- + Action for the pipeline to run + + * `apply` - apply + * `destroy` - destroy + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: pipeline_id + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-pipelines by action, id, pipeline_id, url + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentPipelineList' + examples: + DeploymentPipelineResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - action: apply + created: '2024-04-01T06:14:32.602Z' + deployment: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + id: 4b9fab90-b441-4896-bb1f-c765fd846307 + modified: '2024-05-03T17:03:45.380Z' + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + summary: DeploymentPipeline Response + description: '' + post: + operationId: catalog_deployments_pipelines_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentPipeline' + examples: + DeploymentPipelineRequest: + value: + action: apply + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + summary: DeploymentPipeline Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentPipeline' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentPipeline' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentPipeline' + examples: + DeploymentPipelineResponse: + value: + action: apply + created: '2024-04-01T06:14:32.602Z' + deployment: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + id: 4b9fab90-b441-4896-bb1f-c765fd846307 + modified: '2024-05-03T17:03:45.380Z' + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + summary: DeploymentPipeline Response + description: '' + /v1/catalog/deployments/{deployment_id}/services/: + get: + operationId: catalog_deployments_services_list + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-services by id, name, url + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentServiceList' + examples: + DeploymentServiceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: deb28859-d04e-4976-88d2-9488d9616bcf + modified: '2024-05-03T17:03:45.380Z' + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + summary: DeploymentService Response + description: '' + post: + operationId: catalog_deployments_services_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentService' + examples: + DeploymentServiceRequest: + value: + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + summary: DeploymentService Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentService' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentService' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentService' + examples: + DeploymentServiceResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: deb28859-d04e-4976-88d2-9488d9616bcf + modified: '2024-05-03T17:03:45.380Z' + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + summary: DeploymentService Response + description: '' + /v1/catalog/deployments/{deployment_id}/ssh-keys/: + get: + operationId: catalog_deployments_ssh_keys_list + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-keys by name + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentKeyList' + examples: + DeploymentKeyResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 597f6c78-6195-4bc7-9db2-f344f71e8b47 + modified: '2024-05-03T17:03:45.380Z' + name: My Key + summary: DeploymentKey Response + description: '' + post: + operationId: catalog_deployments_ssh_keys_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentKey' + examples: + DeploymentKeyRequest: + value: + name: My Key + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + summary: DeploymentKey Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentKey' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentKey' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentKey' + examples: + DeploymentKeyResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 597f6c78-6195-4bc7-9db2-f344f71e8b47 + modified: '2024-05-03T17:03:45.380Z' + name: My Key + summary: DeploymentKey Response + description: '' + /v1/catalog/deployments/{deployment_id}/ssh-keys/{id}/: + delete: + operationId: catalog_deployments_ssh_keys_destroy + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/catalog/deployments/{deployment_id}/tasks/: + get: + operationId: catalog_deployments_tasks_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: query + name: action + schema: + type: string + enum: + - start_instances + - stop_instances + description: |- + The action the task will perform + + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-tasks by action, id, status, status_text + schema: + type: string + - in: query + name: status + schema: + type: string + enum: + - completed + - failed + - pending + - processing + - retrying + description: |- + Current status of the task + + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentTaskList' + examples: + DeploymentTaskResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - action: start_instances + created: '2024-04-01T06:14:32.602Z' + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: '2024-05-03T17:03:45.380Z' + retries: 0 + status: pending + status_text: '' + summary: DeploymentTask Response + description: '' + post: + operationId: catalog_deployments_tasks_create + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentTask' + examples: + DeploymentTaskRequest: + value: + action: start_instances + summary: DeploymentTask Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentTask' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentTask' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentTask' + examples: + DeploymentTaskResponse: + value: + action: start_instances + created: '2024-04-01T06:14:32.602Z' + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: '2024-05-03T17:03:45.380Z' + retries: 0 + status: pending + status_text: '' + summary: DeploymentTask Response + description: '' + /v1/catalog/deployments/{deployment_id}/tasks/{id}/: + get: + operationId: catalog_deployments_tasks_retrieve + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentTask' + examples: + DeploymentTaskResponse: + value: + action: start_instances + created: '2024-04-01T06:14:32.602Z' + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: '2024-05-03T17:03:45.380Z' + retries: 0 + status: pending + status_text: '' + summary: DeploymentTask Response + description: '' + /v1/catalog/deployments/{id}/: + get: + operationId: catalog_deployments_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: expiring + schema: + type: string + description: Include deployments whose expires_at value is within the given range (inclusive), specified as "today", "tomorrow", or "{start}[,end]". Start and end times must be in ISO format. + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Deployment' + examples: + SuccessfulResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-20 23:33:33.328914+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Response + description: '' + put: + operationId: catalog_deployments_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + examples: + DeploymentRequest: + value: + collection_branch: my-branch + experience_branch: main + expires_at: 2025-10-17 23:33:33.329062+00:00 + flightcontrol_release: latest + gc_branch: main + ip_allowlist: + - 192.0.2.1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + state: retrying + tags: + sample: test + summary: Deployment Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + examples: + DeploymentResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-20 23:33:33.328914+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Response + description: '' + patch: + operationId: catalog_deployments_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + examples: + DeploymentRequest: + value: + collection_branch: my-branch + experience_branch: main + expires_at: 2025-10-17 23:33:33.329062+00:00 + flightcontrol_release: latest + gc_branch: main + ip_allowlist: + - 192.0.2.1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + state: retrying + tags: + sample: test + summary: Deployment Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + examples: + DeploymentResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-20 23:33:33.328914+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Response + description: '' + delete: + operationId: catalog_deployments_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DocDeploymentDelete' + examples: + SuccessfulDestroyingResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-20 23:33:33.328914+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: destroying + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Destroying Response + description: '' + '204': + description: No response body + /v1/catalog/deployments/{id}/history/: + get: + operationId: catalog_deployments_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/catalog/deployments/bulk/: + patch: + operationId: catalog_deployments_bulk_partial_update + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + examples: + DeploymentBulkUpdateRequest: + value: + collection_branch: my-branch + experience_branch: main + expires_at: 2025-10-17 23:33:33.329062+00:00 + flightcontrol_release: latest + gc_branch: main + ids: + - 5330c898-f3e7-4972-bfd0-1d438e3774d7 + - b29d13e5-5894-4614-af2a-ea3f9be93fc5 + ip_allowlist: + - 192.0.2.1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + state: retrying + tags: + sample: test + summary: Deployment Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + examples: + DeploymentBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Deployment Bulk Update Response + description: '' + /v1/catalog/deployments/stats/: + get: + operationId: catalog_deployments_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body + /v1/catalog/experiences/: + get: + operationId: catalog_experiences_list + parameters: + - in: query + name: assignee + schema: + type: string + - in: query + name: autoapprove + schema: + type: boolean + - in: query + name: autoprovision + schema: + type: boolean + - in: query + name: bootstrap + schema: + type: boolean + - in: query + name: catalog_id + schema: + type: string + - in: query + name: catalog_id_alias + schema: + type: string + - in: query + name: category + schema: + type: array + items: + type: string + enum: + - 3D Design Collaboration and Simulation + - AI + - Clara + - Data Science + - Developer + - Infrastructure Optimization + description: |- + Multiple values may be separated by commas. + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + explode: false + style: form + - in: query + name: collection_branch + schema: + type: string + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "required_gpus").' + - in: query + name: experience + schema: + type: string + - in: query + name: experience_branch + schema: + type: string + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: garage_id + schema: + type: string + - in: query + name: gc_branch + schema: + type: string + - in: query + name: gpu_count + schema: + type: integer + - in: query + name: gpu_os_name + schema: + type: string + - in: query + name: gpu_os_release + schema: + type: string + - in: query + name: gpu_os_version + schema: + type: string + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: node_count + schema: + type: integer + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: persona + schema: + type: string + - in: query + name: pipeline + schema: + type: integer + - in: query + name: platform + schema: + type: string + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere7 + - vsphere8 + - vsphere_horizon + description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: published + schema: + type: array + items: + type: string + enum: + - draft + - 'no' + - 'yes' + description: |- + Multiple values may be separated by commas. + + * `draft` - draft + * `no` - no + * `yes` - yes + explode: false + style: form + - in: query + name: requires_gpu + schema: + type: string + description: Only include experiences that require a given GPU ID or model + - in: query + name: sa_lab + schema: + type: boolean + - name: search + required: false + in: query + description: Search for experiences by assignee, catalog_id, catalog_id_alias, category, collection_branch, description, experience, experience_branch, gc_branch, gpu_os_name, gpu_os_release, gpu_os_version, id, persona, pipeline, platform, provider name, required_gpus model, system_arch, title, vgpu_profile + schema: + type: string + - in: query + name: system_arch + schema: + type: string + enum: + - amd64 + - arm64 + description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + - in: query + name: vgpu_profile + schema: + type: + - string + - 'null' + enum: + - air + - bright-cluster + - bright_cluster + - flight-deck + - flight_deck + - nvidia-ai-enterprise + - nvidia_a40-48q + - nvidia_l40s-48q + - nvidia_rtx_pro_6000_blackwell_dc-4-96q + - nvidia_rtx_pro_6000_blackwell_dc-96q + - openshift + - platform_only + - vmware_itadmin + description: |- + vGPU profile name used by the experience + + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q + * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedExperienceList' + examples: + ExperienceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + post: + operationId: catalog_experiences_create + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Experience' + multipart/form-data: + schema: + $ref: '#/components/schemas/Experience' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + /v1/catalog/experiences/{experience_id}/notes/: + get: + operationId: catalog_experiences_notes_list + parameters: + - in: query + name: created_by + schema: + type: integer + - in: query + name: experience + schema: + type: string + format: uuid + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: modified_by + schema: + type: integer + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for experience-notes by content + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedExperienceNoteList' + examples: + ExperiencetNoteResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + post: + operationId: catalog_experiences_notes_create + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteRequest: + value: + content: Hello world + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + summary: ExperiencetNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ExperienceNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExperienceNote' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + /v1/catalog/experiences/{experience_id}/notes/{id}/: + get: + operationId: catalog_experiences_notes_retrieve + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + put: + operationId: catalog_experiences_notes_update + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteRequest: + value: + content: Hello world + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + summary: ExperiencetNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ExperienceNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExperienceNote' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + patch: + operationId: catalog_experiences_notes_partial_update + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteRequest: + value: + content: Hello world + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + summary: ExperiencetNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ExperienceNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExperienceNote' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + delete: + operationId: catalog_experiences_notes_destroy + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/catalog/experiences/{id}/: + get: + operationId: catalog_experiences_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "required_gpus").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + put: + operationId: catalog_experiences_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Experience' + multipart/form-data: + schema: + $ref: '#/components/schemas/Experience' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + patch: + operationId: catalog_experiences_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Experience' + multipart/form-data: + schema: + $ref: '#/components/schemas/Experience' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + delete: + operationId: catalog_experiences_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/catalog/experiences/{id}/history/: + get: + operationId: catalog_experiences_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/catalog/experiences/bulk/: + post: + operationId: catalog_experiences_bulk_create + description: Create experiences in bulk via CSV file upload + tags: + - catalog/experiences + requestBody: + content: + multipart/form-data: + schema: + type: object + properties: + csv_file: + type: string + format: binary + writeOnly: true + required: + - csv_file + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceBulk' + description: '' + patch: + operationId: catalog_experiences_bulk_partial_update + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceBulkUpdate' + examples: + ExperienceBulkUpdateRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + ids: + - c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + - 3587f151-b02a-46c7-80a4-ac61db6633ed + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Bulk Update Request + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceBulkUpdate' + examples: + ExperienceBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Experience Bulk Update Response + description: '' + /v1/catalog/experiences/stats/: + get: + operationId: catalog_experiences_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body + /v1/catalog/gpu-os-choices/: + get: + operationId: catalog_gpu_os_choices_list + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for gpuoschoices by id, name, release, version + schema: + type: string + tags: + - catalog/gpu-os-choices + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedGpuOsChoiceList' + examples: + GPUOSChoiceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 22 + modified: '2024-05-03T17:03:45.380Z' + name: ubuntu + release: jammy + version: '22.04' + summary: GPU OS Choice Response + description: '' + post: + operationId: catalog_gpu_os_choices_create + tags: + - catalog/gpu-os-choices + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GpuOsChoice' + examples: + GPUOSChoiceRequest: + value: + name: ubuntu + release: jammy + version: '22.04' + summary: GPU OS Choice Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/GpuOsChoice' + multipart/form-data: + schema: + $ref: '#/components/schemas/GpuOsChoice' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/GpuOsChoice' + examples: + GPUOSChoiceResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 22 + modified: '2024-05-03T17:03:45.380Z' + name: ubuntu + release: jammy + version: '22.04' + summary: GPU OS Choice Response + description: '' + /v1/catalog/instance-types/: + get: + operationId: catalog_instance_types_list + parameters: + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - catalog/instance-types + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedInstanceTypeList' + examples: + InstanceTypeResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - capacity: + us-tx-1: 10 + cloud: oci + cpu: 16 + gpu: + count: 1 + family: A100 + interconnection_type: SXM + manufacturer: NVIDIA + memory_gb: 80 + model: A100-80GB + memory_gb: 120 + price: + currency: USD + on_demand_per_hour: 2.5 + regions: + - us-tx-1 + storage: + - size_gb: 1024 + type: ssd + - size_gb: 2048 + type: ssd + system_arch: amd64 + summary: Instance Type Response + description: '' + /v1/catalog/persona-choices/: + get: + operationId: catalog_persona_choices_list + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for personachoices by id, name + schema: + type: string + tags: + - catalog/persona-choices + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedPersonaChoiceList' + examples: + PersonaChoiceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 15 + modified: '2024-05-03T17:03:45.380Z' + name: developer + summary: Persona Choice Response + description: '' + post: + operationId: catalog_persona_choices_create + tags: + - catalog/persona-choices + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PersonaChoice' + examples: + PersonaChoiceRequest: + value: + name: developer + summary: Persona Choice Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/PersonaChoice' + multipart/form-data: + schema: + $ref: '#/components/schemas/PersonaChoice' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/PersonaChoice' + examples: + PersonaChoiceResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 15 + modified: '2024-05-03T17:03:45.380Z' + name: developer + summary: Persona Choice Response + description: '' + /v1/identity/profile/: + get: + operationId: identity_profile_retrieve + tags: + - identity/profile + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Profile' + examples: + ProfileResponse: + value: + created: '2024-10-01T07:24:42.702Z' + groups: + - Reporters + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + modified: '2024-11-03T18:04:55.480Z' + preferred_theme: dark + preferred_view_settings: + view_name: + ordering: -column_name + page_size: 50 + username: jdoe@nvidia.com + summary: Profile Response + description: '' + patch: + operationId: identity_profile_partial_update + tags: + - identity/profile + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Profile' + examples: + ProfileRequest: + value: + preferred_theme: dark + preferred_view_settings: + view_name: + ordering: -column_name + page_size: 50 + summary: Profile Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Profile' + multipart/form-data: + schema: + $ref: '#/components/schemas/Profile' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Profile' + examples: + ProfileResponse: + value: + created: '2024-10-01T07:24:42.702Z' + groups: + - Reporters + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + modified: '2024-11-03T18:04:55.480Z' + preferred_theme: dark + preferred_view_settings: + view_name: + ordering: -column_name + page_size: 50 + username: jdoe@nvidia.com + summary: Profile Response + description: '' + /v1/inventory/clusters/: + get: + operationId: inventory_clusters_list + parameters: + - in: query + name: available + schema: + type: boolean + description: Is the cluster currently available for provisioning? + - in: query + name: bastion_name + schema: + type: string + - in: query + name: deployment + schema: + type: string + format: uuid + - in: query + name: enabled + schema: + type: boolean + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "nodes.location"). Separate multiple fields with a comma (ex: "gpus,nodes")' + - in: query + name: experience + schema: + type: string + format: uuid + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: garage_id + schema: + type: string + description: Only include clusters whose nodes have the given garage ID + - in: query + name: gpu + schema: + type: array + items: + type: string + format: uuid + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: gpu_alias + schema: + type: string + description: Alias for GPU plan (i.e. installed GPU type and count) + - in: query + name: gpu_count + schema: + type: number + description: Only include clusters with a physical GPU count equal to this value + - in: query + name: gpu_model + schema: + type: string + description: Only include clusters with the given GPU model name + - in: query + name: has_deployment + schema: + type: boolean + - in: query + name: has_request_id + schema: + type: boolean + - in: query + name: has_workshop_id + schema: + type: boolean + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: location + schema: + type: string + format: uuid + - in: query + name: location_name + schema: + type: string + description: Only include clusters whose nodes are in the location with the given name + - in: query + name: location_region + schema: + type: string + description: Only include clusters whose nodes are in the location in the given region + - in: query + name: maintenance + schema: + type: boolean + - in: query + name: mgmt_ip + schema: + type: string + - in: query + name: mgmt_mac + schema: + type: string + - in: query + name: min_gpu_count + schema: + type: number + description: Only include clusters that have a gpu_count greater than or equal to this value + - in: query + name: min_node_count + schema: + type: number + description: Only include clusters that have a node_count greater than or equal to this value + - in: query + name: min_provisioning_attempts + schema: + type: integer + description: Only include clusters that have a provisioning_attempts value greater than or equal to this value + - in: query + name: min_tenant_count + schema: + type: number + description: Only include clusters whose number of tenant_ids is greater than or equal to this value + - in: query + name: netmask + schema: + type: integer + - in: query + name: node_count + schema: + type: number + description: Only include clusters with a node count equal to this value + - in: query + name: oem + schema: + type: string + format: uuid + description: Only include clusters with nodes that have the given OEM ID + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: persist + schema: + type: boolean + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: provider_capacity + schema: + type: boolean + - in: query + name: provider_name + schema: + type: string + description: Only include clusters whose nodes are from the provider with the given name + - in: query + name: provider_node_id + schema: + type: string + format: uuid + - in: query + name: provision_user + schema: + type: string + - in: query + name: provisioning_attempts + schema: + type: integer + - in: query + name: provisioning_state + schema: + type: array + items: + type: string + enum: + - deployed + - deploying + - destroying + - pending + - ready + - reserved + - unprovisioned + description: |- + Multiple values may be separated by commas. + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + explode: false + style: form + - in: query + name: public_address + schema: + type: string + - in: query + name: rack + schema: + type: string + description: Only include clusters whose nodes are in the given rack + - in: query + name: request_id + schema: + type: string + - in: query + name: reservation + schema: + type: boolean + - name: search + required: false + in: query + description: Search for clusters by bastion_name, experience id, gpu_alias, gpus model, id, mgmt_ip, mgmt_mac, netmask, nodes garage_id, nodes location name, nodes location provider name, nodes oem name, nodes provider_node_id, nodes rack, notes, provision_user, provisioning_state, public_address, request_id, tenant_ids, workshop_id + schema: + type: string + - in: query + name: system_arch + schema: + type: string + description: Only include clusters whose nodes have the given CPU architecture + - in: query + name: vlan_id + schema: + type: integer + - in: query + name: workshop + schema: + type: boolean + - in: query + name: workshop_id + schema: + type: string + - in: query + name: workshop_id_not + schema: + type: string + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedClusterList' + examples: + ClusterResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + post: + operationId: inventory_clusters_create + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Cluster' + multipart/form-data: + schema: + $ref: '#/components/schemas/Cluster' + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + /v1/inventory/clusters/{cluster_id}/tenants/: + post: + operationId: inventory_clusters_tenants_create + parameters: + - in: path + name: cluster_id + schema: + type: string + format: uuid + required: true + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Tenant' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Tenant' + multipart/form-data: + schema: + $ref: '#/components/schemas/Tenant' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + /v1/inventory/clusters/{cluster_id}/tenants/{id}/: + delete: + operationId: inventory_clusters_tenants_destroy + parameters: + - in: path + name: cluster_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/clusters/{id}/: + get: + operationId: inventory_clusters_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "nodes.location"). Separate multiple fields with a comma (ex: "gpus,nodes")' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + put: + operationId: inventory_clusters_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Cluster' + multipart/form-data: + schema: + $ref: '#/components/schemas/Cluster' + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + patch: + operationId: inventory_clusters_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Cluster' + multipart/form-data: + schema: + $ref: '#/components/schemas/Cluster' + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + delete: + operationId: inventory_clusters_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/clusters/{id}/history/: + get: + operationId: inventory_clusters_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/clusters/bulk/: + patch: + operationId: inventory_clusters_bulk_partial_update + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + examples: + ClusterBulkUpdateRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + ids: + - 089324a5-708c-4386-9fdc-92dd9aa63d2b + - 3587f151-b02a-46c7-80a4-ac61db6633ed + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + examples: + ClusterBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Cluster Bulk Update Response + description: '' + /v1/inventory/clusters/stats/: + get: + operationId: inventory_clusters_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body + /v1/inventory/gpus/: + get: + operationId: inventory_gpus_list + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: form_factor + schema: + type: string + enum: + - pcie + - sxm + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: model + schema: + type: array + items: + type: string + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: priority + schema: + type: integer + - name: search + required: false + in: query + description: Search for gpus by form_factor, id, memory, model + schema: + type: string + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedGpuList' + examples: + GPUResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + post: + operationId: inventory_gpus_create + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPURequest: + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + summary: GPU Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Gpu' + multipart/form-data: + schema: + $ref: '#/components/schemas/Gpu' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPUResponse: + value: + created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + /v1/inventory/gpus/{id}/: + get: + operationId: inventory_gpus_retrieve + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPUResponse: + value: + created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + put: + operationId: inventory_gpus_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPURequest: + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + summary: GPU Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Gpu' + multipart/form-data: + schema: + $ref: '#/components/schemas/Gpu' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPUResponse: + value: + created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + patch: + operationId: inventory_gpus_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPURequest: + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + summary: GPU Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Gpu' + multipart/form-data: + schema: + $ref: '#/components/schemas/Gpu' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPUResponse: + value: + created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + delete: + operationId: inventory_gpus_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/gpus/{id}/history/: + get: + operationId: inventory_gpus_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/gpus/bulk/: + patch: + operationId: inventory_gpus_bulk_partial_update + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + examples: + GPUBulkUpdateRequest: + value: + form_factor: pcie + ids: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + - d63c8b0d-acb9-4c87-b4f7-656ecea5b02a + memory: 48 + priority: 60 + summary: GPU Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + examples: + GPUBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: GPU Bulk Update Response + description: '' + /v1/inventory/gpus/stats/: + get: + operationId: inventory_gpus_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body + /v1/inventory/instances/: + get: + operationId: inventory_instances_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: query + name: cluster + schema: + type: string + format: uuid + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: instance_id + schema: + type: string + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for instances by cluster, id, instance_id, name, state, tags + schema: + type: string + - in: query + name: state + schema: + type: string + enum: + - running + - starting + - stopped + - stopping + - unknown + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedInstanceList' + examples: + InstanceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + post: + operationId: inventory_instances_create + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Instance' + multipart/form-data: + schema: + $ref: '#/components/schemas/Instance' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + /v1/inventory/instances/{id}/: + get: + operationId: inventory_instances_retrieve + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + put: + operationId: inventory_instances_update + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Instance' + multipart/form-data: + schema: + $ref: '#/components/schemas/Instance' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + patch: + operationId: inventory_instances_partial_update + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Instance' + multipart/form-data: + schema: + $ref: '#/components/schemas/Instance' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + delete: + operationId: inventory_instances_destroy + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/instances/{id}/history/: + get: + operationId: inventory_instances_history_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/instances/bulk/: + patch: + operationId: inventory_instances_bulk_partial_update + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + examples: + InstanceBulkUpdateRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + ids: + - 899d8680-454a-41f3-af99-9e0497ac955d + - 3280c16f-0e3e-4897-b8ba-7f66d40281bf + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + examples: + InstanceBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Instance Bulk Update Response + description: '' + /v1/inventory/locations/: + get: + operationId: inventory_locations_list + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "provider").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: region + schema: + type: string + - name: search + required: false + in: query + description: Search for locations by id, name, provider name, region + schema: + type: string + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedLocationList' + examples: + LocationResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + post: + operationId: inventory_locations_create + tags: + - inventory/locations + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationRequest: + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Location' + multipart/form-data: + schema: + $ref: '#/components/schemas/Location' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + /v1/inventory/locations/{id}/: + get: + operationId: inventory_locations_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "provider").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + put: + operationId: inventory_locations_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + tags: + - inventory/locations + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationRequest: + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Location' + multipart/form-data: + schema: + $ref: '#/components/schemas/Location' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + patch: + operationId: inventory_locations_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + tags: + - inventory/locations + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationRequest: + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Location' + multipart/form-data: + schema: + $ref: '#/components/schemas/Location' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + delete: + operationId: inventory_locations_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/locations/{id}/history/: + get: + operationId: inventory_locations_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/nodes/: + get: + operationId: inventory_nodes_list + parameters: + - in: query + name: bmc_ip + schema: + type: string + - in: query + name: bmc_mac + schema: + type: string + - in: query + name: bmc_password + schema: + type: string + - in: query + name: bmc_user + schema: + type: string + - in: query + name: cluster + schema: + type: string + format: uuid + - in: query + name: cpu + schema: + type: integer + - in: query + name: cpu_manufacturer + schema: + type: + - string + - 'null' + enum: + - amd + - arm + - intel + description: |- + Manufacturer of the node's CPU + + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + - in: query + name: cpu_model + schema: + type: string + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "location.provider"). Separate multiple fields with a comma (ex: "location,oem")' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: garage_id + schema: + type: string + - in: query + name: gpu + schema: + type: array + items: + type: string + format: uuid + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: gpu_alias + schema: + type: string + description: Alias for GPU plan (i.e. installed GPU type and count) + - in: query + name: gpu_count + schema: + type: integer + - in: query + name: gpu_model + schema: + type: string + description: Model of GPU(s) installed + - in: query + name: gpu_vbios + schema: + type: string + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: location + schema: + type: string + format: uuid + - in: query + name: memory + schema: + type: integer + - in: query + name: mgmt_ip + schema: + type: string + - in: query + name: mgmt_mac + schema: + type: string + - in: query + name: min_gpu_count + schema: + type: integer + description: Only include nodes that have a gpu_count greater than or equal to this value + - in: query + name: model + schema: + type: string + - in: query + name: network_type + schema: + type: string + enum: + - ethernet + - infiniband + description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + - in: query + name: oem + schema: + type: string + format: uuid + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: provider_node_id + schema: + type: string + - in: query + name: rack + schema: + type: string + - in: query + name: rack_unit + schema: + type: integer + - name: search + required: false + in: query + description: Search for nodes by bmc_ip, bmc_mac, bmc_password, bmc_user, cpu_manufacturer, cpu_model, garage_id, gpu_alias, gpu model, gpu_vbios, id, location name, location provider name, memory, mgmt_ip, mgmt_mac, model, network_type, nic_prefixes, notes, oem name, provider_node_id, rack, rack_unit, serial_number, storage, system_arch + schema: + type: string + - in: query + name: serial_number + schema: + type: string + - in: query + name: system_arch + schema: + type: string + enum: + - amd64 + - arm64 + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + - in: query + name: tee + schema: + type: boolean + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedNodeList' + examples: + NodeResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + post: + operationId: inventory_nodes_create + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Node' + multipart/form-data: + schema: + $ref: '#/components/schemas/Node' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + /v1/inventory/nodes/{id}/: + get: + operationId: inventory_nodes_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "location.provider"). Separate multiple fields with a comma (ex: "location,oem")' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + put: + operationId: inventory_nodes_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Node' + multipart/form-data: + schema: + $ref: '#/components/schemas/Node' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + patch: + operationId: inventory_nodes_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Node' + multipart/form-data: + schema: + $ref: '#/components/schemas/Node' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + delete: + operationId: inventory_nodes_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/nodes/{id}/history/: + get: + operationId: inventory_nodes_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/nodes/bulk/: + post: + operationId: inventory_nodes_bulk_create + description: Create nodes in bulk via CSV file upload + tags: + - inventory/nodes + requestBody: + content: + multipart/form-data: + schema: + type: object + properties: + csv_file: + type: string + format: binary + writeOnly: true + required: + - csv_file + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/NodeBulk' + description: '' + patch: + operationId: inventory_nodes_bulk_partial_update + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NodeBulkUpdate' + examples: + NodeBulkUpdateRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + ids: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + - 6fcf07f8-d821-48cf-b20e-b6eb65db9387 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Bulk Update Request + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/NodeBulkUpdate' + examples: + NodeBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Node Bulk Update Response + description: '' + /v1/inventory/oems/: + get: + operationId: inventory_oems_list + parameters: + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for oems by id, name + schema: + type: string + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedOEMList' + examples: + OEMResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + post: + operationId: inventory_oems_create + tags: + - inventory/oems + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMRequest: + value: + name: My OEM + summary: OEM Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/OEM' + multipart/form-data: + schema: + $ref: '#/components/schemas/OEM' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + /v1/inventory/oems/{id}/: + get: + operationId: inventory_oems_retrieve + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + put: + operationId: inventory_oems_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMRequest: + value: + name: My OEM + summary: OEM Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/OEM' + multipart/form-data: + schema: + $ref: '#/components/schemas/OEM' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + patch: + operationId: inventory_oems_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMRequest: + value: + name: My OEM + summary: OEM Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/OEM' + multipart/form-data: + schema: + $ref: '#/components/schemas/OEM' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + delete: + operationId: inventory_oems_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/oems/{id}/history/: + get: + operationId: inventory_oems_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/providers/: + get: + operationId: inventory_providers_list + parameters: + - in: query + name: display_name + schema: + type: string + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: instance_limit + schema: + type: integer + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: priority + schema: + type: integer + - name: search + required: false + in: query + description: Search for providers by display_name, id, name + schema: + type: string + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedProviderList' + examples: + ProviderResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + post: + operationId: inventory_providers_create + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderRequest: + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + summary: Provider Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Provider' + multipart/form-data: + schema: + $ref: '#/components/schemas/Provider' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderResponse: + value: + created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + /v1/inventory/providers/{id}/: + get: + operationId: inventory_providers_retrieve + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderResponse: + value: + created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + put: + operationId: inventory_providers_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderRequest: + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + summary: Provider Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Provider' + multipart/form-data: + schema: + $ref: '#/components/schemas/Provider' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderResponse: + value: + created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + patch: + operationId: inventory_providers_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderRequest: + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + summary: Provider Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Provider' + multipart/form-data: + schema: + $ref: '#/components/schemas/Provider' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderResponse: + value: + created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + delete: + operationId: inventory_providers_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/providers/{id}/history/: + get: + operationId: inventory_providers_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/providers/bulk/: + patch: + operationId: inventory_providers_bulk_partial_update + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + examples: + ProviderBulkUpdateRequest: + value: + display_name: My Provider + ids: + - f8bd1b72-c213-43ec-82ad-a56a44757a11 + - 5b528083-ab61-42dd-a6a1-90aa9babb014 + instance_limit: 250 + priority: 50 + summary: Provider Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + examples: + ProviderBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Provider Bulk Update Response + description: '' + /v1/inventory/providers/stats/: + get: + operationId: inventory_providers_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body +components: + schemas: + AuthLogin: + type: object + properties: + auth_code: + type: string + password: + type: string + username: + type: string + AuthRedirect: + type: object + properties: + redirect: + type: string + format: uri + required: + - redirect + AuthToken: + type: object + properties: + token: + type: string + readOnly: true + username: + type: string + readOnly: true + required: + - token + - username + BlankEnum: + enum: + - '' + x-enum-varnames: + - Blank + CategoryEnum: + enum: + - AI + - Clara + - Data Science + - 3D Design Collaboration and Simulation + - Developer + - Infrastructure Optimization + type: string + description: |- + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + x-enum-varnames: + - CategoryAI + - CategoryClara + - CategoryDataScience + - Category3DDesignCollaborationAndSimulation + - CategoryDeveloper + - CategoryInfrastructureOptimization + Cluster: + type: object + properties: + available: + type: boolean + readOnly: true + description: Is the cluster currently available for provisioning? + bastion_name: + type: + - string + - 'null' + description: Name of the bastion assigned to the cluster + maxLength: 32 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + enabled: + type: boolean + description: Is the cluster administratively enabled? + experience: + type: + - string + - 'null' + format: uuid + description: Experience provisioned onto this cluster + free_by: + type: + - string + - 'null' + format: date-time + gpus: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + x-go-json-tag: "gpus,omitempty" + gpu_alias: + type: string + readOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + readOnly: true + id: + type: string + format: uuid + readOnly: true + instances: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Instance" + x-go-json-tag: "instance,omitempty" + x-go-json-tag: "instances,omitempty" + last_used: + type: + - string + - 'null' + format: date-time + readOnly: true + description: Timestamp of when the cluster was last in use + maintenance: + type: boolean + description: Is the cluster in maintenance mode? + mgmt_ip: + type: string + description: Management IP address + mgmt_mac: + type: + - string + - 'null' + description: Management MAC address + maxLength: 17 + minLength: 17 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + netmask: + type: + - integer + - 'null' + maximum: 32 + minimum: 0 + description: The subnet mask of the cluster's public IP address in CIDR notation + node_count: + type: integer + readOnly: true + nodes: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Node" + x-go-json-tag: "node,omitempty" + x-go-json-tag: "nodes,omitempty" + notes: + type: + - string + - 'null' + description: Administrative comments about the cluster + persist: + type: boolean + description: Is the cluster exempt from provisioning_state timeouts? Can be used to ensure the cluster persists after a provisioning failure. + provider_capacity: + type: boolean + readOnly: true + description: Does the provider have capacity to provision this cluster? + provision_user: + type: + - string + - 'null' + description: Username used for provisioning this cluster + maxLength: 64 + provisioning_attempts: + type: integer + maximum: 2147483647 + minimum: 0 + description: The number of attempts that have been made to provision this cluster. Automatically resets to 0 after successful provisioning. + provisioning_state: + allOf: + - $ref: '#/components/schemas/ProvisioningStateEnum' + description: |- + Is the cluster currently provisioned? + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + public_address: + type: + - string + - 'null' + description: Public IP address or fully-qualified domain name of this cluster + maxLength: 255 + request_id: + type: + - string + - 'null' + description: 'The request ID for the lab that is currently provisioned on this cluster (ex: TRY-1234)' + maxLength: 32 + reservation: + type: boolean + description: Is the cluster a static reservation from its provider? + tenant_ids: + type: array + items: + type: string + format: uuid + readOnly: true + description: Tenant UUID(s) that have been generated for this cluster during provisioning + vlan_id: + type: integer + maximum: 4094 + minimum: 1 + description: VLAN number + workshop: + type: boolean + description: Is the cluster set aside for use in a workshop? + workshop_id: + type: + - string + - 'null' + description: Identifier of the workshop this cluster is set aside for + maxLength: 64 + required: + - available + - created + - deployment + - gpus + - id + - instances + - last_used + - modified + - provider_capacity + - tenant_ids + ClusterBulkUpdate: + type: object + properties: + available: + type: boolean + readOnly: true + writeOnly: true + description: Is the cluster currently available for provisioning? + bastion_name: + type: + - string + - 'null' + writeOnly: true + description: Name of the bastion assigned to the cluster + maxLength: 32 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + enabled: + type: boolean + writeOnly: true + description: Is the cluster administratively enabled? + experience: + type: + - string + - 'null' + format: uuid + writeOnly: true + description: Experience provisioned onto this cluster + free_by: + type: + - string + - 'null' + format: date-time + writeOnly: true + gpus: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + x-go-json-tag: "gpus,omitempty" + gpu_alias: + type: string + readOnly: true + writeOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + readOnly: true + writeOnly: true + id: + type: string + format: uuid + readOnly: true + writeOnly: true + instances: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Instance" + x-go-json-tag: "instance,omitempty" + x-go-json-tag: "instances,omitempty" + last_used: + type: + - string + - 'null' + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the cluster was last in use + maintenance: + type: boolean + writeOnly: true + description: Is the cluster in maintenance mode? + mgmt_ip: + type: string + writeOnly: true + description: Management IP address + mgmt_mac: + type: + - string + - 'null' + writeOnly: true + description: Management MAC address + maxLength: 17 + minLength: 17 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + netmask: + type: + - integer + - 'null' + maximum: 32 + minimum: 0 + writeOnly: true + description: The subnet mask of the cluster's public IP address in CIDR notation + node_count: + type: integer + readOnly: true + writeOnly: true + nodes: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Node" + x-go-json-tag: "node,omitempty" + x-go-json-tag: "nodes,omitempty" + notes: + type: + - string + - 'null' + writeOnly: true + description: Administrative comments about the cluster + persist: + type: boolean + writeOnly: true + description: Is the cluster exempt from provisioning_state timeouts? Can be used to ensure the cluster persists after a provisioning failure. + provider_capacity: + type: boolean + readOnly: true + writeOnly: true + description: Does the provider have capacity to provision this cluster? + provision_user: + type: + - string + - 'null' + writeOnly: true + description: Username used for provisioning this cluster + maxLength: 64 + provisioning_attempts: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: The number of attempts that have been made to provision this cluster. Automatically resets to 0 after successful provisioning. + provisioning_state: + allOf: + - $ref: '#/components/schemas/ProvisioningStateEnum' + writeOnly: true + description: |- + Is the cluster currently provisioned? + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + public_address: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Public IP address or fully-qualified domain name of this cluster + maxLength: 255 + request_id: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: 'The request ID for the lab that is currently provisioned on this cluster (ex: TRY-1234)' + maxLength: 32 + reservation: + type: boolean + writeOnly: true + description: Is the cluster a static reservation from its provider? + tenant_ids: + type: array + items: + type: string + format: uuid + readOnly: true + writeOnly: true + description: Tenant UUID(s) that have been generated for this cluster during provisioning + vlan_id: + type: integer + maximum: 4094 + minimum: 1 + writeOnly: true + description: VLAN number + workshop: + type: boolean + writeOnly: true + description: Is the cluster set aside for use in a workshop? + workshop_id: + type: + - string + - 'null' + writeOnly: true + description: Identifier of the workshop this cluster is set aside for + maxLength: 64 + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - available + - count + - created + - deployment + - gpu_alias + - gpu_count + - gpus + - id + - ids + - instances + - last_used + - modified + - node_count + - provider_capacity + - public_address + - request_id + - result + - tenant_ids + CpuManufacturerEnum: + enum: + - amd + - arm + - intel + type: string + description: |- + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + x-enum-varnames: + - CpuManufacturerAMD + - CpuManufacturerARM + - CpuManufacturerIntel + Deployment: + type: object + properties: + bastion_operating_system: + type: + - string + - 'null' + description: Override bastion operating system provisioned and/or configured by Liftoff + maxLength: 32 + catalog_id: + type: string + description: Unique ID for this experience in the sales catalog. Must be unique. + writeOnly: true + catalog_id_alias: + type: + - string + - 'null' + description: 'Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique.' + writeOnly: true + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + collection_branch: + type: + - string + - 'null' + description: Override the Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - 'null' + description: Override the experience branch + maxLength: 255 + experience_id: + type: string + format: uuid + writeOnly: true + expires_at: + type: + - string + - 'null' + format: date-time + flightcontrol_release: + type: + - string + - 'null' + description: Override the image tag used for Flight Control + maxLength: 64 + garage_id: + type: + - string + - 'null' + description: Require a cluster with nodes in the given garage + maxLength: 128 + gc_branch: + type: + - string + - 'null' + description: Override the default Ground Control branch + maxLength: 255 + gpu_alias: + type: + - string + - 'null' + description: Require a cluster with the given GPU alias + maxLength: 64 + gpu_count: + type: + - integer + - 'null' + maximum: 16 + minimum: 0 + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - 'null' + description: Require a cluster with the given GPU model + maxLength: 32 + gpu_os_name: + type: string + gpu_os_release: + type: string + gpu_os_version: + type: string + id: + type: string + format: uuid + readOnly: true + ip_allowlist: + type: array + items: + type: string + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - 'null' + maximum: 16 + minimum: 0 + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: Require a cluster with the given number of nodes + oem_name: + type: + - string + - 'null' + description: Require a cluster manufactured by the given OEM name + maxLength: 64 + org_name: + type: string + description: Requester's organization name + overrides: + readOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - 'null' + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: string + pipeline: + type: + - integer + - 'null' + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - 'null' + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + maxLength: 255 + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + platform: + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: '#/components/schemas/PlatformEnum' + - type: 'null' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - 'null' + description: Require a cluster from the given provider name + maxLength: 64 + public_key: + type: + - string + - 'null' + writeOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - 'null' + description: Require a cluster located in the given region + maxLength: 64 + request_id: + type: string + description: 'Trial request ID (ex: TRY-1234)' + requester_email: + type: string + format: email + description: Email address of the user requesting the experience + maxLength: 254 + requester_name: + type: string + description: Name of the user requesting the experience + maxLength: 255 + retry_count: + type: integer + readOnly: true + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - 'null' + format: date-time + sales_id: + type: + - string + - 'null' + description: Unique identifier for the requester's sales relationship + maxLength: 32 + sales_owner_email: + type: + - string + - 'null' + format: email + description: Email address of the sales contact associated with the requester + maxLength: 254 + sales_owner_name: + type: + - string + - 'null' + description: Name of the sales contact associated with the requester + maxLength: 255 + services: + type: array + items: + type: string + format: uuid + readOnly: true + ssh_port: + type: integer + readOnly: true + ssh_user: + type: string + readOnly: true + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + readOnly: true + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - 'null' + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - 'null' + description: Require a cluster with the given workshop ID + maxLength: 64 + workshop_override_password: + type: + - string + - 'null' + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + maxLength: 64 + required: + - created + - id + - modified + - org_name + - overrides + - pipelines + - requester_email + - requester_name + - retry_count + - services + - ssh_port + - ssh_user + - state + DeploymentBulkUpdate: + type: object + properties: + bastion_operating_system: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override bastion operating system provisioned and/or configured by Liftoff + cluster: + type: + - string + - 'null' + format: uuid + readOnly: true + writeOnly: true + description: The cluster where the experience has been deployed + collection_branch: + type: + - string + - 'null' + writeOnly: true + description: Override the Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - 'null' + writeOnly: true + description: Override the experience branch + maxLength: 255 + expires_at: + type: + - string + - 'null' + format: date-time + writeOnly: true + flightcontrol_release: + type: + - string + - 'null' + writeOnly: true + description: Override the image tag used for Flight Control + maxLength: 64 + garage_id: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with nodes in the given garage + gc_branch: + type: + - string + - 'null' + writeOnly: true + description: Override the default Ground Control branch + maxLength: 255 + gpu_alias: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given GPU alias + gpu_count: + type: + - integer + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given GPU model + gpu_os_name: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override the GPU node operating system name + gpu_os_release: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override the GPU node operating system release + gpu_os_version: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override the GPU node operating system version + id: + type: string + format: uuid + readOnly: true + writeOnly: true + ip_allowlist: + type: array + items: + type: string + writeOnly: true + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - 'null' + readOnly: true + writeOnly: true + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given number of nodes + oem_name: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster manufactured by the given OEM name + org_name: + type: string + writeOnly: true + description: Requester's organization name + overrides: + readOnly: true + writeOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - 'null' + writeOnly: true + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: + - string + - 'null' + writeOnly: true + description: Override the defined persona in the experience + maxLength: 32 + pipeline: + type: + - integer + - 'null' + maximum: 9223372036854775807 + minimum: 0 + format: int64 + writeOnly: true + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - 'null' + writeOnly: true + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + maxLength: 255 + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + writeOnly: true + platform: + writeOnly: true + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: '#/components/schemas/PlatformEnum' + - type: 'null' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + readOnly: true + writeOnly: true + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster from the given provider name + public_key: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster located in the given region + request_id: + type: string + readOnly: true + writeOnly: true + description: 'Trial request ID (ex: TRY-1234)' + requester_email: + type: string + writeOnly: true + description: Email address of the user requesting the experience + requester_name: + type: string + writeOnly: true + description: Name of the user requesting the experience + retry_count: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - 'null' + format: date-time + readOnly: true + writeOnly: true + description: Timestamp when the requester's sales relationship was created + sales_id: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Unique identifier for the requester's sales relationship + sales_owner_email: + type: + - string + - 'null' + format: email + writeOnly: true + description: Email address of the sales contact associated with the requester + maxLength: 254 + sales_owner_name: + type: + - string + - 'null' + writeOnly: true + description: Name of the sales contact associated with the requester + maxLength: 255 + services: + type: array + items: + type: string + format: uuid + readOnly: true + writeOnly: true + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + writeOnly: true + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + writeOnly: true + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given workshop ID + workshop_override_password: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - bastion_operating_system + - cluster + - count + - created + - experience + - garage_id + - gpu_alias + - gpu_count + - gpu_model + - gpu_os_name + - gpu_os_release + - gpu_os_version + - id + - ids + - lifetime + - min_gpu_count + - modified + - node_count + - oem_name + - overrides + - pipelines + - priority + - provider_name + - public_key + - region + - request_id + - result + - sales_created_date + - sales_id + - services + - workshop + - workshop_id + - workshop_override_password + DeploymentInstance: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + instance_id: + type: string + readOnly: true + description: Unique ID for this instance assigned by its provider + name: + type: + - string + - 'null' + readOnly: true + description: User-friendly name of this instance + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + state: + allOf: + - $ref: '#/components/schemas/InstanceState' + readOnly: true + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + state_modified: + type: string + format: date-time + readOnly: true + tags: + type: array + items: + type: string + maxLength: 64 + readOnly: true + description: Tags associated with this instance + required: + - created + - id + - instance_id + - modified + - name + - state + - state_modified + - tags + DeploymentKey: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + description: Descriptive name for the SSH public key + maxLength: 64 + public_key: + type: string + writeOnly: true + description: An SSH public key that should be authorized to access the deployment + required: + - created + - deployment + - id + - modified + - name + - public_key + DeploymentNote: + type: object + properties: + content: + type: string + description: Text content of the note + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + created_by: + type: string + readOnly: true + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + modified_by: + type: string + readOnly: true + required: + - created + - created_by + - deployment + - id + - modified + - modified_by + DeploymentPipeline: + type: object + properties: + action: + allOf: + - $ref: '#/components/schemas/DeploymentPipelineActionEnum' + description: |- + Action for the pipeline to run + + * `apply` - apply + * `destroy` - destroy + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + pipeline_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: GitLab pipeline ID + url: + type: string + format: uri + description: URL for the pipeline details + maxLength: 200 + required: + - action + - created + - deployment + - id + - modified + - pipeline_id + - url + DeploymentPipelineActionEnum: + enum: + - apply + - destroy + type: string + description: |- + * `apply` - apply + * `destroy` - destroy + x-enum-varnames: + - DeploymentPipelineActionApply + - DeploymentPipelineActionDestroy + DeploymentService: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + description: Name of the service + maxLength: 32 + url: + type: string + format: uri + description: URL used to reach the service + maxLength: 200 + required: + - created + - deployment + - id + - modified + - name + - url + DeploymentState: + enum: + - destroyed + - destroying + - error + - failed + - paused + - ready + - retrying + - starting + - stopped + - stopping + - waiting + type: string + description: |- + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + x-enum-varnames: + - DeploymentStateDestroyed + - DeploymentStateDestroying + - DeploymentStateError + - DeploymentStateFailed + - DeploymentStatePaused + - DeploymentStateReady + - DeploymentStateRetrying + - DeploymentStateStarting + - DeploymentStateStopped + - DeploymentStateStopping + - DeploymentStateWaiting + DeploymentTask: + type: object + properties: + action: + allOf: + - $ref: '#/components/schemas/DeploymentTaskActionEnum' + description: |- + The action the task will perform + + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + retries: + type: integer + readOnly: true + description: Number of times the task has been retried + status: + allOf: + - $ref: '#/components/schemas/StatusEnum' + readOnly: true + description: |- + Current status of the task + + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + status_text: + type: string + readOnly: true + description: Messages related to the current task status + required: + - action + - created + - deployment + - id + - modified + - retries + - status + - status_text + DeploymentTaskActionEnum: + enum: + - start_instances + - stop_instances + type: string + description: |- + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + x-enum-varnames: + - DeploymentTaskActionStartInstances + - DeploymentTaskActionStopInstances + DeploymentUpdate: + type: object + properties: + bastion_operating_system: + type: + - string + - 'null' + readOnly: true + description: Override bastion operating system provisioned and/or configured by Liftoff + cluster: + type: + - string + - 'null' + format: uuid + readOnly: true + description: The cluster where the experience has been deployed + collection_branch: + type: + - string + - 'null' + description: Override the Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - 'null' + description: Override the experience branch + maxLength: 255 + expires_at: + type: + - string + - 'null' + format: date-time + flightcontrol_release: + type: + - string + - 'null' + description: Override the image tag used for Flight Control + maxLength: 64 + garage_id: + type: + - string + - 'null' + readOnly: true + description: Require a cluster with nodes in the given garage + gc_branch: + type: + - string + - 'null' + description: Override the default Ground Control branch + maxLength: 255 + gpu_alias: + type: + - string + - 'null' + readOnly: true + description: Require a cluster with the given GPU alias + gpu_count: + type: + - integer + - 'null' + readOnly: true + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - 'null' + readOnly: true + description: Require a cluster with the given GPU model + gpu_os_name: + type: + - string + - 'null' + readOnly: true + description: Override the GPU node operating system name + gpu_os_release: + type: + - string + - 'null' + readOnly: true + description: Override the GPU node operating system release + gpu_os_version: + type: + - string + - 'null' + readOnly: true + description: Override the GPU node operating system version + id: + type: string + format: uuid + readOnly: true + ip_allowlist: + type: array + items: + type: string + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - 'null' + readOnly: true + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - 'null' + readOnly: true + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - 'null' + readOnly: true + description: Require a cluster with the given number of nodes + oem_name: + type: + - string + - 'null' + readOnly: true + description: Require a cluster manufactured by the given OEM name + org_name: + type: string + description: Requester's organization name + overrides: + readOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - 'null' + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: + - string + - 'null' + description: Override the defined persona in the experience + maxLength: 32 + pipeline: + type: + - integer + - 'null' + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - 'null' + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + maxLength: 255 + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + platform: + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: '#/components/schemas/PlatformEnum' + - type: 'null' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + readOnly: true + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - 'null' + readOnly: true + description: Require a cluster from the given provider name + public_key: + type: + - string + - 'null' + readOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - 'null' + readOnly: true + description: Require a cluster located in the given region + request_id: + type: string + readOnly: true + description: 'Trial request ID (ex: TRY-1234)' + requester_email: + type: string + description: Email address of the user requesting the experience + requester_name: + type: string + description: Name of the user requesting the experience + retry_count: + type: integer + maximum: 2147483647 + minimum: 0 + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - 'null' + format: date-time + readOnly: true + description: Timestamp when the requester's sales relationship was created + sales_id: + type: + - string + - 'null' + readOnly: true + description: Unique identifier for the requester's sales relationship + sales_owner_email: + type: + - string + - 'null' + format: email + description: Email address of the sales contact associated with the requester + maxLength: 254 + sales_owner_name: + type: + - string + - 'null' + description: Name of the sales contact associated with the requester + maxLength: 255 + services: + type: array + items: + type: string + format: uuid + readOnly: true + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - 'null' + readOnly: true + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - 'null' + readOnly: true + description: Require a cluster with the given workshop ID + workshop_override_password: + type: + - string + - 'null' + readOnly: true + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + required: + - bastion_operating_system + - cluster + - created + - experience + - garage_id + - gpu_alias + - gpu_count + - gpu_model + - gpu_os_name + - gpu_os_release + - gpu_os_version + - id + - lifetime + - min_gpu_count + - modified + - node_count + - oem_name + - overrides + - pipelines + - priority + - provider_name + - public_key + - region + - request_id + - sales_created_date + - sales_id + - services + - workshop + - workshop_id + - workshop_override_password + DocDeploymentDelete: + type: object + properties: + bastion_operating_system: + type: + - string + - 'null' + description: Override bastion operating system provisioned and/or configured by Liftoff + maxLength: 32 + catalog_id: + type: string + description: Unique ID for this experience in the sales catalog. Must be unique. + writeOnly: true + catalog_id_alias: + type: + - string + - 'null' + description: 'Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique.' + writeOnly: true + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + collection_branch: + type: + - string + - 'null' + description: Override the Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - 'null' + description: Override the experience branch + maxLength: 255 + experience_id: + type: string + format: uuid + writeOnly: true + expires_at: + type: + - string + - 'null' + format: date-time + flightcontrol_release: + type: + - string + - 'null' + description: Override the image tag used for Flight Control + maxLength: 64 + garage_id: + type: + - string + - 'null' + description: Require a cluster with nodes in the given garage + maxLength: 128 + gc_branch: + type: + - string + - 'null' + description: Override the default Ground Control branch + maxLength: 255 + gpu_alias: + type: + - string + - 'null' + description: Require a cluster with the given GPU alias + maxLength: 64 + gpu_count: + type: + - integer + - 'null' + maximum: 16 + minimum: 0 + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - 'null' + description: Require a cluster with the given GPU model + maxLength: 32 + gpu_os_name: + type: string + gpu_os_release: + type: string + gpu_os_version: + type: string + id: + type: string + format: uuid + readOnly: true + ip_allowlist: + type: array + items: + type: string + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - 'null' + maximum: 16 + minimum: 0 + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: Require a cluster with the given number of nodes + oem_name: + type: + - string + - 'null' + description: Require a cluster manufactured by the given OEM name + maxLength: 64 + org_name: + type: string + description: Requester's organization name + overrides: + readOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - 'null' + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: string + pipeline: + type: + - integer + - 'null' + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - 'null' + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + maxLength: 255 + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + platform: + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: '#/components/schemas/PlatformEnum' + - type: 'null' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - 'null' + description: Require a cluster from the given provider name + maxLength: 64 + public_key: + type: + - string + - 'null' + writeOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - 'null' + description: Require a cluster located in the given region + maxLength: 64 + request_id: + type: string + description: 'Trial request ID (ex: TRY-1234)' + requester_email: + type: string + format: email + description: Email address of the user requesting the experience + maxLength: 254 + requester_name: + type: string + description: Name of the user requesting the experience + maxLength: 255 + retry_count: + type: integer + readOnly: true + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - 'null' + format: date-time + sales_id: + type: + - string + - 'null' + description: Unique identifier for the requester's sales relationship + maxLength: 32 + sales_owner_email: + type: + - string + - 'null' + format: email + description: Email address of the sales contact associated with the requester + maxLength: 254 + sales_owner_name: + type: + - string + - 'null' + description: Name of the sales contact associated with the requester + maxLength: 255 + services: + type: array + items: + type: string + format: uuid + readOnly: true + ssh_port: + type: integer + readOnly: true + ssh_user: + type: string + readOnly: true + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + readOnly: true + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - 'null' + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - 'null' + description: Require a cluster with the given workshop ID + maxLength: 64 + workshop_override_password: + type: + - string + - 'null' + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + maxLength: 64 + required: + - created + - experience + - id + - modified + - org_name + - overrides + - pipelines + - requester_email + - requester_name + - retry_count + - services + - ssh_port + - ssh_user + - state + Experience: + type: object + properties: + assignee: + type: + - string + - 'null' + description: User ID who is responsible for manual provisioning + maxLength: 32 + autoapprove: + type: boolean + description: Can the experience be provisioned without human approval? + autoprovision: + type: boolean + description: Can the experience be provisioned without human intervention? + bootstrap: + type: boolean + description: Can this experience be used to bootstrap another compatible experience? + catalog_id: + type: string + description: Unique ID for this experience in the sales catalog. Must be unique. + maxLength: 32 + catalog_id_alias: + type: + - string + - 'null' + description: 'Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique.' + maxLength: 8 + category: + allOf: + - $ref: '#/components/schemas/CategoryEnum' + description: |- + Functional group that this experience is targetting + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + collection_branch: + type: string + description: Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + description: + type: + - string + - 'null' + experience: + type: string + description: Experience name slug + maxLength: 64 + experience_branch: + type: string + description: 'Experience branch name used during deployment (default: origin/main)' + maxLength: 255 + fc_platform: + writeOnly: true + description: |- + Fleet Command platform type + + * `docker` - docker + * `k8s` - k8s + oneOf: + - $ref: '#/components/schemas/FcPlatformEnum' + - type: 'null' + fc_support: + type: boolean + writeOnly: true + description: Does the experience support Flight Control? + garage_id: + type: + - string + - 'null' + description: ID of the garage where nodes for this experience should be selected from + maxLength: 64 + gc_branch: + type: string + description: 'Ground Control branch name (default: main)' + maxLength: 255 + gpu_count: + type: integer + maximum: 16 + minimum: 0 + description: Number of GPUs used + gpu_os: + $ref: '#/components/schemas/GpuOs' + id: + type: string + format: uuid + readOnly: true + inactivity_max: + type: integer + maximum: 2147483647 + minimum: 0 + description: 'Number of days without user interaction before the experience is torn down (default: 3)' + lifetime: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: 'Default number of days a provisioned experience should remain active (default: 3). A null lifetime will cause a deployment to remain active indefinitely.' + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + maximum: 2147483647 + minimum: 0 + description: Number of Nodes used + persona: + type: string + pipeline: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Pipeline ID used for provisioning + platform: + allOf: + - $ref: '#/components/schemas/PlatformEnum' + description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + provider: + type: + - string + - 'null' + format: uuid + description: If set, the experience must be provisioned to the given provider + published: + allOf: + - $ref: '#/components/schemas/PublishedEnum' + description: |- + Is the experience published for use? + + * `draft` - draft + * `no` - no + * `yes` - yes + repo: + type: + - string + - 'null' + format: uri + writeOnly: true + description: URL of the repository for provisioning automation + maxLength: 200 + required_gpus: + type: array + items: + type: string + format: uuid + description: 'If set, the experience must be provisioned using one of the given GPU types. GPU requirements are evaluated in the order they are set (ex: ["{l40s_gpu_uuid}", "{a100_gpu_uuid}"] will prefer an l40s).' + sa_lab: + type: boolean + description: Is this a persistent experience for SAs? + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + title: + type: string + vgpu_profile: + description: |- + vGPU profile name used by the experience + + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q + * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + oneOf: + - $ref: '#/components/schemas/VgpuProfileEnum' + - type: 'null' + required: + - catalog_id + - category + - created + - experience + - gpu_os + - id + - modified + - persona + - pipeline + - platform + - system_arch + - title + ExperienceBulk: + type: object + properties: + csv_file: + type: string + format: uri + writeOnly: true + experiences: + type: array + items: + $ref: '#/components/schemas/Experience' + readOnly: true + required: + - csv_file + - experiences + ExperienceBulkUpdate: + type: object + properties: + assignee: + type: + - string + - 'null' + writeOnly: true + description: User ID who is responsible for manual provisioning + maxLength: 32 + autoapprove: + type: boolean + writeOnly: true + description: Can the experience be provisioned without human approval? + autoprovision: + type: boolean + writeOnly: true + description: Can the experience be provisioned without human intervention? + bootstrap: + type: boolean + writeOnly: true + description: Can this experience be used to bootstrap another compatible experience? + catalog_id: + type: string + readOnly: true + writeOnly: true + description: Unique ID for this experience in the sales catalog. Must be unique. + maxLength: 32 + catalog_id_alias: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: 'Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique.' + maxLength: 8 + category: + allOf: + - $ref: '#/components/schemas/CategoryEnum' + writeOnly: true + description: |- + Functional group that this experience is targetting + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + collection_branch: + type: string + writeOnly: true + description: Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + description: + type: + - string + - 'null' + writeOnly: true + experience: + type: string + writeOnly: true + description: Experience name slug + maxLength: 64 + experience_branch: + type: string + writeOnly: true + description: 'Experience branch name used during deployment (default: origin/main)' + maxLength: 255 + fc_platform: + writeOnly: true + description: |- + Fleet Command platform type + + * `docker` - docker + * `k8s` - k8s + oneOf: + - $ref: '#/components/schemas/FcPlatformEnum' + - type: 'null' + fc_support: + type: boolean + writeOnly: true + description: Does the experience support Flight Control? + garage_id: + type: + - string + - 'null' + writeOnly: true + description: ID of the garage where nodes for this experience should be selected from + maxLength: 64 + gc_branch: + type: string + writeOnly: true + description: 'Ground Control branch name (default: main)' + maxLength: 255 + gpu_count: + type: integer + maximum: 16 + minimum: 0 + writeOnly: true + description: Number of GPUs used + gpu_os: + allOf: + - $ref: '#/components/schemas/GpuOs' + writeOnly: true + id: + type: string + format: uuid + readOnly: true + writeOnly: true + inactivity_max: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: 'Number of days without user interaction before the experience is torn down (default: 3)' + lifetime: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: 'Default number of days a provisioned experience should remain active (default: 3). A null lifetime will cause a deployment to remain active indefinitely.' + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: Number of Nodes used + persona: + type: string + writeOnly: true + pipeline: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + writeOnly: true + description: Pipeline ID used for provisioning + platform: + allOf: + - $ref: '#/components/schemas/PlatformEnum' + writeOnly: true + description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + provider: + type: + - string + - 'null' + format: uuid + writeOnly: true + description: If set, the experience must be provisioned to the given provider + published: + allOf: + - $ref: '#/components/schemas/PublishedEnum' + writeOnly: true + description: |- + Is the experience published for use? + + * `draft` - draft + * `no` - no + * `yes` - yes + repo: + type: + - string + - 'null' + format: uri + writeOnly: true + description: URL of the repository for provisioning automation + maxLength: 200 + required_gpus: + type: array + items: + type: string + format: uuid + writeOnly: true + description: 'If set, the experience must be provisioned using one of the given GPU types. GPU requirements are evaluated in the order they are set (ex: ["{l40s_gpu_uuid}", "{a100_gpu_uuid}"] will prefer an l40s).' + sa_lab: + type: boolean + writeOnly: true + description: Is this a persistent experience for SAs? + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + writeOnly: true + description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + title: + type: string + writeOnly: true + vgpu_profile: + writeOnly: true + description: |- + vGPU profile name used by the experience + + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q + * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + oneOf: + - $ref: '#/components/schemas/VgpuProfileEnum' + - type: 'null' + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - catalog_id + - catalog_id_alias + - category + - count + - created + - experience + - gpu_os + - id + - ids + - modified + - persona + - pipeline + - platform + - result + - system_arch + - title + ExperienceNote: + type: object + properties: + content: + type: string + description: Text content of the note + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + created_by: + type: string + readOnly: true + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + modified_by: + type: string + readOnly: true + required: + - created + - created_by + - experience + - id + - modified + - modified_by + FcPlatformEnum: + enum: + - docker + - k8s + type: string + description: |- + * `docker` - docker + * `k8s` - k8s + x-enum-varnames: + - FcPlatformDocker + - FcPlatformK8s + Gpu: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + form_factor: + allOf: + - $ref: '#/components/schemas/InterconnectionTypeEnum' + default: pcie + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + id: + type: string + format: uuid + readOnly: true + memory: + type: integer + maximum: 32768 + minimum: 0 + default: 0 + description: Total GPU memory (in GB) + model: + type: string + description: GPU model name + maxLength: 32 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + readOnly: true + priority: + type: integer + maximum: 100 + minimum: 0 + description: Weighted preference to use in selecting a GPU for a deployment. A higher priority means the GPU is in higher demand. Lower priority values will be preferred over higher ones during cluster selection. + required: + - created + - id + - model + - modified + GpuBulkUpdate: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + form_factor: + allOf: + - $ref: '#/components/schemas/InterconnectionTypeEnum' + writeOnly: true + default: pcie + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + id: + type: string + format: uuid + readOnly: true + writeOnly: true + memory: + type: integer + maximum: 32768 + minimum: 0 + writeOnly: true + default: 0 + description: Total GPU memory (in GB) + model: + type: string + writeOnly: true + description: GPU model name + maxLength: 32 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + readOnly: true + writeOnly: true + priority: + type: integer + maximum: 100 + minimum: 0 + writeOnly: true + description: Weighted preference to use in selecting a GPU for a deployment. A higher priority means the GPU is in higher demand. Lower priority values will be preferred over higher ones during cluster selection. + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - count + - created + - id + - ids + - model + - modified + - node_count + - result + GpuOs: + type: object + properties: + name: + type: string + release: + type: string + version: + type: string + required: + - name + - release + - version + GpuOsChoice: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: integer + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + description: 'Name of the OS to be provisioned onto GPU Node(s) (ex: ubuntu)' + maxLength: 16 + release: + type: string + description: 'Release name of the OS to be provisioned onto GPU Node(s) (ex: jammy)' + maxLength: 16 + version: + type: string + description: 'Version number of the OS to be provisioned onto GPU Node(s) (ex: 22.04)' + maxLength: 8 + required: + - created + - id + - modified + - name + - release + - version + Instance: + type: object + properties: + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + instance_id: + type: string + description: Unique ID for this instance assigned by its provider + maxLength: 128 + name: + type: + - string + - 'null' + description: User-friendly name of this instance + maxLength: 64 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + state: + allOf: + - $ref: '#/components/schemas/InstanceState' + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + state_modified: + type: string + format: date-time + readOnly: true + tags: + type: array + items: + type: string + maxLength: 64 + description: Tags associated with this instance + required: + - cluster + - created + - id + - instance_id + - modified + - state_modified + InstanceBulkUpdate: + type: object + properties: + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + writeOnly: true + instance_id: + type: string + readOnly: true + writeOnly: true + description: Unique ID for this instance assigned by its provider + maxLength: 128 + name: + type: + - string + - 'null' + writeOnly: true + description: User-friendly name of this instance + maxLength: 64 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + state: + allOf: + - $ref: '#/components/schemas/InstanceState' + writeOnly: true + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + state_modified: + type: string + format: date-time + readOnly: true + writeOnly: true + tags: + type: array + items: + type: string + maxLength: 64 + writeOnly: true + description: Tags associated with this instance + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - cluster + - count + - created + - id + - ids + - instance_id + - modified + - result + - state_modified + InstanceState: + enum: + - running + - starting + - stopped + - stopping + - unknown + type: string + description: |- + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + x-enum-varnames: + - InstanceStateRunning + - InstanceStateStarting + - InstanceStateStopped + - InstanceStateStopping + - InstanceStateUnknown + InstanceType: + type: object + properties: + capacity: + type: object + additionalProperties: + type: integer + description: Key/value pairs of region name and total available capacity for the instance type + cloud: + type: string + description: Cloud provider name + cpu: + type: integer + description: Total number of CPUs/vCPUs available + gpu: + $ref: '#/components/schemas/InstanceTypeGpu' + memory_gb: + type: integer + description: Total system memory (in GB) + price: + $ref: '#/components/schemas/InstanceTypePrice' + regions: + type: array + items: + type: string + description: List of regions names that have available capacity for the instance type + storage: + type: array + items: + $ref: '#/components/schemas/InstanceTypeStorage' + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + required: + - capacity + - cloud + - cpu + - gpu + - memory_gb + - price + - regions + - storage + - system_arch + InstanceTypeGpu: + type: object + properties: + count: + type: integer + description: Total number of GPUs + family: + type: string + description: GPU family name + interconnection_type: + allOf: + - $ref: '#/components/schemas/InterconnectionTypeEnum' + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + manufacturer: + type: string + description: GPU manufacturer name + memory_gb: + type: integer + description: Total GPU memory (in GB) + model: + type: string + description: GPU model name + required: + - count + - family + - interconnection_type + - manufacturer + - memory_gb + - model + InstanceTypePrice: + type: object + properties: + currency: + type: string + description: Currency code + on_demand_per_hour: + type: number + format: double + description: Price per hour + required: + - currency + - on_demand_per_hour + InstanceTypeStorage: + type: object + properties: + size_gb: + type: integer + description: System storage size (in GB) + type: + allOf: + - $ref: '#/components/schemas/TypeEnum' + description: |- + Disk type + + * `nvme` - NVMe + * `ssd` - ssd + required: + - size_gb + - type + InterconnectionTypeEnum: + enum: + - pcie + - sxm + type: string + description: |- + * `pcie` - PCIe + * `sxm` - SXM + x-enum-varnames: + - InterconnectionTypePCIe + - InterconnectionTypeSXM + Location: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 64 + provider: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Provider" + x-go-json-tag: "provider,omitempty" + region: + type: + - string + - 'null' + description: Name of the region the location is in + maxLength: 64 + required: + - created + - id + - modified + - name + - provider + Logout: + type: object + properties: + result: + type: string + readOnly: true + default: Successfully logged out. + required: + - result + ModelChange: + type: object + properties: + change_type: + type: string + readOnly: true + changes: + type: array + items: + type: object + properties: + field: + type: string + new_value: + oneOf: + - type: string + - type: boolean + - type: integer + nullable: true + old_value: + oneOf: + - type: string + - type: boolean + - type: integer + nullable: true + required: + - field + - new_value + - old_value + readOnly: true + created: + type: string + format: date-time + id: + type: integer + username: + type: string + required: + - change_type + - changes + - created + - id + - username + NetworkTypeEnum: + enum: + - ethernet + - infiniband + type: string + description: |- + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + x-enum-varnames: + - NetworkTypeEthernet + - NetworkTypeInfiniband + Node: + type: object + properties: + bmc_ip: + type: + - string + - 'null' + description: IP address of the BMC + bmc_mac: + type: + - string + - 'null' + description: MAC address of the BMC + maxLength: 17 + minLength: 17 + bmc_password: + type: + - string + - 'null' + description: Password for the BMC + maxLength: 32 + bmc_user: + type: + - string + - 'null' + description: Username for the BMC + maxLength: 64 + cluster: + type: + - string + - 'null' + format: uuid + description: UUID of the node's parent cluster + cpu: + type: integer + maximum: 1024 + minimum: 0 + description: Number of CPU cores installed + cpu_manufacturer: + description: |- + Manufacturer of the node's CPU + + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + oneOf: + - $ref: '#/components/schemas/CpuManufacturerEnum' + - type: 'null' + cpu_model: + type: + - string + - 'null' + description: Model information for the node's CPU + maxLength: 64 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + garage_id: + type: + - string + - 'null' + description: ID for the garage where a node is parked when unprovisioned + maxLength: 128 + gpu: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + gpu_alias: + type: string + readOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + maximum: 16 + minimum: 0 + description: Number of GPUs installed + gpu_model: + type: string + readOnly: true + description: Model of GPU(s) installed + gpu_vbios: + type: + - string + - 'null' + description: VBIOS version used by installed GPU(s) + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + location: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Location" + x-go-json-tag: "location,omitempty" + memory: + type: integer + maximum: 32768 + minimum: 0 + description: Amount of RAM installed (in GB) + mgmt_ip: + type: string + description: Management IP address + mgmt_mac: + type: + - string + - 'null' + description: Management MAC address + maxLength: 17 + minLength: 17 + model: + type: + - string + - 'null' + description: Hardware model of the node + maxLength: 64 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + network_type: + allOf: + - $ref: '#/components/schemas/NetworkTypeEnum' + description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + nic_prefixes: + type: array + items: + type: string + maxLength: 15 + description: Prefixes for the node's network interface(s) + notes: + type: + - string + - 'null' + description: Administrative comments about the node + oem: + type: + - string + - 'null' + format: uuid + description: UUID of the node's OEM + provider_node_id: + type: + - string + - 'null' + description: Unique ID for this node assigned by its provider + maxLength: 128 + rack: + type: + - string + - 'null' + description: Physical rack identifier + maxLength: 32 + rack_unit: + type: + - integer + - 'null' + maximum: 52 + minimum: 0 + description: The rack unit (RU) within the rack where the node is installed + serial_number: + type: + - string + - 'null' + description: Serial number of the node + maxLength: 32 + storage: + type: array + items: + $ref: '#/components/schemas/NodeStorage' + minItems: 1 + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + tee: + type: boolean + description: Does the node support Trusted Execution Environment (TEE)? + required: + - created + - gpu + - gpu_alias + - gpu_model + - id + - location + - modified + - storage + - system_arch + NodeBulk: + type: object + properties: + csv_file: + type: string + format: uri + writeOnly: true + nodes: + type: array + items: + $ref: '#/components/schemas/Node' + readOnly: true + required: + - csv_file + - nodes + NodeBulkUpdate: + type: object + properties: + bmc_ip: + type: + - string + - 'null' + writeOnly: true + description: IP address of the BMC + bmc_mac: + type: + - string + - 'null' + writeOnly: true + description: MAC address of the BMC + maxLength: 17 + minLength: 17 + bmc_password: + type: + - string + - 'null' + writeOnly: true + description: Password for the BMC + maxLength: 32 + bmc_user: + type: + - string + - 'null' + writeOnly: true + description: Username for the BMC + maxLength: 64 + cluster: + type: + - string + - 'null' + format: uuid + writeOnly: true + description: UUID of the node's parent cluster + cpu: + type: integer + maximum: 1024 + minimum: 0 + writeOnly: true + description: Number of CPU cores installed + cpu_manufacturer: + writeOnly: true + description: |- + Manufacturer of the node's CPU + + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + oneOf: + - $ref: '#/components/schemas/CpuManufacturerEnum' + - type: 'null' + cpu_model: + type: + - string + - 'null' + writeOnly: true + description: Model information for the node's CPU + maxLength: 64 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + garage_id: + type: + - string + - 'null' + writeOnly: true + description: ID for the garage where a node is parked when unprovisioned + maxLength: 128 + gpu: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + gpu_alias: + type: string + readOnly: true + writeOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + maximum: 16 + minimum: 0 + writeOnly: true + description: Number of GPUs installed + gpu_model: + type: string + readOnly: true + writeOnly: true + description: Model of GPU(s) installed + gpu_vbios: + type: + - string + - 'null' + writeOnly: true + description: VBIOS version used by installed GPU(s) + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + writeOnly: true + location: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Location" + x-go-json-tag: "location,omitempty" + memory: + type: integer + maximum: 32768 + minimum: 0 + writeOnly: true + description: Amount of RAM installed (in GB) + mgmt_ip: + type: string + writeOnly: true + description: Management IP address + mgmt_mac: + type: + - string + - 'null' + writeOnly: true + description: Management MAC address + maxLength: 17 + minLength: 17 + model: + type: + - string + - 'null' + writeOnly: true + description: Hardware model of the node + maxLength: 64 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + network_type: + allOf: + - $ref: '#/components/schemas/NetworkTypeEnum' + writeOnly: true + description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + nic_prefixes: + type: array + items: + type: string + maxLength: 15 + writeOnly: true + description: Prefixes for the node's network interface(s) + notes: + type: + - string + - 'null' + writeOnly: true + description: Administrative comments about the node + oem: + type: + - string + - 'null' + format: uuid + writeOnly: true + description: UUID of the node's OEM + provider_node_id: + type: + - string + - 'null' + writeOnly: true + description: Unique ID for this node assigned by its provider + maxLength: 128 + rack: + type: + - string + - 'null' + writeOnly: true + description: Physical rack identifier + maxLength: 32 + rack_unit: + type: + - integer + - 'null' + maximum: 52 + minimum: 0 + writeOnly: true + description: The rack unit (RU) within the rack where the node is installed + serial_number: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Serial number of the node + maxLength: 32 + storage: + type: array + items: + $ref: '#/components/schemas/NodeStorage' + writeOnly: true + minItems: 1 + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + writeOnly: true + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + tee: + type: boolean + writeOnly: true + description: Does the node support Trusted Execution Environment (TEE)? + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - count + - created + - gpu + - gpu_alias + - gpu_model + - id + - ids + - location + - modified + - result + - serial_number + - storage + - system_arch + NodeStorage: + type: object + properties: + size: + type: integer + default: 0 + description: Disk size (in GB) + maximum: 1000000 + minimum: 0 + type: + allOf: + - $ref: '#/components/schemas/TypeEnum' + description: |- + Disk type + + * `nvme` - NVMe + * `ssd` - ssd + required: + - type + NullEnum: + type: 'null' + OEM: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 64 + required: + - created + - id + - modified + - name + PaginatedClusterList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Cluster' + PaginatedDeploymentInstanceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentInstance' + PaginatedDeploymentKeyList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentKey' + PaginatedDeploymentList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Deployment' + PaginatedDeploymentNoteList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentNote' + PaginatedDeploymentPipelineList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentPipeline' + PaginatedDeploymentServiceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentService' + PaginatedDeploymentTaskList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentTask' + PaginatedExperienceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Experience' + PaginatedExperienceNoteList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/ExperienceNote' + PaginatedGpuList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Gpu' + PaginatedGpuOsChoiceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/GpuOsChoice' + PaginatedInstanceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Instance' + PaginatedInstanceTypeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/InstanceType' + PaginatedLocationList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Location' + PaginatedModelChangeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/ModelChange' + PaginatedNodeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Node' + PaginatedOEMList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/OEM' + PaginatedPersonaChoiceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/PersonaChoice' + PaginatedProviderList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Provider' + PasswordChange: + type: object + properties: + username: + type: string + writeOnly: true + password: + type: string + writeOnly: true + new_password: + type: string + writeOnly: true + result: + type: string + readOnly: true + default: Password changed successfully. + required: + - new_password + - password + - result + - username + PersonaChoice: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: integer + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 32 + required: + - created + - id + - modified + - name + PlatformEnum: + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere_horizon + - vsphere7 + - vsphere8 + type: string + description: |- + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + x-enum-varnames: + - PlatformAir + - PlatformFlightDeck + - PlatformKvmBastion + - PlatformLpVmwarePlatformLegacy + - PlatformMinimal + - PlatformOpenshift + - PlatformVsphere + - PlatformVsphereHorizon + - PlatformVsphere7 + - PlatformVsphere8 + PreferredThemeEnum: + enum: + - light + - dark + type: string + description: |- + * `light` - light + * `dark` - dark + x-enum-varnames: + - PreferredThemeLight + - PreferredThemeDark + PriorityEnum: + enum: + - p0 + - p1 + - p2 + - p3 + type: string + description: |- + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + x-enum-varnames: + - PriorityP0 + - PriorityP1 + - PriorityP2 + - PriorityP3 + Profile: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + groups: + type: array + items: + type: string + readOnly: true + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + preferred_theme: + description: |- + Preferred user interface theme + + * `light` - light + * `dark` - dark + oneOf: + - $ref: '#/components/schemas/PreferredThemeEnum' + - type: 'null' + preferred_view_settings: + description: Preferred user view settings + username: + type: string + required: + - created + - groups + - id + - modified + - username + Provider: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + display_name: + type: + - string + - 'null' + description: Human-friendly version of name. Used for display purposes. + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + instance_limit: + type: integer + maximum: 2147483647 + minimum: 0 + description: The maximum number of provisionined instances allowed globally for the provider (0 = unlimited) + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 64 + priority: + type: integer + maximum: 100 + minimum: 0 + description: Weighted preference to use in selecting a provider for a deployment. Higher priority values will be preferred over lower ones. + required: + - created + - id + - modified + - name + ProviderBulkUpdate: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + display_name: + type: + - string + - 'null' + writeOnly: true + description: Human-friendly version of name. Used for display purposes. + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + writeOnly: true + instance_limit: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: The maximum number of provisionined instances allowed globally for the provider (0 = unlimited) + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + name: + type: string + readOnly: true + writeOnly: true + maxLength: 64 + priority: + type: integer + maximum: 100 + minimum: 0 + writeOnly: true + description: Weighted preference to use in selecting a provider for a deployment. Higher priority values will be preferred over lower ones. + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - count + - created + - id + - ids + - modified + - name + - result + ProvisioningStateEnum: + enum: + - deployed + - deploying + - destroying + - pending + - ready + - reserved + - unprovisioned + type: string + description: |- + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + x-enum-varnames: + - ProvisioningStateDeployed + - ProvisioningStateDeploying + - ProvisioningStateDestroying + - ProvisioningStatePending + - ProvisioningStateReady + - ProvisioningStateReserved + - ProvisioningStateUnprovisioned + PublishedEnum: + enum: + - draft + - 'no' + - 'yes' + type: string + description: |- + * `draft` - draft + * `no` - no + * `yes` - yes + x-enum-varnames: + - PublishedDraft + - PublishedNo + - PublishedYes + StatusEnum: + enum: + - completed + - failed + - pending + - processing + - retrying + type: string + description: |- + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + x-enum-varnames: + - StatusCompleted + - StatusFailed + - StatusPending + - StatusProcessing + - StatusRetrying + SystemArchEnum: + enum: + - amd64 + - arm64 + type: string + description: |- + * `amd64` - amd64 + * `arm64` - arm64 + x-enum-varnames: + - SystemArchAMD64 + - SystemArchARM64 + Tenant: + type: object + properties: + id: + type: string + format: uuid + writeOnly: true + required: + - id + TypeEnum: + enum: + - nvme + - ssd + type: string + description: |- + * `nvme` - NVMe + * `ssd` - ssd + x-enum-varnames: + - TypeNVMe + - TypeSSD + VgpuProfileEnum: + enum: + - air + - bright_cluster + - bright-cluster + - flight_deck + - flight-deck + - nvidia_a40-48q + - nvidia-ai-enterprise + - nvidia_l40s-48q + - nvidia_rtx_pro_6000_blackwell_dc-4-96q + - nvidia_rtx_pro_6000_blackwell_dc-96q + - openshift + - platform_only + - vmware_itadmin + type: string + description: |- + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q + * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + x-enum-varnames: + - VgpuProfileAir + - VgpuProfileBrightCluster + - VgpuProfileBrightClusterLegacy + - VgpuProfileFlightDeck + - VgpuProfileFlightDeckLegacy + - VgpuProfileNvidiaA4048QLegacy + - VgpuProfileNvidiaAiEnterpriseLegacy + - VgpuProfileNvidiaL40s48QLegacy + - VgpuProfileNvidiaRtxPro6000BlackwellDc496QLegacy + - VgpuProfileNvidiaRtxPro6000BlackwellDc96QLegacy + - VgpuProfileOpenshift + - VgpuProfilePlatformOnly + - VgpuProfileVmwareItadmin + securitySchemes: + TokenAuthentication: + type: apiKey + in: header + name: Authorization + description: 'Authenticate with your user''s API token. Be sure to include a prefix of "Token" (ex: "Token xxxxx").' diff --git a/v1/providers/launchpad/swagger-v2.36.1.yaml b/v1/providers/launchpad/swagger-v2.36.1.yaml new file mode 100644 index 0000000..b990db9 --- /dev/null +++ b/v1/providers/launchpad/swagger-v2.36.1.yaml @@ -0,0 +1,12048 @@ +openapi: 3.1.0 +info: + title: NVIDIA LaunchPad API + version: 2.36.1 + description: RESTful API for interacting with the NVIDIA LaunchPad platform +paths: + /v1/auth/login/: + post: + operationId: auth_login_create + description: Login with either an authorization code or username and password (deprecated) to generate an API token that can be used with all other API endpoints. + tags: + - auth + requestBody: + content: + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/AuthLogin' + multipart/form-data: + schema: + $ref: '#/components/schemas/AuthLogin' + application/json: + schema: + $ref: '#/components/schemas/AuthLogin' + examples: + AuthCode: + value: + auth_code: string + summary: Auth Code + Username&Password(deprecated): + value: + username: string + password: string + summary: Username & Password (deprecated) + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AuthToken' + description: '' + /v1/auth/logout/: + post: + operationId: auth_logout_create + description: Logout from the current session. Your API token will no longer be usable and must be regenerated via the login API. + tags: + - auth + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Logout' + description: '' + /v1/auth/password-change/: + post: + operationId: auth_password_change_create + description: Change your current password + tags: + - auth + requestBody: + content: + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/PasswordChange' + multipart/form-data: + schema: + $ref: '#/components/schemas/PasswordChange' + application/json: + schema: + $ref: '#/components/schemas/PasswordChange' + required: true + security: + - TokenAuthentication: [] + deprecated: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PasswordChange' + description: '' + /v1/auth/redirect/: + get: + operationId: auth_redirect_retrieve + description: Get an HTTP redirect to begin an OAuth login flow. + parameters: + - in: query + name: as_json + schema: + type: boolean + description: If "false" or unset, receive an HTTP 302 with the OAuth URL returned in the Location header. If "true", receive an HTTP 200 with the OAuth URL returned in the JSON payload. + tags: + - auth + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AuthRedirect' + description: '' + '302': + description: No response body + /v1/catalog/deployments/: + get: + operationId: catalog_deployments_list + parameters: + - in: query + name: bastion_operating_system + schema: + type: string + - in: query + name: cluster + schema: + type: string + format: uuid + - in: query + name: cluster_gpus_model + schema: + type: array + items: + type: string + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: collection_branch + schema: + type: string + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: experience + schema: + type: string + format: uuid + - in: query + name: experience_branch + schema: + type: string + - in: query + name: expired + schema: + type: boolean + - in: query + name: expires_at + schema: + type: string + format: date + - in: query + name: expiring + schema: + type: string + description: Include deployments whose expires_at value is within the given range (inclusive), specified as "today", "tomorrow", or "{start}[,end]". Start and end times must be in ISO format. + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: flightcontrol_release + schema: + type: string + - in: query + name: garage_id + schema: + type: string + - in: query + name: gc_branch + schema: + type: string + - in: query + name: gpu_alias + schema: + type: string + - in: query + name: gpu_count + schema: + type: integer + - in: query + name: gpu_model + schema: + type: string + - in: query + name: gpu_os_name + schema: + type: string + - in: query + name: gpu_os_release + schema: + type: string + - in: query + name: gpu_os_version + schema: + type: string + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: node_count + schema: + type: integer + - in: query + name: oem_name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: org_name + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: persist_on_failure + schema: + type: boolean + - in: query + name: persona + schema: + type: string + - in: query + name: pipeline + schema: + type: integer + - in: query + name: pipeline_branch + schema: + type: string + - in: query + name: platform + schema: + type: + - string + - 'null' + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere7 + - vsphere8 + - vsphere_horizon + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + - in: query + name: priority + schema: + type: string + enum: + - p0 + - p1 + - p2 + - p3 + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + - in: query + name: provider_name + schema: + type: string + - in: query + name: region + schema: + type: string + - in: query + name: request_id + schema: + type: string + - in: query + name: requester_email + schema: + type: string + - in: query + name: requester_name + schema: + type: string + - in: query + name: sales_id + schema: + type: string + - in: query + name: sales_owner_email + schema: + type: string + - in: query + name: sales_owner_name + schema: + type: string + - name: search + required: false + in: query + description: Search for deployments by bastion_operating_system, collection_branch, experience_branch, experience catalog_id, experience catalog_id_alias, experience id, experience title, expires_at, flightcontrol_release, garage_id, gc_branch, gpu_alias, gpu_model, gpu_os_name, gpu_os_release, gpu_os_version, id, oem_name, org_name, persona, pipeline_branch, platform, provider_name, region, request_id, requester_email, requester_name, sales_id, sales_owner_email, sales_owner_name, services url, state, tags, workshop_id + schema: + type: string + - in: query + name: state + schema: + type: array + items: + type: string + enum: + - destroyed + - destroying + - error + - failed + - paused + - ready + - retrying + - starting + - stopped + - stopping + - waiting + description: |- + Multiple values may be separated by commas. + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + explode: false + style: form + - in: query + name: workshop + schema: + type: boolean + - in: query + name: workshop_id + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Response + description: '' + post: + operationId: catalog_deployments_create + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Deployment' + examples: + DeploymentRequest(CatalogIDAlias): + value: + bastion_operating_system: ubuntu_22_04 + catalog_id_alias: LP-15 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Request (Catalog ID Alias) + DeploymentRequest(ExperienceID): + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + experience_id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Request (Experience ID) + DeploymentRequest(CatalogID): + value: + bastion_operating_system: ubuntu_22_04 + catalog_id: aBY3Z000000xBL4NCO + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Request (Catalog ID) + DeploymentRequest(MinimumRequiredFields): + value: + experience_id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + org_name: NVIDIA + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + summary: Deployment Request (Minimum Required Fields) + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Deployment' + multipart/form-data: + schema: + $ref: '#/components/schemas/Deployment' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Deployment' + examples: + SuccessfulResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Response + description: '' + /v1/catalog/deployments/{deployment_id}/instances/: + get: + operationId: catalog_deployments_instances_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: instance_id + schema: + type: string + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-instances by id, instance_id, name, state, tags + schema: + type: string + - in: query + name: state + schema: + type: string + enum: + - running + - starting + - stopped + - stopping + - unknown + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentInstanceList' + examples: + DeploymentInstanceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: DeploymentInstance Response + description: '' + /v1/catalog/deployments/{deployment_id}/notes/: + get: + operationId: catalog_deployments_notes_list + parameters: + - in: query + name: created_by + schema: + type: integer + - in: query + name: deployment + schema: + type: string + format: uuid + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: modified_by + schema: + type: integer + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-notes by content + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentNoteList' + examples: + DeploymentNoteResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + post: + operationId: catalog_deployments_notes_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteRequest: + value: + content: Hello world + summary: DeploymentNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentNote' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + /v1/catalog/deployments/{deployment_id}/notes/{id}/: + get: + operationId: catalog_deployments_notes_retrieve + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + put: + operationId: catalog_deployments_notes_update + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteRequest: + value: + content: Hello world + summary: DeploymentNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentNote' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + patch: + operationId: catalog_deployments_notes_partial_update + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteRequest: + value: + content: Hello world + summary: DeploymentNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentNote' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentNote' + examples: + DeploymentNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: bb3ade1b-dffa-46f2-bf1d-52dfc7b1c331 + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: DeploymentNote Response + description: '' + delete: + operationId: catalog_deployments_notes_destroy + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/catalog/deployments/{deployment_id}/pipelines/: + get: + operationId: catalog_deployments_pipelines_list + parameters: + - in: query + name: action + schema: + type: string + enum: + - apply + - destroy + description: |- + Action for the pipeline to run + + * `apply` - apply + * `destroy` - destroy + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: pipeline_id + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-pipelines by action, id, pipeline_id, url + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentPipelineList' + examples: + DeploymentPipelineResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - action: apply + created: '2024-04-01T06:14:32.602Z' + deployment: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + id: 4b9fab90-b441-4896-bb1f-c765fd846307 + modified: '2024-05-03T17:03:45.380Z' + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + summary: DeploymentPipeline Response + description: '' + post: + operationId: catalog_deployments_pipelines_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentPipeline' + examples: + DeploymentPipelineRequest: + value: + action: apply + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + summary: DeploymentPipeline Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentPipeline' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentPipeline' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentPipeline' + examples: + DeploymentPipelineResponse: + value: + action: apply + created: '2024-04-01T06:14:32.602Z' + deployment: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + id: 4b9fab90-b441-4896-bb1f-c765fd846307 + modified: '2024-05-03T17:03:45.380Z' + pipeline_id: 5316124134 + url: https://gitlab.com/my-project/-/pipelines/5316124134 + summary: DeploymentPipeline Response + description: '' + /v1/catalog/deployments/{deployment_id}/services/: + get: + operationId: catalog_deployments_services_list + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-services by id, name, url + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentServiceList' + examples: + DeploymentServiceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: deb28859-d04e-4976-88d2-9488d9616bcf + modified: '2024-05-03T17:03:45.380Z' + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + summary: DeploymentService Response + description: '' + post: + operationId: catalog_deployments_services_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentService' + examples: + DeploymentServiceRequest: + value: + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + summary: DeploymentService Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentService' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentService' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentService' + examples: + DeploymentServiceResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: deb28859-d04e-4976-88d2-9488d9616bcf + modified: '2024-05-03T17:03:45.380Z' + name: root + url: https://a169edac-202c-46b9-8c61-47191000aca6.nvidialaunchpad.com + summary: DeploymentService Response + description: '' + /v1/catalog/deployments/{deployment_id}/ssh-keys/: + get: + operationId: catalog_deployments_ssh_keys_list + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-keys by name + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentKeyList' + examples: + DeploymentKeyResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 597f6c78-6195-4bc7-9db2-f344f71e8b47 + modified: '2024-05-03T17:03:45.380Z' + name: My Key + summary: DeploymentKey Response + description: '' + post: + operationId: catalog_deployments_ssh_keys_create + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentKey' + examples: + DeploymentKeyRequest: + value: + name: My Key + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + summary: DeploymentKey Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentKey' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentKey' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentKey' + examples: + DeploymentKeyResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 597f6c78-6195-4bc7-9db2-f344f71e8b47 + modified: '2024-05-03T17:03:45.380Z' + name: My Key + summary: DeploymentKey Response + description: '' + /v1/catalog/deployments/{deployment_id}/ssh-keys/{id}/: + delete: + operationId: catalog_deployments_ssh_keys_destroy + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/catalog/deployments/{deployment_id}/tasks/: + get: + operationId: catalog_deployments_tasks_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: query + name: action + schema: + type: string + enum: + - start_instances + - stop_instances + description: |- + The action the task will perform + + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: query + name: id + schema: + type: string + format: uuid + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for deployment-tasks by action, id, status, status_text + schema: + type: string + - in: query + name: status + schema: + type: string + enum: + - completed + - failed + - pending + - processing + - retrying + description: |- + Current status of the task + + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeploymentTaskList' + examples: + DeploymentTaskResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - action: start_instances + created: '2024-04-01T06:14:32.602Z' + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: '2024-05-03T17:03:45.380Z' + retries: 0 + status: pending + status_text: '' + summary: DeploymentTask Response + description: '' + post: + operationId: catalog_deployments_tasks_create + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentTask' + examples: + DeploymentTaskRequest: + value: + action: start_instances + summary: DeploymentTask Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentTask' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentTask' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentTask' + examples: + DeploymentTaskResponse: + value: + action: start_instances + created: '2024-04-01T06:14:32.602Z' + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: '2024-05-03T17:03:45.380Z' + retries: 0 + status: pending + status_text: '' + summary: DeploymentTask Response + description: '' + /v1/catalog/deployments/{deployment_id}/tasks/{id}/: + get: + operationId: catalog_deployments_tasks_retrieve + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: deployment_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentTask' + examples: + DeploymentTaskResponse: + value: + action: start_instances + created: '2024-04-01T06:14:32.602Z' + id: 1001d637-f16a-4b42-b540-ef58fcfaaef8 + modified: '2024-05-03T17:03:45.380Z' + retries: 0 + status: pending + status_text: '' + summary: DeploymentTask Response + description: '' + /v1/catalog/deployments/{id}/: + get: + operationId: catalog_deployments_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: expiring + schema: + type: string + description: Include deployments whose expires_at value is within the given range (inclusive), specified as "today", "tomorrow", or "{start}[,end]". Start and end times must be in ISO format. + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Deployment' + examples: + SuccessfulResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Response + description: '' + put: + operationId: catalog_deployments_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + examples: + DeploymentRequest: + value: + collection_branch: my-branch + experience_branch: main + expires_at: 2025-10-18 21:04:45.203550+00:00 + flightcontrol_release: latest + gc_branch: main + ip_allowlist: + - 192.0.2.1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + state: retrying + tags: + sample: test + summary: Deployment Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + examples: + DeploymentResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Response + description: '' + patch: + operationId: catalog_deployments_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + examples: + DeploymentRequest: + value: + collection_branch: my-branch + experience_branch: main + expires_at: 2025-10-18 21:04:45.203550+00:00 + flightcontrol_release: latest + gc_branch: main + ip_allowlist: + - 192.0.2.1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + state: retrying + tags: + sample: test + summary: Deployment Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentUpdate' + examples: + DeploymentResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: waiting + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Deployment Response + description: '' + delete: + operationId: catalog_deployments_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this deployment. + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DocDeploymentDelete' + examples: + SuccessfulDestroyingResponse: + value: + bastion_operating_system: ubuntu_22_04 + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + collection_branch: my-branch + created: '2024-04-01T06:14:32.602Z' + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + experience_branch: main + expires_at: 2025-09-21 21:04:45.203347+00:00 + flightcontrol_release: latest + garage_id: f15b539b-8b64-46e8-95e3-c70f2f36aabd + gc_branch: main + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 4 + gpu_model: l40s + gpu_os_name: ubuntu + gpu_os_release: jammy + gpu_os_version: '22.04' + id: 5330c898-f3e7-4972-bfd0-1d438e3774d7 + ip_allowlist: + - 192.0.2.1 + lifetime: 3 + min_gpu_count: 2 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + oem_name: NVIDIA + org_name: NVIDIA + overrides: + collection_branch: my-branch + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + pipelines: + - 4b9fab90-b441-4896-bb1f-c765fd846307 + platform: flight_deck + priority: p3 + provider_name: dmz + public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBdptDTzJ2cOmdyryG1B7yb1YssiCQs6SWu4HlbZXGE + region: pdx + request_id: TRY-123 + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_created_date: '2025-04-10T15:08:47.381700Z' + sales_id: a6ZYx000001234 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + services: + - ae85193a-2927-4a6e-84dc-f954b9c03f73 + ssh_port: 2222 + ssh_user: nvidia + state: destroying + tags: + sample: test + workshop: false + workshop_id: January training + workshop_override_password: nvidia + summary: Successful Destroying Response + description: '' + '204': + description: No response body + /v1/catalog/deployments/{id}/history/: + get: + operationId: catalog_deployments_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/catalog/deployments/bulk/: + patch: + operationId: catalog_deployments_bulk_partial_update + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + examples: + DeploymentBulkUpdateRequest: + value: + collection_branch: my-branch + experience_branch: main + expires_at: 2025-10-18 21:04:45.203550+00:00 + flightcontrol_release: latest + gc_branch: main + ids: + - 5330c898-f3e7-4972-bfd0-1d438e3774d7 + - b29d13e5-5894-4614-af2a-ea3f9be93fc5 + ip_allowlist: + - 192.0.2.1 + org_name: NVIDIA + persist_on_failure: false + persona: developer + pipeline: 5443221 + pipeline_branch: main + platform: flight_deck + requester_email: jane.doe@nvidia.com + requester_name: Jane Doe + retry_count: 0 + sales_owner_email: john.smith@nvidia.com + sales_owner_name: John Smith + state: retrying + tags: + sample: test + summary: Deployment Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentBulkUpdate' + examples: + DeploymentBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Deployment Bulk Update Response + description: '' + /v1/catalog/deployments/stats/: + get: + operationId: catalog_deployments_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body + /v1/catalog/experiences/: + get: + operationId: catalog_experiences_list + parameters: + - in: query + name: assignee + schema: + type: string + - in: query + name: autoapprove + schema: + type: boolean + - in: query + name: autoprovision + schema: + type: boolean + - in: query + name: bootstrap + schema: + type: boolean + - in: query + name: catalog_id + schema: + type: string + - in: query + name: catalog_id_alias + schema: + type: string + - in: query + name: category + schema: + type: array + items: + type: string + enum: + - 3D Design Collaboration and Simulation + - AI + - Clara + - Data Science + - Developer + - Infrastructure Optimization + description: |- + Multiple values may be separated by commas. + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + explode: false + style: form + - in: query + name: collection_branch + schema: + type: string + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "required_gpus").' + - in: query + name: experience + schema: + type: string + - in: query + name: experience_branch + schema: + type: string + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: garage_id + schema: + type: string + - in: query + name: gc_branch + schema: + type: string + - in: query + name: gpu_count + schema: + type: integer + - in: query + name: gpu_os_name + schema: + type: string + - in: query + name: gpu_os_release + schema: + type: string + - in: query + name: gpu_os_version + schema: + type: string + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: node_count + schema: + type: integer + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: persona + schema: + type: string + - in: query + name: pipeline + schema: + type: integer + - in: query + name: platform + schema: + type: string + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere7 + - vsphere8 + - vsphere_horizon + description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: published + schema: + type: array + items: + type: string + enum: + - draft + - 'no' + - 'yes' + description: |- + Multiple values may be separated by commas. + + * `draft` - draft + * `no` - no + * `yes` - yes + explode: false + style: form + - in: query + name: requires_gpu + schema: + type: string + description: Only include experiences that require a given GPU ID or model + - in: query + name: sa_lab + schema: + type: boolean + - name: search + required: false + in: query + description: Search for experiences by assignee, catalog_id, catalog_id_alias, category, collection_branch, description, experience, experience_branch, gc_branch, gpu_os_name, gpu_os_release, gpu_os_version, id, persona, pipeline, platform, provider name, required_gpus model, system_arch, title, vgpu_profile + schema: + type: string + - in: query + name: system_arch + schema: + type: string + enum: + - amd64 + - arm64 + description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + - in: query + name: vgpu_profile + schema: + type: + - string + - 'null' + enum: + - air + - bright-cluster + - bright_cluster + - flight-deck + - flight_deck + - nvidia-ai-enterprise + - nvidia_a40-48q + - nvidia_l40s-48q + - nvidia_rtx_pro_6000_blackwell_dc-4-96q + - nvidia_rtx_pro_6000_blackwell_dc-96q + - openshift + - platform_only + - vmware_itadmin + description: |- + vGPU profile name used by the experience + + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q + * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedExperienceList' + examples: + ExperienceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + post: + operationId: catalog_experiences_create + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Experience' + multipart/form-data: + schema: + $ref: '#/components/schemas/Experience' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + /v1/catalog/experiences/{experience_id}/notes/: + get: + operationId: catalog_experiences_notes_list + parameters: + - in: query + name: created_by + schema: + type: integer + - in: query + name: experience + schema: + type: string + format: uuid + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: modified_by + schema: + type: integer + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for experience-notes by content + schema: + type: string + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedExperienceNoteList' + examples: + ExperiencetNoteResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + post: + operationId: catalog_experiences_notes_create + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteRequest: + value: + content: Hello world + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + summary: ExperiencetNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ExperienceNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExperienceNote' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + /v1/catalog/experiences/{experience_id}/notes/{id}/: + get: + operationId: catalog_experiences_notes_retrieve + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + put: + operationId: catalog_experiences_notes_update + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteRequest: + value: + content: Hello world + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + summary: ExperiencetNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ExperienceNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExperienceNote' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + patch: + operationId: catalog_experiences_notes_partial_update + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteRequest: + value: + content: Hello world + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + summary: ExperiencetNote Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ExperienceNote' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExperienceNote' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceNote' + examples: + ExperiencetNoteResponse: + value: + content: Hello world + created: '2024-04-01T06:14:32.602Z' + created_by: john.smith@nvidia.com + id: de618bfc-17b6-4acd-a089-fbff9c3a8c3e + modified: '2024-05-03T17:03:45.380Z' + modified_by: jane.doe@nvidia.com + summary: ExperiencetNote Response + description: '' + delete: + operationId: catalog_experiences_notes_destroy + parameters: + - in: path + name: experience_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - catalog/deployments + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/catalog/experiences/{id}/: + get: + operationId: catalog_experiences_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "required_gpus").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + put: + operationId: catalog_experiences_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Experience' + multipart/form-data: + schema: + $ref: '#/components/schemas/Experience' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + patch: + operationId: catalog_experiences_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Experience' + multipart/form-data: + schema: + $ref: '#/components/schemas/Experience' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Experience' + examples: + ExperienceResponse: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + catalog_id: aBY3Z000000xBL4NCO + catalog_id_alias: LP-15 + category: Developer + collection_branch: main + created: '2024-04-01T06:14:32.602Z' + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + id: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + inactivity_max: 3 + lifetime: 3 + modified: '2024-05-03T17:03:45.380Z' + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Response + description: '' + delete: + operationId: catalog_experiences_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this experience. + required: true + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/catalog/experiences/{id}/history/: + get: + operationId: catalog_experiences_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/catalog/experiences/bulk/: + post: + operationId: catalog_experiences_bulk_create + description: Create experiences in bulk via CSV file upload + tags: + - catalog/experiences + requestBody: + content: + multipart/form-data: + schema: + type: object + properties: + csv_file: + type: string + format: binary + writeOnly: true + required: + - csv_file + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceBulk' + description: '' + patch: + operationId: catalog_experiences_bulk_partial_update + tags: + - catalog/experiences + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceBulkUpdate' + examples: + ExperienceBulkUpdateRequest: + value: + assignee: janedoe + autoapprove: true + autoprovision: true + bootstrap: false + category: Developer + collection_branch: main + description: An NVIDIA LaunchPad Experience + experience: example-exp + experience_branch: origin/main + garage_id: f97ab5af-266c-445f-a19a-9fbee6f7162b + gc_branch: main + gpu_count: 1 + gpu_os: + name: ubuntu + release: jammy + version: '22.04' + ids: + - c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + - 3587f151-b02a-46c7-80a4-ac61db6633ed + inactivity_max: 3 + lifetime: 3 + node_count: 1 + persona: developer + pipeline: 5443221 + platform: flight_deck + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + published: 'yes' + required_gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + sa_lab: false + system_arch: amd64 + title: My Experience + vgpu_profile: nvidia_a40-48q + summary: Experience Bulk Update Request + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExperienceBulkUpdate' + examples: + ExperienceBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Experience Bulk Update Response + description: '' + /v1/catalog/experiences/stats/: + get: + operationId: catalog_experiences_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - catalog/experiences + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body + /v1/catalog/gpu-os-choices/: + get: + operationId: catalog_gpu_os_choices_list + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for gpuoschoices by id, name, release, version + schema: + type: string + tags: + - catalog/gpu-os-choices + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedGpuOsChoiceList' + examples: + GPUOSChoiceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 22 + modified: '2024-05-03T17:03:45.380Z' + name: ubuntu + release: jammy + version: '22.04' + summary: GPU OS Choice Response + description: '' + post: + operationId: catalog_gpu_os_choices_create + tags: + - catalog/gpu-os-choices + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GpuOsChoice' + examples: + GPUOSChoiceRequest: + value: + name: ubuntu + release: jammy + version: '22.04' + summary: GPU OS Choice Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/GpuOsChoice' + multipart/form-data: + schema: + $ref: '#/components/schemas/GpuOsChoice' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/GpuOsChoice' + examples: + GPUOSChoiceResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 22 + modified: '2024-05-03T17:03:45.380Z' + name: ubuntu + release: jammy + version: '22.04' + summary: GPU OS Choice Response + description: '' + /v1/catalog/instance-types/: + get: + operationId: catalog_instance_types_list + parameters: + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - catalog/instance-types + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedInstanceTypeList' + examples: + InstanceTypeResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - capacity: + us-tx-1: 10 + cloud: oci + cpu: 16 + gpu: + count: 1 + family: A100 + interconnection_type: SXM + manufacturer: NVIDIA + memory_gb: 80 + model: A100-80GB + memory_gb: 120 + price: + currency: USD + on_demand_per_hour: 2.5 + regions: + - us-tx-1 + storage: + - size_gb: 1024 + type: ssd + - size_gb: 2048 + type: ssd + system_arch: amd64 + workshop_id: January training + summary: Instance Type Response + description: '' + /v1/catalog/persona-choices/: + get: + operationId: catalog_persona_choices_list + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for personachoices by id, name + schema: + type: string + tags: + - catalog/persona-choices + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedPersonaChoiceList' + examples: + PersonaChoiceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 15 + modified: '2024-05-03T17:03:45.380Z' + name: developer + summary: Persona Choice Response + description: '' + post: + operationId: catalog_persona_choices_create + tags: + - catalog/persona-choices + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PersonaChoice' + examples: + PersonaChoiceRequest: + value: + name: developer + summary: Persona Choice Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/PersonaChoice' + multipart/form-data: + schema: + $ref: '#/components/schemas/PersonaChoice' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/PersonaChoice' + examples: + PersonaChoiceResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 15 + modified: '2024-05-03T17:03:45.380Z' + name: developer + summary: Persona Choice Response + description: '' + /v1/identity/profile/: + get: + operationId: identity_profile_retrieve + tags: + - identity/profile + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Profile' + examples: + ProfileResponse: + value: + created: '2024-10-01T07:24:42.702Z' + groups: + - Reporters + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + modified: '2024-11-03T18:04:55.480Z' + preferred_theme: dark + preferred_view_settings: + view_name: + ordering: -column_name + page_size: 50 + username: jdoe@nvidia.com + summary: Profile Response + description: '' + patch: + operationId: identity_profile_partial_update + tags: + - identity/profile + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Profile' + examples: + ProfileRequest: + value: + preferred_theme: dark + preferred_view_settings: + view_name: + ordering: -column_name + page_size: 50 + summary: Profile Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Profile' + multipart/form-data: + schema: + $ref: '#/components/schemas/Profile' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Profile' + examples: + ProfileResponse: + value: + created: '2024-10-01T07:24:42.702Z' + groups: + - Reporters + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + modified: '2024-11-03T18:04:55.480Z' + preferred_theme: dark + preferred_view_settings: + view_name: + ordering: -column_name + page_size: 50 + username: jdoe@nvidia.com + summary: Profile Response + description: '' + /v1/inventory/clusters/: + get: + operationId: inventory_clusters_list + parameters: + - in: query + name: available + schema: + type: boolean + description: Is the cluster currently available for provisioning? + - in: query + name: bastion_name + schema: + type: string + - in: query + name: deployment + schema: + type: string + format: uuid + - in: query + name: enabled + schema: + type: boolean + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "nodes.location"). Separate multiple fields with a comma (ex: "gpus,nodes")' + - in: query + name: experience + schema: + type: string + format: uuid + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: garage_id + schema: + type: string + description: Only include clusters whose nodes have the given garage ID + - in: query + name: gpu + schema: + type: array + items: + type: string + format: uuid + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: gpu_alias + schema: + type: string + description: Alias for GPU plan (i.e. installed GPU type and count) + - in: query + name: gpu_count + schema: + type: number + description: Only include clusters with a physical GPU count equal to this value + - in: query + name: gpu_model + schema: + type: string + description: Only include clusters with the given GPU model name + - in: query + name: has_deployment + schema: + type: boolean + - in: query + name: has_request_id + schema: + type: boolean + - in: query + name: has_workshop_id + schema: + type: boolean + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: location + schema: + type: string + format: uuid + - in: query + name: location_name + schema: + type: string + description: Only include clusters whose nodes are in the location with the given name + - in: query + name: location_region + schema: + type: string + description: Only include clusters whose nodes are in the location in the given region + - in: query + name: maintenance + schema: + type: boolean + - in: query + name: mgmt_ip + schema: + type: string + - in: query + name: mgmt_mac + schema: + type: string + - in: query + name: min_gpu_count + schema: + type: number + description: Only include clusters that have a gpu_count greater than or equal to this value + - in: query + name: min_node_count + schema: + type: number + description: Only include clusters that have a node_count greater than or equal to this value + - in: query + name: min_provisioning_attempts + schema: + type: integer + description: Only include clusters that have a provisioning_attempts value greater than or equal to this value + - in: query + name: min_tenant_count + schema: + type: number + description: Only include clusters whose number of tenant_ids is greater than or equal to this value + - in: query + name: netmask + schema: + type: integer + - in: query + name: node_count + schema: + type: number + description: Only include clusters with a node count equal to this value + - in: query + name: oem + schema: + type: string + format: uuid + description: Only include clusters with nodes that have the given OEM ID + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: persist + schema: + type: boolean + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: provider_capacity + schema: + type: boolean + - in: query + name: provider_name + schema: + type: string + description: Only include clusters whose nodes are from the provider with the given name + - in: query + name: provider_node_id + schema: + type: string + format: uuid + - in: query + name: provision_user + schema: + type: string + - in: query + name: provisioning_attempts + schema: + type: integer + - in: query + name: provisioning_state + schema: + type: array + items: + type: string + enum: + - deployed + - deploying + - destroying + - pending + - ready + - reserved + - unprovisioned + description: |- + Multiple values may be separated by commas. + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + explode: false + style: form + - in: query + name: public_address + schema: + type: string + - in: query + name: rack + schema: + type: string + description: Only include clusters whose nodes are in the given rack + - in: query + name: request_id + schema: + type: string + - in: query + name: reservation + schema: + type: boolean + - name: search + required: false + in: query + description: Search for clusters by bastion_name, experience id, gpu_alias, gpus model, id, mgmt_ip, mgmt_mac, netmask, nodes garage_id, nodes location name, nodes location provider name, nodes oem name, nodes provider_node_id, nodes rack, notes, provision_user, provisioning_state, public_address, request_id, tenant_ids, workshop_id + schema: + type: string + - in: query + name: system_arch + schema: + type: string + description: Only include clusters whose nodes have the given CPU architecture + - in: query + name: vlan_id + schema: + type: integer + - in: query + name: workshop + schema: + type: boolean + - in: query + name: workshop_id + schema: + type: string + - in: query + name: workshop_id_not + schema: + type: string + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedClusterList' + examples: + ClusterResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + post: + operationId: inventory_clusters_create + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Cluster' + multipart/form-data: + schema: + $ref: '#/components/schemas/Cluster' + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + /v1/inventory/clusters/{cluster_id}/tenants/: + post: + operationId: inventory_clusters_tenants_create + parameters: + - in: path + name: cluster_id + schema: + type: string + format: uuid + required: true + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Tenant' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Tenant' + multipart/form-data: + schema: + $ref: '#/components/schemas/Tenant' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + /v1/inventory/clusters/{cluster_id}/tenants/{id}/: + delete: + operationId: inventory_clusters_tenants_destroy + parameters: + - in: path + name: cluster_id + schema: + type: string + format: uuid + required: true + - in: path + name: id + schema: + type: string + format: uuid + required: true + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/clusters/{id}/: + get: + operationId: inventory_clusters_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "nodes.location"). Separate multiple fields with a comma (ex: "gpus,nodes")' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + put: + operationId: inventory_clusters_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Cluster' + multipart/form-data: + schema: + $ref: '#/components/schemas/Cluster' + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + patch: + operationId: inventory_clusters_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Cluster' + multipart/form-data: + schema: + $ref: '#/components/schemas/Cluster' + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + examples: + ClusterResponse: + value: + available: true + bastion_name: jovial_bastion + created: '2024-04-01T06:14:32.602Z' + deployment: null + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + free_by: '2024-06-13T02:22:06.611Z' + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpus: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + id: 089324a5-708c-4386-9fdc-92dd9aa63d2b + last_used: '2024-05-03T15:04:44.410Z' + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + modified: '2024-05-03T17:03:45.380Z' + netmask: 24 + node_count: 1 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provider_capacity: true + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + public_address: 203.0.113.1 + request_id: TRY-1234 + reservation: false + tenant_ids: + - faf0669c-eec2-47a4-a881-5c568be65597 + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Response + description: '' + delete: + operationId: inventory_clusters_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this cluster. + required: true + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/clusters/{id}/history/: + get: + operationId: inventory_clusters_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/clusters/bulk/: + patch: + operationId: inventory_clusters_bulk_partial_update + tags: + - inventory/clusters + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + examples: + ClusterBulkUpdateRequest: + value: + bastion_name: jovial_bastion + enabled: true + experience: c4b62bd4-6c4b-41f2-b4ec-5ad392f6afc + ids: + - 089324a5-708c-4386-9fdc-92dd9aa63d2b + - 3587f151-b02a-46c7-80a4-ac61db6633ed + maintenance: false + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + netmask: 24 + nodes: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + persist: false + provision_user: nvidia + provisioning_attempts: 1 + provisioning_state: pending + reservation: false + vlan_id: 1 + workshop: false + workshop_id: January training + summary: Cluster Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterBulkUpdate' + examples: + ClusterBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Cluster Bulk Update Response + description: '' + /v1/inventory/clusters/stats/: + get: + operationId: inventory_clusters_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/clusters + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body + /v1/inventory/gpus/: + get: + operationId: inventory_gpus_list + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: form_factor + schema: + type: string + enum: + - pcie + - sxm + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: model + schema: + type: array + items: + type: string + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: priority + schema: + type: integer + - name: search + required: false + in: query + description: Search for gpus by form_factor, id, memory, model + schema: + type: string + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedGpuList' + examples: + GPUResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + post: + operationId: inventory_gpus_create + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPURequest: + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + summary: GPU Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Gpu' + multipart/form-data: + schema: + $ref: '#/components/schemas/Gpu' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPUResponse: + value: + created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + /v1/inventory/gpus/{id}/: + get: + operationId: inventory_gpus_retrieve + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPUResponse: + value: + created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + put: + operationId: inventory_gpus_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPURequest: + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + summary: GPU Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Gpu' + multipart/form-data: + schema: + $ref: '#/components/schemas/Gpu' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPUResponse: + value: + created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + patch: + operationId: inventory_gpus_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPURequest: + value: + form_factor: pcie + memory: 48 + model: l40s + priority: 60 + summary: GPU Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Gpu' + multipart/form-data: + schema: + $ref: '#/components/schemas/Gpu' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Gpu' + examples: + GPUResponse: + value: + created: '2024-04-01T06:14:32.602Z' + form_factor: pcie + id: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + memory: 48 + model: l40s + modified: '2024-05-03T17:03:45.380Z' + node_count: 22 + priority: 60 + summary: GPU Response + description: '' + delete: + operationId: inventory_gpus_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this gpu. + required: true + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/gpus/{id}/history/: + get: + operationId: inventory_gpus_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/gpus/bulk/: + patch: + operationId: inventory_gpus_bulk_partial_update + tags: + - inventory/gpus + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + examples: + GPUBulkUpdateRequest: + value: + form_factor: pcie + ids: + - c77f399a-8f69-4a07-b1f5-e35f8654cdfc + - d63c8b0d-acb9-4c87-b4f7-656ecea5b02a + memory: 48 + priority: 60 + summary: GPU Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GpuBulkUpdate' + examples: + GPUBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: GPU Bulk Update Response + description: '' + /v1/inventory/gpus/stats/: + get: + operationId: inventory_gpus_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/gpus + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body + /v1/inventory/instances/: + get: + operationId: inventory_instances_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: query + name: cluster + schema: + type: string + format: uuid + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: instance_id + schema: + type: string + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for instances by cluster, id, instance_id, name, state, tags + schema: + type: string + - in: query + name: state + schema: + type: string + enum: + - running + - starting + - stopped + - stopping + - unknown + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedInstanceList' + examples: + InstanceResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + post: + operationId: inventory_instances_create + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Instance' + multipart/form-data: + schema: + $ref: '#/components/schemas/Instance' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + /v1/inventory/instances/{id}/: + get: + operationId: inventory_instances_retrieve + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "cluster").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + put: + operationId: inventory_instances_update + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Instance' + multipart/form-data: + schema: + $ref: '#/components/schemas/Instance' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + patch: + operationId: inventory_instances_partial_update + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + instance_id: instance-934ea164 + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Instance' + multipart/form-data: + schema: + $ref: '#/components/schemas/Instance' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Instance' + examples: + InstanceResponse: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + created: '2024-04-01T06:14:32.602Z' + id: 899d8680-454a-41f3-af99-9e0497ac955d + instance_id: instance-934ea164 + modified: '2024-05-03T17:03:45.380Z' + name: My GPU Cluster + state: running + state_modified: '2024-05-03T17:03:45.380Z' + tags: + - gpu + summary: Instance Response + description: '' + delete: + operationId: inventory_instances_destroy + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this instance. + required: true + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/instances/{id}/history/: + get: + operationId: inventory_instances_history_list + summary: "\U0001F6A7 [Beta Feature]" + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/instances + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/instances/bulk/: + patch: + operationId: inventory_instances_bulk_partial_update + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/instances + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + examples: + InstanceBulkUpdateRequest: + value: + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + ids: + - 899d8680-454a-41f3-af99-9e0497ac955d + - 3280c16f-0e3e-4897-b8ba-7f66d40281bf + name: My GPU Cluster + state: running + tags: + - gpu + summary: Instance Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/InstanceBulkUpdate' + examples: + InstanceBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Instance Bulk Update Response + description: '' + /v1/inventory/locations/: + get: + operationId: inventory_locations_list + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "provider").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: region + schema: + type: string + - name: search + required: false + in: query + description: Search for locations by id, name, provider name, region + schema: + type: string + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedLocationList' + examples: + LocationResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + post: + operationId: inventory_locations_create + tags: + - inventory/locations + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationRequest: + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Location' + multipart/form-data: + schema: + $ref: '#/components/schemas/Location' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + /v1/inventory/locations/{id}/: + get: + operationId: inventory_locations_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID (ex: "provider").' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + put: + operationId: inventory_locations_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + tags: + - inventory/locations + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationRequest: + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Location' + multipart/form-data: + schema: + $ref: '#/components/schemas/Location' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + patch: + operationId: inventory_locations_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + tags: + - inventory/locations + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationRequest: + value: + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Location' + multipart/form-data: + schema: + $ref: '#/components/schemas/Location' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Location' + examples: + LocationResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: c325baef-d37f-4aca-a933-e35d68c0ce2b + modified: '2024-05-03T17:03:45.380Z' + name: Raleigh + provider: f8bd1b72-c213-43ec-82ad-a56a44757a11 + region: East + summary: Location Response + description: '' + delete: + operationId: inventory_locations_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this location. + required: true + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/locations/{id}/history/: + get: + operationId: inventory_locations_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/locations + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/nodes/: + get: + operationId: inventory_nodes_list + parameters: + - in: query + name: bmc_ip + schema: + type: string + - in: query + name: bmc_mac + schema: + type: string + - in: query + name: bmc_password + schema: + type: string + - in: query + name: bmc_user + schema: + type: string + - in: query + name: cluster + schema: + type: string + format: uuid + - in: query + name: cpu + schema: + type: integer + - in: query + name: cpu_manufacturer + schema: + type: + - string + - 'null' + enum: + - amd + - arm + - intel + description: |- + Manufacturer of the node's CPU + + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + - in: query + name: cpu_model + schema: + type: string + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "location.provider"). Separate multiple fields with a comma (ex: "location,oem")' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: garage_id + schema: + type: string + - in: query + name: gpu + schema: + type: array + items: + type: string + format: uuid + description: Multiple values may be separated by commas. + explode: false + style: form + - in: query + name: gpu_alias + schema: + type: string + description: Alias for GPU plan (i.e. installed GPU type and count) + - in: query + name: gpu_count + schema: + type: integer + - in: query + name: gpu_model + schema: + type: string + description: Model of GPU(s) installed + - in: query + name: gpu_vbios + schema: + type: string + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: location + schema: + type: string + format: uuid + - in: query + name: memory + schema: + type: integer + - in: query + name: mgmt_ip + schema: + type: string + - in: query + name: mgmt_mac + schema: + type: string + - in: query + name: min_gpu_count + schema: + type: integer + description: Only include nodes that have a gpu_count greater than or equal to this value + - in: query + name: model + schema: + type: string + - in: query + name: network_type + schema: + type: string + enum: + - ethernet + - infiniband + description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + - in: query + name: oem + schema: + type: string + format: uuid + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: provider + schema: + type: string + format: uuid + - in: query + name: provider_node_id + schema: + type: string + - in: query + name: rack + schema: + type: string + - in: query + name: rack_unit + schema: + type: integer + - name: search + required: false + in: query + description: Search for nodes by bmc_ip, bmc_mac, bmc_password, bmc_user, cpu_manufacturer, cpu_model, garage_id, gpu_alias, gpu model, gpu_vbios, id, location name, location provider name, memory, mgmt_ip, mgmt_mac, model, network_type, nic_prefixes, notes, oem name, provider_node_id, rack, rack_unit, serial_number, storage, system_arch + schema: + type: string + - in: query + name: serial_number + schema: + type: string + - in: query + name: system_arch + schema: + type: string + enum: + - amd64 + - arm64 + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + - in: query + name: tee + schema: + type: boolean + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedNodeList' + examples: + NodeResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + post: + operationId: inventory_nodes_create + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Node' + multipart/form-data: + schema: + $ref: '#/components/schemas/Node' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + /v1/inventory/nodes/{id}/: + get: + operationId: inventory_nodes_retrieve + parameters: + - in: query + name: expand + schema: + type: string + description: 'Expand related field(s) instead of only showing a UUID. Separate nested relationships with a period (ex: "location.provider"). Separate multiple fields with a comma (ex: "location,oem")' + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + put: + operationId: inventory_nodes_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Node' + multipart/form-data: + schema: + $ref: '#/components/schemas/Node' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + patch: + operationId: inventory_nodes_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Node' + multipart/form-data: + schema: + $ref: '#/components/schemas/Node' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Node' + examples: + NodeResponse: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + created: '2024-04-01T06:14:32.602Z' + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_alias: nvidia3.l40sx2.medium + gpu_count: 2 + gpu_model: l40s + gpu_vbios: 92.00.81.00.01 + id: d66f5cc1-c861-4c79-8d36-d156e050cb07 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + modified: '2024-05-03T17:03:45.380Z' + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Response + description: '' + delete: + operationId: inventory_nodes_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this node. + required: true + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/nodes/{id}/history/: + get: + operationId: inventory_nodes_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/nodes + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/nodes/bulk/: + post: + operationId: inventory_nodes_bulk_create + description: Create nodes in bulk via CSV file upload + tags: + - inventory/nodes + requestBody: + content: + multipart/form-data: + schema: + type: object + properties: + csv_file: + type: string + format: binary + writeOnly: true + required: + - csv_file + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/NodeBulk' + description: '' + patch: + operationId: inventory_nodes_bulk_partial_update + tags: + - inventory/nodes + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NodeBulkUpdate' + examples: + NodeBulkUpdateRequest: + value: + bmc_ip: 192.0.2.1 + bmc_mac: 00:53:00:00:00:01 + bmc_password: password + bmc_user: username + cluster: 089324a5-708c-4386-9fdc-92dd9aa63d2b + cpu: 1 + cpu_manufacturer: amd + cpu_model: EPYC 7571 + gpu: c77f399a-8f69-4a07-b1f5-e35f8654cdfc + gpu_count: 2 + gpu_vbios: 92.00.81.00.01 + ids: + - d66f5cc1-c861-4c79-8d36-d156e050cb07 + - 6fcf07f8-d821-48cf-b20e-b6eb65db9387 + location: c325baef-d37f-4aca-a933-e35d68c0ce2b + memory: 256 + mgmt_ip: 172.16.0.11 + mgmt_mac: 00:53:FF:00:00:01 + model: DGX H100 + network_type: ethernet + nic_prefixes: + - enp43 + - enp44 + notes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + oem: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + rack: j01 + rack_unit: 8 + serial_number: S1234567890 + storage: + - size: 56000 + type: nvme + system_arch: amd64 + tee: false + summary: Node Bulk Update Request + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/NodeBulkUpdate' + examples: + NodeBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Node Bulk Update Response + description: '' + /v1/inventory/oems/: + get: + operationId: inventory_oems_list + parameters: + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: Search for oems by id, name + schema: + type: string + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedOEMList' + examples: + OEMResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + post: + operationId: inventory_oems_create + tags: + - inventory/oems + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMRequest: + value: + name: My OEM + summary: OEM Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/OEM' + multipart/form-data: + schema: + $ref: '#/components/schemas/OEM' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + /v1/inventory/oems/{id}/: + get: + operationId: inventory_oems_retrieve + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + put: + operationId: inventory_oems_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMRequest: + value: + name: My OEM + summary: OEM Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/OEM' + multipart/form-data: + schema: + $ref: '#/components/schemas/OEM' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + patch: + operationId: inventory_oems_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMRequest: + value: + name: My OEM + summary: OEM Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/OEM' + multipart/form-data: + schema: + $ref: '#/components/schemas/OEM' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/OEM' + examples: + OEMResponse: + value: + created: '2024-04-01T06:14:32.602Z' + id: 45ca2da7-2582-4b7f-91c1-c6c5ccc84a7e + modified: '2024-05-03T17:03:45.380Z' + name: My OEM + summary: OEM Response + description: '' + delete: + operationId: inventory_oems_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this oem. + required: true + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/oems/{id}/history/: + get: + operationId: inventory_oems_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/oems + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/providers/: + get: + operationId: inventory_providers_list + parameters: + - in: query + name: display_name + schema: + type: string + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: query + name: id + schema: + type: string + format: uuid + - in: query + name: instance_limit + schema: + type: integer + - in: query + name: name + schema: + type: string + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: priority + schema: + type: integer + - name: search + required: false + in: query + description: Search for providers by display_name, id, name + schema: + type: string + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedProviderList' + examples: + ProviderResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + post: + operationId: inventory_providers_create + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderRequest: + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + summary: Provider Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Provider' + multipart/form-data: + schema: + $ref: '#/components/schemas/Provider' + required: true + security: + - TokenAuthentication: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderResponse: + value: + created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + /v1/inventory/providers/{id}/: + get: + operationId: inventory_providers_retrieve + parameters: + - in: query + name: fields + schema: + type: string + description: Include only the specified fields in the response + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + - in: query + name: omit + schema: + type: string + description: Exclude the specified fields in the response + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderResponse: + value: + created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + put: + operationId: inventory_providers_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderRequest: + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + summary: Provider Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Provider' + multipart/form-data: + schema: + $ref: '#/components/schemas/Provider' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderResponse: + value: + created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + patch: + operationId: inventory_providers_partial_update + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderRequest: + value: + display_name: My Provider + instance_limit: 250 + name: my_provider + priority: 50 + summary: Provider Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Provider' + multipart/form-data: + schema: + $ref: '#/components/schemas/Provider' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + examples: + ProviderResponse: + value: + created: '2024-04-01T06:14:32.602Z' + display_name: My Provider + id: f8bd1b72-c213-43ec-82ad-a56a44757a11 + instance_limit: 250 + modified: '2024-05-03T17:03:45.380Z' + name: my_provider + priority: 50 + summary: Provider Response + description: '' + delete: + operationId: inventory_providers_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this provider. + required: true + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '204': + description: No response body + /v1/inventory/providers/{id}/history/: + get: + operationId: inventory_providers_history_list + parameters: + - in: path + name: id + schema: + type: string + format: uuid + required: true + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedModelChangeList' + examples: + SuccessfulResponse: + value: + count: 123 + next: https://launchpad.api.nvidia.com/example/?page=4 + previous: https://launchpad.api.nvidia.com/example/?page=2 + results: + - change_type: changed + changes: + - field: notes + new_value: Sample note + old_value: null + created: '2025-01-29T13:20:39.821Z' + id: 123 + username: jane.doe@nvidia.com + summary: Successful Response + description: '' + /v1/inventory/providers/bulk/: + patch: + operationId: inventory_providers_bulk_partial_update + tags: + - inventory/providers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + examples: + ProviderBulkUpdateRequest: + value: + display_name: My Provider + ids: + - f8bd1b72-c213-43ec-82ad-a56a44757a11 + - 5b528083-ab61-42dd-a6a1-90aa9babb014 + instance_limit: 250 + priority: 50 + summary: Provider Bulk Update Request + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + multipart/form-data: + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + required: true + security: + - TokenAuthentication: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderBulkUpdate' + examples: + ProviderBulkUpdateResponse: + value: + count: 2 + result: Records updated successfully + summary: Provider Bulk Update Response + description: '' + /v1/inventory/providers/stats/: + get: + operationId: inventory_providers_stats_retrieve + summary: "\U0001F6A7 [Beta Feature]" + tags: + - inventory/providers + security: + - TokenAuthentication: [] + responses: + '200': + description: No response body +components: + schemas: + AuthLogin: + type: object + properties: + auth_code: + type: string + password: + type: string + username: + type: string + AuthRedirect: + type: object + properties: + redirect: + type: string + format: uri + required: + - redirect + AuthToken: + type: object + properties: + token: + type: string + readOnly: true + username: + type: string + readOnly: true + required: + - token + - username + BlankEnum: + enum: + - '' + x-enum-varnames: + - Blank + CategoryEnum: + enum: + - AI + - Clara + - Data Science + - 3D Design Collaboration and Simulation + - Developer + - Infrastructure Optimization + type: string + description: |- + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + x-enum-varnames: + - CategoryAI + - CategoryClara + - CategoryDataScience + - Category3DDesignCollaborationAndSimulation + - CategoryDeveloper + - CategoryInfrastructureOptimization + Cluster: + type: object + properties: + available: + type: boolean + readOnly: true + description: Is the cluster currently available for provisioning? + bastion_name: + type: + - string + - 'null' + description: Name of the bastion assigned to the cluster + maxLength: 32 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + enabled: + type: boolean + description: Is the cluster administratively enabled? + experience: + type: + - string + - 'null' + format: uuid + description: Experience provisioned onto this cluster + free_by: + type: + - string + - 'null' + format: date-time + gpus: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + x-go-json-tag: "gpus,omitempty" + gpu_alias: + type: string + readOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + readOnly: true + id: + type: string + format: uuid + readOnly: true + instances: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Instance" + x-go-json-tag: "instance,omitempty" + x-go-json-tag: "instances,omitempty" + last_used: + type: + - string + - 'null' + format: date-time + readOnly: true + description: Timestamp of when the cluster was last in use + maintenance: + type: boolean + description: Is the cluster in maintenance mode? + mgmt_ip: + type: string + description: Management IP address + mgmt_mac: + type: + - string + - 'null' + description: Management MAC address + maxLength: 17 + minLength: 17 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + netmask: + type: + - integer + - 'null' + maximum: 32 + minimum: 0 + description: The subnet mask of the cluster's public IP address in CIDR notation + node_count: + type: integer + readOnly: true + nodes: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Node" + x-go-json-tag: "node,omitempty" + x-go-json-tag: "nodes,omitempty" + notes: + type: + - string + - 'null' + description: Administrative comments about the cluster + persist: + type: boolean + description: Is the cluster exempt from provisioning_state timeouts? Can be used to ensure the cluster persists after a provisioning failure. + provider_capacity: + type: boolean + readOnly: true + description: Does the provider have capacity to provision this cluster? + provision_user: + type: + - string + - 'null' + description: Username used for provisioning this cluster + maxLength: 64 + provisioning_attempts: + type: integer + maximum: 2147483647 + minimum: 0 + description: The number of attempts that have been made to provision this cluster. Automatically resets to 0 after successful provisioning. + provisioning_state: + allOf: + - $ref: '#/components/schemas/ProvisioningStateEnum' + description: |- + Is the cluster currently provisioned? + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + public_address: + type: + - string + - 'null' + description: Public IP address or fully-qualified domain name of this cluster + maxLength: 255 + request_id: + type: + - string + - 'null' + description: 'The request ID for the lab that is currently provisioned on this cluster (ex: TRY-1234)' + maxLength: 32 + reservation: + type: boolean + description: Is the cluster a static reservation from its provider? + tenant_ids: + type: array + items: + type: string + format: uuid + readOnly: true + description: Tenant UUID(s) that have been generated for this cluster during provisioning + vlan_id: + type: integer + maximum: 4094 + minimum: 1 + description: VLAN number + workshop: + type: boolean + description: Is the cluster set aside for use in a workshop? + workshop_id: + type: + - string + - 'null' + description: Identifier of the workshop this cluster is set aside for + maxLength: 64 + required: + - available + - created + - deployment + - gpus + - id + - instances + - last_used + - modified + - provider_capacity + - tenant_ids + ClusterBulkUpdate: + type: object + properties: + available: + type: boolean + readOnly: true + writeOnly: true + description: Is the cluster currently available for provisioning? + bastion_name: + type: + - string + - 'null' + writeOnly: true + description: Name of the bastion assigned to the cluster + maxLength: 32 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + enabled: + type: boolean + writeOnly: true + description: Is the cluster administratively enabled? + experience: + type: + - string + - 'null' + format: uuid + writeOnly: true + description: Experience provisioned onto this cluster + free_by: + type: + - string + - 'null' + format: date-time + writeOnly: true + gpus: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + x-go-json-tag: "gpus,omitempty" + gpu_alias: + type: string + readOnly: true + writeOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + readOnly: true + writeOnly: true + id: + type: string + format: uuid + readOnly: true + writeOnly: true + instances: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Instance" + x-go-json-tag: "instance,omitempty" + x-go-json-tag: "instances,omitempty" + last_used: + type: + - string + - 'null' + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the cluster was last in use + maintenance: + type: boolean + writeOnly: true + description: Is the cluster in maintenance mode? + mgmt_ip: + type: string + writeOnly: true + description: Management IP address + mgmt_mac: + type: + - string + - 'null' + writeOnly: true + description: Management MAC address + maxLength: 17 + minLength: 17 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + netmask: + type: + - integer + - 'null' + maximum: 32 + minimum: 0 + writeOnly: true + description: The subnet mask of the cluster's public IP address in CIDR notation + node_count: + type: integer + readOnly: true + writeOnly: true + nodes: + type: array + items: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Node" + x-go-json-tag: "node,omitempty" + x-go-json-tag: "nodes,omitempty" + notes: + type: + - string + - 'null' + writeOnly: true + description: Administrative comments about the cluster + persist: + type: boolean + writeOnly: true + description: Is the cluster exempt from provisioning_state timeouts? Can be used to ensure the cluster persists after a provisioning failure. + provider_capacity: + type: boolean + readOnly: true + writeOnly: true + description: Does the provider have capacity to provision this cluster? + provision_user: + type: + - string + - 'null' + writeOnly: true + description: Username used for provisioning this cluster + maxLength: 64 + provisioning_attempts: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: The number of attempts that have been made to provision this cluster. Automatically resets to 0 after successful provisioning. + provisioning_state: + allOf: + - $ref: '#/components/schemas/ProvisioningStateEnum' + writeOnly: true + description: |- + Is the cluster currently provisioned? + + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + public_address: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Public IP address or fully-qualified domain name of this cluster + maxLength: 255 + request_id: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: 'The request ID for the lab that is currently provisioned on this cluster (ex: TRY-1234)' + maxLength: 32 + reservation: + type: boolean + writeOnly: true + description: Is the cluster a static reservation from its provider? + tenant_ids: + type: array + items: + type: string + format: uuid + readOnly: true + writeOnly: true + description: Tenant UUID(s) that have been generated for this cluster during provisioning + vlan_id: + type: integer + maximum: 4094 + minimum: 1 + writeOnly: true + description: VLAN number + workshop: + type: boolean + writeOnly: true + description: Is the cluster set aside for use in a workshop? + workshop_id: + type: + - string + - 'null' + writeOnly: true + description: Identifier of the workshop this cluster is set aside for + maxLength: 64 + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - available + - count + - created + - deployment + - gpu_alias + - gpu_count + - gpus + - id + - ids + - instances + - last_used + - modified + - node_count + - provider_capacity + - public_address + - request_id + - result + - tenant_ids + CpuManufacturerEnum: + enum: + - amd + - arm + - intel + type: string + description: |- + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + x-enum-varnames: + - CpuManufacturerAMD + - CpuManufacturerARM + - CpuManufacturerIntel + Deployment: + type: object + properties: + bastion_operating_system: + type: + - string + - 'null' + description: Override bastion operating system provisioned and/or configured by Liftoff + maxLength: 32 + catalog_id: + type: string + description: Unique ID for this experience in the sales catalog. Must be unique. + writeOnly: true + catalog_id_alias: + type: + - string + - 'null' + description: 'Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique.' + writeOnly: true + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + collection_branch: + type: + - string + - 'null' + description: Override the Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - 'null' + description: Override the experience branch + maxLength: 255 + experience_id: + type: string + format: uuid + writeOnly: true + expires_at: + type: + - string + - 'null' + format: date-time + flightcontrol_release: + type: + - string + - 'null' + description: Override the image tag used for Flight Control + maxLength: 64 + garage_id: + type: + - string + - 'null' + description: Require a cluster with nodes in the given garage + maxLength: 128 + gc_branch: + type: + - string + - 'null' + description: Override the default Ground Control branch + maxLength: 255 + gpu_alias: + type: + - string + - 'null' + description: Require a cluster with the given GPU alias + maxLength: 64 + gpu_count: + type: + - integer + - 'null' + maximum: 16 + minimum: 0 + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - 'null' + description: Require a cluster with the given GPU model + maxLength: 32 + gpu_os_name: + type: string + gpu_os_release: + type: string + gpu_os_version: + type: string + id: + type: string + format: uuid + readOnly: true + ip_allowlist: + type: array + items: + type: string + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - 'null' + maximum: 16 + minimum: 0 + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: Require a cluster with the given number of nodes + oem_name: + type: + - string + - 'null' + description: Require a cluster manufactured by the given OEM name + maxLength: 64 + org_name: + type: string + description: Requester's organization name + overrides: + readOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - 'null' + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: string + pipeline: + type: + - integer + - 'null' + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - 'null' + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + maxLength: 255 + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + platform: + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: '#/components/schemas/PlatformEnum' + - type: 'null' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - 'null' + description: Require a cluster from the given provider name + maxLength: 64 + public_key: + type: + - string + - 'null' + writeOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - 'null' + description: Require a cluster located in the given region + maxLength: 64 + request_id: + type: string + description: 'Trial request ID (ex: TRY-1234)' + requester_email: + type: string + format: email + description: Email address of the user requesting the experience + maxLength: 254 + requester_name: + type: string + description: Name of the user requesting the experience + maxLength: 255 + retry_count: + type: integer + readOnly: true + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - 'null' + format: date-time + sales_id: + type: + - string + - 'null' + description: Unique identifier for the requester's sales relationship + maxLength: 32 + sales_owner_email: + type: + - string + - 'null' + format: email + description: Email address of the sales contact associated with the requester + maxLength: 254 + sales_owner_name: + type: + - string + - 'null' + description: Name of the sales contact associated with the requester + maxLength: 255 + services: + type: array + items: + type: string + format: uuid + readOnly: true + ssh_port: + type: integer + readOnly: true + ssh_user: + type: string + readOnly: true + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + readOnly: true + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - 'null' + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - 'null' + description: Require a cluster with the given workshop ID + maxLength: 64 + workshop_override_password: + type: + - string + - 'null' + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + maxLength: 64 + required: + - created + - id + - modified + - org_name + - overrides + - pipelines + - requester_email + - requester_name + - retry_count + - services + - ssh_port + - ssh_user + - state + DeploymentBulkUpdate: + type: object + properties: + bastion_operating_system: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override bastion operating system provisioned and/or configured by Liftoff + cluster: + type: + - string + - 'null' + format: uuid + readOnly: true + writeOnly: true + description: The cluster where the experience has been deployed + collection_branch: + type: + - string + - 'null' + writeOnly: true + description: Override the Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - 'null' + writeOnly: true + description: Override the experience branch + maxLength: 255 + expires_at: + type: + - string + - 'null' + format: date-time + writeOnly: true + flightcontrol_release: + type: + - string + - 'null' + writeOnly: true + description: Override the image tag used for Flight Control + maxLength: 64 + garage_id: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with nodes in the given garage + gc_branch: + type: + - string + - 'null' + writeOnly: true + description: Override the default Ground Control branch + maxLength: 255 + gpu_alias: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given GPU alias + gpu_count: + type: + - integer + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given GPU model + gpu_os_name: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override the GPU node operating system name + gpu_os_release: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override the GPU node operating system release + gpu_os_version: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override the GPU node operating system version + id: + type: string + format: uuid + readOnly: true + writeOnly: true + ip_allowlist: + type: array + items: + type: string + writeOnly: true + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - 'null' + readOnly: true + writeOnly: true + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given number of nodes + oem_name: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster manufactured by the given OEM name + org_name: + type: string + writeOnly: true + description: Requester's organization name + overrides: + readOnly: true + writeOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - 'null' + writeOnly: true + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: + - string + - 'null' + writeOnly: true + description: Override the defined persona in the experience + maxLength: 32 + pipeline: + type: + - integer + - 'null' + maximum: 9223372036854775807 + minimum: 0 + format: int64 + writeOnly: true + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - 'null' + writeOnly: true + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + maxLength: 255 + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + writeOnly: true + platform: + writeOnly: true + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: '#/components/schemas/PlatformEnum' + - type: 'null' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + readOnly: true + writeOnly: true + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster from the given provider name + public_key: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster located in the given region + request_id: + type: string + readOnly: true + writeOnly: true + description: 'Trial request ID (ex: TRY-1234)' + requester_email: + type: string + writeOnly: true + description: Email address of the user requesting the experience + requester_name: + type: string + writeOnly: true + description: Name of the user requesting the experience + retry_count: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - 'null' + format: date-time + readOnly: true + writeOnly: true + description: Timestamp when the requester's sales relationship was created + sales_id: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Unique identifier for the requester's sales relationship + sales_owner_email: + type: + - string + - 'null' + format: email + writeOnly: true + description: Email address of the sales contact associated with the requester + maxLength: 254 + sales_owner_name: + type: + - string + - 'null' + writeOnly: true + description: Name of the sales contact associated with the requester + maxLength: 255 + services: + type: array + items: + type: string + format: uuid + readOnly: true + writeOnly: true + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + writeOnly: true + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + writeOnly: true + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Require a cluster with the given workshop ID + workshop_override_password: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - bastion_operating_system + - cluster + - count + - created + - experience + - garage_id + - gpu_alias + - gpu_count + - gpu_model + - gpu_os_name + - gpu_os_release + - gpu_os_version + - id + - ids + - lifetime + - min_gpu_count + - modified + - node_count + - oem_name + - overrides + - pipelines + - priority + - provider_name + - public_key + - region + - request_id + - result + - sales_created_date + - sales_id + - services + - workshop + - workshop_id + - workshop_override_password + DeploymentInstance: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + instance_id: + type: string + readOnly: true + description: Unique ID for this instance assigned by its provider + name: + type: + - string + - 'null' + readOnly: true + description: User-friendly name of this instance + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + state: + allOf: + - $ref: '#/components/schemas/InstanceState' + readOnly: true + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + state_modified: + type: string + format: date-time + readOnly: true + tags: + type: array + items: + type: string + maxLength: 64 + readOnly: true + description: Tags associated with this instance + required: + - created + - id + - instance_id + - modified + - name + - state + - state_modified + - tags + DeploymentKey: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + description: Descriptive name for the SSH public key + maxLength: 64 + public_key: + type: string + writeOnly: true + description: An SSH public key that should be authorized to access the deployment + required: + - created + - deployment + - id + - modified + - name + - public_key + DeploymentNote: + type: object + properties: + content: + type: string + description: Text content of the note + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + created_by: + type: string + readOnly: true + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + modified_by: + type: string + readOnly: true + required: + - created + - created_by + - deployment + - id + - modified + - modified_by + DeploymentPipeline: + type: object + properties: + action: + allOf: + - $ref: '#/components/schemas/DeploymentPipelineActionEnum' + description: |- + Action for the pipeline to run + + * `apply` - apply + * `destroy` - destroy + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + pipeline_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: GitLab pipeline ID + url: + type: string + format: uri + description: URL for the pipeline details + maxLength: 200 + required: + - action + - created + - deployment + - id + - modified + - pipeline_id + - url + DeploymentPipelineActionEnum: + enum: + - apply + - destroy + type: string + description: |- + * `apply` - apply + * `destroy` - destroy + x-enum-varnames: + - DeploymentPipelineActionApply + - DeploymentPipelineActionDestroy + DeploymentService: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + description: Name of the service + maxLength: 32 + url: + type: string + format: uri + description: URL used to reach the service + maxLength: 200 + required: + - created + - deployment + - id + - modified + - name + - url + DeploymentState: + enum: + - destroyed + - destroying + - error + - failed + - paused + - ready + - retrying + - starting + - stopped + - stopping + - waiting + type: string + description: |- + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + x-enum-varnames: + - DeploymentStateDestroyed + - DeploymentStateDestroying + - DeploymentStateError + - DeploymentStateFailed + - DeploymentStatePaused + - DeploymentStateReady + - DeploymentStateRetrying + - DeploymentStateStarting + - DeploymentStateStopped + - DeploymentStateStopping + - DeploymentStateWaiting + DeploymentTask: + type: object + properties: + action: + allOf: + - $ref: '#/components/schemas/DeploymentTaskActionEnum' + description: |- + The action the task will perform + + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + deployment: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Deployment" + x-go-json-tag: "deployment,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + retries: + type: integer + readOnly: true + description: Number of times the task has been retried + status: + allOf: + - $ref: '#/components/schemas/StatusEnum' + readOnly: true + description: |- + Current status of the task + + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + status_text: + type: string + readOnly: true + description: Messages related to the current task status + required: + - action + - created + - deployment + - id + - modified + - retries + - status + - status_text + DeploymentTaskActionEnum: + enum: + - start_instances + - stop_instances + type: string + description: |- + * `start_instances` - Start all instances in the deployment + * `stop_instances` - Stop all instances in the deployment + x-enum-varnames: + - DeploymentTaskActionStartInstances + - DeploymentTaskActionStopInstances + DeploymentUpdate: + type: object + properties: + bastion_operating_system: + type: + - string + - 'null' + readOnly: true + description: Override bastion operating system provisioned and/or configured by Liftoff + cluster: + type: + - string + - 'null' + format: uuid + readOnly: true + description: The cluster where the experience has been deployed + collection_branch: + type: + - string + - 'null' + description: Override the Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - 'null' + description: Override the experience branch + maxLength: 255 + expires_at: + type: + - string + - 'null' + format: date-time + flightcontrol_release: + type: + - string + - 'null' + description: Override the image tag used for Flight Control + maxLength: 64 + garage_id: + type: + - string + - 'null' + readOnly: true + description: Require a cluster with nodes in the given garage + gc_branch: + type: + - string + - 'null' + description: Override the default Ground Control branch + maxLength: 255 + gpu_alias: + type: + - string + - 'null' + readOnly: true + description: Require a cluster with the given GPU alias + gpu_count: + type: + - integer + - 'null' + readOnly: true + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - 'null' + readOnly: true + description: Require a cluster with the given GPU model + gpu_os_name: + type: + - string + - 'null' + readOnly: true + description: Override the GPU node operating system name + gpu_os_release: + type: + - string + - 'null' + readOnly: true + description: Override the GPU node operating system release + gpu_os_version: + type: + - string + - 'null' + readOnly: true + description: Override the GPU node operating system version + id: + type: string + format: uuid + readOnly: true + ip_allowlist: + type: array + items: + type: string + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - 'null' + readOnly: true + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - 'null' + readOnly: true + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - 'null' + readOnly: true + description: Require a cluster with the given number of nodes + oem_name: + type: + - string + - 'null' + readOnly: true + description: Require a cluster manufactured by the given OEM name + org_name: + type: string + description: Requester's organization name + overrides: + readOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - 'null' + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: + - string + - 'null' + description: Override the defined persona in the experience + maxLength: 32 + pipeline: + type: + - integer + - 'null' + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - 'null' + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + maxLength: 255 + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + platform: + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: '#/components/schemas/PlatformEnum' + - type: 'null' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + readOnly: true + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - 'null' + readOnly: true + description: Require a cluster from the given provider name + public_key: + type: + - string + - 'null' + readOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - 'null' + readOnly: true + description: Require a cluster located in the given region + request_id: + type: string + readOnly: true + description: 'Trial request ID (ex: TRY-1234)' + requester_email: + type: string + description: Email address of the user requesting the experience + requester_name: + type: string + description: Name of the user requesting the experience + retry_count: + type: integer + maximum: 2147483647 + minimum: 0 + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - 'null' + format: date-time + readOnly: true + description: Timestamp when the requester's sales relationship was created + sales_id: + type: + - string + - 'null' + readOnly: true + description: Unique identifier for the requester's sales relationship + sales_owner_email: + type: + - string + - 'null' + format: email + description: Email address of the sales contact associated with the requester + maxLength: 254 + sales_owner_name: + type: + - string + - 'null' + description: Name of the sales contact associated with the requester + maxLength: 255 + services: + type: array + items: + type: string + format: uuid + readOnly: true + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - 'null' + readOnly: true + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - 'null' + readOnly: true + description: Require a cluster with the given workshop ID + workshop_override_password: + type: + - string + - 'null' + readOnly: true + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + required: + - bastion_operating_system + - cluster + - created + - experience + - garage_id + - gpu_alias + - gpu_count + - gpu_model + - gpu_os_name + - gpu_os_release + - gpu_os_version + - id + - lifetime + - min_gpu_count + - modified + - node_count + - oem_name + - overrides + - pipelines + - priority + - provider_name + - public_key + - region + - request_id + - sales_created_date + - sales_id + - services + - workshop + - workshop_id + - workshop_override_password + DocDeploymentDelete: + type: object + properties: + bastion_operating_system: + type: + - string + - 'null' + description: Override bastion operating system provisioned and/or configured by Liftoff + maxLength: 32 + catalog_id: + type: string + description: Unique ID for this experience in the sales catalog. Must be unique. + writeOnly: true + catalog_id_alias: + type: + - string + - 'null' + description: 'Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique.' + writeOnly: true + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + collection_branch: + type: + - string + - 'null' + description: Override the Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + experience_branch: + type: + - string + - 'null' + description: Override the experience branch + maxLength: 255 + experience_id: + type: string + format: uuid + writeOnly: true + expires_at: + type: + - string + - 'null' + format: date-time + flightcontrol_release: + type: + - string + - 'null' + description: Override the image tag used for Flight Control + maxLength: 64 + garage_id: + type: + - string + - 'null' + description: Require a cluster with nodes in the given garage + maxLength: 128 + gc_branch: + type: + - string + - 'null' + description: Override the default Ground Control branch + maxLength: 255 + gpu_alias: + type: + - string + - 'null' + description: Require a cluster with the given GPU alias + maxLength: 64 + gpu_count: + type: + - integer + - 'null' + maximum: 16 + minimum: 0 + description: Require a cluster with the given number of GPUs + gpu_model: + type: + - string + - 'null' + description: Require a cluster with the given GPU model + maxLength: 32 + gpu_os_name: + type: string + gpu_os_release: + type: string + gpu_os_version: + type: string + id: + type: string + format: uuid + readOnly: true + ip_allowlist: + type: array + items: + type: string + description: Host IP addresses that should be allowed to access the deployment + lifetime: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: Set expires_at value to be a given number of days from the current time. A value of 0 will cause a deployment to remain active indefinitely. + min_gpu_count: + type: + - integer + - 'null' + maximum: 16 + minimum: 0 + description: Require a cluster whose GPU count is greater than or equal to the given number + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: Require a cluster with the given number of nodes + oem_name: + type: + - string + - 'null' + description: Require a cluster manufactured by the given OEM name + maxLength: 64 + org_name: + type: string + description: Requester's organization name + overrides: + readOnly: true + description: Overriden values from the original deployment request + persist_on_failure: + type: + - boolean + - 'null' + description: Override the default cleanup/destroy behavior when a provisioning failure occurs + persona: + type: string + pipeline: + type: + - integer + - 'null' + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Override the pipeline ID that will be triggered for request fulfillment + pipeline_branch: + type: + - string + - 'null' + description: Override the default pipeline branch ref used when triggering a Fuselage pipeline + maxLength: 255 + pipelines: + type: array + items: + type: string + format: uuid + readOnly: true + platform: + description: |- + Override the default platform selection + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + oneOf: + - $ref: '#/components/schemas/PlatformEnum' + - type: 'null' + priority: + allOf: + - $ref: '#/components/schemas/PriorityEnum' + description: |- + Priority level for the request + + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + provider_name: + type: + - string + - 'null' + description: Require a cluster from the given provider name + maxLength: 64 + public_key: + type: + - string + - 'null' + writeOnly: true + description: The initial or administrative public key used during deployment creation. Additional keys can be authorized for access using the `ssh-keys` endpoint. + region: + type: + - string + - 'null' + description: Require a cluster located in the given region + maxLength: 64 + request_id: + type: string + description: 'Trial request ID (ex: TRY-1234)' + requester_email: + type: string + format: email + description: Email address of the user requesting the experience + maxLength: 254 + requester_name: + type: string + description: Name of the user requesting the experience + maxLength: 255 + retry_count: + type: integer + readOnly: true + description: Number of times the deployment has been retried + sales_created_date: + type: + - string + - 'null' + format: date-time + sales_id: + type: + - string + - 'null' + description: Unique identifier for the requester's sales relationship + maxLength: 32 + sales_owner_email: + type: + - string + - 'null' + format: email + description: Email address of the sales contact associated with the requester + maxLength: 254 + sales_owner_name: + type: + - string + - 'null' + description: Name of the sales contact associated with the requester + maxLength: 255 + services: + type: array + items: + type: string + format: uuid + readOnly: true + ssh_port: + type: integer + readOnly: true + ssh_user: + type: string + readOnly: true + state: + allOf: + - $ref: '#/components/schemas/DeploymentState' + readOnly: true + description: |- + Current state of the deployment + + * `destroyed` - Deployment has been fully destroyed + * `destroying` - Deployment is being destroyed + * `error` - Deployment has encountered a fatal error and will not be retried + * `failed` - Deployment has failed but may be retried + * `paused` - Deployment is paused but may be retried later + * `ready` - Deployment is ready and all instances are running + * `retrying` - Deployment is retrying + * `starting` - Deployment instances are starting + * `stopped` - Deployment instances are stopped + * `stopping` - Deployment instances are stopping + * `waiting` - Waiting for deployment to be ready + tags: + description: User-defined tags as key/value pairs + workshop: + type: + - boolean + - 'null' + description: Require a cluster whose workshop flag is set + workshop_id: + type: + - string + - 'null' + description: Require a cluster with the given workshop ID + maxLength: 64 + workshop_override_password: + type: + - string + - 'null' + description: Override the deployment's default authentication to use a static password. This is useful for workshops when you'd like an identical password associated with a collection of environments. (LaunchPad Team only) + maxLength: 64 + required: + - created + - experience + - id + - modified + - org_name + - overrides + - pipelines + - requester_email + - requester_name + - retry_count + - services + - ssh_port + - ssh_user + - state + Experience: + type: object + properties: + assignee: + type: + - string + - 'null' + description: User ID who is responsible for manual provisioning + maxLength: 32 + autoapprove: + type: boolean + description: Can the experience be provisioned without human approval? + autoprovision: + type: boolean + description: Can the experience be provisioned without human intervention? + bootstrap: + type: boolean + description: Can this experience be used to bootstrap another compatible experience? + catalog_id: + type: string + description: Unique ID for this experience in the sales catalog. Must be unique. + maxLength: 32 + catalog_id_alias: + type: + - string + - 'null' + description: 'Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique.' + maxLength: 8 + category: + allOf: + - $ref: '#/components/schemas/CategoryEnum' + description: |- + Functional group that this experience is targetting + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + collection_branch: + type: string + description: Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + description: + type: + - string + - 'null' + experience: + type: string + description: Experience name slug + maxLength: 64 + experience_branch: + type: string + description: 'Experience branch name used during deployment (default: origin/main)' + maxLength: 255 + fc_platform: + writeOnly: true + description: |- + Fleet Command platform type + + * `docker` - docker + * `k8s` - k8s + oneOf: + - $ref: '#/components/schemas/FcPlatformEnum' + - type: 'null' + fc_support: + type: boolean + writeOnly: true + description: Does the experience support Flight Control? + garage_id: + type: + - string + - 'null' + description: ID of the garage where nodes for this experience should be selected from + maxLength: 64 + gc_branch: + type: string + description: 'Ground Control branch name (default: main)' + maxLength: 255 + gpu_count: + type: integer + maximum: 16 + minimum: 0 + description: Number of GPUs used + gpu_os: + $ref: '#/components/schemas/GpuOs' + id: + type: string + format: uuid + readOnly: true + inactivity_max: + type: integer + maximum: 2147483647 + minimum: 0 + description: 'Number of days without user interaction before the experience is torn down (default: 3)' + lifetime: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + description: 'Default number of days a provisioned experience should remain active (default: 3). A null lifetime will cause a deployment to remain active indefinitely.' + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + maximum: 2147483647 + minimum: 0 + description: Number of Nodes used + persona: + type: string + pipeline: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + description: Pipeline ID used for provisioning + platform: + allOf: + - $ref: '#/components/schemas/PlatformEnum' + description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + provider: + type: + - string + - 'null' + format: uuid + description: If set, the experience must be provisioned to the given provider + published: + allOf: + - $ref: '#/components/schemas/PublishedEnum' + description: |- + Is the experience published for use? + + * `draft` - draft + * `no` - no + * `yes` - yes + repo: + type: + - string + - 'null' + format: uri + writeOnly: true + description: URL of the repository for provisioning automation + maxLength: 200 + required_gpus: + type: array + items: + type: string + format: uuid + description: 'If set, the experience must be provisioned using one of the given GPU types. GPU requirements are evaluated in the order they are set (ex: ["{l40s_gpu_uuid}", "{a100_gpu_uuid}"] will prefer an l40s).' + sa_lab: + type: boolean + description: Is this a persistent experience for SAs? + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + title: + type: string + vgpu_profile: + description: |- + vGPU profile name used by the experience + + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q + * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + oneOf: + - $ref: '#/components/schemas/VgpuProfileEnum' + - type: 'null' + required: + - catalog_id + - category + - created + - experience + - gpu_os + - id + - modified + - persona + - pipeline + - platform + - system_arch + - title + ExperienceBulk: + type: object + properties: + csv_file: + type: string + format: uri + writeOnly: true + experiences: + type: array + items: + $ref: '#/components/schemas/Experience' + readOnly: true + required: + - csv_file + - experiences + ExperienceBulkUpdate: + type: object + properties: + assignee: + type: + - string + - 'null' + writeOnly: true + description: User ID who is responsible for manual provisioning + maxLength: 32 + autoapprove: + type: boolean + writeOnly: true + description: Can the experience be provisioned without human approval? + autoprovision: + type: boolean + writeOnly: true + description: Can the experience be provisioned without human intervention? + bootstrap: + type: boolean + writeOnly: true + description: Can this experience be used to bootstrap another compatible experience? + catalog_id: + type: string + readOnly: true + writeOnly: true + description: Unique ID for this experience in the sales catalog. Must be unique. + maxLength: 32 + catalog_id_alias: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: 'Human-readable identifier for the experience in the sales catalog (ex: LP-15). Must be unique.' + maxLength: 8 + category: + allOf: + - $ref: '#/components/schemas/CategoryEnum' + writeOnly: true + description: |- + Functional group that this experience is targetting + + * `AI` - AI + * `Clara` - Clara + * `Data Science` - Data Science + * `3D Design Collaboration and Simulation` - 3D Design Collaboration and Simulation + * `Developer` - Developer + * `Infrastructure Optimization` - Infrastructure Optimization + collection_branch: + type: string + writeOnly: true + description: Ansible collection branch initialized within the pipeline + maxLength: 255 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + description: + type: + - string + - 'null' + writeOnly: true + experience: + type: string + writeOnly: true + description: Experience name slug + maxLength: 64 + experience_branch: + type: string + writeOnly: true + description: 'Experience branch name used during deployment (default: origin/main)' + maxLength: 255 + fc_platform: + writeOnly: true + description: |- + Fleet Command platform type + + * `docker` - docker + * `k8s` - k8s + oneOf: + - $ref: '#/components/schemas/FcPlatformEnum' + - type: 'null' + fc_support: + type: boolean + writeOnly: true + description: Does the experience support Flight Control? + garage_id: + type: + - string + - 'null' + writeOnly: true + description: ID of the garage where nodes for this experience should be selected from + maxLength: 64 + gc_branch: + type: string + writeOnly: true + description: 'Ground Control branch name (default: main)' + maxLength: 255 + gpu_count: + type: integer + maximum: 16 + minimum: 0 + writeOnly: true + description: Number of GPUs used + gpu_os: + allOf: + - $ref: '#/components/schemas/GpuOs' + writeOnly: true + id: + type: string + format: uuid + readOnly: true + writeOnly: true + inactivity_max: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: 'Number of days without user interaction before the experience is torn down (default: 3)' + lifetime: + type: + - integer + - 'null' + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: 'Default number of days a provisioned experience should remain active (default: 3). A null lifetime will cause a deployment to remain active indefinitely.' + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: Number of Nodes used + persona: + type: string + writeOnly: true + pipeline: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + writeOnly: true + description: Pipeline ID used for provisioning + platform: + allOf: + - $ref: '#/components/schemas/PlatformEnum' + writeOnly: true + description: |- + Base platform that the experience will be provisioned onto + + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + provider: + type: + - string + - 'null' + format: uuid + writeOnly: true + description: If set, the experience must be provisioned to the given provider + published: + allOf: + - $ref: '#/components/schemas/PublishedEnum' + writeOnly: true + description: |- + Is the experience published for use? + + * `draft` - draft + * `no` - no + * `yes` - yes + repo: + type: + - string + - 'null' + format: uri + writeOnly: true + description: URL of the repository for provisioning automation + maxLength: 200 + required_gpus: + type: array + items: + type: string + format: uuid + writeOnly: true + description: 'If set, the experience must be provisioned using one of the given GPU types. GPU requirements are evaluated in the order they are set (ex: ["{l40s_gpu_uuid}", "{a100_gpu_uuid}"] will prefer an l40s).' + sa_lab: + type: boolean + writeOnly: true + description: Is this a persistent experience for SAs? + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + writeOnly: true + description: |- + Required CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + title: + type: string + writeOnly: true + vgpu_profile: + writeOnly: true + description: |- + vGPU profile name used by the experience + + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q + * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + oneOf: + - $ref: '#/components/schemas/VgpuProfileEnum' + - type: 'null' + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - catalog_id + - catalog_id_alias + - category + - count + - created + - experience + - gpu_os + - id + - ids + - modified + - persona + - pipeline + - platform + - result + - system_arch + - title + ExperienceNote: + type: object + properties: + content: + type: string + description: Text content of the note + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + created_by: + type: string + readOnly: true + experience: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Experience" + x-go-json-tag: "experience,omitempty" + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + modified_by: + type: string + readOnly: true + required: + - created + - created_by + - experience + - id + - modified + - modified_by + FcPlatformEnum: + enum: + - docker + - k8s + type: string + description: |- + * `docker` - docker + * `k8s` - k8s + x-enum-varnames: + - FcPlatformDocker + - FcPlatformK8s + Gpu: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + form_factor: + allOf: + - $ref: '#/components/schemas/InterconnectionTypeEnum' + default: pcie + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + id: + type: string + format: uuid + readOnly: true + memory: + type: integer + maximum: 32768 + minimum: 0 + default: 0 + description: Total GPU memory (in GB) + model: + type: string + description: GPU model name + maxLength: 32 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + readOnly: true + priority: + type: integer + maximum: 100 + minimum: 0 + description: Weighted preference to use in selecting a GPU for a deployment. A higher priority means the GPU is in higher demand. Lower priority values will be preferred over higher ones during cluster selection. + required: + - created + - id + - model + - modified + GpuBulkUpdate: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + form_factor: + allOf: + - $ref: '#/components/schemas/InterconnectionTypeEnum' + writeOnly: true + default: pcie + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + id: + type: string + format: uuid + readOnly: true + writeOnly: true + memory: + type: integer + maximum: 32768 + minimum: 0 + writeOnly: true + default: 0 + description: Total GPU memory (in GB) + model: + type: string + writeOnly: true + description: GPU model name + maxLength: 32 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + node_count: + type: integer + readOnly: true + writeOnly: true + priority: + type: integer + maximum: 100 + minimum: 0 + writeOnly: true + description: Weighted preference to use in selecting a GPU for a deployment. A higher priority means the GPU is in higher demand. Lower priority values will be preferred over higher ones during cluster selection. + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - count + - created + - id + - ids + - model + - modified + - node_count + - result + GpuOs: + type: object + properties: + name: + type: string + release: + type: string + version: + type: string + required: + - name + - release + - version + GpuOsChoice: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: integer + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + description: 'Name of the OS to be provisioned onto GPU Node(s) (ex: ubuntu)' + maxLength: 16 + release: + type: string + description: 'Release name of the OS to be provisioned onto GPU Node(s) (ex: jammy)' + maxLength: 16 + version: + type: string + description: 'Version number of the OS to be provisioned onto GPU Node(s) (ex: 22.04)' + maxLength: 8 + required: + - created + - id + - modified + - name + - release + - version + Instance: + type: object + properties: + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + instance_id: + type: string + description: Unique ID for this instance assigned by its provider + maxLength: 128 + name: + type: + - string + - 'null' + description: User-friendly name of this instance + maxLength: 64 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + state: + allOf: + - $ref: '#/components/schemas/InstanceState' + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + state_modified: + type: string + format: date-time + readOnly: true + tags: + type: array + items: + type: string + maxLength: 64 + description: Tags associated with this instance + required: + - cluster + - created + - id + - instance_id + - modified + - state_modified + InstanceBulkUpdate: + type: object + properties: + cluster: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Cluster" + x-go-json-tag: "cluster,omitempty" + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + writeOnly: true + instance_id: + type: string + readOnly: true + writeOnly: true + description: Unique ID for this instance assigned by its provider + maxLength: 128 + name: + type: + - string + - 'null' + writeOnly: true + description: User-friendly name of this instance + maxLength: 64 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + state: + allOf: + - $ref: '#/components/schemas/InstanceState' + writeOnly: true + description: |- + Current lifecycle state of this instance + + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + state_modified: + type: string + format: date-time + readOnly: true + writeOnly: true + tags: + type: array + items: + type: string + maxLength: 64 + writeOnly: true + description: Tags associated with this instance + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - cluster + - count + - created + - id + - ids + - instance_id + - modified + - result + - state_modified + InstanceState: + enum: + - running + - starting + - stopped + - stopping + - unknown + type: string + description: |- + * `running` - Instance is running + * `starting` - Instance is starting + * `stopped` - Instance is stopped + * `stopping` - Instance is stopping + * `unknown` - Instance state is currently unknown + x-enum-varnames: + - InstanceStateRunning + - InstanceStateStarting + - InstanceStateStopped + - InstanceStateStopping + - InstanceStateUnknown + InstanceType: + type: object + properties: + capacity: + type: object + additionalProperties: + type: integer + description: Key/value pairs of region name and total available capacity for the instance type + cloud: + type: string + description: Cloud provider name + cpu: + type: integer + description: Total number of CPUs/vCPUs available + gpu: + $ref: '#/components/schemas/InstanceTypeGpu' + memory_gb: + type: integer + description: Total system memory (in GB) + price: + $ref: '#/components/schemas/InstanceTypePrice' + regions: + type: array + items: + type: string + description: List of regions names that have available capacity for the instance type + storage: + type: array + items: + $ref: '#/components/schemas/InstanceTypeStorage' + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + workshop_id: + type: string + description: ID of the workshop this instance type is reserved for + required: + - capacity + - cloud + - cpu + - gpu + - memory_gb + - price + - regions + - storage + - system_arch + - workshop_id + InstanceTypeGpu: + type: object + properties: + count: + type: integer + description: Total number of GPUs + family: + type: string + description: GPU family name + interconnection_type: + allOf: + - $ref: '#/components/schemas/InterconnectionTypeEnum' + description: |- + GPU form factor + + * `pcie` - PCIe + * `sxm` - SXM + manufacturer: + type: string + description: GPU manufacturer name + memory_gb: + type: integer + description: Total GPU memory (in GB) + model: + type: string + description: GPU model name + required: + - count + - family + - interconnection_type + - manufacturer + - memory_gb + - model + InstanceTypePrice: + type: object + properties: + currency: + type: string + description: Currency code + on_demand_per_hour: + type: number + format: double + description: Price per hour + required: + - currency + - on_demand_per_hour + InstanceTypeStorage: + type: object + properties: + size_gb: + type: integer + description: System storage size (in GB) + type: + allOf: + - $ref: '#/components/schemas/TypeEnum' + description: |- + Disk type + + * `nvme` - NVMe + * `ssd` - ssd + required: + - size_gb + - type + InterconnectionTypeEnum: + enum: + - pcie + - sxm + type: string + description: |- + * `pcie` - PCIe + * `sxm` - SXM + x-enum-varnames: + - InterconnectionTypePCIe + - InterconnectionTypeSXM + Location: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 64 + provider: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Provider" + x-go-json-tag: "provider,omitempty" + region: + type: + - string + - 'null' + description: Name of the region the location is in + maxLength: 64 + required: + - created + - id + - modified + - name + - provider + Logout: + type: object + properties: + result: + type: string + readOnly: true + default: Successfully logged out. + required: + - result + ModelChange: + type: object + properties: + change_type: + type: string + readOnly: true + changes: + type: array + items: + type: object + properties: + field: + type: string + new_value: + oneOf: + - type: string + - type: boolean + - type: integer + nullable: true + old_value: + oneOf: + - type: string + - type: boolean + - type: integer + nullable: true + required: + - field + - new_value + - old_value + readOnly: true + created: + type: string + format: date-time + id: + type: integer + username: + type: string + required: + - change_type + - changes + - created + - id + - username + NetworkTypeEnum: + enum: + - ethernet + - infiniband + type: string + description: |- + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + x-enum-varnames: + - NetworkTypeEthernet + - NetworkTypeInfiniband + Node: + type: object + properties: + bmc_ip: + type: + - string + - 'null' + description: IP address of the BMC + bmc_mac: + type: + - string + - 'null' + description: MAC address of the BMC + maxLength: 17 + minLength: 17 + bmc_password: + type: + - string + - 'null' + description: Password for the BMC + maxLength: 32 + bmc_user: + type: + - string + - 'null' + description: Username for the BMC + maxLength: 64 + cluster: + type: + - string + - 'null' + format: uuid + description: UUID of the node's parent cluster + cpu: + type: integer + maximum: 1024 + minimum: 0 + description: Number of CPU cores installed + cpu_manufacturer: + description: |- + Manufacturer of the node's CPU + + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + oneOf: + - $ref: '#/components/schemas/CpuManufacturerEnum' + - type: 'null' + cpu_model: + type: + - string + - 'null' + description: Model information for the node's CPU + maxLength: 64 + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + garage_id: + type: + - string + - 'null' + description: ID for the garage where a node is parked when unprovisioned + maxLength: 128 + gpu: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + gpu_alias: + type: string + readOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + maximum: 16 + minimum: 0 + description: Number of GPUs installed + gpu_model: + type: string + readOnly: true + description: Model of GPU(s) installed + gpu_vbios: + type: + - string + - 'null' + description: VBIOS version used by installed GPU(s) + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + location: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Location" + x-go-json-tag: "location,omitempty" + memory: + type: integer + maximum: 32768 + minimum: 0 + description: Amount of RAM installed (in GB) + mgmt_ip: + type: string + description: Management IP address + mgmt_mac: + type: + - string + - 'null' + description: Management MAC address + maxLength: 17 + minLength: 17 + model: + type: + - string + - 'null' + description: Hardware model of the node + maxLength: 64 + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + network_type: + allOf: + - $ref: '#/components/schemas/NetworkTypeEnum' + description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + nic_prefixes: + type: array + items: + type: string + maxLength: 15 + description: Prefixes for the node's network interface(s) + notes: + type: + - string + - 'null' + description: Administrative comments about the node + oem: + type: + - string + - 'null' + format: uuid + description: UUID of the node's OEM + provider_node_id: + type: + - string + - 'null' + description: Unique ID for this node assigned by its provider + maxLength: 128 + rack: + type: + - string + - 'null' + description: Physical rack identifier + maxLength: 32 + rack_unit: + type: + - integer + - 'null' + maximum: 52 + minimum: 0 + description: The rack unit (RU) within the rack where the node is installed + serial_number: + type: + - string + - 'null' + description: Serial number of the node + maxLength: 32 + storage: + type: array + items: + $ref: '#/components/schemas/NodeStorage' + minItems: 1 + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + tee: + type: boolean + description: Does the node support Trusted Execution Environment (TEE)? + required: + - created + - gpu + - gpu_alias + - gpu_model + - id + - location + - modified + - storage + - system_arch + NodeBulk: + type: object + properties: + csv_file: + type: string + format: uri + writeOnly: true + nodes: + type: array + items: + $ref: '#/components/schemas/Node' + readOnly: true + required: + - csv_file + - nodes + NodeBulkUpdate: + type: object + properties: + bmc_ip: + type: + - string + - 'null' + writeOnly: true + description: IP address of the BMC + bmc_mac: + type: + - string + - 'null' + writeOnly: true + description: MAC address of the BMC + maxLength: 17 + minLength: 17 + bmc_password: + type: + - string + - 'null' + writeOnly: true + description: Password for the BMC + maxLength: 32 + bmc_user: + type: + - string + - 'null' + writeOnly: true + description: Username for the BMC + maxLength: 64 + cluster: + type: + - string + - 'null' + format: uuid + writeOnly: true + description: UUID of the node's parent cluster + cpu: + type: integer + maximum: 1024 + minimum: 0 + writeOnly: true + description: Number of CPU cores installed + cpu_manufacturer: + writeOnly: true + description: |- + Manufacturer of the node's CPU + + * `amd` - AMD + * `arm` - ARM + * `intel` - Intel + oneOf: + - $ref: '#/components/schemas/CpuManufacturerEnum' + - type: 'null' + cpu_model: + type: + - string + - 'null' + writeOnly: true + description: Model information for the node's CPU + maxLength: 64 + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + garage_id: + type: + - string + - 'null' + writeOnly: true + description: ID for the garage where a node is parked when unprovisioned + maxLength: 128 + gpu: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Gpu" + x-go-json-tag: "gpu,omitempty" + gpu_alias: + type: string + readOnly: true + writeOnly: true + description: Alias for GPU plan (i.e. installed GPU type and count) + gpu_count: + type: integer + maximum: 16 + minimum: 0 + writeOnly: true + description: Number of GPUs installed + gpu_model: + type: string + readOnly: true + writeOnly: true + description: Model of GPU(s) installed + gpu_vbios: + type: + - string + - 'null' + writeOnly: true + description: VBIOS version used by installed GPU(s) + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + writeOnly: true + location: + oneOf: + - type: + - string + format: uuid + - $ref: "#/components/schemas/Location" + x-go-json-tag: "location,omitempty" + memory: + type: integer + maximum: 32768 + minimum: 0 + writeOnly: true + description: Amount of RAM installed (in GB) + mgmt_ip: + type: string + writeOnly: true + description: Management IP address + mgmt_mac: + type: + - string + - 'null' + writeOnly: true + description: Management MAC address + maxLength: 17 + minLength: 17 + model: + type: + - string + - 'null' + writeOnly: true + description: Hardware model of the node + maxLength: 64 + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + network_type: + allOf: + - $ref: '#/components/schemas/NetworkTypeEnum' + writeOnly: true + description: |- + Type of networking technology used + + * `ethernet` - Ethernet + * `infiniband` - InfiniBand + nic_prefixes: + type: array + items: + type: string + maxLength: 15 + writeOnly: true + description: Prefixes for the node's network interface(s) + notes: + type: + - string + - 'null' + writeOnly: true + description: Administrative comments about the node + oem: + type: + - string + - 'null' + format: uuid + writeOnly: true + description: UUID of the node's OEM + provider_node_id: + type: + - string + - 'null' + writeOnly: true + description: Unique ID for this node assigned by its provider + maxLength: 128 + rack: + type: + - string + - 'null' + writeOnly: true + description: Physical rack identifier + maxLength: 32 + rack_unit: + type: + - integer + - 'null' + maximum: 52 + minimum: 0 + writeOnly: true + description: The rack unit (RU) within the rack where the node is installed + serial_number: + type: + - string + - 'null' + readOnly: true + writeOnly: true + description: Serial number of the node + maxLength: 32 + storage: + type: array + items: + $ref: '#/components/schemas/NodeStorage' + writeOnly: true + minItems: 1 + system_arch: + allOf: + - $ref: '#/components/schemas/SystemArchEnum' + writeOnly: true + description: |- + CPU architecture + + * `amd64` - amd64 + * `arm64` - arm64 + tee: + type: boolean + writeOnly: true + description: Does the node support Trusted Execution Environment (TEE)? + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - count + - created + - gpu + - gpu_alias + - gpu_model + - id + - ids + - location + - modified + - result + - serial_number + - storage + - system_arch + NodeStorage: + type: object + properties: + size: + type: integer + default: 0 + description: Disk size (in GB) + maximum: 1000000 + minimum: 0 + type: + allOf: + - $ref: '#/components/schemas/TypeEnum' + description: |- + Disk type + + * `nvme` - NVMe + * `ssd` - ssd + required: + - type + NullEnum: + type: 'null' + OEM: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 64 + required: + - created + - id + - modified + - name + PaginatedClusterList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Cluster' + PaginatedDeploymentInstanceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentInstance' + PaginatedDeploymentKeyList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentKey' + PaginatedDeploymentList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Deployment' + PaginatedDeploymentNoteList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentNote' + PaginatedDeploymentPipelineList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentPipeline' + PaginatedDeploymentServiceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentService' + PaginatedDeploymentTaskList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/DeploymentTask' + PaginatedExperienceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Experience' + PaginatedExperienceNoteList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/ExperienceNote' + PaginatedGpuList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Gpu' + PaginatedGpuOsChoiceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/GpuOsChoice' + PaginatedInstanceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Instance' + PaginatedInstanceTypeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/InstanceType' + PaginatedLocationList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Location' + PaginatedModelChangeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/ModelChange' + PaginatedNodeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Node' + PaginatedOEMList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/OEM' + PaginatedPersonaChoiceList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/PersonaChoice' + PaginatedProviderList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=4 + previous: + type: string + nullable: true + format: uri + example: https://launchpad.api.nvidia.com/example/?page=2 + results: + type: array + items: + $ref: '#/components/schemas/Provider' + PasswordChange: + type: object + properties: + username: + type: string + writeOnly: true + password: + type: string + writeOnly: true + new_password: + type: string + writeOnly: true + result: + type: string + readOnly: true + default: Password changed successfully. + required: + - new_password + - password + - result + - username + PersonaChoice: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + id: + type: integer + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 32 + required: + - created + - id + - modified + - name + PlatformEnum: + enum: + - air + - flight_deck + - kvm_bastion + - lp-vmware-platform + - minimal + - openshift + - vsphere + - vsphere_horizon + - vsphere7 + - vsphere8 + type: string + description: |- + * `air` - NVIDIA Air + * `flight_deck` - Flight Deck + * `kvm_bastion` - KVM Bastion + * `lp-vmware-platform` - lp-vmware-platform + * `minimal` - minimal + * `openshift` - OpenShift + * `vsphere` - vSphere + * `vsphere_horizon` - VMware Horizon + * `vsphere7` - vSphere 7 + * `vsphere8` - vSphere 8 + x-enum-varnames: + - PlatformAir + - PlatformFlightDeck + - PlatformKvmBastion + - PlatformLpVmwarePlatformLegacy + - PlatformMinimal + - PlatformOpenshift + - PlatformVsphere + - PlatformVsphereHorizon + - PlatformVsphere7 + - PlatformVsphere8 + PreferredThemeEnum: + enum: + - light + - dark + type: string + description: |- + * `light` - light + * `dark` - dark + x-enum-varnames: + - PreferredThemeLight + - PreferredThemeDark + PriorityEnum: + enum: + - p0 + - p1 + - p2 + - p3 + type: string + description: |- + * `p0` - p0 + * `p1` - p1 + * `p2` - p2 + * `p3` - p3 + x-enum-varnames: + - PriorityP0 + - PriorityP1 + - PriorityP2 + - PriorityP3 + Profile: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + groups: + type: array + items: + type: string + readOnly: true + id: + type: string + format: uuid + readOnly: true + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + preferred_theme: + description: |- + Preferred user interface theme + + * `light` - light + * `dark` - dark + oneOf: + - $ref: '#/components/schemas/PreferredThemeEnum' + - type: 'null' + preferred_view_settings: + description: Preferred user view settings + username: + type: string + required: + - created + - groups + - id + - modified + - username + Provider: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was created + display_name: + type: + - string + - 'null' + description: Human-friendly version of name. Used for display purposes. + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + instance_limit: + type: integer + maximum: 2147483647 + minimum: 0 + description: The maximum number of provisionined instances allowed globally for the provider (0 = unlimited) + modified: + type: string + format: date-time + readOnly: true + description: Timestamp of when the object was last modified + name: + type: string + maxLength: 64 + priority: + type: integer + maximum: 100 + minimum: 0 + description: Weighted preference to use in selecting a provider for a deployment. Higher priority values will be preferred over lower ones. + required: + - created + - id + - modified + - name + ProviderBulkUpdate: + type: object + properties: + created: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was created + display_name: + type: + - string + - 'null' + writeOnly: true + description: Human-friendly version of name. Used for display purposes. + maxLength: 64 + id: + type: string + format: uuid + readOnly: true + writeOnly: true + instance_limit: + type: integer + maximum: 2147483647 + minimum: 0 + writeOnly: true + description: The maximum number of provisionined instances allowed globally for the provider (0 = unlimited) + modified: + type: string + format: date-time + readOnly: true + writeOnly: true + description: Timestamp of when the object was last modified + name: + type: string + readOnly: true + writeOnly: true + maxLength: 64 + priority: + type: integer + maximum: 100 + minimum: 0 + writeOnly: true + description: Weighted preference to use in selecting a provider for a deployment. Higher priority values will be preferred over lower ones. + count: + type: integer + readOnly: true + ids: + type: array + items: + type: string + format: uuid + writeOnly: true + result: + type: string + readOnly: true + required: + - count + - created + - id + - ids + - modified + - name + - result + ProvisioningStateEnum: + enum: + - deployed + - deploying + - destroying + - pending + - ready + - reserved + - unprovisioned + type: string + description: |- + * `deployed` - Cluster is in use by a deployment + * `deploying` - Provisioning is in progress + * `destroying` - Cluster is being destroyed + * `pending` - Provisioning will begin soon + * `ready` - Provisioning has completed and is ready for a deployment + * `reserved` - Cluster is unprovisioned but reserved for later use + * `unprovisioned` - Cluster has not yet been provisioned + x-enum-varnames: + - ProvisioningStateDeployed + - ProvisioningStateDeploying + - ProvisioningStateDestroying + - ProvisioningStatePending + - ProvisioningStateReady + - ProvisioningStateReserved + - ProvisioningStateUnprovisioned + PublishedEnum: + enum: + - draft + - 'no' + - 'yes' + type: string + description: |- + * `draft` - draft + * `no` - no + * `yes` - yes + x-enum-varnames: + - PublishedDraft + - PublishedNo + - PublishedYes + StatusEnum: + enum: + - completed + - failed + - pending + - processing + - retrying + type: string + description: |- + * `completed` - completed + * `failed` - failed + * `pending` - pending + * `processing` - processing + * `retrying` - retrying + x-enum-varnames: + - StatusCompleted + - StatusFailed + - StatusPending + - StatusProcessing + - StatusRetrying + SystemArchEnum: + enum: + - amd64 + - arm64 + type: string + description: |- + * `amd64` - amd64 + * `arm64` - arm64 + x-enum-varnames: + - SystemArchAMD64 + - SystemArchARM64 + Tenant: + type: object + properties: + id: + type: string + format: uuid + writeOnly: true + required: + - id + TypeEnum: + enum: + - nvme + - ssd + type: string + description: |- + * `nvme` - NVMe + * `ssd` - ssd + x-enum-varnames: + - TypeNVMe + - TypeSSD + VgpuProfileEnum: + enum: + - air + - bright_cluster + - bright-cluster + - flight_deck + - flight-deck + - nvidia_a40-48q + - nvidia-ai-enterprise + - nvidia_l40s-48q + - nvidia_rtx_pro_6000_blackwell_dc-4-96q + - nvidia_rtx_pro_6000_blackwell_dc-96q + - openshift + - platform_only + - vmware_itadmin + type: string + description: |- + * `air` - NVIDIA Air + * `bright_cluster` - Bright Cluster + * `bright-cluster` - Bright Cluster (legacy option) + * `flight_deck` - Flight Deck + * `flight-deck` - Flight Deck (legacy option) + * `nvidia_a40-48q` - nvidia_a40-48q + * `nvidia-ai-enterprise` - NVIDIA AI Enterprise + * `nvidia_l40s-48q` - nvidia_l40s-48q + * `nvidia_rtx_pro_6000_blackwell_dc-4-96q` - nvidia_rtx_pro_6000_blackwell_dc-4-96q + * `nvidia_rtx_pro_6000_blackwell_dc-96q` - nvidia_rtx_pro_6000_blackwell_dc-96q + * `openshift` - OpenShift + * `platform_only` - platform_only + * `vmware_itadmin` - VMware IT admin + x-enum-varnames: + - VgpuProfileAir + - VgpuProfileBrightCluster + - VgpuProfileBrightClusterLegacy + - VgpuProfileFlightDeck + - VgpuProfileFlightDeckLegacy + - VgpuProfileNvidiaA4048QLegacy + - VgpuProfileNvidiaAiEnterpriseLegacy + - VgpuProfileNvidiaL40s48QLegacy + - VgpuProfileNvidiaRtxPro6000BlackwellDc496QLegacy + - VgpuProfileNvidiaRtxPro6000BlackwellDc96QLegacy + - VgpuProfileOpenshift + - VgpuProfilePlatformOnly + - VgpuProfileVmwareItadmin + securitySchemes: + TokenAuthentication: + type: apiKey + in: header + name: Authorization + description: 'Authenticate with your user''s API token. Be sure to include a prefix of "Token" (ex: "Token xxxxx").' diff --git a/v1/providers/launchpad/swagger.yaml b/v1/providers/launchpad/swagger.yaml new file mode 100644 index 0000000..93ac794 --- /dev/null +++ b/v1/providers/launchpad/swagger.yaml @@ -0,0 +1,714 @@ +openapi: 3.0.0 +info: + title: Vast.ai API + version: 1.0.0 +security: + - VastAPIKey: [] +servers: + - url: 'https://console.vast.ai/api/v0' +paths: + /bundles/: + post: + summary: >- + Search for available GPUs to rent. Default options available for any + parameter are gt, gte, lt, lte, and eq. Multiple options can be used + simultaneously per filter. + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/InstanceSearch' + examples: + example: + value: + verified: + eq: true + external: + eq: false + rentable: + eq: true + compute_cap: + gt: 600 + disk_space: + gt: 10000 + order: + - - score + - desc + type: on-demand + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/OfferResponse' + get: + summary: >- + Search for available GPUs to rent using an encoded JSON string. It uses + the same parameters and comparison strings as the post request + parameters: + - in: query + name: q + schema: + type: string + required: true + description: JSON encoded string of search params + example: >- + {"verified": {"eq": true}, "external": {"eq": false}, "rentable": + {"eq": true}, "compute_cap": {"gt": "600"}, "disk_space": {"gt": + "10000"}, "order": [["score", "desc"]], "type": "on-demand"} + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/OfferResponse' + /instances/: + get: + summary: Retrieve a list of instances owned by a user + responses: + '200': + description: An array of instance objects + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/GetInstancesResponse' + /asks/{id}/: + put: + summary: Create an instance given the ID of a machine + parameters: + - in: path + name: id + schema: + type: string + required: true + description: The ID of the instance we want to rent + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateInstanceRequest' + examples: + example: + value: + client_id: me + image: >- + pytorch/pytorch:latest + env: + '-p 8888:80': '1' + disk: 100 + onstart: sed -i '/^PS1=/d' ~/.bashrc && source ~/.bashrc && ./run.sh + runtype: ssh ssh_direc ssh_proxy + use_jupyter_lab: true + responses: + '200': + description: Instance successfully created + content: + application/json: + schema: + $ref: '#/components/schemas/CreateInstanceResponse' + /instances/{id}/: + delete: + summary: Delete an instance by its ID + parameters: + - in: path + name: id + required: true + schema: + type: integer + description: ID of instance to delete + responses: + '200': + description: Instance Deleted Successfully + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteInstanceResponse' +components: + schemas: + OfferResponse: + type: object + properties: + offers: + type: array + items: + $ref: '#/components/schemas/Offer' + DeleteInstanceResponse: + type: object + properties: + success: + type: boolean + description: Indicates if the instance deletion was successful + CreateInstanceResponse: + type: object + properties: + success: + type: boolean + description: Indicates if the instance creation was successful + new_contract: + type: number + description: ID of the new contract + CreateInstanceRequest: + type: object + properties: + client_id: + type: string + description: The client creating the instance. + image: + type: string + description: Docker container image to launch. + env: + type: object + additionalProperties: + type: string + description: Environment variables and port mapping options. + price: + type: number + description: Per machine bid price in $/hour. + disk: + type: number + description: Size of local disk partition in GB. + label: + type: string + description: Label to set on the instance. + onstart: + type: string + description: Filename to use as onstart script. + runtype: + type: string + description: Type of instance to launch. + image_login: + type: string + description: Docker login arguments for private repo authentication. + python_utf8: + type: boolean + description: >- + Workaround for images with locale problems set Python's locale to + C.UTF-8. + lang_utf8: + type: boolean + description: >- + Workaround for images with locale problems install and generate + locales before instance launch, and set locale to C.UTF-8. + use_jupyter_lab: + type: boolean + description: 'For runtype ''jupyter'', launch instance with Jupyter Lab.' + jupyter_dir: + type: string + description: >- + For runtype 'jupyter', directory in instance to use to launch + Jupyter. + create_from: + type: string + description: Existing instance ID to use as a basis for the new instance. + force: + type: boolean + description: Skip sanity checks when creating from an existing instance. + Port: + type: object + properties: + HostIp: + type: string + HostPort: + type: string + required: + - HostIp + - HostPort + Ports: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/Port' + GetInstancesResponse: + type: object + properties: + is_bid: + type: boolean + inet_up_billed: + type: string + nullable: true + inet_down_billed: + type: string + nullable: true + external: + type: boolean + webpage: + type: string + nullable: true + logo: + type: string + rentable: + type: boolean + compute_cap: + type: number + credit_balance: + type: number + nullable: true + credit_discount: + type: number + nullable: true + credit_discount_max: + type: number + driver_version: + type: string + cuda_max_good: + type: number + machine_id: + type: number + hosting_type: + type: string + nullable: true + public_ipaddr: + type: string + geolocation: + type: string + flops_per_dphtotal: + type: number + dlperf_per_dphtotal: + type: number + reliability2: + type: number + host_run_time: + type: number + client_run_time: + type: number + host_id: + type: number + id: + type: number + bundle_id: + type: number + num_gpus: + type: number + total_flops: + type: number + min_bid: + type: number + dph_base: + type: number + dph_total: + type: number + gpu_name: + type: string + gpu_ram: + type: number + gpu_totalram: + type: number + vram_costperhour: + type: number + gpu_display_active: + type: boolean + gpu_mem_bw: + type: number + bw_nvlink: + type: number + direct_port_count: + type: number + gpu_lanes: + type: number + pcie_bw: + type: number + pci_gen: + type: number + dlperf: + type: number + cpu_name: + type: string + mobo_name: + type: string + cpu_ram: + type: number + cpu_cores: + type: number + cpu_cores_effective: + type: number + gpu_frac: + type: number + has_avx: + type: number + disk_space: + type: number + disk_name: + type: string + disk_bw: + type: number + inet_up: + type: number + inet_down: + type: number + start_date: + type: number + end_date: + type: number + duration: + type: number + storage_cost: + type: number + inet_up_cost: + type: number + inet_down_cost: + type: number + storage_total_cost: + type: number + os_version: + type: string + verification: + type: string + static_ip: + type: boolean + score: + type: number + cpu_arch: + type: string + ssh_idx: + type: string + ssh_host: + type: string + ssh_port: + type: number + actual_status: + type: string + nullable: true + intended_status: + type: string + cur_state: + type: string + next_state: + type: string + template_hash_id: + type: string + image_uuid: + type: string + image_args: + type: array + items: + type: string + image_runtype: + type: string + extra_env: + type: array + items: + type: array + items: + type: string + onstart: + type: string + label: + type: string + nullable: true + jupyter_token: + type: string + status_msg: + type: string + nullable: true + gpu_util: + type: number + nullable: true + disk_util: + type: number + disk_usage: + type: number + gpu_temp: + type: number + nullable: true + local_ipaddrs: + type: string + direct_port_end: + type: number + direct_port_start: + type: number + cpu_util: + type: number + mem_usage: + type: number + nullable: true + mem_limit: + type: number + nullable: true + vmem_usage: + type: number + nullable: true + machine_dir_ssh_port: + type: number + ports: + $ref: '#/components/schemas/Ports' + InstanceSearch: + type: object + properties: + verified: + $ref: '#/components/schemas/BooleanFilter' + compute_cap: + $ref: '#/components/schemas/NumericFilter' + disk_space: + $ref: '#/components/schemas/NumericFilter' + order: + type: array + items: + type: array + items: + type: string + type: + type: string + bw_nvlink: + $ref: '#/components/schemas/NumericFilter' + cpu_cores: + $ref: '#/components/schemas/NumericFilter' + cpu_cores_effective: + $ref: '#/components/schemas/NumericFilter' + cpu_ram: + $ref: '#/components/schemas/NumericFilter' + cuda_vers: + $ref: '#/components/schemas/NumericFilter' + direct_port_count: + $ref: '#/components/schemas/NumericFilter' + disk_bw: + $ref: '#/components/schemas/NumericFilter' + dlperf: + $ref: '#/components/schemas/NumericFilter' + dlperf_usd: + $ref: '#/components/schemas/NumericFilter' + dph: + $ref: '#/components/schemas/NumericFilter' + driver_version: + type: string + duration: + $ref: '#/components/schemas/NumericFilter' + external: + $ref: '#/components/schemas/BooleanFilter' + flops_usd: + $ref: '#/components/schemas/NumericFilter' + gpu_mem_bw: + $ref: '#/components/schemas/NumericFilter' + gpu_name: + type: string + gpu_ram: + $ref: '#/components/schemas/NumericFilter' + gpu_frac: + $ref: '#/components/schemas/NumericFilter' + has_avx: + $ref: '#/components/schemas/BooleanFilter' + id: + $ref: '#/components/schemas/NumericFilter' + inet_down: + $ref: '#/components/schemas/NumericFilter' + inet_down_cost: + $ref: '#/components/schemas/NumericFilter' + inet_up: + $ref: '#/components/schemas/NumericFilter' + inet_up_cost: + $ref: '#/components/schemas/NumericFilter' + machine_id: + $ref: '#/components/schemas/NumericFilter' + min_bid: + $ref: '#/components/schemas/NumericFilter' + num_gpus: + $ref: '#/components/schemas/NumericFilter' + pci_gen: + $ref: '#/components/schemas/NumericFilter' + pcie_bw: + $ref: '#/components/schemas/NumericFilter' + reliability: + $ref: '#/components/schemas/NumericFilter' + rentable: + $ref: '#/components/schemas/BooleanFilter' + rented: + $ref: '#/components/schemas/BooleanFilter' + storage_cost: + $ref: '#/components/schemas/NumericFilter' + total_flops: + $ref: '#/components/schemas/NumericFilter' + BooleanFilter: + type: object + properties: + eq: + type: boolean + NumericFilter: + type: object + description: > + A filter object that must contain at least one of the following + properties: `gt`, `gte`, `lt`, `lte`. + + The `eq` property is a boolean indicating equality. At least one + property is required. + properties: + gt: + type: number + gte: + type: number + lt: + type: number + lte: + type: number + eq: + type: boolean + Offer: + type: object + properties: + id: + type: number + ask_contract_id: + type: number + bundle_id: + type: number + bundled_results: + type: number + nullable: true + bw_nvlink: + type: number + compute_cap: + type: number + cpu_arch: + type: string + cpu_cores: + type: number + cpu_cores_effective: + type: number + cpu_ghz: + type: number + cpu_name: + type: string + cpu_ram: + type: number + credit_discount_max: + type: number + cuda_max_good: + type: number + direct_port_count: + type: number + disk_bw: + type: number + disk_name: + type: string + disk_space: + type: number + dlperf: + type: number + dlperf_per_dphtotal: + type: number + dph_base: + type: number + dph_total: + type: number + driver_version: + type: string + driver_vers: + type: number + duration: + type: number + end_date: + type: number + external: + type: string + nullable: true + flops_per_dphtotal: + type: number + geolocation: + type: string + geolocode: + type: number + gpu_arch: + type: string + gpu_display_active: + type: boolean + gpu_frac: + type: number + gpu_ids: + type: array + items: + type: integer + gpu_lanes: + type: number + gpu_mem_bw: + type: number + gpu_name: + type: string + gpu_ram: + type: number + gpu_total_ram: + type: number + has_avx: + type: number + host_id: + type: number + hosting_type: + type: number + hostname: + type: string + nullable: true + inet_down: + type: number + inet_down_cost: + type: number + inet_up: + type: number + inet_up_cost: + type: number + is_bid: + type: boolean + logo: + type: string + machine_id: + type: number + min_bid: + type: number + mobo_name: + type: string + num_gpus: + type: number + os_version: + type: string + pci_gen: + type: number + pcie_bw: + type: number + public_ipaddr: + type: string + reliability: + type: number + reliability_mult: + type: number + rentable: + type: boolean + rented: + type: boolean + score: + type: number + start_date: + type: number + static_ip: + type: boolean + storage_cost: + type: number + storage_total_cost: + type: number + total_flops: + type: number + verification: + type: string + vericode: + type: number + vram_costperhour: + type: number + webpage: + type: string + nullable: true + rn: + type: number + reliability2: + type: number + discount_rate: + type: number + discounted_hourly: + type: number + discounted_dph_total: + type: number + securitySchemes: + VastAPIKey: + type: http + scheme: bearer \ No newline at end of file diff --git a/v1/providers/launchpad/utils.go b/v1/providers/launchpad/utils.go new file mode 100644 index 0000000..607f4d2 --- /dev/null +++ b/v1/providers/launchpad/utils.go @@ -0,0 +1,39 @@ +package v1 + +import ( + "context" + "io" + "net/http" + "strings" + + "github.com/brevdev/cloud/internal/errors" + v1 "github.com/brevdev/cloud/v1" + openapi "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" +) + +func (c *LaunchpadClient) handleLaunchpadAPIErr(ctx context.Context, resp *http.Response, err error) error { + c.logger.Info(ctx, "Launchpad Error", v1.LogField("status", resp.Status)) + body := "" + defer errors.HandleErrDefer(resp.Body.Close) + if apiErr, ok := err.(openapi.GenericOpenAPIError); ok { + body = string(apiErr.Body()) + } + if body == "" { + bodyBytes, errr := io.ReadAll(resp.Body) + if errr != nil { + c.logger.Error(ctx, errors.Wrap(errr, "Error reading response body")) + } + body = string(bodyBytes) + } + outErr := errors.Errorf("Launchpad API error\n%s\n%s:\nErr: %s\n%s", resp.Request.URL, resp.Status, err.Error(), body) + if errors.ErrorContains(outErr, "no available capacity") { //nolint:gocritic // if else preferred + return errors.WrapAndTrace(errors.Join(v1.ErrInsufficientResources, outErr)) + } else if errors.ErrorContains(outErr, "No Deployment matches the given query") { + return errors.WrapAndTrace(errors.Join(v1.ErrInstanceNotFound, outErr)) + + // Case where deployment has already received terminate request - can treat this is an idempotent successful terminate request + } else if strings.Contains(body, "Deployment is already being destroyed") && resp.StatusCode == http.StatusBadRequest { + return nil + } + return errors.WrapAndTrace(outErr) +} diff --git a/v1/providers/launchpad/validation_test.go b/v1/providers/launchpad/validation_test.go new file mode 100644 index 0000000..82f5d0c --- /dev/null +++ b/v1/providers/launchpad/validation_test.go @@ -0,0 +1,34 @@ +package v1 + +import ( + "os" + "testing" + + "github.com/brevdev/cloud/internal/validation" +) + +func TestInstanceLifecycleValidation(t *testing.T) { + t.Parallel() + checkSkip(t) + apiKey := getAPIKey() + + config := validation.ProviderConfig{ + Credential: NewLaunchpadCredential("validation-test", apiKey, "https://launchpad.api.nvidia.com"), + } + + validation.RunInstanceLifecycleValidation(t, config) +} + +func checkSkip(t *testing.T) { + apiKey := getAPIKey() + isValidationTest := os.Getenv("VALIDATION_TEST") + if apiKey == "" && isValidationTest != "" { + t.Fatal("LAUNCHPAD_API_TOKEN not set, but VALIDATION_TEST is set") + } else if apiKey == "" && isValidationTest == "" { + t.Skip("LAUNCHPAD_API_TOKEN not set, skipping launchpad validation tests") + } +} + +func getAPIKey() string { + return os.Getenv("LAUNCHPAD_API_TOKEN") +} diff --git a/v1/providers/shadeform/client.go b/v1/providers/shadeform/client.go index 460cff4..de736de 100644 --- a/v1/providers/shadeform/client.go +++ b/v1/providers/shadeform/client.go @@ -71,21 +71,37 @@ type ShadeformClient struct { baseURL string client *openapi.APIClient config *Configuration + logger v1.Logger } var _ v1.CloudClient = &ShadeformClient{} -func NewShadeformClient(refID, apiKey string) *ShadeformClient { +type ShadeformClientOption func(c *ShadeformClient) + +func WithLogger(logger v1.Logger) ShadeformClientOption { + return func(c *ShadeformClient) { + c.logger = logger + } +} + +func NewShadeformClient(refID, apiKey string, opts ...ShadeformClientOption) *ShadeformClient { config := openapi.NewConfiguration() config.HTTPClient = http.DefaultClient client := openapi.NewAPIClient(config) - return &ShadeformClient{ + shadeformClient := &ShadeformClient{ refID: refID, apiKey: apiKey, baseURL: "https://api.shadeform.ai/v1", client: client, + logger: &v1.NoopLogger{}, } + + for _, opt := range opts { + opt(shadeformClient) + } + + return shadeformClient } func (c *ShadeformClient) WithConfiguration(config Configuration) *ShadeformClient {