2382 lines
59 KiB
Go
2382 lines
59 KiB
Go
// Code generated by ogen, DO NOT EDIT.
|
|
|
|
package api
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
"time"
|
|
|
|
"github.com/go-faster/errors"
|
|
"github.com/go-faster/jx"
|
|
)
|
|
|
|
func (s *ErrorStatusCode) Error() string {
|
|
return fmt.Sprintf("code %d: %+v", s.StatusCode, s.Response)
|
|
}
|
|
|
|
// ActionMapfixAcceptedNoContent is response for ActionMapfixAccepted operation.
|
|
type ActionMapfixAcceptedNoContent struct{}
|
|
|
|
// ActionMapfixRejectNoContent is response for ActionMapfixReject operation.
|
|
type ActionMapfixRejectNoContent struct{}
|
|
|
|
// ActionMapfixRequestChangesNoContent is response for ActionMapfixRequestChanges operation.
|
|
type ActionMapfixRequestChangesNoContent struct{}
|
|
|
|
// ActionMapfixResetSubmittingNoContent is response for ActionMapfixResetSubmitting operation.
|
|
type ActionMapfixResetSubmittingNoContent struct{}
|
|
|
|
// ActionMapfixRetryValidateNoContent is response for ActionMapfixRetryValidate operation.
|
|
type ActionMapfixRetryValidateNoContent struct{}
|
|
|
|
// ActionMapfixRevokeNoContent is response for ActionMapfixRevoke operation.
|
|
type ActionMapfixRevokeNoContent struct{}
|
|
|
|
// ActionMapfixTriggerReleaseNoContent is response for ActionMapfixTriggerRelease operation.
|
|
type ActionMapfixTriggerReleaseNoContent struct{}
|
|
|
|
// ActionMapfixTriggerSubmitNoContent is response for ActionMapfixTriggerSubmit operation.
|
|
type ActionMapfixTriggerSubmitNoContent struct{}
|
|
|
|
// ActionMapfixTriggerSubmitUncheckedNoContent is response for ActionMapfixTriggerSubmitUnchecked operation.
|
|
type ActionMapfixTriggerSubmitUncheckedNoContent struct{}
|
|
|
|
// ActionMapfixTriggerUploadNoContent is response for ActionMapfixTriggerUpload operation.
|
|
type ActionMapfixTriggerUploadNoContent struct{}
|
|
|
|
// ActionMapfixTriggerValidateNoContent is response for ActionMapfixTriggerValidate operation.
|
|
type ActionMapfixTriggerValidateNoContent struct{}
|
|
|
|
// ActionMapfixUploadedNoContent is response for ActionMapfixUploaded operation.
|
|
type ActionMapfixUploadedNoContent struct{}
|
|
|
|
// ActionMapfixValidatedNoContent is response for ActionMapfixValidated operation.
|
|
type ActionMapfixValidatedNoContent struct{}
|
|
|
|
// ActionSubmissionAcceptedNoContent is response for ActionSubmissionAccepted operation.
|
|
type ActionSubmissionAcceptedNoContent struct{}
|
|
|
|
// ActionSubmissionRejectNoContent is response for ActionSubmissionReject operation.
|
|
type ActionSubmissionRejectNoContent struct{}
|
|
|
|
// ActionSubmissionRequestChangesNoContent is response for ActionSubmissionRequestChanges operation.
|
|
type ActionSubmissionRequestChangesNoContent struct{}
|
|
|
|
// ActionSubmissionResetSubmittingNoContent is response for ActionSubmissionResetSubmitting operation.
|
|
type ActionSubmissionResetSubmittingNoContent struct{}
|
|
|
|
// ActionSubmissionRetryValidateNoContent is response for ActionSubmissionRetryValidate operation.
|
|
type ActionSubmissionRetryValidateNoContent struct{}
|
|
|
|
// ActionSubmissionRevokeNoContent is response for ActionSubmissionRevoke operation.
|
|
type ActionSubmissionRevokeNoContent struct{}
|
|
|
|
// ActionSubmissionTriggerSubmitNoContent is response for ActionSubmissionTriggerSubmit operation.
|
|
type ActionSubmissionTriggerSubmitNoContent struct{}
|
|
|
|
// ActionSubmissionTriggerSubmitUncheckedNoContent is response for ActionSubmissionTriggerSubmitUnchecked operation.
|
|
type ActionSubmissionTriggerSubmitUncheckedNoContent struct{}
|
|
|
|
// ActionSubmissionTriggerUploadNoContent is response for ActionSubmissionTriggerUpload operation.
|
|
type ActionSubmissionTriggerUploadNoContent struct{}
|
|
|
|
// ActionSubmissionTriggerValidateNoContent is response for ActionSubmissionTriggerValidate operation.
|
|
type ActionSubmissionTriggerValidateNoContent struct{}
|
|
|
|
// ActionSubmissionValidatedNoContent is response for ActionSubmissionValidated operation.
|
|
type ActionSubmissionValidatedNoContent struct{}
|
|
|
|
// Ref: #/components/schemas/AuditEvent
|
|
type AuditEvent struct {
|
|
ID int64 `json:"ID"`
|
|
Date int64 `json:"Date"`
|
|
User int64 `json:"User"`
|
|
Username string `json:"Username"`
|
|
// Is this a submission or is it a mapfix.
|
|
ResourceType int32 `json:"ResourceType"`
|
|
ResourceID int64 `json:"ResourceID"`
|
|
EventType int32 `json:"EventType"`
|
|
// Arbitrary event data.
|
|
EventData AuditEventEventData `json:"EventData"`
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *AuditEvent) GetID() int64 {
|
|
return s.ID
|
|
}
|
|
|
|
// GetDate returns the value of Date.
|
|
func (s *AuditEvent) GetDate() int64 {
|
|
return s.Date
|
|
}
|
|
|
|
// GetUser returns the value of User.
|
|
func (s *AuditEvent) GetUser() int64 {
|
|
return s.User
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *AuditEvent) GetUsername() string {
|
|
return s.Username
|
|
}
|
|
|
|
// GetResourceType returns the value of ResourceType.
|
|
func (s *AuditEvent) GetResourceType() int32 {
|
|
return s.ResourceType
|
|
}
|
|
|
|
// GetResourceID returns the value of ResourceID.
|
|
func (s *AuditEvent) GetResourceID() int64 {
|
|
return s.ResourceID
|
|
}
|
|
|
|
// GetEventType returns the value of EventType.
|
|
func (s *AuditEvent) GetEventType() int32 {
|
|
return s.EventType
|
|
}
|
|
|
|
// GetEventData returns the value of EventData.
|
|
func (s *AuditEvent) GetEventData() AuditEventEventData {
|
|
return s.EventData
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *AuditEvent) SetID(val int64) {
|
|
s.ID = val
|
|
}
|
|
|
|
// SetDate sets the value of Date.
|
|
func (s *AuditEvent) SetDate(val int64) {
|
|
s.Date = val
|
|
}
|
|
|
|
// SetUser sets the value of User.
|
|
func (s *AuditEvent) SetUser(val int64) {
|
|
s.User = val
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *AuditEvent) SetUsername(val string) {
|
|
s.Username = val
|
|
}
|
|
|
|
// SetResourceType sets the value of ResourceType.
|
|
func (s *AuditEvent) SetResourceType(val int32) {
|
|
s.ResourceType = val
|
|
}
|
|
|
|
// SetResourceID sets the value of ResourceID.
|
|
func (s *AuditEvent) SetResourceID(val int64) {
|
|
s.ResourceID = val
|
|
}
|
|
|
|
// SetEventType sets the value of EventType.
|
|
func (s *AuditEvent) SetEventType(val int32) {
|
|
s.EventType = val
|
|
}
|
|
|
|
// SetEventData sets the value of EventData.
|
|
func (s *AuditEvent) SetEventData(val AuditEventEventData) {
|
|
s.EventData = val
|
|
}
|
|
|
|
// Arbitrary event data.
|
|
type AuditEventEventData map[string]jx.Raw
|
|
|
|
func (s *AuditEventEventData) init() AuditEventEventData {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]jx.Raw{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
type BatchAssetThumbnailsOK struct {
|
|
// Map of asset ID to thumbnail URL.
|
|
Thumbnails OptBatchAssetThumbnailsOKThumbnails `json:"thumbnails"`
|
|
}
|
|
|
|
// GetThumbnails returns the value of Thumbnails.
|
|
func (s *BatchAssetThumbnailsOK) GetThumbnails() OptBatchAssetThumbnailsOKThumbnails {
|
|
return s.Thumbnails
|
|
}
|
|
|
|
// SetThumbnails sets the value of Thumbnails.
|
|
func (s *BatchAssetThumbnailsOK) SetThumbnails(val OptBatchAssetThumbnailsOKThumbnails) {
|
|
s.Thumbnails = val
|
|
}
|
|
|
|
// Map of asset ID to thumbnail URL.
|
|
type BatchAssetThumbnailsOKThumbnails map[string]string
|
|
|
|
func (s *BatchAssetThumbnailsOKThumbnails) init() BatchAssetThumbnailsOKThumbnails {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]string{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
type BatchAssetThumbnailsReq struct {
|
|
// Array of asset IDs (max 100).
|
|
AssetIds []uint64 `json:"assetIds"`
|
|
// Thumbnail size.
|
|
Size OptBatchAssetThumbnailsReqSize `json:"size"`
|
|
}
|
|
|
|
// GetAssetIds returns the value of AssetIds.
|
|
func (s *BatchAssetThumbnailsReq) GetAssetIds() []uint64 {
|
|
return s.AssetIds
|
|
}
|
|
|
|
// GetSize returns the value of Size.
|
|
func (s *BatchAssetThumbnailsReq) GetSize() OptBatchAssetThumbnailsReqSize {
|
|
return s.Size
|
|
}
|
|
|
|
// SetAssetIds sets the value of AssetIds.
|
|
func (s *BatchAssetThumbnailsReq) SetAssetIds(val []uint64) {
|
|
s.AssetIds = val
|
|
}
|
|
|
|
// SetSize sets the value of Size.
|
|
func (s *BatchAssetThumbnailsReq) SetSize(val OptBatchAssetThumbnailsReqSize) {
|
|
s.Size = val
|
|
}
|
|
|
|
// Thumbnail size.
|
|
type BatchAssetThumbnailsReqSize string
|
|
|
|
const (
|
|
BatchAssetThumbnailsReqSize150x150 BatchAssetThumbnailsReqSize = "150x150"
|
|
BatchAssetThumbnailsReqSize420x420 BatchAssetThumbnailsReqSize = "420x420"
|
|
BatchAssetThumbnailsReqSize768x432 BatchAssetThumbnailsReqSize = "768x432"
|
|
)
|
|
|
|
// AllValues returns all BatchAssetThumbnailsReqSize values.
|
|
func (BatchAssetThumbnailsReqSize) AllValues() []BatchAssetThumbnailsReqSize {
|
|
return []BatchAssetThumbnailsReqSize{
|
|
BatchAssetThumbnailsReqSize150x150,
|
|
BatchAssetThumbnailsReqSize420x420,
|
|
BatchAssetThumbnailsReqSize768x432,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s BatchAssetThumbnailsReqSize) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case BatchAssetThumbnailsReqSize150x150:
|
|
return []byte(s), nil
|
|
case BatchAssetThumbnailsReqSize420x420:
|
|
return []byte(s), nil
|
|
case BatchAssetThumbnailsReqSize768x432:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *BatchAssetThumbnailsReqSize) UnmarshalText(data []byte) error {
|
|
switch BatchAssetThumbnailsReqSize(data) {
|
|
case BatchAssetThumbnailsReqSize150x150:
|
|
*s = BatchAssetThumbnailsReqSize150x150
|
|
return nil
|
|
case BatchAssetThumbnailsReqSize420x420:
|
|
*s = BatchAssetThumbnailsReqSize420x420
|
|
return nil
|
|
case BatchAssetThumbnailsReqSize768x432:
|
|
*s = BatchAssetThumbnailsReqSize768x432
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type BatchUserThumbnailsOK struct {
|
|
// Map of user ID to thumbnail URL.
|
|
Thumbnails OptBatchUserThumbnailsOKThumbnails `json:"thumbnails"`
|
|
}
|
|
|
|
// GetThumbnails returns the value of Thumbnails.
|
|
func (s *BatchUserThumbnailsOK) GetThumbnails() OptBatchUserThumbnailsOKThumbnails {
|
|
return s.Thumbnails
|
|
}
|
|
|
|
// SetThumbnails sets the value of Thumbnails.
|
|
func (s *BatchUserThumbnailsOK) SetThumbnails(val OptBatchUserThumbnailsOKThumbnails) {
|
|
s.Thumbnails = val
|
|
}
|
|
|
|
// Map of user ID to thumbnail URL.
|
|
type BatchUserThumbnailsOKThumbnails map[string]string
|
|
|
|
func (s *BatchUserThumbnailsOKThumbnails) init() BatchUserThumbnailsOKThumbnails {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]string{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
type BatchUserThumbnailsReq struct {
|
|
// Array of user IDs (max 100).
|
|
UserIds []uint64 `json:"userIds"`
|
|
// Thumbnail size.
|
|
Size OptBatchUserThumbnailsReqSize `json:"size"`
|
|
}
|
|
|
|
// GetUserIds returns the value of UserIds.
|
|
func (s *BatchUserThumbnailsReq) GetUserIds() []uint64 {
|
|
return s.UserIds
|
|
}
|
|
|
|
// GetSize returns the value of Size.
|
|
func (s *BatchUserThumbnailsReq) GetSize() OptBatchUserThumbnailsReqSize {
|
|
return s.Size
|
|
}
|
|
|
|
// SetUserIds sets the value of UserIds.
|
|
func (s *BatchUserThumbnailsReq) SetUserIds(val []uint64) {
|
|
s.UserIds = val
|
|
}
|
|
|
|
// SetSize sets the value of Size.
|
|
func (s *BatchUserThumbnailsReq) SetSize(val OptBatchUserThumbnailsReqSize) {
|
|
s.Size = val
|
|
}
|
|
|
|
// Thumbnail size.
|
|
type BatchUserThumbnailsReqSize string
|
|
|
|
const (
|
|
BatchUserThumbnailsReqSize150x150 BatchUserThumbnailsReqSize = "150x150"
|
|
BatchUserThumbnailsReqSize420x420 BatchUserThumbnailsReqSize = "420x420"
|
|
BatchUserThumbnailsReqSize768x432 BatchUserThumbnailsReqSize = "768x432"
|
|
)
|
|
|
|
// AllValues returns all BatchUserThumbnailsReqSize values.
|
|
func (BatchUserThumbnailsReqSize) AllValues() []BatchUserThumbnailsReqSize {
|
|
return []BatchUserThumbnailsReqSize{
|
|
BatchUserThumbnailsReqSize150x150,
|
|
BatchUserThumbnailsReqSize420x420,
|
|
BatchUserThumbnailsReqSize768x432,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s BatchUserThumbnailsReqSize) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case BatchUserThumbnailsReqSize150x150:
|
|
return []byte(s), nil
|
|
case BatchUserThumbnailsReqSize420x420:
|
|
return []byte(s), nil
|
|
case BatchUserThumbnailsReqSize768x432:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *BatchUserThumbnailsReqSize) UnmarshalText(data []byte) error {
|
|
switch BatchUserThumbnailsReqSize(data) {
|
|
case BatchUserThumbnailsReqSize150x150:
|
|
*s = BatchUserThumbnailsReqSize150x150
|
|
return nil
|
|
case BatchUserThumbnailsReqSize420x420:
|
|
*s = BatchUserThumbnailsReqSize420x420
|
|
return nil
|
|
case BatchUserThumbnailsReqSize768x432:
|
|
*s = BatchUserThumbnailsReqSize768x432
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type BatchUsernamesOK struct {
|
|
// Map of user ID to username.
|
|
Usernames OptBatchUsernamesOKUsernames `json:"usernames"`
|
|
}
|
|
|
|
// GetUsernames returns the value of Usernames.
|
|
func (s *BatchUsernamesOK) GetUsernames() OptBatchUsernamesOKUsernames {
|
|
return s.Usernames
|
|
}
|
|
|
|
// SetUsernames sets the value of Usernames.
|
|
func (s *BatchUsernamesOK) SetUsernames(val OptBatchUsernamesOKUsernames) {
|
|
s.Usernames = val
|
|
}
|
|
|
|
// Map of user ID to username.
|
|
type BatchUsernamesOKUsernames map[string]string
|
|
|
|
func (s *BatchUsernamesOKUsernames) init() BatchUsernamesOKUsernames {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]string{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
type BatchUsernamesReq struct {
|
|
// Array of user IDs (max 100).
|
|
UserIds []uint64 `json:"userIds"`
|
|
}
|
|
|
|
// GetUserIds returns the value of UserIds.
|
|
func (s *BatchUsernamesReq) GetUserIds() []uint64 {
|
|
return s.UserIds
|
|
}
|
|
|
|
// SetUserIds sets the value of UserIds.
|
|
func (s *BatchUsernamesReq) SetUserIds(val []uint64) {
|
|
s.UserIds = val
|
|
}
|
|
|
|
// CombobulateNoContent is response for Combobulate operation.
|
|
type CombobulateNoContent struct{}
|
|
|
|
type CookieAuth struct {
|
|
APIKey string
|
|
Roles []string
|
|
}
|
|
|
|
// GetAPIKey returns the value of APIKey.
|
|
func (s *CookieAuth) GetAPIKey() string {
|
|
return s.APIKey
|
|
}
|
|
|
|
// GetRoles returns the value of Roles.
|
|
func (s *CookieAuth) GetRoles() []string {
|
|
return s.Roles
|
|
}
|
|
|
|
// SetAPIKey sets the value of APIKey.
|
|
func (s *CookieAuth) SetAPIKey(val string) {
|
|
s.APIKey = val
|
|
}
|
|
|
|
// SetRoles sets the value of Roles.
|
|
func (s *CookieAuth) SetRoles(val []string) {
|
|
s.Roles = val
|
|
}
|
|
|
|
// CreateMapfixAuditCommentNoContent is response for CreateMapfixAuditComment operation.
|
|
type CreateMapfixAuditCommentNoContent struct{}
|
|
|
|
type CreateMapfixAuditCommentReq struct {
|
|
Data io.Reader
|
|
}
|
|
|
|
// Read reads data from the Data reader.
|
|
//
|
|
// Kept to satisfy the io.Reader interface.
|
|
func (s CreateMapfixAuditCommentReq) Read(p []byte) (n int, err error) {
|
|
if s.Data == nil {
|
|
return 0, io.EOF
|
|
}
|
|
return s.Data.Read(p)
|
|
}
|
|
|
|
// CreateSubmissionAuditCommentNoContent is response for CreateSubmissionAuditComment operation.
|
|
type CreateSubmissionAuditCommentNoContent struct{}
|
|
|
|
type CreateSubmissionAuditCommentReq struct {
|
|
Data io.Reader
|
|
}
|
|
|
|
// Read reads data from the Data reader.
|
|
//
|
|
// Kept to satisfy the io.Reader interface.
|
|
func (s CreateSubmissionAuditCommentReq) Read(p []byte) (n int, err error) {
|
|
if s.Data == nil {
|
|
return 0, io.EOF
|
|
}
|
|
return s.Data.Read(p)
|
|
}
|
|
|
|
// DeleteScriptNoContent is response for DeleteScript operation.
|
|
type DeleteScriptNoContent struct{}
|
|
|
|
// DeleteScriptPolicyNoContent is response for DeleteScriptPolicy operation.
|
|
type DeleteScriptPolicyNoContent struct{}
|
|
|
|
type DownloadMapAssetOK struct {
|
|
Data io.Reader
|
|
}
|
|
|
|
// Read reads data from the Data reader.
|
|
//
|
|
// Kept to satisfy the io.Reader interface.
|
|
func (s DownloadMapAssetOK) Read(p []byte) (n int, err error) {
|
|
if s.Data == nil {
|
|
return 0, io.EOF
|
|
}
|
|
return s.Data.Read(p)
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// GetAssetThumbnailFound is response for GetAssetThumbnail operation.
|
|
type GetAssetThumbnailFound struct {
|
|
Location OptString
|
|
}
|
|
|
|
// GetLocation returns the value of Location.
|
|
func (s *GetAssetThumbnailFound) GetLocation() OptString {
|
|
return s.Location
|
|
}
|
|
|
|
// SetLocation sets the value of Location.
|
|
func (s *GetAssetThumbnailFound) SetLocation(val OptString) {
|
|
s.Location = val
|
|
}
|
|
|
|
type GetAssetThumbnailSize string
|
|
|
|
const (
|
|
GetAssetThumbnailSize150x150 GetAssetThumbnailSize = "150x150"
|
|
GetAssetThumbnailSize420x420 GetAssetThumbnailSize = "420x420"
|
|
GetAssetThumbnailSize768x432 GetAssetThumbnailSize = "768x432"
|
|
)
|
|
|
|
// AllValues returns all GetAssetThumbnailSize values.
|
|
func (GetAssetThumbnailSize) AllValues() []GetAssetThumbnailSize {
|
|
return []GetAssetThumbnailSize{
|
|
GetAssetThumbnailSize150x150,
|
|
GetAssetThumbnailSize420x420,
|
|
GetAssetThumbnailSize768x432,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s GetAssetThumbnailSize) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case GetAssetThumbnailSize150x150:
|
|
return []byte(s), nil
|
|
case GetAssetThumbnailSize420x420:
|
|
return []byte(s), nil
|
|
case GetAssetThumbnailSize768x432:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *GetAssetThumbnailSize) UnmarshalText(data []byte) error {
|
|
switch GetAssetThumbnailSize(data) {
|
|
case GetAssetThumbnailSize150x150:
|
|
*s = GetAssetThumbnailSize150x150
|
|
return nil
|
|
case GetAssetThumbnailSize420x420:
|
|
*s = GetAssetThumbnailSize420x420
|
|
return nil
|
|
case GetAssetThumbnailSize768x432:
|
|
*s = GetAssetThumbnailSize768x432
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// GetUserThumbnailFound is response for GetUserThumbnail operation.
|
|
type GetUserThumbnailFound struct {
|
|
Location OptString
|
|
}
|
|
|
|
// GetLocation returns the value of Location.
|
|
func (s *GetUserThumbnailFound) GetLocation() OptString {
|
|
return s.Location
|
|
}
|
|
|
|
// SetLocation sets the value of Location.
|
|
func (s *GetUserThumbnailFound) SetLocation(val OptString) {
|
|
s.Location = val
|
|
}
|
|
|
|
type GetUserThumbnailSize string
|
|
|
|
const (
|
|
GetUserThumbnailSize150x150 GetUserThumbnailSize = "150x150"
|
|
GetUserThumbnailSize420x420 GetUserThumbnailSize = "420x420"
|
|
GetUserThumbnailSize768x432 GetUserThumbnailSize = "768x432"
|
|
)
|
|
|
|
// AllValues returns all GetUserThumbnailSize values.
|
|
func (GetUserThumbnailSize) AllValues() []GetUserThumbnailSize {
|
|
return []GetUserThumbnailSize{
|
|
GetUserThumbnailSize150x150,
|
|
GetUserThumbnailSize420x420,
|
|
GetUserThumbnailSize768x432,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s GetUserThumbnailSize) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case GetUserThumbnailSize150x150:
|
|
return []byte(s), nil
|
|
case GetUserThumbnailSize420x420:
|
|
return []byte(s), nil
|
|
case GetUserThumbnailSize768x432:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *GetUserThumbnailSize) UnmarshalText(data []byte) error {
|
|
switch GetUserThumbnailSize(data) {
|
|
case GetUserThumbnailSize150x150:
|
|
*s = GetUserThumbnailSize150x150
|
|
return nil
|
|
case GetUserThumbnailSize420x420:
|
|
*s = GetUserThumbnailSize420x420
|
|
return nil
|
|
case GetUserThumbnailSize768x432:
|
|
*s = GetUserThumbnailSize768x432
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/Map
|
|
type Map struct {
|
|
ID int64 `json:"ID"`
|
|
DisplayName string `json:"DisplayName"`
|
|
Creator string `json:"Creator"`
|
|
GameID int32 `json:"GameID"`
|
|
Date int64 `json:"Date"`
|
|
CreatedAt int64 `json:"CreatedAt"`
|
|
UpdatedAt int64 `json:"UpdatedAt"`
|
|
Submitter uint64 `json:"Submitter"`
|
|
Thumbnail uint64 `json:"Thumbnail"`
|
|
AssetVersion uint64 `json:"AssetVersion"`
|
|
LoadCount uint32 `json:"LoadCount"`
|
|
Modes uint32 `json:"Modes"`
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *Map) GetID() int64 {
|
|
return s.ID
|
|
}
|
|
|
|
// GetDisplayName returns the value of DisplayName.
|
|
func (s *Map) GetDisplayName() string {
|
|
return s.DisplayName
|
|
}
|
|
|
|
// GetCreator returns the value of Creator.
|
|
func (s *Map) GetCreator() string {
|
|
return s.Creator
|
|
}
|
|
|
|
// GetGameID returns the value of GameID.
|
|
func (s *Map) GetGameID() int32 {
|
|
return s.GameID
|
|
}
|
|
|
|
// GetDate returns the value of Date.
|
|
func (s *Map) GetDate() int64 {
|
|
return s.Date
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *Map) GetCreatedAt() int64 {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetUpdatedAt returns the value of UpdatedAt.
|
|
func (s *Map) GetUpdatedAt() int64 {
|
|
return s.UpdatedAt
|
|
}
|
|
|
|
// GetSubmitter returns the value of Submitter.
|
|
func (s *Map) GetSubmitter() uint64 {
|
|
return s.Submitter
|
|
}
|
|
|
|
// GetThumbnail returns the value of Thumbnail.
|
|
func (s *Map) GetThumbnail() uint64 {
|
|
return s.Thumbnail
|
|
}
|
|
|
|
// GetAssetVersion returns the value of AssetVersion.
|
|
func (s *Map) GetAssetVersion() uint64 {
|
|
return s.AssetVersion
|
|
}
|
|
|
|
// GetLoadCount returns the value of LoadCount.
|
|
func (s *Map) GetLoadCount() uint32 {
|
|
return s.LoadCount
|
|
}
|
|
|
|
// GetModes returns the value of Modes.
|
|
func (s *Map) GetModes() uint32 {
|
|
return s.Modes
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *Map) SetID(val int64) {
|
|
s.ID = val
|
|
}
|
|
|
|
// SetDisplayName sets the value of DisplayName.
|
|
func (s *Map) SetDisplayName(val string) {
|
|
s.DisplayName = val
|
|
}
|
|
|
|
// SetCreator sets the value of Creator.
|
|
func (s *Map) SetCreator(val string) {
|
|
s.Creator = val
|
|
}
|
|
|
|
// SetGameID sets the value of GameID.
|
|
func (s *Map) SetGameID(val int32) {
|
|
s.GameID = val
|
|
}
|
|
|
|
// SetDate sets the value of Date.
|
|
func (s *Map) SetDate(val int64) {
|
|
s.Date = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *Map) SetCreatedAt(val int64) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetUpdatedAt sets the value of UpdatedAt.
|
|
func (s *Map) SetUpdatedAt(val int64) {
|
|
s.UpdatedAt = val
|
|
}
|
|
|
|
// SetSubmitter sets the value of Submitter.
|
|
func (s *Map) SetSubmitter(val uint64) {
|
|
s.Submitter = val
|
|
}
|
|
|
|
// SetThumbnail sets the value of Thumbnail.
|
|
func (s *Map) SetThumbnail(val uint64) {
|
|
s.Thumbnail = val
|
|
}
|
|
|
|
// SetAssetVersion sets the value of AssetVersion.
|
|
func (s *Map) SetAssetVersion(val uint64) {
|
|
s.AssetVersion = val
|
|
}
|
|
|
|
// SetLoadCount sets the value of LoadCount.
|
|
func (s *Map) SetLoadCount(val uint32) {
|
|
s.LoadCount = val
|
|
}
|
|
|
|
// SetModes sets the value of Modes.
|
|
func (s *Map) SetModes(val uint32) {
|
|
s.Modes = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Mapfix
|
|
type Mapfix struct {
|
|
ID int64 `json:"ID"`
|
|
DisplayName string `json:"DisplayName"`
|
|
Creator string `json:"Creator"`
|
|
GameID int32 `json:"GameID"`
|
|
CreatedAt int64 `json:"CreatedAt"`
|
|
UpdatedAt int64 `json:"UpdatedAt"`
|
|
Submitter int64 `json:"Submitter"`
|
|
AssetID int64 `json:"AssetID"`
|
|
AssetVersion int64 `json:"AssetVersion"`
|
|
ValidatedAssetID OptInt64 `json:"ValidatedAssetID"`
|
|
ValidatedAssetVersion OptInt64 `json:"ValidatedAssetVersion"`
|
|
Completed bool `json:"Completed"`
|
|
TargetAssetID int64 `json:"TargetAssetID"`
|
|
StatusID int32 `json:"StatusID"`
|
|
Description string `json:"Description"`
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *Mapfix) GetID() int64 {
|
|
return s.ID
|
|
}
|
|
|
|
// GetDisplayName returns the value of DisplayName.
|
|
func (s *Mapfix) GetDisplayName() string {
|
|
return s.DisplayName
|
|
}
|
|
|
|
// GetCreator returns the value of Creator.
|
|
func (s *Mapfix) GetCreator() string {
|
|
return s.Creator
|
|
}
|
|
|
|
// GetGameID returns the value of GameID.
|
|
func (s *Mapfix) GetGameID() int32 {
|
|
return s.GameID
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *Mapfix) GetCreatedAt() int64 {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetUpdatedAt returns the value of UpdatedAt.
|
|
func (s *Mapfix) GetUpdatedAt() int64 {
|
|
return s.UpdatedAt
|
|
}
|
|
|
|
// GetSubmitter returns the value of Submitter.
|
|
func (s *Mapfix) GetSubmitter() int64 {
|
|
return s.Submitter
|
|
}
|
|
|
|
// GetAssetID returns the value of AssetID.
|
|
func (s *Mapfix) GetAssetID() int64 {
|
|
return s.AssetID
|
|
}
|
|
|
|
// GetAssetVersion returns the value of AssetVersion.
|
|
func (s *Mapfix) GetAssetVersion() int64 {
|
|
return s.AssetVersion
|
|
}
|
|
|
|
// GetValidatedAssetID returns the value of ValidatedAssetID.
|
|
func (s *Mapfix) GetValidatedAssetID() OptInt64 {
|
|
return s.ValidatedAssetID
|
|
}
|
|
|
|
// GetValidatedAssetVersion returns the value of ValidatedAssetVersion.
|
|
func (s *Mapfix) GetValidatedAssetVersion() OptInt64 {
|
|
return s.ValidatedAssetVersion
|
|
}
|
|
|
|
// GetCompleted returns the value of Completed.
|
|
func (s *Mapfix) GetCompleted() bool {
|
|
return s.Completed
|
|
}
|
|
|
|
// GetTargetAssetID returns the value of TargetAssetID.
|
|
func (s *Mapfix) GetTargetAssetID() int64 {
|
|
return s.TargetAssetID
|
|
}
|
|
|
|
// GetStatusID returns the value of StatusID.
|
|
func (s *Mapfix) GetStatusID() int32 {
|
|
return s.StatusID
|
|
}
|
|
|
|
// GetDescription returns the value of Description.
|
|
func (s *Mapfix) GetDescription() string {
|
|
return s.Description
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *Mapfix) SetID(val int64) {
|
|
s.ID = val
|
|
}
|
|
|
|
// SetDisplayName sets the value of DisplayName.
|
|
func (s *Mapfix) SetDisplayName(val string) {
|
|
s.DisplayName = val
|
|
}
|
|
|
|
// SetCreator sets the value of Creator.
|
|
func (s *Mapfix) SetCreator(val string) {
|
|
s.Creator = val
|
|
}
|
|
|
|
// SetGameID sets the value of GameID.
|
|
func (s *Mapfix) SetGameID(val int32) {
|
|
s.GameID = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *Mapfix) SetCreatedAt(val int64) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetUpdatedAt sets the value of UpdatedAt.
|
|
func (s *Mapfix) SetUpdatedAt(val int64) {
|
|
s.UpdatedAt = val
|
|
}
|
|
|
|
// SetSubmitter sets the value of Submitter.
|
|
func (s *Mapfix) SetSubmitter(val int64) {
|
|
s.Submitter = val
|
|
}
|
|
|
|
// SetAssetID sets the value of AssetID.
|
|
func (s *Mapfix) SetAssetID(val int64) {
|
|
s.AssetID = val
|
|
}
|
|
|
|
// SetAssetVersion sets the value of AssetVersion.
|
|
func (s *Mapfix) SetAssetVersion(val int64) {
|
|
s.AssetVersion = val
|
|
}
|
|
|
|
// SetValidatedAssetID sets the value of ValidatedAssetID.
|
|
func (s *Mapfix) SetValidatedAssetID(val OptInt64) {
|
|
s.ValidatedAssetID = val
|
|
}
|
|
|
|
// SetValidatedAssetVersion sets the value of ValidatedAssetVersion.
|
|
func (s *Mapfix) SetValidatedAssetVersion(val OptInt64) {
|
|
s.ValidatedAssetVersion = val
|
|
}
|
|
|
|
// SetCompleted sets the value of Completed.
|
|
func (s *Mapfix) SetCompleted(val bool) {
|
|
s.Completed = val
|
|
}
|
|
|
|
// SetTargetAssetID sets the value of TargetAssetID.
|
|
func (s *Mapfix) SetTargetAssetID(val int64) {
|
|
s.TargetAssetID = val
|
|
}
|
|
|
|
// SetStatusID sets the value of StatusID.
|
|
func (s *Mapfix) SetStatusID(val int32) {
|
|
s.StatusID = val
|
|
}
|
|
|
|
// SetDescription sets the value of Description.
|
|
func (s *Mapfix) SetDescription(val string) {
|
|
s.Description = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/MapfixTriggerCreate
|
|
type MapfixTriggerCreate struct {
|
|
AssetID int64 `json:"AssetID"`
|
|
TargetAssetID int64 `json:"TargetAssetID"`
|
|
Description string `json:"Description"`
|
|
}
|
|
|
|
// GetAssetID returns the value of AssetID.
|
|
func (s *MapfixTriggerCreate) GetAssetID() int64 {
|
|
return s.AssetID
|
|
}
|
|
|
|
// GetTargetAssetID returns the value of TargetAssetID.
|
|
func (s *MapfixTriggerCreate) GetTargetAssetID() int64 {
|
|
return s.TargetAssetID
|
|
}
|
|
|
|
// GetDescription returns the value of Description.
|
|
func (s *MapfixTriggerCreate) GetDescription() string {
|
|
return s.Description
|
|
}
|
|
|
|
// SetAssetID sets the value of AssetID.
|
|
func (s *MapfixTriggerCreate) SetAssetID(val int64) {
|
|
s.AssetID = val
|
|
}
|
|
|
|
// SetTargetAssetID sets the value of TargetAssetID.
|
|
func (s *MapfixTriggerCreate) SetTargetAssetID(val int64) {
|
|
s.TargetAssetID = val
|
|
}
|
|
|
|
// SetDescription sets the value of Description.
|
|
func (s *MapfixTriggerCreate) SetDescription(val string) {
|
|
s.Description = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Mapfixes
|
|
type Mapfixes struct {
|
|
Total int64 `json:"Total"`
|
|
Mapfixes []Mapfix `json:"Mapfixes"`
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *Mapfixes) GetTotal() int64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetMapfixes returns the value of Mapfixes.
|
|
func (s *Mapfixes) GetMapfixes() []Mapfix {
|
|
return s.Mapfixes
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *Mapfixes) SetTotal(val int64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetMapfixes sets the value of Mapfixes.
|
|
func (s *Mapfixes) SetMapfixes(val []Mapfix) {
|
|
s.Mapfixes = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Operation
|
|
type Operation struct {
|
|
OperationID int32 `json:"OperationID"`
|
|
Date int64 `json:"Date"`
|
|
Owner int64 `json:"Owner"`
|
|
Status int32 `json:"Status"`
|
|
StatusMessage string `json:"StatusMessage"`
|
|
Path string `json:"Path"`
|
|
}
|
|
|
|
// GetOperationID returns the value of OperationID.
|
|
func (s *Operation) GetOperationID() int32 {
|
|
return s.OperationID
|
|
}
|
|
|
|
// GetDate returns the value of Date.
|
|
func (s *Operation) GetDate() int64 {
|
|
return s.Date
|
|
}
|
|
|
|
// GetOwner returns the value of Owner.
|
|
func (s *Operation) GetOwner() int64 {
|
|
return s.Owner
|
|
}
|
|
|
|
// GetStatus returns the value of Status.
|
|
func (s *Operation) GetStatus() int32 {
|
|
return s.Status
|
|
}
|
|
|
|
// GetStatusMessage returns the value of StatusMessage.
|
|
func (s *Operation) GetStatusMessage() string {
|
|
return s.StatusMessage
|
|
}
|
|
|
|
// GetPath returns the value of Path.
|
|
func (s *Operation) GetPath() string {
|
|
return s.Path
|
|
}
|
|
|
|
// SetOperationID sets the value of OperationID.
|
|
func (s *Operation) SetOperationID(val int32) {
|
|
s.OperationID = val
|
|
}
|
|
|
|
// SetDate sets the value of Date.
|
|
func (s *Operation) SetDate(val int64) {
|
|
s.Date = val
|
|
}
|
|
|
|
// SetOwner sets the value of Owner.
|
|
func (s *Operation) SetOwner(val int64) {
|
|
s.Owner = val
|
|
}
|
|
|
|
// SetStatus sets the value of Status.
|
|
func (s *Operation) SetStatus(val int32) {
|
|
s.Status = val
|
|
}
|
|
|
|
// SetStatusMessage sets the value of StatusMessage.
|
|
func (s *Operation) SetStatusMessage(val string) {
|
|
s.StatusMessage = val
|
|
}
|
|
|
|
// SetPath sets the value of Path.
|
|
func (s *Operation) SetPath(val string) {
|
|
s.Path = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/OperationID
|
|
type OperationID struct {
|
|
OperationID int32 `json:"OperationID"`
|
|
}
|
|
|
|
// GetOperationID returns the value of OperationID.
|
|
func (s *OperationID) GetOperationID() int32 {
|
|
return s.OperationID
|
|
}
|
|
|
|
// SetOperationID sets the value of OperationID.
|
|
func (s *OperationID) SetOperationID(val int32) {
|
|
s.OperationID = val
|
|
}
|
|
|
|
// NewOptBatchAssetThumbnailsOKThumbnails returns new OptBatchAssetThumbnailsOKThumbnails with value set to v.
|
|
func NewOptBatchAssetThumbnailsOKThumbnails(v BatchAssetThumbnailsOKThumbnails) OptBatchAssetThumbnailsOKThumbnails {
|
|
return OptBatchAssetThumbnailsOKThumbnails{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptBatchAssetThumbnailsOKThumbnails is optional BatchAssetThumbnailsOKThumbnails.
|
|
type OptBatchAssetThumbnailsOKThumbnails struct {
|
|
Value BatchAssetThumbnailsOKThumbnails
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptBatchAssetThumbnailsOKThumbnails was set.
|
|
func (o OptBatchAssetThumbnailsOKThumbnails) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptBatchAssetThumbnailsOKThumbnails) Reset() {
|
|
var v BatchAssetThumbnailsOKThumbnails
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptBatchAssetThumbnailsOKThumbnails) SetTo(v BatchAssetThumbnailsOKThumbnails) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptBatchAssetThumbnailsOKThumbnails) Get() (v BatchAssetThumbnailsOKThumbnails, 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 OptBatchAssetThumbnailsOKThumbnails) Or(d BatchAssetThumbnailsOKThumbnails) BatchAssetThumbnailsOKThumbnails {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptBatchAssetThumbnailsReqSize returns new OptBatchAssetThumbnailsReqSize with value set to v.
|
|
func NewOptBatchAssetThumbnailsReqSize(v BatchAssetThumbnailsReqSize) OptBatchAssetThumbnailsReqSize {
|
|
return OptBatchAssetThumbnailsReqSize{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptBatchAssetThumbnailsReqSize is optional BatchAssetThumbnailsReqSize.
|
|
type OptBatchAssetThumbnailsReqSize struct {
|
|
Value BatchAssetThumbnailsReqSize
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptBatchAssetThumbnailsReqSize was set.
|
|
func (o OptBatchAssetThumbnailsReqSize) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptBatchAssetThumbnailsReqSize) Reset() {
|
|
var v BatchAssetThumbnailsReqSize
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptBatchAssetThumbnailsReqSize) SetTo(v BatchAssetThumbnailsReqSize) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptBatchAssetThumbnailsReqSize) Get() (v BatchAssetThumbnailsReqSize, 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 OptBatchAssetThumbnailsReqSize) Or(d BatchAssetThumbnailsReqSize) BatchAssetThumbnailsReqSize {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptBatchUserThumbnailsOKThumbnails returns new OptBatchUserThumbnailsOKThumbnails with value set to v.
|
|
func NewOptBatchUserThumbnailsOKThumbnails(v BatchUserThumbnailsOKThumbnails) OptBatchUserThumbnailsOKThumbnails {
|
|
return OptBatchUserThumbnailsOKThumbnails{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptBatchUserThumbnailsOKThumbnails is optional BatchUserThumbnailsOKThumbnails.
|
|
type OptBatchUserThumbnailsOKThumbnails struct {
|
|
Value BatchUserThumbnailsOKThumbnails
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptBatchUserThumbnailsOKThumbnails was set.
|
|
func (o OptBatchUserThumbnailsOKThumbnails) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptBatchUserThumbnailsOKThumbnails) Reset() {
|
|
var v BatchUserThumbnailsOKThumbnails
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptBatchUserThumbnailsOKThumbnails) SetTo(v BatchUserThumbnailsOKThumbnails) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptBatchUserThumbnailsOKThumbnails) Get() (v BatchUserThumbnailsOKThumbnails, 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 OptBatchUserThumbnailsOKThumbnails) Or(d BatchUserThumbnailsOKThumbnails) BatchUserThumbnailsOKThumbnails {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptBatchUserThumbnailsReqSize returns new OptBatchUserThumbnailsReqSize with value set to v.
|
|
func NewOptBatchUserThumbnailsReqSize(v BatchUserThumbnailsReqSize) OptBatchUserThumbnailsReqSize {
|
|
return OptBatchUserThumbnailsReqSize{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptBatchUserThumbnailsReqSize is optional BatchUserThumbnailsReqSize.
|
|
type OptBatchUserThumbnailsReqSize struct {
|
|
Value BatchUserThumbnailsReqSize
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptBatchUserThumbnailsReqSize was set.
|
|
func (o OptBatchUserThumbnailsReqSize) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptBatchUserThumbnailsReqSize) Reset() {
|
|
var v BatchUserThumbnailsReqSize
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptBatchUserThumbnailsReqSize) SetTo(v BatchUserThumbnailsReqSize) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptBatchUserThumbnailsReqSize) Get() (v BatchUserThumbnailsReqSize, 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 OptBatchUserThumbnailsReqSize) Or(d BatchUserThumbnailsReqSize) BatchUserThumbnailsReqSize {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptBatchUsernamesOKUsernames returns new OptBatchUsernamesOKUsernames with value set to v.
|
|
func NewOptBatchUsernamesOKUsernames(v BatchUsernamesOKUsernames) OptBatchUsernamesOKUsernames {
|
|
return OptBatchUsernamesOKUsernames{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptBatchUsernamesOKUsernames is optional BatchUsernamesOKUsernames.
|
|
type OptBatchUsernamesOKUsernames struct {
|
|
Value BatchUsernamesOKUsernames
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptBatchUsernamesOKUsernames was set.
|
|
func (o OptBatchUsernamesOKUsernames) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptBatchUsernamesOKUsernames) Reset() {
|
|
var v BatchUsernamesOKUsernames
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptBatchUsernamesOKUsernames) SetTo(v BatchUsernamesOKUsernames) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptBatchUsernamesOKUsernames) Get() (v BatchUsernamesOKUsernames, 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 OptBatchUsernamesOKUsernames) Or(d BatchUsernamesOKUsernames) BatchUsernamesOKUsernames {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptGetAssetThumbnailSize returns new OptGetAssetThumbnailSize with value set to v.
|
|
func NewOptGetAssetThumbnailSize(v GetAssetThumbnailSize) OptGetAssetThumbnailSize {
|
|
return OptGetAssetThumbnailSize{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptGetAssetThumbnailSize is optional GetAssetThumbnailSize.
|
|
type OptGetAssetThumbnailSize struct {
|
|
Value GetAssetThumbnailSize
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptGetAssetThumbnailSize was set.
|
|
func (o OptGetAssetThumbnailSize) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptGetAssetThumbnailSize) Reset() {
|
|
var v GetAssetThumbnailSize
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptGetAssetThumbnailSize) SetTo(v GetAssetThumbnailSize) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptGetAssetThumbnailSize) Get() (v GetAssetThumbnailSize, 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 OptGetAssetThumbnailSize) Or(d GetAssetThumbnailSize) GetAssetThumbnailSize {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptGetUserThumbnailSize returns new OptGetUserThumbnailSize with value set to v.
|
|
func NewOptGetUserThumbnailSize(v GetUserThumbnailSize) OptGetUserThumbnailSize {
|
|
return OptGetUserThumbnailSize{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptGetUserThumbnailSize is optional GetUserThumbnailSize.
|
|
type OptGetUserThumbnailSize struct {
|
|
Value GetUserThumbnailSize
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptGetUserThumbnailSize was set.
|
|
func (o OptGetUserThumbnailSize) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptGetUserThumbnailSize) Reset() {
|
|
var v GetUserThumbnailSize
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptGetUserThumbnailSize) SetTo(v GetUserThumbnailSize) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptGetUserThumbnailSize) Get() (v GetUserThumbnailSize, 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 OptGetUserThumbnailSize) Or(d GetUserThumbnailSize) GetUserThumbnailSize {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// Ref: #/components/schemas/ReleaseInfo
|
|
type ReleaseInfo struct {
|
|
SubmissionID int64 `json:"SubmissionID"`
|
|
Date time.Time `json:"Date"`
|
|
}
|
|
|
|
// GetSubmissionID returns the value of SubmissionID.
|
|
func (s *ReleaseInfo) GetSubmissionID() int64 {
|
|
return s.SubmissionID
|
|
}
|
|
|
|
// GetDate returns the value of Date.
|
|
func (s *ReleaseInfo) GetDate() time.Time {
|
|
return s.Date
|
|
}
|
|
|
|
// SetSubmissionID sets the value of SubmissionID.
|
|
func (s *ReleaseInfo) SetSubmissionID(val int64) {
|
|
s.SubmissionID = val
|
|
}
|
|
|
|
// SetDate sets the value of Date.
|
|
func (s *ReleaseInfo) SetDate(val time.Time) {
|
|
s.Date = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Roles
|
|
type Roles struct {
|
|
Roles int32 `json:"Roles"`
|
|
}
|
|
|
|
// GetRoles returns the value of Roles.
|
|
func (s *Roles) GetRoles() int32 {
|
|
return s.Roles
|
|
}
|
|
|
|
// SetRoles sets the value of Roles.
|
|
func (s *Roles) SetRoles(val int32) {
|
|
s.Roles = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Script
|
|
type Script struct {
|
|
ID int64 `json:"ID"`
|
|
Name string `json:"Name"`
|
|
Hash string `json:"Hash"`
|
|
Source string `json:"Source"`
|
|
ResourceType int32 `json:"ResourceType"`
|
|
ResourceID int64 `json:"ResourceID"`
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// GetResourceType returns the value of ResourceType.
|
|
func (s *Script) GetResourceType() int32 {
|
|
return s.ResourceType
|
|
}
|
|
|
|
// GetResourceID returns the value of ResourceID.
|
|
func (s *Script) GetResourceID() int64 {
|
|
return s.ResourceID
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// SetResourceType sets the value of ResourceType.
|
|
func (s *Script) SetResourceType(val int32) {
|
|
s.ResourceType = val
|
|
}
|
|
|
|
// SetResourceID sets the value of ResourceID.
|
|
func (s *Script) SetResourceID(val int64) {
|
|
s.ResourceID = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ScriptCreate
|
|
type ScriptCreate struct {
|
|
Name string `json:"Name"`
|
|
Source string `json:"Source"`
|
|
ResourceType int32 `json:"ResourceType"`
|
|
ResourceID OptInt64 `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() int32 {
|
|
return s.ResourceType
|
|
}
|
|
|
|
// GetResourceID returns the value of ResourceID.
|
|
func (s *ScriptCreate) GetResourceID() OptInt64 {
|
|
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 int32) {
|
|
s.ResourceType = val
|
|
}
|
|
|
|
// SetResourceID sets the value of ResourceID.
|
|
func (s *ScriptCreate) SetResourceID(val OptInt64) {
|
|
s.ResourceID = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ScriptID
|
|
type ScriptID struct {
|
|
ScriptID int64 `json:"ScriptID"`
|
|
}
|
|
|
|
// GetScriptID returns the value of ScriptID.
|
|
func (s *ScriptID) GetScriptID() int64 {
|
|
return s.ScriptID
|
|
}
|
|
|
|
// SetScriptID sets the value of ScriptID.
|
|
func (s *ScriptID) SetScriptID(val int64) {
|
|
s.ScriptID = 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/ScriptPolicyID
|
|
type ScriptPolicyID struct {
|
|
ScriptPolicyID int64 `json:"ScriptPolicyID"`
|
|
}
|
|
|
|
// GetScriptPolicyID returns the value of ScriptPolicyID.
|
|
func (s *ScriptPolicyID) GetScriptPolicyID() int64 {
|
|
return s.ScriptPolicyID
|
|
}
|
|
|
|
// SetScriptPolicyID sets the value of ScriptPolicyID.
|
|
func (s *ScriptPolicyID) SetScriptPolicyID(val int64) {
|
|
s.ScriptPolicyID = val
|
|
}
|
|
|
|
// 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"`
|
|
Name OptString `json:"Name"`
|
|
Source OptString `json:"Source"`
|
|
ResourceType OptInt32 `json:"ResourceType"`
|
|
ResourceID OptInt64 `json:"ResourceID"`
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *ScriptUpdate) GetID() int64 {
|
|
return s.ID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *ScriptUpdate) GetName() OptString {
|
|
return s.Name
|
|
}
|
|
|
|
// GetSource returns the value of Source.
|
|
func (s *ScriptUpdate) GetSource() OptString {
|
|
return s.Source
|
|
}
|
|
|
|
// GetResourceType returns the value of ResourceType.
|
|
func (s *ScriptUpdate) GetResourceType() OptInt32 {
|
|
return s.ResourceType
|
|
}
|
|
|
|
// GetResourceID returns the value of ResourceID.
|
|
func (s *ScriptUpdate) GetResourceID() OptInt64 {
|
|
return s.ResourceID
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *ScriptUpdate) SetID(val int64) {
|
|
s.ID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *ScriptUpdate) SetName(val OptString) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetSource sets the value of Source.
|
|
func (s *ScriptUpdate) SetSource(val OptString) {
|
|
s.Source = val
|
|
}
|
|
|
|
// SetResourceType sets the value of ResourceType.
|
|
func (s *ScriptUpdate) SetResourceType(val OptInt32) {
|
|
s.ResourceType = val
|
|
}
|
|
|
|
// SetResourceID sets the value of ResourceID.
|
|
func (s *ScriptUpdate) SetResourceID(val OptInt64) {
|
|
s.ResourceID = val
|
|
}
|
|
|
|
// SeedCombobulatorNoContent is response for SeedCombobulator operation.
|
|
type SeedCombobulatorNoContent struct{}
|
|
|
|
// SetMapfixCompletedNoContent is response for SetMapfixCompleted operation.
|
|
type SetMapfixCompletedNoContent struct{}
|
|
|
|
// SetSubmissionCompletedNoContent is response for SetSubmissionCompleted operation.
|
|
type SetSubmissionCompletedNoContent struct{}
|
|
|
|
// Aggregate statistics for submissions and mapfixes.
|
|
// Ref: #/components/schemas/Stats
|
|
type Stats struct {
|
|
// Total number of submissions.
|
|
TotalSubmissions int64 `json:"TotalSubmissions"`
|
|
// Total number of mapfixes.
|
|
TotalMapfixes int64 `json:"TotalMapfixes"`
|
|
// Number of released submissions.
|
|
ReleasedSubmissions int64 `json:"ReleasedSubmissions"`
|
|
// Number of released mapfixes.
|
|
ReleasedMapfixes int64 `json:"ReleasedMapfixes"`
|
|
// Number of submissions under review.
|
|
SubmittedSubmissions int64 `json:"SubmittedSubmissions"`
|
|
// Number of mapfixes under review.
|
|
SubmittedMapfixes int64 `json:"SubmittedMapfixes"`
|
|
}
|
|
|
|
// GetTotalSubmissions returns the value of TotalSubmissions.
|
|
func (s *Stats) GetTotalSubmissions() int64 {
|
|
return s.TotalSubmissions
|
|
}
|
|
|
|
// GetTotalMapfixes returns the value of TotalMapfixes.
|
|
func (s *Stats) GetTotalMapfixes() int64 {
|
|
return s.TotalMapfixes
|
|
}
|
|
|
|
// GetReleasedSubmissions returns the value of ReleasedSubmissions.
|
|
func (s *Stats) GetReleasedSubmissions() int64 {
|
|
return s.ReleasedSubmissions
|
|
}
|
|
|
|
// GetReleasedMapfixes returns the value of ReleasedMapfixes.
|
|
func (s *Stats) GetReleasedMapfixes() int64 {
|
|
return s.ReleasedMapfixes
|
|
}
|
|
|
|
// GetSubmittedSubmissions returns the value of SubmittedSubmissions.
|
|
func (s *Stats) GetSubmittedSubmissions() int64 {
|
|
return s.SubmittedSubmissions
|
|
}
|
|
|
|
// GetSubmittedMapfixes returns the value of SubmittedMapfixes.
|
|
func (s *Stats) GetSubmittedMapfixes() int64 {
|
|
return s.SubmittedMapfixes
|
|
}
|
|
|
|
// SetTotalSubmissions sets the value of TotalSubmissions.
|
|
func (s *Stats) SetTotalSubmissions(val int64) {
|
|
s.TotalSubmissions = val
|
|
}
|
|
|
|
// SetTotalMapfixes sets the value of TotalMapfixes.
|
|
func (s *Stats) SetTotalMapfixes(val int64) {
|
|
s.TotalMapfixes = val
|
|
}
|
|
|
|
// SetReleasedSubmissions sets the value of ReleasedSubmissions.
|
|
func (s *Stats) SetReleasedSubmissions(val int64) {
|
|
s.ReleasedSubmissions = val
|
|
}
|
|
|
|
// SetReleasedMapfixes sets the value of ReleasedMapfixes.
|
|
func (s *Stats) SetReleasedMapfixes(val int64) {
|
|
s.ReleasedMapfixes = val
|
|
}
|
|
|
|
// SetSubmittedSubmissions sets the value of SubmittedSubmissions.
|
|
func (s *Stats) SetSubmittedSubmissions(val int64) {
|
|
s.SubmittedSubmissions = val
|
|
}
|
|
|
|
// SetSubmittedMapfixes sets the value of SubmittedMapfixes.
|
|
func (s *Stats) SetSubmittedMapfixes(val int64) {
|
|
s.SubmittedMapfixes = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Submission
|
|
type Submission struct {
|
|
ID int64 `json:"ID"`
|
|
DisplayName string `json:"DisplayName"`
|
|
Creator string `json:"Creator"`
|
|
GameID int32 `json:"GameID"`
|
|
CreatedAt int64 `json:"CreatedAt"`
|
|
UpdatedAt int64 `json:"UpdatedAt"`
|
|
Submitter int64 `json:"Submitter"`
|
|
AssetID int64 `json:"AssetID"`
|
|
AssetVersion int64 `json:"AssetVersion"`
|
|
ValidatedAssetID OptInt64 `json:"ValidatedAssetID"`
|
|
ValidatedAssetVersion OptInt64 `json:"ValidatedAssetVersion"`
|
|
Completed bool `json:"Completed"`
|
|
UploadedAssetID OptInt64 `json:"UploadedAssetID"`
|
|
StatusID int32 `json:"StatusID"`
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *Submission) GetID() int64 {
|
|
return s.ID
|
|
}
|
|
|
|
// GetDisplayName returns the value of DisplayName.
|
|
func (s *Submission) GetDisplayName() string {
|
|
return s.DisplayName
|
|
}
|
|
|
|
// GetCreator returns the value of Creator.
|
|
func (s *Submission) GetCreator() string {
|
|
return s.Creator
|
|
}
|
|
|
|
// GetGameID returns the value of GameID.
|
|
func (s *Submission) GetGameID() int32 {
|
|
return s.GameID
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// GetSubmitter returns the value of Submitter.
|
|
func (s *Submission) GetSubmitter() int64 {
|
|
return s.Submitter
|
|
}
|
|
|
|
// GetAssetID returns the value of AssetID.
|
|
func (s *Submission) GetAssetID() int64 {
|
|
return s.AssetID
|
|
}
|
|
|
|
// GetAssetVersion returns the value of AssetVersion.
|
|
func (s *Submission) GetAssetVersion() int64 {
|
|
return s.AssetVersion
|
|
}
|
|
|
|
// GetValidatedAssetID returns the value of ValidatedAssetID.
|
|
func (s *Submission) GetValidatedAssetID() OptInt64 {
|
|
return s.ValidatedAssetID
|
|
}
|
|
|
|
// GetValidatedAssetVersion returns the value of ValidatedAssetVersion.
|
|
func (s *Submission) GetValidatedAssetVersion() OptInt64 {
|
|
return s.ValidatedAssetVersion
|
|
}
|
|
|
|
// GetCompleted returns the value of Completed.
|
|
func (s *Submission) GetCompleted() bool {
|
|
return s.Completed
|
|
}
|
|
|
|
// GetUploadedAssetID returns the value of UploadedAssetID.
|
|
func (s *Submission) GetUploadedAssetID() OptInt64 {
|
|
return s.UploadedAssetID
|
|
}
|
|
|
|
// GetStatusID returns the value of StatusID.
|
|
func (s *Submission) GetStatusID() int32 {
|
|
return s.StatusID
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *Submission) SetID(val int64) {
|
|
s.ID = val
|
|
}
|
|
|
|
// SetDisplayName sets the value of DisplayName.
|
|
func (s *Submission) SetDisplayName(val string) {
|
|
s.DisplayName = val
|
|
}
|
|
|
|
// SetCreator sets the value of Creator.
|
|
func (s *Submission) SetCreator(val string) {
|
|
s.Creator = val
|
|
}
|
|
|
|
// SetGameID sets the value of GameID.
|
|
func (s *Submission) SetGameID(val int32) {
|
|
s.GameID = val
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// SetSubmitter sets the value of Submitter.
|
|
func (s *Submission) SetSubmitter(val int64) {
|
|
s.Submitter = val
|
|
}
|
|
|
|
// SetAssetID sets the value of AssetID.
|
|
func (s *Submission) SetAssetID(val int64) {
|
|
s.AssetID = val
|
|
}
|
|
|
|
// SetAssetVersion sets the value of AssetVersion.
|
|
func (s *Submission) SetAssetVersion(val int64) {
|
|
s.AssetVersion = val
|
|
}
|
|
|
|
// SetValidatedAssetID sets the value of ValidatedAssetID.
|
|
func (s *Submission) SetValidatedAssetID(val OptInt64) {
|
|
s.ValidatedAssetID = val
|
|
}
|
|
|
|
// SetValidatedAssetVersion sets the value of ValidatedAssetVersion.
|
|
func (s *Submission) SetValidatedAssetVersion(val OptInt64) {
|
|
s.ValidatedAssetVersion = val
|
|
}
|
|
|
|
// SetCompleted sets the value of Completed.
|
|
func (s *Submission) SetCompleted(val bool) {
|
|
s.Completed = val
|
|
}
|
|
|
|
// SetUploadedAssetID sets the value of UploadedAssetID.
|
|
func (s *Submission) SetUploadedAssetID(val OptInt64) {
|
|
s.UploadedAssetID = val
|
|
}
|
|
|
|
// SetStatusID sets the value of StatusID.
|
|
func (s *Submission) SetStatusID(val int32) {
|
|
s.StatusID = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/SubmissionTriggerCreate
|
|
type SubmissionTriggerCreate struct {
|
|
AssetID int64 `json:"AssetID"`
|
|
DisplayName string `json:"DisplayName"`
|
|
Creator string `json:"Creator"`
|
|
GameID int32 `json:"GameID"`
|
|
}
|
|
|
|
// GetAssetID returns the value of AssetID.
|
|
func (s *SubmissionTriggerCreate) GetAssetID() int64 {
|
|
return s.AssetID
|
|
}
|
|
|
|
// GetDisplayName returns the value of DisplayName.
|
|
func (s *SubmissionTriggerCreate) GetDisplayName() string {
|
|
return s.DisplayName
|
|
}
|
|
|
|
// GetCreator returns the value of Creator.
|
|
func (s *SubmissionTriggerCreate) GetCreator() string {
|
|
return s.Creator
|
|
}
|
|
|
|
// GetGameID returns the value of GameID.
|
|
func (s *SubmissionTriggerCreate) GetGameID() int32 {
|
|
return s.GameID
|
|
}
|
|
|
|
// SetAssetID sets the value of AssetID.
|
|
func (s *SubmissionTriggerCreate) SetAssetID(val int64) {
|
|
s.AssetID = val
|
|
}
|
|
|
|
// SetDisplayName sets the value of DisplayName.
|
|
func (s *SubmissionTriggerCreate) SetDisplayName(val string) {
|
|
s.DisplayName = val
|
|
}
|
|
|
|
// SetCreator sets the value of Creator.
|
|
func (s *SubmissionTriggerCreate) SetCreator(val string) {
|
|
s.Creator = val
|
|
}
|
|
|
|
// SetGameID sets the value of GameID.
|
|
func (s *SubmissionTriggerCreate) SetGameID(val int32) {
|
|
s.GameID = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Submissions
|
|
type Submissions struct {
|
|
Total int64 `json:"Total"`
|
|
Submissions []Submission `json:"Submissions"`
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *Submissions) GetTotal() int64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetSubmissions returns the value of Submissions.
|
|
func (s *Submissions) GetSubmissions() []Submission {
|
|
return s.Submissions
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *Submissions) SetTotal(val int64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetSubmissions sets the value of Submissions.
|
|
func (s *Submissions) SetSubmissions(val []Submission) {
|
|
s.Submissions = val
|
|
}
|
|
|
|
// UpdateMapfixDescriptionNoContent is response for UpdateMapfixDescription operation.
|
|
type UpdateMapfixDescriptionNoContent struct{}
|
|
|
|
type UpdateMapfixDescriptionReq struct {
|
|
Data io.Reader
|
|
}
|
|
|
|
// Read reads data from the Data reader.
|
|
//
|
|
// Kept to satisfy the io.Reader interface.
|
|
func (s UpdateMapfixDescriptionReq) Read(p []byte) (n int, err error) {
|
|
if s.Data == nil {
|
|
return 0, io.EOF
|
|
}
|
|
return s.Data.Read(p)
|
|
}
|
|
|
|
// UpdateMapfixModelNoContent is response for UpdateMapfixModel operation.
|
|
type UpdateMapfixModelNoContent struct{}
|
|
|
|
// UpdateScriptNoContent is response for UpdateScript operation.
|
|
type UpdateScriptNoContent struct{}
|
|
|
|
// UpdateScriptPolicyNoContent is response for UpdateScriptPolicy operation.
|
|
type UpdateScriptPolicyNoContent struct{}
|
|
|
|
// UpdateSubmissionModelNoContent is response for UpdateSubmissionModel operation.
|
|
type UpdateSubmissionModelNoContent struct{}
|
|
|
|
// Ref: #/components/schemas/User
|
|
type User struct {
|
|
UserID int64 `json:"UserID"`
|
|
Username string `json:"Username"`
|
|
AvatarURL string `json:"AvatarURL"`
|
|
}
|
|
|
|
// GetUserID returns the value of UserID.
|
|
func (s *User) GetUserID() int64 {
|
|
return s.UserID
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *User) GetUsername() string {
|
|
return s.Username
|
|
}
|
|
|
|
// GetAvatarURL returns the value of AvatarURL.
|
|
func (s *User) GetAvatarURL() string {
|
|
return s.AvatarURL
|
|
}
|
|
|
|
// SetUserID sets the value of UserID.
|
|
func (s *User) SetUserID(val int64) {
|
|
s.UserID = val
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *User) SetUsername(val string) {
|
|
s.Username = val
|
|
}
|
|
|
|
// SetAvatarURL sets the value of AvatarURL.
|
|
func (s *User) SetAvatarURL(val string) {
|
|
s.AvatarURL = val
|
|
}
|