maps-service/pkg/api/oas_schemas_gen.go

949 lines
22 KiB
Go
Raw Normal View History

2024-11-26 01:22:45 +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-11 06:23:08 +00:00
// ActionSubmissionPublishNoContent is response for ActionSubmissionPublish operation.
type ActionSubmissionPublishNoContent struct{}
2024-12-11 06:23:08 +00:00
// ActionSubmissionRejectNoContent is response for ActionSubmissionReject operation.
type ActionSubmissionRejectNoContent struct{}
2024-12-11 06:23:08 +00:00
// ActionSubmissionRequestChangesNoContent is response for ActionSubmissionRequestChanges operation.
type ActionSubmissionRequestChangesNoContent struct{}
2024-12-11 06:23:08 +00:00
// ActionSubmissionRevokeNoContent is response for ActionSubmissionRevoke operation.
type ActionSubmissionRevokeNoContent struct{}
2024-12-11 06:23:08 +00:00
// ActionSubmissionSubmitNoContent is response for ActionSubmissionSubmit operation.
type ActionSubmissionSubmitNoContent struct{}
2024-12-11 06:23:08 +00:00
// ActionSubmissionTriggerPublishNoContent is response for ActionSubmissionTriggerPublish operation.
type ActionSubmissionTriggerPublishNoContent struct{}
2024-12-11 06:23:08 +00:00
// ActionSubmissionTriggerValidateNoContent is response for ActionSubmissionTriggerValidate operation.
type ActionSubmissionTriggerValidateNoContent struct{}
2024-12-11 06:23:08 +00:00
// ActionSubmissionValidateNoContent is response for ActionSubmissionValidate operation.
type ActionSubmissionValidateNoContent struct{}
2024-11-29 22:33:48 +00:00
type CookieAuth struct {
APIKey string
}
// GetAPIKey returns the value of APIKey.
func (s *CookieAuth) GetAPIKey() string {
return s.APIKey
}
// SetAPIKey sets the value of APIKey.
func (s *CookieAuth) SetAPIKey(val string) {
s.APIKey = val
}
2024-12-11 06:23:08 +00:00
// DeleteScriptNoContent is response for DeleteScript operation.
type DeleteScriptNoContent struct{}
2024-12-06 00:36:15 +00:00
2024-12-11 06:23:08 +00:00
// DeleteScriptPolicyNoContent is response for DeleteScriptPolicy operation.
type DeleteScriptPolicyNoContent struct{}
2024-12-06 00:36:15 +00:00
2024-11-26 01:22:45 +00:00
// 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-11-28 00:13:43 +00:00
// Ref: #/components/schemas/Id
type ID struct {
2024-12-06 00:36:15 +00:00
ID int64 `json:"ID"`
2024-11-28 00:13:43 +00:00
}
// GetID returns the value of ID.
2024-12-06 00:36:15 +00:00
func (s *ID) GetID() int64 {
2024-11-28 00:13:43 +00:00
return s.ID
}
// SetID sets the value of ID.
2024-12-06 00:36:15 +00:00
func (s *ID) SetID(val int64) {
2024-11-28 00:13:43 +00:00
s.ID = val
}
2024-12-06 00:36:15 +00:00
// NewOptInt32 returns new OptInt32 with value set to v.
func NewOptInt32(v int32) OptInt32 {
return OptInt32{
2024-11-26 23:43:54 +00:00
Value: v,
Set: true,
}
}
2024-12-06 00:36:15 +00:00
// OptInt32 is optional int32.
type OptInt32 struct {
Value int32
2024-11-26 23:43:54 +00:00
Set bool
}
2024-12-06 00:36:15 +00:00
// IsSet returns true if OptInt32 was set.
func (o OptInt32) IsSet() bool { return o.Set }
2024-11-26 23:43:54 +00:00
// Reset unsets value.
2024-12-06 00:36:15 +00:00
func (o *OptInt32) Reset() {
var v int32
2024-11-26 23:43:54 +00:00
o.Value = v
o.Set = false
}
// SetTo sets value to v.
2024-12-06 00:36:15 +00:00
func (o *OptInt32) SetTo(v int32) {
2024-11-26 23:43:54 +00:00
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
2024-12-06 00:36:15 +00:00
func (o OptInt32) Get() (v int32, ok bool) {
2024-11-26 23:43:54 +00:00
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
2024-12-06 00:36:15 +00:00
func (o OptInt32) Or(d int32) int32 {
2024-11-26 23:43:54 +00:00
if v, ok := o.Get(); ok {
return v
}
return d
}
2024-12-06 00:36:15 +00:00
// NewOptInt64 returns new OptInt64 with value set to v.
func NewOptInt64(v int64) OptInt64 {
return OptInt64{
2024-11-26 01:22:45 +00:00
Value: v,
Set: true,
}
}
2024-12-06 00:36:15 +00:00
// OptInt64 is optional int64.
type OptInt64 struct {
Value int64
2024-11-26 01:22:45 +00:00
Set bool
}
2024-12-06 00:36:15 +00:00
// IsSet returns true if OptInt64 was set.
func (o OptInt64) IsSet() bool { return o.Set }
2024-11-26 01:22:45 +00:00
// Reset unsets value.
2024-12-06 00:36:15 +00:00
func (o *OptInt64) Reset() {
var v int64
2024-11-26 01:22:45 +00:00
o.Value = v
o.Set = false
}
// SetTo sets value to v.
2024-12-06 00:36:15 +00:00
func (o *OptInt64) SetTo(v int64) {
2024-11-26 01:22:45 +00:00
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
2024-12-06 00:36:15 +00:00
func (o OptInt64) Get() (v int64, ok bool) {
2024-11-26 01:22:45 +00:00
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
2024-12-06 00:36:15 +00:00
func (o OptInt64) Or(d int64) int64 {
2024-11-26 01:22:45 +00:00
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptScriptPolicyFilter returns new OptScriptPolicyFilter with value set to v.
func NewOptScriptPolicyFilter(v ScriptPolicyFilter) OptScriptPolicyFilter {
return OptScriptPolicyFilter{
Value: v,
Set: true,
}
}
// OptScriptPolicyFilter is optional ScriptPolicyFilter.
type OptScriptPolicyFilter struct {
Value ScriptPolicyFilter
Set bool
}
// IsSet returns true if OptScriptPolicyFilter was set.
func (o OptScriptPolicyFilter) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptScriptPolicyFilter) Reset() {
var v ScriptPolicyFilter
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptScriptPolicyFilter) SetTo(v ScriptPolicyFilter) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptScriptPolicyFilter) Get() (v ScriptPolicyFilter, 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 OptScriptPolicyFilter) Or(d ScriptPolicyFilter) ScriptPolicyFilter {
if v, ok := o.Get(); ok {
return v
}
return d
}
2024-11-26 01:22:45 +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-11-26 20:39:10 +00:00
// NewOptSubmissionFilter returns new OptSubmissionFilter with value set to v.
func NewOptSubmissionFilter(v SubmissionFilter) OptSubmissionFilter {
return OptSubmissionFilter{
2024-11-26 01:22:45 +00:00
Value: v,
Set: true,
}
}
2024-11-26 20:39:10 +00:00
// OptSubmissionFilter is optional SubmissionFilter.
type OptSubmissionFilter struct {
Value SubmissionFilter
2024-11-26 01:22:45 +00:00
Set bool
}
2024-11-26 20:39:10 +00:00
// IsSet returns true if OptSubmissionFilter was set.
func (o OptSubmissionFilter) IsSet() bool { return o.Set }
2024-11-26 01:22:45 +00:00
// Reset unsets value.
2024-11-26 20:39:10 +00:00
func (o *OptSubmissionFilter) Reset() {
var v SubmissionFilter
2024-11-26 01:22:45 +00:00
o.Value = v
o.Set = false
}
// SetTo sets value to v.
2024-11-26 20:39:10 +00:00
func (o *OptSubmissionFilter) SetTo(v SubmissionFilter) {
2024-11-26 01:22:45 +00:00
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
2024-11-26 20:39:10 +00:00
func (o OptSubmissionFilter) Get() (v SubmissionFilter, ok bool) {
2024-11-26 01:22:45 +00:00
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
2024-11-26 20:39:10 +00:00
func (o OptSubmissionFilter) Or(d SubmissionFilter) SubmissionFilter {
2024-11-26 01:22:45 +00:00
if v, ok := o.Get(); ok {
return v
}
return d
}
// Ref: #/components/schemas/Pagination
type Pagination struct {
Page int32 `json:"Page"`
Limit int32 `json:"Limit"`
}
// GetPage returns the value of Page.
func (s *Pagination) GetPage() int32 {
return s.Page
}
// GetLimit returns the value of Limit.
func (s *Pagination) GetLimit() int32 {
return s.Limit
}
// SetPage sets the value of Page.
func (s *Pagination) SetPage(val int32) {
s.Page = val
}
// SetLimit sets the value of Limit.
func (s *Pagination) SetLimit(val int32) {
s.Limit = val
}
2024-12-06 00:36:15 +00:00
// Ref: #/components/schemas/Script
type Script struct {
ID int64 `json:"ID"`
Hash string `json:"Hash"`
Source string `json:"Source"`
SubmissionID int64 `json:"SubmissionID"`
2024-12-06 00:36:15 +00:00
}
// GetID returns the value of ID.
func (s *Script) GetID() int64 {
return s.ID
}
// 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 {
2024-12-06 00:36:15 +00:00
return s.SubmissionID
}
// SetID sets the value of ID.
func (s *Script) SetID(val int64) {
s.ID = 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) {
2024-12-06 00:36:15 +00:00
s.SubmissionID = val
}
// Ref: #/components/schemas/ScriptCreate
type ScriptCreate struct {
Source string `json:"Source"`
SubmissionID OptInt64 `json:"SubmissionID"`
}
// 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
}
// 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
}
// Ref: #/components/schemas/ScriptPolicyFilter
type ScriptPolicyFilter struct {
ID OptInt64 `json:"ID"`
FromScriptHash OptString `json:"FromScriptHash"`
ToScriptID OptInt64 `json:"ToScriptID"`
Policy OptInt32 `json:"Policy"`
}
// GetID returns the value of ID.
func (s *ScriptPolicyFilter) GetID() OptInt64 {
return s.ID
}
// GetFromScriptHash returns the value of FromScriptHash.
func (s *ScriptPolicyFilter) GetFromScriptHash() OptString {
return s.FromScriptHash
}
// GetToScriptID returns the value of ToScriptID.
func (s *ScriptPolicyFilter) GetToScriptID() OptInt64 {
return s.ToScriptID
}
// GetPolicy returns the value of Policy.
func (s *ScriptPolicyFilter) GetPolicy() OptInt32 {
return s.Policy
}
// SetID sets the value of ID.
func (s *ScriptPolicyFilter) SetID(val OptInt64) {
s.ID = val
}
// SetFromScriptHash sets the value of FromScriptHash.
func (s *ScriptPolicyFilter) SetFromScriptHash(val OptString) {
s.FromScriptHash = val
}
// SetToScriptID sets the value of ToScriptID.
func (s *ScriptPolicyFilter) SetToScriptID(val OptInt64) {
s.ToScriptID = val
}
// SetPolicy sets the value of Policy.
func (s *ScriptPolicyFilter) SetPolicy(val OptInt32) {
s.Policy = val
}
2024-12-06 00:36:15 +00:00
// Ref: #/components/schemas/ScriptPolicyUpdate
type ScriptPolicyUpdate struct {
ID int64 `json:"ID"`
FromScriptID OptInt64 `json:"FromScriptID"`
ToScriptID OptInt64 `json:"ToScriptID"`
Policy OptInt32 `json:"Policy"`
}
// GetID returns the value of ID.
func (s *ScriptPolicyUpdate) GetID() int64 {
return s.ID
}
// GetFromScriptID returns the value of FromScriptID.
func (s *ScriptPolicyUpdate) GetFromScriptID() OptInt64 {
return s.FromScriptID
}
// GetToScriptID returns the value of ToScriptID.
func (s *ScriptPolicyUpdate) GetToScriptID() OptInt64 {
return s.ToScriptID
}
// GetPolicy returns the value of Policy.
func (s *ScriptPolicyUpdate) GetPolicy() OptInt32 {
return s.Policy
}
// SetID sets the value of ID.
func (s *ScriptPolicyUpdate) SetID(val int64) {
s.ID = val
}
// SetFromScriptID sets the value of FromScriptID.
func (s *ScriptPolicyUpdate) SetFromScriptID(val OptInt64) {
s.FromScriptID = val
}
// SetToScriptID sets the value of ToScriptID.
func (s *ScriptPolicyUpdate) SetToScriptID(val OptInt64) {
s.ToScriptID = val
}
// SetPolicy sets the value of Policy.
func (s *ScriptPolicyUpdate) SetPolicy(val OptInt32) {
s.Policy = val
}
// Ref: #/components/schemas/ScriptUpdate
type ScriptUpdate struct {
ID int64 `json:"ID"`
Source OptString `json:"Source"`
SubmissionID OptInt64 `json:"SubmissionID"`
}
// GetID returns the value of ID.
func (s *ScriptUpdate) GetID() int64 {
return s.ID
}
// GetSource returns the value of Source.
func (s *ScriptUpdate) GetSource() OptString {
return s.Source
}
// GetSubmissionID returns the value of SubmissionID.
func (s *ScriptUpdate) GetSubmissionID() OptInt64 {
return s.SubmissionID
}
// SetID sets the value of ID.
func (s *ScriptUpdate) SetID(val int64) {
s.ID = val
}
// SetSource sets the value of Source.
func (s *ScriptUpdate) SetSource(val OptString) {
s.Source = val
}
// SetSubmissionID sets the value of SubmissionID.
func (s *ScriptUpdate) SetSubmissionID(val OptInt64) {
s.SubmissionID = val
}
2024-12-11 06:23:08 +00:00
// SetSubmissionCompletedNoContent is response for SetSubmissionCompleted operation.
type SetSubmissionCompletedNoContent struct{}
2024-12-10 06:06:33 +00:00
2024-11-26 20:39:10 +00:00
// Ref: #/components/schemas/Submission
type Submission struct {
2024-12-06 00:36:15 +00:00
ID int64 `json:"ID"`
DisplayName string `json:"DisplayName"`
Creator string `json:"Creator"`
GameID int32 `json:"GameID"`
2024-12-10 06:27:52 +00:00
CreatedAt int64 `json:"CreatedAt"`
UpdatedAt int64 `json:"UpdatedAt"`
2024-12-06 00:36:15 +00:00
Submitter int64 `json:"Submitter"`
AssetID int64 `json:"AssetID"`
AssetVersion int64 `json:"AssetVersion"`
Completed bool `json:"Completed"`
SubmissionType int32 `json:"SubmissionType"`
TargetAssetID OptInt64 `json:"TargetAssetID"`
StatusID int32 `json:"StatusID"`
2024-11-26 01:22:45 +00:00
}
// GetID returns the value of ID.
2024-12-06 00:36:15 +00:00
func (s *Submission) GetID() int64 {
2024-11-26 01:22:45 +00:00
return s.ID
}
2024-11-26 20:39:10 +00:00
// GetDisplayName returns the value of DisplayName.
2024-12-06 00:36:15 +00:00
func (s *Submission) GetDisplayName() string {
2024-11-26 20:39:10 +00:00
return s.DisplayName
2024-11-26 01:22:45 +00:00
}
2024-11-26 20:39:10 +00:00
// GetCreator returns the value of Creator.
2024-12-06 00:36:15 +00:00
func (s *Submission) GetCreator() string {
2024-11-26 20:39:10 +00:00
return s.Creator
2024-11-26 01:22:45 +00:00
}
2024-11-26 20:39:10 +00:00
// GetGameID returns the value of GameID.
2024-12-06 00:36:15 +00:00
func (s *Submission) GetGameID() int32 {
2024-11-26 20:39:10 +00:00
return s.GameID
2024-11-26 01:22:45 +00:00
}
2024-12-10 06:27:52 +00:00
// GetCreatedAt returns the value of CreatedAt.
func (s *Submission) GetCreatedAt() int64 {
return s.CreatedAt
}
// GetUpdatedAt returns the value of UpdatedAt.
func (s *Submission) GetUpdatedAt() int64 {
return s.UpdatedAt
2024-11-26 01:22:45 +00:00
}
2024-11-26 23:43:54 +00:00
// GetSubmitter returns the value of Submitter.
2024-12-06 00:36:15 +00:00
func (s *Submission) GetSubmitter() int64 {
2024-11-26 23:43:54 +00:00
return s.Submitter
}
// GetAssetID returns the value of AssetID.
2024-12-06 00:36:15 +00:00
func (s *Submission) GetAssetID() int64 {
2024-11-26 23:43:54 +00:00
return s.AssetID
}
// GetAssetVersion returns the value of AssetVersion.
2024-12-06 00:36:15 +00:00
func (s *Submission) GetAssetVersion() int64 {
2024-11-26 23:43:54 +00:00
return s.AssetVersion
}
// GetCompleted returns the value of Completed.
2024-12-06 00:36:15 +00:00
func (s *Submission) GetCompleted() bool {
2024-11-26 23:43:54 +00:00
return s.Completed
}
// GetSubmissionType returns the value of SubmissionType.
2024-12-06 00:36:15 +00:00
func (s *Submission) GetSubmissionType() int32 {
2024-11-26 23:43:54 +00:00
return s.SubmissionType
}
// GetTargetAssetID returns the value of TargetAssetID.
func (s *Submission) GetTargetAssetID() OptInt64 {
return s.TargetAssetID
}
// GetStatusID returns the value of StatusID.
2024-12-06 00:36:15 +00:00
func (s *Submission) GetStatusID() int32 {
2024-11-26 23:43:54 +00:00
return s.StatusID
}
2024-11-26 01:22:45 +00:00
// SetID sets the value of ID.
2024-12-06 00:36:15 +00:00
func (s *Submission) SetID(val int64) {
2024-11-26 01:22:45 +00:00
s.ID = val
}
2024-11-26 20:39:10 +00:00
// SetDisplayName sets the value of DisplayName.
2024-12-06 00:36:15 +00:00
func (s *Submission) SetDisplayName(val string) {
2024-11-26 20:39:10 +00:00
s.DisplayName = val
2024-11-26 01:22:45 +00:00
}
2024-11-26 20:39:10 +00:00
// SetCreator sets the value of Creator.
2024-12-06 00:36:15 +00:00
func (s *Submission) SetCreator(val string) {
2024-11-26 20:39:10 +00:00
s.Creator = val
2024-11-26 01:22:45 +00:00
}
2024-11-26 20:39:10 +00:00
// SetGameID sets the value of GameID.
2024-12-06 00:36:15 +00:00
func (s *Submission) SetGameID(val int32) {
2024-11-26 20:39:10 +00:00
s.GameID = val
2024-11-26 01:22:45 +00:00
}
2024-12-10 06:27:52 +00:00
// SetCreatedAt sets the value of CreatedAt.
func (s *Submission) SetCreatedAt(val int64) {
s.CreatedAt = val
}
// SetUpdatedAt sets the value of UpdatedAt.
func (s *Submission) SetUpdatedAt(val int64) {
s.UpdatedAt = val
2024-11-26 01:22:45 +00:00
}
2024-11-26 23:43:54 +00:00
// SetSubmitter sets the value of Submitter.
2024-12-06 00:36:15 +00:00
func (s *Submission) SetSubmitter(val int64) {
2024-11-26 23:43:54 +00:00
s.Submitter = val
}
// SetAssetID sets the value of AssetID.
2024-12-06 00:36:15 +00:00
func (s *Submission) SetAssetID(val int64) {
2024-11-26 23:43:54 +00:00
s.AssetID = val
}
// SetAssetVersion sets the value of AssetVersion.
2024-12-06 00:36:15 +00:00
func (s *Submission) SetAssetVersion(val int64) {
2024-11-26 23:43:54 +00:00
s.AssetVersion = val
}
// SetCompleted sets the value of Completed.
2024-12-06 00:36:15 +00:00
func (s *Submission) SetCompleted(val bool) {
2024-11-26 23:43:54 +00:00
s.Completed = val
}
// SetSubmissionType sets the value of SubmissionType.
2024-12-06 00:36:15 +00:00
func (s *Submission) SetSubmissionType(val int32) {
2024-11-26 23:43:54 +00:00
s.SubmissionType = val
}
// SetTargetAssetID sets the value of TargetAssetID.
func (s *Submission) SetTargetAssetID(val OptInt64) {
s.TargetAssetID = val
}
// SetStatusID sets the value of StatusID.
2024-12-06 00:36:15 +00:00
func (s *Submission) SetStatusID(val int32) {
2024-11-26 23:43:54 +00:00
s.StatusID = val
}
2024-11-27 23:38:17 +00:00
// Ref: #/components/schemas/SubmissionCreate
type SubmissionCreate struct {
DisplayName string `json:"DisplayName"`
Creator string `json:"Creator"`
GameID int32 `json:"GameID"`
AssetID int64 `json:"AssetID"`
AssetVersion int64 `json:"AssetVersion"`
TargetAssetID OptInt64 `json:"TargetAssetID"`
2024-11-27 23:38:17 +00:00
}
// GetDisplayName returns the value of DisplayName.
2024-12-06 00:36:15 +00:00
func (s *SubmissionCreate) GetDisplayName() string {
2024-11-27 23:38:17 +00:00
return s.DisplayName
}
// GetCreator returns the value of Creator.
2024-12-06 00:36:15 +00:00
func (s *SubmissionCreate) GetCreator() string {
2024-11-27 23:38:17 +00:00
return s.Creator
}
// GetGameID returns the value of GameID.
2024-12-06 00:36:15 +00:00
func (s *SubmissionCreate) GetGameID() int32 {
2024-11-27 23:38:17 +00:00
return s.GameID
}
// GetAssetID returns the value of AssetID.
2024-12-06 00:36:15 +00:00
func (s *SubmissionCreate) GetAssetID() int64 {
2024-11-27 23:38:17 +00:00
return s.AssetID
}
// GetAssetVersion returns the value of AssetVersion.
2024-12-06 00:36:15 +00:00
func (s *SubmissionCreate) GetAssetVersion() int64 {
2024-11-27 23:38:17 +00:00
return s.AssetVersion
}
// GetTargetAssetID returns the value of TargetAssetID.
func (s *SubmissionCreate) GetTargetAssetID() OptInt64 {
return s.TargetAssetID
}
// SetDisplayName sets the value of DisplayName.
2024-12-06 00:36:15 +00:00
func (s *SubmissionCreate) SetDisplayName(val string) {
2024-11-27 23:38:17 +00:00
s.DisplayName = val
}
// SetCreator sets the value of Creator.
2024-12-06 00:36:15 +00:00
func (s *SubmissionCreate) SetCreator(val string) {
2024-11-27 23:38:17 +00:00
s.Creator = val
}
// SetGameID sets the value of GameID.
2024-12-06 00:36:15 +00:00
func (s *SubmissionCreate) SetGameID(val int32) {
2024-11-27 23:38:17 +00:00
s.GameID = val
}
// SetAssetID sets the value of AssetID.
2024-12-06 00:36:15 +00:00
func (s *SubmissionCreate) SetAssetID(val int64) {
2024-11-27 23:38:17 +00:00
s.AssetID = val
}
// SetAssetVersion sets the value of AssetVersion.
2024-12-06 00:36:15 +00:00
func (s *SubmissionCreate) SetAssetVersion(val int64) {
2024-11-27 23:38:17 +00:00
s.AssetVersion = val
}
// SetTargetAssetID sets the value of TargetAssetID.
func (s *SubmissionCreate) SetTargetAssetID(val OptInt64) {
s.TargetAssetID = val
}
2024-11-26 20:39:10 +00:00
// Ref: #/components/schemas/SubmissionFilter
type SubmissionFilter struct {
2024-12-06 00:36:15 +00:00
ID int64 `json:"ID"`
2024-11-26 20:39:10 +00:00
DisplayName OptString `json:"DisplayName"`
Creator OptString `json:"Creator"`
GameID OptInt32 `json:"GameID"`
2024-11-26 01:22:45 +00:00
}
// GetID returns the value of ID.
2024-12-06 00:36:15 +00:00
func (s *SubmissionFilter) GetID() int64 {
2024-11-26 01:22:45 +00:00
return s.ID
}
2024-11-26 20:39:10 +00:00
// GetDisplayName returns the value of DisplayName.
func (s *SubmissionFilter) GetDisplayName() OptString {
return s.DisplayName
2024-11-26 01:22:45 +00:00
}
2024-11-26 20:39:10 +00:00
// GetCreator returns the value of Creator.
func (s *SubmissionFilter) GetCreator() OptString {
return s.Creator
2024-11-26 01:22:45 +00:00
}
// GetGameID returns the value of GameID.
2024-11-26 20:39:10 +00:00
func (s *SubmissionFilter) GetGameID() OptInt32 {
2024-11-26 01:22:45 +00:00
return s.GameID
}
2024-11-26 20:39:10 +00:00
// SetID sets the value of ID.
2024-12-06 00:36:15 +00:00
func (s *SubmissionFilter) SetID(val int64) {
2024-11-26 20:39:10 +00:00
s.ID = val
2024-11-26 01:22:45 +00:00
}
2024-11-26 20:39:10 +00:00
// SetDisplayName sets the value of DisplayName.
func (s *SubmissionFilter) SetDisplayName(val OptString) {
s.DisplayName = val
2024-11-26 01:22:45 +00:00
}
2024-11-26 20:39:10 +00:00
// SetCreator sets the value of Creator.
func (s *SubmissionFilter) SetCreator(val OptString) {
s.Creator = val
2024-11-26 01:22:45 +00:00
}
// SetGameID sets the value of GameID.
2024-11-26 20:39:10 +00:00
func (s *SubmissionFilter) SetGameID(val OptInt32) {
2024-11-26 01:22:45 +00:00
s.GameID = val
}
2024-12-11 06:23:08 +00:00
// UpdateScriptNoContent is response for UpdateScript operation.
type UpdateScriptNoContent struct{}
2024-12-06 00:36:15 +00:00
2024-12-11 06:23:08 +00:00
// UpdateScriptPolicyNoContent is response for UpdateScriptPolicy operation.
type UpdateScriptPolicyNoContent struct{}
2024-12-10 06:06:33 +00:00
2024-12-11 06:23:08 +00:00
// UpdateSubmissionModelNoContent is response for UpdateSubmissionModel operation.
type UpdateSubmissionModelNoContent struct{}