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
|
|
|
// ActionSubmissionRejectNoContent is response for ActionSubmissionReject operation.
|
|
|
|
type ActionSubmissionRejectNoContent struct{}
|
2024-11-28 01:46:54 +00:00
|
|
|
|
2024-12-11 06:23:08 +00:00
|
|
|
// ActionSubmissionRequestChangesNoContent is response for ActionSubmissionRequestChanges operation.
|
|
|
|
type ActionSubmissionRequestChangesNoContent struct{}
|
2024-11-28 01:46:54 +00:00
|
|
|
|
2024-12-11 06:23:08 +00:00
|
|
|
// ActionSubmissionRevokeNoContent is response for ActionSubmissionRevoke operation.
|
|
|
|
type ActionSubmissionRevokeNoContent struct{}
|
2024-11-28 01:46:54 +00:00
|
|
|
|
2024-12-11 06:23:08 +00:00
|
|
|
// ActionSubmissionSubmitNoContent is response for ActionSubmissionSubmit operation.
|
|
|
|
type ActionSubmissionSubmitNoContent struct{}
|
2024-11-28 01:46:54 +00:00
|
|
|
|
2024-12-14 19:55:56 +00:00
|
|
|
// ActionSubmissionTriggerUploadNoContent is response for ActionSubmissionTriggerUpload operation.
|
|
|
|
type ActionSubmissionTriggerUploadNoContent struct{}
|
2024-11-28 01:46:54 +00:00
|
|
|
|
2024-12-11 06:23:08 +00:00
|
|
|
// ActionSubmissionTriggerValidateNoContent is response for ActionSubmissionTriggerValidate operation.
|
|
|
|
type ActionSubmissionTriggerValidateNoContent struct{}
|
2024-11-28 01:46:54 +00:00
|
|
|
|
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-14 06:43:32 +00:00
|
|
|
type ListScriptPolicyReq struct {
|
|
|
|
Page Pagination `json:"Page"`
|
|
|
|
Filter OptScriptPolicyFilter `json:"Filter"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetPage returns the value of Page.
|
|
|
|
func (s *ListScriptPolicyReq) GetPage() Pagination {
|
|
|
|
return s.Page
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetFilter returns the value of Filter.
|
|
|
|
func (s *ListScriptPolicyReq) GetFilter() OptScriptPolicyFilter {
|
|
|
|
return s.Filter
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetPage sets the value of Page.
|
|
|
|
func (s *ListScriptPolicyReq) SetPage(val Pagination) {
|
|
|
|
s.Page = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetFilter sets the value of Filter.
|
|
|
|
func (s *ListScriptPolicyReq) SetFilter(val OptScriptPolicyFilter) {
|
|
|
|
s.Filter = val
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListSubmissionsReq struct {
|
|
|
|
Page Pagination `json:"Page"`
|
|
|
|
Filter OptSubmissionFilter `json:"Filter"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetPage returns the value of Page.
|
|
|
|
func (s *ListSubmissionsReq) GetPage() Pagination {
|
|
|
|
return s.Page
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetFilter returns the value of Filter.
|
|
|
|
func (s *ListSubmissionsReq) GetFilter() OptSubmissionFilter {
|
|
|
|
return s.Filter
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetPage sets the value of Page.
|
|
|
|
func (s *ListSubmissionsReq) SetPage(val Pagination) {
|
|
|
|
s.Page = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetFilter sets the value of Filter.
|
|
|
|
func (s *ListSubmissionsReq) SetFilter(val OptSubmissionFilter) {
|
|
|
|
s.Filter = 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
|
|
|
|
}
|
|
|
|
|
2024-12-14 06:15:05 +00:00
|
|
|
// 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 {
|
2024-12-18 04:50:25 +00:00
|
|
|
Number int32 `json:"Number"`
|
|
|
|
Size int32 `json:"Size"`
|
2024-11-26 01:22:45 +00:00
|
|
|
}
|
|
|
|
|
2024-12-18 04:50:25 +00:00
|
|
|
// GetNumber returns the value of Number.
|
|
|
|
func (s *Pagination) GetNumber() int32 {
|
|
|
|
return s.Number
|
2024-11-26 01:22:45 +00:00
|
|
|
}
|
|
|
|
|
2024-12-18 04:50:25 +00:00
|
|
|
// GetSize returns the value of Size.
|
|
|
|
func (s *Pagination) GetSize() int32 {
|
|
|
|
return s.Size
|
2024-11-26 01:22:45 +00:00
|
|
|
}
|
|
|
|
|
2024-12-18 04:50:25 +00:00
|
|
|
// SetNumber sets the value of Number.
|
|
|
|
func (s *Pagination) SetNumber(val int32) {
|
|
|
|
s.Number = val
|
2024-11-26 01:22:45 +00:00
|
|
|
}
|
|
|
|
|
2024-12-18 04:50:25 +00:00
|
|
|
// SetSize sets the value of Size.
|
|
|
|
func (s *Pagination) SetSize(val int32) {
|
|
|
|
s.Size = val
|
2024-11-26 01:22:45 +00:00
|
|
|
}
|
|
|
|
|
2024-12-06 00:36:15 +00:00
|
|
|
// Ref: #/components/schemas/Script
|
|
|
|
type Script struct {
|
2024-12-06 03:24:24 +00:00
|
|
|
ID int64 `json:"ID"`
|
2024-12-14 20:31:31 +00:00
|
|
|
Name string `json:"Name"`
|
2024-12-06 03:24:24 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2024-12-14 20:31:31 +00:00
|
|
|
// GetName returns the value of Name.
|
|
|
|
func (s *Script) GetName() string {
|
|
|
|
return s.Name
|
|
|
|
}
|
|
|
|
|
2024-12-06 00:36:15 +00:00
|
|
|
// 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.
|
2024-12-06 03:24:24 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2024-12-14 20:31:31 +00:00
|
|
|
// SetName sets the value of Name.
|
|
|
|
func (s *Script) SetName(val string) {
|
|
|
|
s.Name = val
|
|
|
|
}
|
|
|
|
|
2024-12-06 00:36:15 +00:00
|
|
|
// 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.
|
2024-12-06 03:24:24 +00:00
|
|
|
func (s *Script) SetSubmissionID(val int64) {
|
2024-12-06 00:36:15 +00:00
|
|
|
s.SubmissionID = val
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ref: #/components/schemas/ScriptCreate
|
|
|
|
type ScriptCreate struct {
|
2024-12-14 20:31:31 +00:00
|
|
|
Name string `json:"Name"`
|
2024-12-06 00:36:15 +00:00
|
|
|
Source string `json:"Source"`
|
|
|
|
SubmissionID OptInt64 `json:"SubmissionID"`
|
|
|
|
}
|
|
|
|
|
2024-12-14 20:31:31 +00:00
|
|
|
// GetName returns the value of Name.
|
|
|
|
func (s *ScriptCreate) GetName() string {
|
|
|
|
return s.Name
|
|
|
|
}
|
|
|
|
|
2024-12-06 00:36:15 +00:00
|
|
|
// 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
|
|
|
|
}
|
|
|
|
|
2024-12-14 20:31:31 +00:00
|
|
|
// SetName sets the value of Name.
|
|
|
|
func (s *ScriptCreate) SetName(val string) {
|
|
|
|
s.Name = val
|
|
|
|
}
|
|
|
|
|
2024-12-06 00:36:15 +00:00
|
|
|
// 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
|
|
|
|
}
|
|
|
|
|
2024-12-14 06:15:05 +00:00
|
|
|
// Ref: #/components/schemas/ScriptPolicyFilter
|
|
|
|
type ScriptPolicyFilter struct {
|
|
|
|
FromScriptHash OptString `json:"FromScriptHash"`
|
|
|
|
ToScriptID OptInt64 `json:"ToScriptID"`
|
|
|
|
Policy OptInt32 `json:"Policy"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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"`
|
2024-12-14 20:31:31 +00:00
|
|
|
Name OptString `json:"Name"`
|
2024-12-06 00:36:15 +00:00
|
|
|
Source OptString `json:"Source"`
|
|
|
|
SubmissionID OptInt64 `json:"SubmissionID"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetID returns the value of ID.
|
|
|
|
func (s *ScriptUpdate) GetID() int64 {
|
|
|
|
return s.ID
|
|
|
|
}
|
|
|
|
|
2024-12-14 20:31:31 +00:00
|
|
|
// GetName returns the value of Name.
|
|
|
|
func (s *ScriptUpdate) GetName() OptString {
|
|
|
|
return s.Name
|
|
|
|
}
|
|
|
|
|
2024-12-06 00:36:15 +00:00
|
|
|
// 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
|
|
|
|
}
|
|
|
|
|
2024-12-14 20:31:31 +00:00
|
|
|
// SetName sets the value of Name.
|
|
|
|
func (s *ScriptUpdate) SetName(val OptString) {
|
|
|
|
s.Name = val
|
|
|
|
}
|
|
|
|
|
2024-12-06 00:36:15 +00:00
|
|
|
// 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 {
|
2024-12-10 04:45:24 +00:00
|
|
|
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 {
|
|
|
|
DisplayName OptString `json:"DisplayName"`
|
|
|
|
Creator OptString `json:"Creator"`
|
|
|
|
GameID OptInt32 `json:"GameID"`
|
2024-11-26 01:22:45 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
// 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{}
|