672 lines
16 KiB
Go
672 lines
16 KiB
Go
// 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)
|
|
}
|
|
|
|
// ActionMapfixAcceptedNoContent is response for ActionMapfixAccepted operation.
|
|
type ActionMapfixAcceptedNoContent struct{}
|
|
|
|
// ActionMapfixSubmittedNoContent is response for ActionMapfixSubmitted operation.
|
|
type ActionMapfixSubmittedNoContent struct{}
|
|
|
|
// ActionMapfixUploadedNoContent is response for ActionMapfixUploaded operation.
|
|
type ActionMapfixUploadedNoContent struct{}
|
|
|
|
// ActionMapfixValidatedNoContent is response for ActionMapfixValidated operation.
|
|
type ActionMapfixValidatedNoContent struct{}
|
|
|
|
// ActionOperationFailedNoContent is response for ActionOperationFailed operation.
|
|
type ActionOperationFailedNoContent struct{}
|
|
|
|
// ActionSubmissionAcceptedNoContent is response for ActionSubmissionAccepted operation.
|
|
type ActionSubmissionAcceptedNoContent struct{}
|
|
|
|
// ActionSubmissionSubmittedNoContent is response for ActionSubmissionSubmitted operation.
|
|
type ActionSubmissionSubmittedNoContent 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 uint64 `json:"code"`
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
// GetCode returns the value of Code.
|
|
func (s *Error) GetCode() uint64 {
|
|
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 uint64) {
|
|
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
|
|
}
|
|
|
|
// Ref: #/components/schemas/MapfixCreate
|
|
type MapfixCreate struct {
|
|
OperationID uint32 `json:"OperationID"`
|
|
AssetOwner uint64 `json:"AssetOwner"`
|
|
DisplayName string `json:"DisplayName"`
|
|
Creator string `json:"Creator"`
|
|
GameID uint32 `json:"GameID"`
|
|
AssetID uint64 `json:"AssetID"`
|
|
AssetVersion uint64 `json:"AssetVersion"`
|
|
TargetAssetID uint64 `json:"TargetAssetID"`
|
|
}
|
|
|
|
// GetOperationID returns the value of OperationID.
|
|
func (s *MapfixCreate) GetOperationID() uint32 {
|
|
return s.OperationID
|
|
}
|
|
|
|
// GetAssetOwner returns the value of AssetOwner.
|
|
func (s *MapfixCreate) GetAssetOwner() uint64 {
|
|
return s.AssetOwner
|
|
}
|
|
|
|
// GetDisplayName returns the value of DisplayName.
|
|
func (s *MapfixCreate) GetDisplayName() string {
|
|
return s.DisplayName
|
|
}
|
|
|
|
// GetCreator returns the value of Creator.
|
|
func (s *MapfixCreate) GetCreator() string {
|
|
return s.Creator
|
|
}
|
|
|
|
// GetGameID returns the value of GameID.
|
|
func (s *MapfixCreate) GetGameID() uint32 {
|
|
return s.GameID
|
|
}
|
|
|
|
// GetAssetID returns the value of AssetID.
|
|
func (s *MapfixCreate) GetAssetID() uint64 {
|
|
return s.AssetID
|
|
}
|
|
|
|
// GetAssetVersion returns the value of AssetVersion.
|
|
func (s *MapfixCreate) GetAssetVersion() uint64 {
|
|
return s.AssetVersion
|
|
}
|
|
|
|
// GetTargetAssetID returns the value of TargetAssetID.
|
|
func (s *MapfixCreate) GetTargetAssetID() uint64 {
|
|
return s.TargetAssetID
|
|
}
|
|
|
|
// SetOperationID sets the value of OperationID.
|
|
func (s *MapfixCreate) SetOperationID(val uint32) {
|
|
s.OperationID = val
|
|
}
|
|
|
|
// SetAssetOwner sets the value of AssetOwner.
|
|
func (s *MapfixCreate) SetAssetOwner(val uint64) {
|
|
s.AssetOwner = val
|
|
}
|
|
|
|
// SetDisplayName sets the value of DisplayName.
|
|
func (s *MapfixCreate) SetDisplayName(val string) {
|
|
s.DisplayName = val
|
|
}
|
|
|
|
// SetCreator sets the value of Creator.
|
|
func (s *MapfixCreate) SetCreator(val string) {
|
|
s.Creator = val
|
|
}
|
|
|
|
// SetGameID sets the value of GameID.
|
|
func (s *MapfixCreate) SetGameID(val uint32) {
|
|
s.GameID = val
|
|
}
|
|
|
|
// SetAssetID sets the value of AssetID.
|
|
func (s *MapfixCreate) SetAssetID(val uint64) {
|
|
s.AssetID = val
|
|
}
|
|
|
|
// SetAssetVersion sets the value of AssetVersion.
|
|
func (s *MapfixCreate) SetAssetVersion(val uint64) {
|
|
s.AssetVersion = val
|
|
}
|
|
|
|
// SetTargetAssetID sets the value of TargetAssetID.
|
|
func (s *MapfixCreate) SetTargetAssetID(val uint64) {
|
|
s.TargetAssetID = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/MapfixID
|
|
type MapfixID struct {
|
|
MapfixID uint64 `json:"MapfixID"`
|
|
}
|
|
|
|
// GetMapfixID returns the value of MapfixID.
|
|
func (s *MapfixID) GetMapfixID() uint64 {
|
|
return s.MapfixID
|
|
}
|
|
|
|
// SetMapfixID sets the value of MapfixID.
|
|
func (s *MapfixID) SetMapfixID(val uint64) {
|
|
s.MapfixID = val
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// NewOptUint32 returns new OptUint32 with value set to v.
|
|
func NewOptUint32(v uint32) OptUint32 {
|
|
return OptUint32{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptUint32 is optional uint32.
|
|
type OptUint32 struct {
|
|
Value uint32
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptUint32 was set.
|
|
func (o OptUint32) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptUint32) Reset() {
|
|
var v uint32
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptUint32) SetTo(v uint32) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptUint32) Get() (v uint32, 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 OptUint32) Or(d uint32) uint32 {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptUint64 returns new OptUint64 with value set to v.
|
|
func NewOptUint64(v uint64) OptUint64 {
|
|
return OptUint64{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptUint64 is optional uint64.
|
|
type OptUint64 struct {
|
|
Value uint64
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptUint64 was set.
|
|
func (o OptUint64) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptUint64) Reset() {
|
|
var v uint64
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptUint64) SetTo(v uint64) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptUint64) Get() (v uint64, 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 OptUint64) Or(d uint64) uint64 {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// Ref: #/components/schemas/Script
|
|
type Script struct {
|
|
ID uint64 `json:"ID"`
|
|
Name string `json:"Name"`
|
|
Hash string `json:"Hash"`
|
|
Source string `json:"Source"`
|
|
ResourceType uint32 `json:"ResourceType"`
|
|
ResourceID uint64 `json:"ResourceID"`
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *Script) GetID() uint64 {
|
|
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
|
|
}
|
|
|
|
// GetResourceType returns the value of ResourceType.
|
|
func (s *Script) GetResourceType() uint32 {
|
|
return s.ResourceType
|
|
}
|
|
|
|
// GetResourceID returns the value of ResourceID.
|
|
func (s *Script) GetResourceID() uint64 {
|
|
return s.ResourceID
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *Script) SetID(val uint64) {
|
|
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
|
|
}
|
|
|
|
// SetResourceType sets the value of ResourceType.
|
|
func (s *Script) SetResourceType(val uint32) {
|
|
s.ResourceType = val
|
|
}
|
|
|
|
// SetResourceID sets the value of ResourceID.
|
|
func (s *Script) SetResourceID(val uint64) {
|
|
s.ResourceID = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ScriptCreate
|
|
type ScriptCreate struct {
|
|
Name string `json:"Name"`
|
|
Source string `json:"Source"`
|
|
ResourceType uint32 `json:"ResourceType"`
|
|
ResourceID OptUint64 `json:"ResourceID"`
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// GetResourceType returns the value of ResourceType.
|
|
func (s *ScriptCreate) GetResourceType() uint32 {
|
|
return s.ResourceType
|
|
}
|
|
|
|
// GetResourceID returns the value of ResourceID.
|
|
func (s *ScriptCreate) GetResourceID() OptUint64 {
|
|
return s.ResourceID
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// SetResourceType sets the value of ResourceType.
|
|
func (s *ScriptCreate) SetResourceType(val uint32) {
|
|
s.ResourceType = val
|
|
}
|
|
|
|
// SetResourceID sets the value of ResourceID.
|
|
func (s *ScriptCreate) SetResourceID(val OptUint64) {
|
|
s.ResourceID = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ScriptID
|
|
type ScriptID struct {
|
|
ScriptID uint64 `json:"ScriptID"`
|
|
}
|
|
|
|
// GetScriptID returns the value of ScriptID.
|
|
func (s *ScriptID) GetScriptID() uint64 {
|
|
return s.ScriptID
|
|
}
|
|
|
|
// SetScriptID sets the value of ScriptID.
|
|
func (s *ScriptID) SetScriptID(val uint64) {
|
|
s.ScriptID = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ScriptPolicy
|
|
type ScriptPolicy struct {
|
|
ID uint64 `json:"ID"`
|
|
FromScriptHash string `json:"FromScriptHash"`
|
|
ToScriptID uint64 `json:"ToScriptID"`
|
|
Policy uint32 `json:"Policy"`
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *ScriptPolicy) GetID() uint64 {
|
|
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() uint64 {
|
|
return s.ToScriptID
|
|
}
|
|
|
|
// GetPolicy returns the value of Policy.
|
|
func (s *ScriptPolicy) GetPolicy() uint32 {
|
|
return s.Policy
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *ScriptPolicy) SetID(val uint64) {
|
|
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 uint64) {
|
|
s.ToScriptID = val
|
|
}
|
|
|
|
// SetPolicy sets the value of Policy.
|
|
func (s *ScriptPolicy) SetPolicy(val uint32) {
|
|
s.Policy = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ScriptPolicyCreate
|
|
type ScriptPolicyCreate struct {
|
|
FromScriptID uint64 `json:"FromScriptID"`
|
|
ToScriptID uint64 `json:"ToScriptID"`
|
|
Policy uint32 `json:"Policy"`
|
|
}
|
|
|
|
// GetFromScriptID returns the value of FromScriptID.
|
|
func (s *ScriptPolicyCreate) GetFromScriptID() uint64 {
|
|
return s.FromScriptID
|
|
}
|
|
|
|
// GetToScriptID returns the value of ToScriptID.
|
|
func (s *ScriptPolicyCreate) GetToScriptID() uint64 {
|
|
return s.ToScriptID
|
|
}
|
|
|
|
// GetPolicy returns the value of Policy.
|
|
func (s *ScriptPolicyCreate) GetPolicy() uint32 {
|
|
return s.Policy
|
|
}
|
|
|
|
// SetFromScriptID sets the value of FromScriptID.
|
|
func (s *ScriptPolicyCreate) SetFromScriptID(val uint64) {
|
|
s.FromScriptID = val
|
|
}
|
|
|
|
// SetToScriptID sets the value of ToScriptID.
|
|
func (s *ScriptPolicyCreate) SetToScriptID(val uint64) {
|
|
s.ToScriptID = val
|
|
}
|
|
|
|
// SetPolicy sets the value of Policy.
|
|
func (s *ScriptPolicyCreate) SetPolicy(val uint32) {
|
|
s.Policy = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ScriptPolicyID
|
|
type ScriptPolicyID struct {
|
|
ScriptPolicyID uint64 `json:"ScriptPolicyID"`
|
|
}
|
|
|
|
// GetScriptPolicyID returns the value of ScriptPolicyID.
|
|
func (s *ScriptPolicyID) GetScriptPolicyID() uint64 {
|
|
return s.ScriptPolicyID
|
|
}
|
|
|
|
// SetScriptPolicyID sets the value of ScriptPolicyID.
|
|
func (s *ScriptPolicyID) SetScriptPolicyID(val uint64) {
|
|
s.ScriptPolicyID = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/SubmissionCreate
|
|
type SubmissionCreate struct {
|
|
OperationID uint32 `json:"OperationID"`
|
|
AssetOwner uint64 `json:"AssetOwner"`
|
|
DisplayName string `json:"DisplayName"`
|
|
Creator string `json:"Creator"`
|
|
GameID uint32 `json:"GameID"`
|
|
AssetID uint64 `json:"AssetID"`
|
|
AssetVersion uint64 `json:"AssetVersion"`
|
|
}
|
|
|
|
// GetOperationID returns the value of OperationID.
|
|
func (s *SubmissionCreate) GetOperationID() uint32 {
|
|
return s.OperationID
|
|
}
|
|
|
|
// GetAssetOwner returns the value of AssetOwner.
|
|
func (s *SubmissionCreate) GetAssetOwner() uint64 {
|
|
return s.AssetOwner
|
|
}
|
|
|
|
// GetDisplayName returns the value of DisplayName.
|
|
func (s *SubmissionCreate) GetDisplayName() string {
|
|
return s.DisplayName
|
|
}
|
|
|
|
// GetCreator returns the value of Creator.
|
|
func (s *SubmissionCreate) GetCreator() string {
|
|
return s.Creator
|
|
}
|
|
|
|
// GetGameID returns the value of GameID.
|
|
func (s *SubmissionCreate) GetGameID() uint32 {
|
|
return s.GameID
|
|
}
|
|
|
|
// GetAssetID returns the value of AssetID.
|
|
func (s *SubmissionCreate) GetAssetID() uint64 {
|
|
return s.AssetID
|
|
}
|
|
|
|
// GetAssetVersion returns the value of AssetVersion.
|
|
func (s *SubmissionCreate) GetAssetVersion() uint64 {
|
|
return s.AssetVersion
|
|
}
|
|
|
|
// SetOperationID sets the value of OperationID.
|
|
func (s *SubmissionCreate) SetOperationID(val uint32) {
|
|
s.OperationID = val
|
|
}
|
|
|
|
// SetAssetOwner sets the value of AssetOwner.
|
|
func (s *SubmissionCreate) SetAssetOwner(val uint64) {
|
|
s.AssetOwner = val
|
|
}
|
|
|
|
// SetDisplayName sets the value of DisplayName.
|
|
func (s *SubmissionCreate) SetDisplayName(val string) {
|
|
s.DisplayName = val
|
|
}
|
|
|
|
// SetCreator sets the value of Creator.
|
|
func (s *SubmissionCreate) SetCreator(val string) {
|
|
s.Creator = val
|
|
}
|
|
|
|
// SetGameID sets the value of GameID.
|
|
func (s *SubmissionCreate) SetGameID(val uint32) {
|
|
s.GameID = val
|
|
}
|
|
|
|
// SetAssetID sets the value of AssetID.
|
|
func (s *SubmissionCreate) SetAssetID(val uint64) {
|
|
s.AssetID = val
|
|
}
|
|
|
|
// SetAssetVersion sets the value of AssetVersion.
|
|
func (s *SubmissionCreate) SetAssetVersion(val uint64) {
|
|
s.AssetVersion = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/SubmissionID
|
|
type SubmissionID struct {
|
|
SubmissionID uint64 `json:"SubmissionID"`
|
|
}
|
|
|
|
// GetSubmissionID returns the value of SubmissionID.
|
|
func (s *SubmissionID) GetSubmissionID() uint64 {
|
|
return s.SubmissionID
|
|
}
|
|
|
|
// SetSubmissionID sets the value of SubmissionID.
|
|
func (s *SubmissionID) SetSubmissionID(val uint64) {
|
|
s.SubmissionID = val
|
|
}
|
|
|
|
// UpdateMapfixValidatedModelNoContent is response for UpdateMapfixValidatedModel operation.
|
|
type UpdateMapfixValidatedModelNoContent struct{}
|
|
|
|
// UpdateSubmissionValidatedModelNoContent is response for UpdateSubmissionValidatedModel operation.
|
|
type UpdateSubmissionValidatedModelNoContent struct{}
|