2024-12-14 19:55:56 +00:00
|
|
|
// Code generated by ogen, DO NOT EDIT.
|
|
|
|
|
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (s *ErrorStatusCode) Error() string {
|
|
|
|
return fmt.Sprintf("code %d: %+v", s.StatusCode, s.Response)
|
|
|
|
}
|
|
|
|
|
2024-12-18 02:12:00 +00:00
|
|
|
// ActionSubmissionAcceptedNoContent is response for ActionSubmissionAccepted operation.
|
|
|
|
type ActionSubmissionAcceptedNoContent struct{}
|
|
|
|
|
2024-12-14 19:55:56 +00:00
|
|
|
// ActionSubmissionReleasedNoContent is response for ActionSubmissionReleased operation.
|
|
|
|
type ActionSubmissionReleasedNoContent struct{}
|
|
|
|
|
|
|
|
// ActionSubmissionUploadedNoContent is response for ActionSubmissionUploaded operation.
|
|
|
|
type ActionSubmissionUploadedNoContent struct{}
|
|
|
|
|
|
|
|
// ActionSubmissionValidatedNoContent is response for ActionSubmissionValidated operation.
|
|
|
|
type ActionSubmissionValidatedNoContent struct{}
|
|
|
|
|
|
|
|
// Represents error object.
|
|
|
|
// Ref: #/components/schemas/Error
|
|
|
|
type Error struct {
|
|
|
|
Code int64 `json:"code"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetCode returns the value of Code.
|
|
|
|
func (s *Error) GetCode() int64 {
|
|
|
|
return s.Code
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetMessage returns the value of Message.
|
|
|
|
func (s *Error) GetMessage() string {
|
|
|
|
return s.Message
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetCode sets the value of Code.
|
|
|
|
func (s *Error) SetCode(val int64) {
|
|
|
|
s.Code = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMessage sets the value of Message.
|
|
|
|
func (s *Error) SetMessage(val string) {
|
|
|
|
s.Message = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// ErrorStatusCode wraps Error with StatusCode.
|
|
|
|
type ErrorStatusCode struct {
|
|
|
|
StatusCode int
|
|
|
|
Response Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetStatusCode returns the value of StatusCode.
|
|
|
|
func (s *ErrorStatusCode) GetStatusCode() int {
|
|
|
|
return s.StatusCode
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetResponse returns the value of Response.
|
|
|
|
func (s *ErrorStatusCode) GetResponse() Error {
|
|
|
|
return s.Response
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetStatusCode sets the value of StatusCode.
|
|
|
|
func (s *ErrorStatusCode) SetStatusCode(val int) {
|
|
|
|
s.StatusCode = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetResponse sets the value of Response.
|
|
|
|
func (s *ErrorStatusCode) SetResponse(val Error) {
|
|
|
|
s.Response = val
|
|
|
|
}
|
2024-12-15 08:09:19 +00:00
|
|
|
|
2024-12-18 02:12:00 +00:00
|
|
|
// Ref: #/components/schemas/Id
|
|
|
|
type ID struct {
|
|
|
|
ID int64 `json:"ID"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetID returns the value of ID.
|
|
|
|
func (s *ID) GetID() int64 {
|
|
|
|
return s.ID
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetID sets the value of ID.
|
|
|
|
func (s *ID) SetID(val int64) {
|
|
|
|
s.ID = val
|
|
|
|
}
|
|
|
|
|
2024-12-18 23:06:39 +00:00
|
|
|
// NewOptInt32 returns new OptInt32 with value set to v.
|
|
|
|
func NewOptInt32(v int32) OptInt32 {
|
|
|
|
return OptInt32{
|
|
|
|
Value: v,
|
|
|
|
Set: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// OptInt32 is optional int32.
|
|
|
|
type OptInt32 struct {
|
|
|
|
Value int32
|
|
|
|
Set bool
|
|
|
|
}
|
|
|
|
|
|
|
|
// IsSet returns true if OptInt32 was set.
|
|
|
|
func (o OptInt32) IsSet() bool { return o.Set }
|
|
|
|
|
|
|
|
// Reset unsets value.
|
|
|
|
func (o *OptInt32) Reset() {
|
|
|
|
var v int32
|
|
|
|
o.Value = v
|
|
|
|
o.Set = false
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetTo sets value to v.
|
|
|
|
func (o *OptInt32) SetTo(v int32) {
|
|
|
|
o.Set = true
|
|
|
|
o.Value = v
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
|
|
func (o OptInt32) Get() (v int32, ok bool) {
|
|
|
|
if !o.Set {
|
|
|
|
return v, false
|
|
|
|
}
|
|
|
|
return o.Value, true
|
|
|
|
}
|
|
|
|
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
|
|
func (o OptInt32) Or(d int32) int32 {
|
|
|
|
if v, ok := o.Get(); ok {
|
|
|
|
return v
|
|
|
|
}
|
|
|
|
return d
|
|
|
|
}
|
|
|
|
|
2024-12-15 08:09:19 +00:00
|
|
|
// NewOptInt64 returns new OptInt64 with value set to v.
|
|
|
|
func NewOptInt64(v int64) OptInt64 {
|
|
|
|
return OptInt64{
|
|
|
|
Value: v,
|
|
|
|
Set: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// OptInt64 is optional int64.
|
|
|
|
type OptInt64 struct {
|
|
|
|
Value int64
|
|
|
|
Set bool
|
|
|
|
}
|
|
|
|
|
|
|
|
// IsSet returns true if OptInt64 was set.
|
|
|
|
func (o OptInt64) IsSet() bool { return o.Set }
|
|
|
|
|
|
|
|
// Reset unsets value.
|
|
|
|
func (o *OptInt64) Reset() {
|
|
|
|
var v int64
|
|
|
|
o.Value = v
|
|
|
|
o.Set = false
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetTo sets value to v.
|
|
|
|
func (o *OptInt64) SetTo(v int64) {
|
|
|
|
o.Set = true
|
|
|
|
o.Value = v
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
|
|
func (o OptInt64) Get() (v int64, ok bool) {
|
|
|
|
if !o.Set {
|
|
|
|
return v, false
|
|
|
|
}
|
|
|
|
return o.Value, true
|
|
|
|
}
|
|
|
|
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
|
|
func (o OptInt64) Or(d int64) int64 {
|
|
|
|
if v, ok := o.Get(); ok {
|
|
|
|
return v
|
|
|
|
}
|
|
|
|
return d
|
|
|
|
}
|
2024-12-18 02:12:00 +00:00
|
|
|
|
2024-12-18 23:06:39 +00:00
|
|
|
// NewOptString returns new OptString with value set to v.
|
|
|
|
func NewOptString(v string) OptString {
|
|
|
|
return OptString{
|
|
|
|
Value: v,
|
|
|
|
Set: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// OptString is optional string.
|
|
|
|
type OptString struct {
|
|
|
|
Value string
|
|
|
|
Set bool
|
|
|
|
}
|
|
|
|
|
|
|
|
// IsSet returns true if OptString was set.
|
|
|
|
func (o OptString) IsSet() bool { return o.Set }
|
|
|
|
|
|
|
|
// Reset unsets value.
|
|
|
|
func (o *OptString) Reset() {
|
|
|
|
var v string
|
|
|
|
o.Value = v
|
|
|
|
o.Set = false
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetTo sets value to v.
|
|
|
|
func (o *OptString) SetTo(v string) {
|
|
|
|
o.Set = true
|
|
|
|
o.Value = v
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
|
|
func (o OptString) Get() (v string, ok bool) {
|
|
|
|
if !o.Set {
|
|
|
|
return v, false
|
|
|
|
}
|
|
|
|
return o.Value, true
|
|
|
|
}
|
|
|
|
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
|
|
func (o OptString) Or(d string) string {
|
|
|
|
if v, ok := o.Get(); ok {
|
|
|
|
return v
|
|
|
|
}
|
|
|
|
return d
|
|
|
|
}
|
|
|
|
|
2024-12-18 02:12:00 +00:00
|
|
|
// Ref: #/components/schemas/Script
|
|
|
|
type Script struct {
|
|
|
|
ID int64 `json:"ID"`
|
|
|
|
Name string `json:"Name"`
|
|
|
|
Hash string `json:"Hash"`
|
|
|
|
Source string `json:"Source"`
|
|
|
|
SubmissionID int64 `json:"SubmissionID"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetID returns the value of ID.
|
|
|
|
func (s *Script) GetID() int64 {
|
|
|
|
return s.ID
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetName returns the value of Name.
|
|
|
|
func (s *Script) GetName() string {
|
|
|
|
return s.Name
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetHash returns the value of Hash.
|
|
|
|
func (s *Script) GetHash() string {
|
|
|
|
return s.Hash
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetSource returns the value of Source.
|
|
|
|
func (s *Script) GetSource() string {
|
|
|
|
return s.Source
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetSubmissionID returns the value of SubmissionID.
|
|
|
|
func (s *Script) GetSubmissionID() int64 {
|
|
|
|
return s.SubmissionID
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetID sets the value of ID.
|
|
|
|
func (s *Script) SetID(val int64) {
|
|
|
|
s.ID = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetName sets the value of Name.
|
|
|
|
func (s *Script) SetName(val string) {
|
|
|
|
s.Name = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetHash sets the value of Hash.
|
|
|
|
func (s *Script) SetHash(val string) {
|
|
|
|
s.Hash = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSource sets the value of Source.
|
|
|
|
func (s *Script) SetSource(val string) {
|
|
|
|
s.Source = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSubmissionID sets the value of SubmissionID.
|
|
|
|
func (s *Script) SetSubmissionID(val int64) {
|
|
|
|
s.SubmissionID = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ref: #/components/schemas/ScriptCreate
|
|
|
|
type ScriptCreate struct {
|
|
|
|
Name string `json:"Name"`
|
|
|
|
Source string `json:"Source"`
|
|
|
|
SubmissionID OptInt64 `json:"SubmissionID"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetName returns the value of Name.
|
|
|
|
func (s *ScriptCreate) GetName() string {
|
|
|
|
return s.Name
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetSource returns the value of Source.
|
|
|
|
func (s *ScriptCreate) GetSource() string {
|
|
|
|
return s.Source
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetSubmissionID returns the value of SubmissionID.
|
|
|
|
func (s *ScriptCreate) GetSubmissionID() OptInt64 {
|
|
|
|
return s.SubmissionID
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetName sets the value of Name.
|
|
|
|
func (s *ScriptCreate) SetName(val string) {
|
|
|
|
s.Name = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSource sets the value of Source.
|
|
|
|
func (s *ScriptCreate) SetSource(val string) {
|
|
|
|
s.Source = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSubmissionID sets the value of SubmissionID.
|
|
|
|
func (s *ScriptCreate) SetSubmissionID(val OptInt64) {
|
|
|
|
s.SubmissionID = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ref: #/components/schemas/ScriptPolicy
|
|
|
|
type ScriptPolicy struct {
|
|
|
|
ID int64 `json:"ID"`
|
|
|
|
FromScriptHash string `json:"FromScriptHash"`
|
|
|
|
ToScriptID int64 `json:"ToScriptID"`
|
|
|
|
Policy int32 `json:"Policy"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetID returns the value of ID.
|
|
|
|
func (s *ScriptPolicy) GetID() int64 {
|
|
|
|
return s.ID
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetFromScriptHash returns the value of FromScriptHash.
|
|
|
|
func (s *ScriptPolicy) GetFromScriptHash() string {
|
|
|
|
return s.FromScriptHash
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetToScriptID returns the value of ToScriptID.
|
|
|
|
func (s *ScriptPolicy) GetToScriptID() int64 {
|
|
|
|
return s.ToScriptID
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetPolicy returns the value of Policy.
|
|
|
|
func (s *ScriptPolicy) GetPolicy() int32 {
|
|
|
|
return s.Policy
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetID sets the value of ID.
|
|
|
|
func (s *ScriptPolicy) SetID(val int64) {
|
|
|
|
s.ID = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetFromScriptHash sets the value of FromScriptHash.
|
|
|
|
func (s *ScriptPolicy) SetFromScriptHash(val string) {
|
|
|
|
s.FromScriptHash = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetToScriptID sets the value of ToScriptID.
|
|
|
|
func (s *ScriptPolicy) SetToScriptID(val int64) {
|
|
|
|
s.ToScriptID = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetPolicy sets the value of Policy.
|
|
|
|
func (s *ScriptPolicy) SetPolicy(val int32) {
|
|
|
|
s.Policy = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ref: #/components/schemas/ScriptPolicyCreate
|
|
|
|
type ScriptPolicyCreate struct {
|
|
|
|
FromScriptID int64 `json:"FromScriptID"`
|
|
|
|
ToScriptID int64 `json:"ToScriptID"`
|
|
|
|
Policy int32 `json:"Policy"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetFromScriptID returns the value of FromScriptID.
|
|
|
|
func (s *ScriptPolicyCreate) GetFromScriptID() int64 {
|
|
|
|
return s.FromScriptID
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetToScriptID returns the value of ToScriptID.
|
|
|
|
func (s *ScriptPolicyCreate) GetToScriptID() int64 {
|
|
|
|
return s.ToScriptID
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetPolicy returns the value of Policy.
|
|
|
|
func (s *ScriptPolicyCreate) GetPolicy() int32 {
|
|
|
|
return s.Policy
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetFromScriptID sets the value of FromScriptID.
|
|
|
|
func (s *ScriptPolicyCreate) SetFromScriptID(val int64) {
|
|
|
|
s.FromScriptID = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetToScriptID sets the value of ToScriptID.
|
|
|
|
func (s *ScriptPolicyCreate) SetToScriptID(val int64) {
|
|
|
|
s.ToScriptID = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetPolicy sets the value of Policy.
|
|
|
|
func (s *ScriptPolicyCreate) SetPolicy(val int32) {
|
|
|
|
s.Policy = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateSubmissionModelNoContent is response for UpdateSubmissionModel operation.
|
|
|
|
type UpdateSubmissionModelNoContent struct{}
|